// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/banner/v1/keyapis_banner_banner_v1.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Keyapis.Banner.V1 { /// Holder for reflection information generated from keyapis/banner/v1/keyapis_banner_banner_v1.proto public static partial class KeyapisBannerBannerV1Reflection { #region Descriptor /// File descriptor for keyapis/banner/v1/keyapis_banner_banner_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisBannerBannerV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjBrZXlhcGlzL2Jhbm5lci92MS9rZXlhcGlzX2Jhbm5lcl9iYW5uZXJfdjEu", "cHJvdG8SEWtleWFwaXMuYmFubmVyLnYxGh9nb29nbGUvcHJvdG9idWYvdGlt", "ZXN0YW1wLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGh9n", "b29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGiBnb29nbGUvcHJvdG9i", "dWYvZGVzY3JpcHRvci5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL3dyYXBwZXJz", "LnByb3RvIucPCgZCYW5uZXISCgoCaWQYASABKAkSMQoEdHlwZRgCIAEoDjIe", "LmtleWFwaXMuYmFubmVyLnYxLkJhbm5lci5UeXBlQgPgQQISFQoIcHJpb3Jp", "dHkYAyABKAVCA+BBAhJCCg1wcmlvcml0eV90eXBlGAQgASgOMiYua2V5YXBp", "cy5iYW5uZXIudjEuQmFubmVyLlByaW9yaXR5VHlwZUID4EEDEhIKBXRpdGxl", "GAUgASgJQgPgQQISLAoGaGVhZGVyGAYgASgLMhwuZ29vZ2xlLnByb3RvYnVm", "LlN0cmluZ1ZhbHVlEjIKDGhlYWRlcl9jb2xvchgHIAEoCzIcLmdvb2dsZS5w", "cm90b2J1Zi5TdHJpbmdWYWx1ZRIuCghzdWJ0aXRsZRgIIAEoCzIcLmdvb2ds", "ZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRI0Cg5zdWJ0aXRsZV9jb2xvchgJIAEo", "CzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRI2ChBiYWNrZ3JvdW5k", "X2NvbG9yGAogASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEj8K", "E2JhY2tncm91bmRfZ3JhZGllbnQYCyABKAsyIi5rZXlhcGlzLmJhbm5lci52", "MS5CYW5uZXIuR3JhZGllbnQSNgoRcmVwZWF0X2FmdGVyX2RheXMYDCABKAsy", "Gy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZRI2Cg1zaG93X3N0YXJ0X2F0", "GA0gASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EECEjYKDXNo", "b3dfZW5kZWRfYXQYDiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", "QgPgQQISPgoLc3RhdHVzX3R5cGUYDyABKA4yJC5rZXlhcGlzLmJhbm5lci52", "MS5CYW5uZXIuU3RhdHVzVHlwZUID4EEDEi8KBmltYWdlcxgQIAMoCzIfLmtl", "eWFwaXMuYmFubmVyLnYxLkJhbm5lci5JbWFnZRItCgVsaW5rcxgRIAMoCzIe", "LmtleWFwaXMuYmFubmVyLnYxLkJhbm5lci5MaW5rEhYKCXVzZXJfdGFncxgS", "IAMoCUID4EECEhUKCGFwcF90YWdzGBMgAygJQgPgQQISMwoKY3JlYXRlZF9h", "dBgUIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxIzCgpj", "aGFuZ2VkX2F0GBUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID", "4EEDGtoBCghHcmFkaWVudBI7CgZsaW5lYXIYASABKAsyKS5rZXlhcGlzLmJh", "bm5lci52MS5CYW5uZXIuR3JhZGllbnQuTGluZWFySAAaiAEKBkxpbmVhchIN", "CgVhbmdsZRgBIAEoAhJECgZwb2ludHMYAiADKAsyLy5rZXlhcGlzLmJhbm5l", "ci52MS5CYW5uZXIuR3JhZGllbnQuTGluZWFyLlBvaW50QgPgQQIaKQoFUG9p", "bnQSEgoFY29sb3IYASABKAlCA+BBAhIMCgRzdG9wGAIgASgCQgYKBHR5cGUa", "kwEKBUltYWdlEjcKBHR5cGUYASABKA4yJC5rZXlhcGlzLmJhbm5lci52MS5C", "YW5uZXIuSW1hZ2UuVHlwZUID4EECEhAKA3VybBgCIAEoCUID4EECIj8KBFR5", "cGUSEAoMVFlQRV9VTktOT1dOEAASDAoIUE9SVFJBSVQQARINCglMQU5EU0NB", "UEUQAhIICgRJQ09OEAMamgIKBExpbmsSQgoNcGxhdGZvcm1fdHlwZRgBIAEo", "DjImLmtleWFwaXMuYmFubmVyLnYxLkJhbm5lci5QbGF0Zm9ybVR5cGVCA+BB", "AhI2CgR0eXBlGAIgASgOMiMua2V5YXBpcy5iYW5uZXIudjEuQmFubmVyLkxp", "bmsuVHlwZUID4EECEhAKA3VybBgDIAEoCUID4EECEhAKCHBhY2thZ2VzGAQg", "AygJInIKBFR5cGUSEAoMVFlQRV9VTktOT1dOEAASEAoMSU5URVJOQUxfQVBQ", "EAESEAoMRVhURVJOQUxfQVBQEAISDAoIV0VCX1ZJRVcQAxIPCgtXRUJfQlJP", "V1NFUhAEEhUKEUVYVEVSTkFMX1dFQl9WSUVXEAUaZwoLU2F2aW5nRXJyb3IS", "QgoIY29uZmxpY3QYASABKAsyLi5rZXlhcGlzLmJhbm5lci52MS5CYW5uZXIu", "U2F2aW5nRXJyb3IuQ29uZmxpY3RIABoKCghDb25mbGljdEIICgZyZWFzb24i", "JgoEVHlwZRIQCgxUWVBFX1VOS05PV04QABIMCghTVEFOREFSRBABIlQKDFBy", "aW9yaXR5VHlwZRIZChVQUklPUklUWV9UWVBFX1VOS05PV04QABIKCgZOT1JN", "QUwQARIPCgtXSElURV9MQUJFTBACEgwKCENSSVRJQ0FMEAMiTAoKU3RhdHVz", "VHlwZRIXChNTVEFUVVNfVFlQRV9VTktOT1dOEAASDAoIREVGRVJSRUQQARIK", "CgZBQ1RJVkUQAhILCgdFWFBJUkVEEAMiSAoMUGxhdGZvcm1UeXBlEhkKFVBM", "QVRGT1JNX1RZUEVfVU5LTk9XThAAEgcKA0lPUxABEgsKB0FORFJPSUQQAhIH", "CgNXRUIQAyLFAwoKQmFubmVyTGl0ZRIKCgJpZBgBIAEoCRI2ChFyZXBlYXRf", "YWZ0ZXJfZGF5cxgCIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVl", "EjcKBmltYWdlcxgDIAMoCzInLmtleWFwaXMuYmFubmVyLnYxLkJhbm5lckxp", "dGUuSW1hZ2VMaXRlEjUKBWxpbmtzGAQgAygLMiYua2V5YXBpcy5iYW5uZXIu", "djEuQmFubmVyTGl0ZS5MaW5rTGl0ZRpWCglJbWFnZUxpdGUSNwoEdHlwZRgB", "IAEoDjIkLmtleWFwaXMuYmFubmVyLnYxLkJhbm5lci5JbWFnZS5UeXBlQgPg", "QQISEAoDdXJsGAIgASgJQgPgQQIaqgEKCExpbmtMaXRlEjYKBHR5cGUYASAB", "KA4yIy5rZXlhcGlzLmJhbm5lci52MS5CYW5uZXIuTGluay5UeXBlQgPgQQIS", "EAoDdXJsGAIgASgJQgPgQQISEAoIcGFja2FnZXMYAyADKAkSQgoNcGxhdGZv", "cm1fdHlwZRgEIAEoDjImLmtleWFwaXMuYmFubmVyLnYxLkJhbm5lci5QbGF0", "Zm9ybVR5cGVCA+BBAiLSBAoMQmFubmVyRmlsdGVyEioKBHRleHQYASABKAsy", "HC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSLQoFdHlwZXMYAiADKA4y", "Hi5rZXlhcGlzLmJhbm5lci52MS5CYW5uZXIuVHlwZRIzCg5iZWdpbl9wcmlv", "cml0eRgDIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlEjEKDGVu", "ZF9wcmlvcml0eRgEIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVl", "Ej4KDnByaW9yaXR5X3R5cGVzGAUgAygOMiYua2V5YXBpcy5iYW5uZXIudjEu", "QmFubmVyLlByaW9yaXR5VHlwZRI3ChNiZWdpbl9zaG93X3N0YXJ0X2F0GAYg", "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBI1ChFlbmRfc2hvd19z", "dGFydF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASNwoT", "YmVnaW5fc2hvd19lbmRlZF9hdBgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", "aW1lc3RhbXASNQoRZW5kX3Nob3dfZW5kZWRfYXQYCSABKAsyGi5nb29nbGUu", "cHJvdG9idWYuVGltZXN0YW1wEjoKDHN0YXR1c190eXBlcxgKIAMoDjIkLmtl", "eWFwaXMuYmFubmVyLnYxLkJhbm5lci5TdGF0dXNUeXBlEhEKCXVzZXJfdGFn", "cxgLIAMoCRIQCghhcHBfdGFncxgMIAMoCSLyAQoQQmFubmVyTGl0ZUZpbHRl", "chItCgV0eXBlcxgBIAMoDjIeLmtleWFwaXMuYmFubmVyLnYxLkJhbm5lci5U", "eXBlEi4KCGFwcF9uYW1lGAIgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmlu", "Z1ZhbHVlEj0KDXBsYXRmb3JtX3R5cGUYAyABKA4yJi5rZXlhcGlzLmJhbm5l", "ci52MS5CYW5uZXIuUGxhdGZvcm1UeXBlEi0KB3ZlcnNpb24YBCABKAsyHC5n", "b29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSEQoJdXNlcl90YWdzGAUgAygJ", "IpQDCgxCYW5uZXJQYWdpbmcSQgoNb3JkZXJfYnlfdHlwZRgBIAEoDjIrLmtl", "eWFwaXMuYmFubmVyLnYxLkJhbm5lclBhZ2luZy5PcmRlckJ5VHlwZRJFCg5k", "aXJlY3Rpb25fdHlwZRgCIAEoDjItLmtleWFwaXMuYmFubmVyLnYxLkJhbm5l", "clBhZ2luZy5EaXJlY3Rpb25UeXBlEg0KBWxpbWl0GAMgASgFEg4KBm9mZnNl", "dBgEIAEoBSKZAQoLT3JkZXJCeVR5cGUSGQoVT1JERVJfQllfVFlQRV9VTktO", "T1dOEAASDgoKQ0hBTkdFRF9BVBABEh8KG1BSSU9SSVRZX1RIRU5fU0hPV19T", "VEFSVF9BVBACEg4KCkNSRUFURURfQVQQAxIRCg1TSE9XX1NUQVJUX0FUEAQS", "EQoNU0hPV19FTkRFRF9BVBAFEggKBFJBTksQBiI+Cg1EaXJlY3Rpb25UeXBl", "EhoKFkRJUkVDVElPTl9UWVBFX1VOS05PV04QABIICgRERVNDEAESBwoDQVND", "EAIiQQoRUG9zdEJhbm5lclJlcXVlc3QSLAoEZGF0YRgBIAEoCzIZLmtleWFw", "aXMuYmFubmVyLnYxLkJhbm5lckID4EECIowCChJQb3N0QmFubmVyUmVzcG9u", "c2USKQoEZGF0YRgBIAEoCzIZLmtleWFwaXMuYmFubmVyLnYxLkJhbm5lckgA", "EjwKBWVycm9yGAIgASgLMisua2V5YXBpcy5iYW5uZXIudjEuUG9zdEJhbm5l", "clJlc3BvbnNlLkVycm9ySAAahAEKBUVycm9yEjgKCnZhbGlkYXRpb24YASAB", "KAsyIi5rZXlhcGlzLmJhbm5lci52MS5WYWxpZGF0aW9uRXJyb3JIABI3CgZz", "YXZpbmcYAiABKAsyJS5rZXlhcGlzLmJhbm5lci52MS5CYW5uZXIuU2F2aW5n", "RXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSIjChBHZXRCYW5uZXJSZXF1ZXN0", "Eg8KAmlkGAEgASgJQgPgQQIi0AEKEUdldEJhbm5lclJlc3BvbnNlEikKBGRh", "dGEYASABKAsyGS5rZXlhcGlzLmJhbm5lci52MS5CYW5uZXJIABI7CgVlcnJv", "chgCIAEoCzIqLmtleWFwaXMuYmFubmVyLnYxLkdldEJhbm5lclJlc3BvbnNl", "LkVycm9ySAAaSwoFRXJyb3ISOAoKdmFsaWRhdGlvbhgBIAEoCzIiLmtleWFw", "aXMuYmFubmVyLnYxLlZhbGlkYXRpb25FcnJvckgAQggKBnJlYXNvbkIGCgR0", "eXBlIicKFEdldEJhbm5lckxpdGVSZXF1ZXN0Eg8KAmlkGAEgASgJQgPgQQIi", "3AEKFUdldEJhbm5lckxpdGVSZXNwb25zZRItCgRkYXRhGAEgASgLMh0ua2V5", "YXBpcy5iYW5uZXIudjEuQmFubmVyTGl0ZUgAEj8KBWVycm9yGAIgASgLMi4u", "a2V5YXBpcy5iYW5uZXIudjEuR2V0QmFubmVyTGl0ZVJlc3BvbnNlLkVycm9y", "SAAaSwoFRXJyb3ISOAoKdmFsaWRhdGlvbhgBIAEoCzIiLmtleWFwaXMuYmFu", "bmVyLnYxLlZhbGlkYXRpb25FcnJvckgAQggKBnJlYXNvbkIGCgR0eXBlIogB", "ChRHZXRCYW5uZXJMaXN0UmVxdWVzdBIvCgZmaWx0ZXIYASABKAsyHy5rZXlh", "cGlzLmJhbm5lci52MS5CYW5uZXJGaWx0ZXISMQoGcGFnaW5nGAIgASgLMh8u", "a2V5YXBpcy5iYW5uZXIudjEuQmFubmVyUGFnaW5nSABCDAoKcGFnaW5hdGlv", "biLYAQoVR2V0QmFubmVyTGlzdFJlc3BvbnNlEikKBGRhdGEYASABKAsyGS5r", "ZXlhcGlzLmJhbm5lci52MS5CYW5uZXJIABI/CgVlcnJvchgCIAEoCzIuLmtl", "eWFwaXMuYmFubmVyLnYxLkdldEJhbm5lckxpc3RSZXNwb25zZS5FcnJvckgA", "GksKBUVycm9yEjgKCnZhbGlkYXRpb24YASABKAsyIi5rZXlhcGlzLmJhbm5l", "ci52MS5WYWxpZGF0aW9uRXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSJwChhH", "ZXRCYW5uZXJMaXRlTGlzdFJlcXVlc3QSMwoGZmlsdGVyGAEgASgLMiMua2V5", "YXBpcy5iYW5uZXIudjEuQmFubmVyTGl0ZUZpbHRlchIfChdpc19saW5rX2Zp", "bHRlcl9kaXNhYmxlZBgCIAEoCCLkAQoZR2V0QmFubmVyTGl0ZUxpc3RSZXNw", "b25zZRItCgRkYXRhGAEgASgLMh0ua2V5YXBpcy5iYW5uZXIudjEuQmFubmVy", "TGl0ZUgAEkMKBWVycm9yGAIgASgLMjIua2V5YXBpcy5iYW5uZXIudjEuR2V0", "QmFubmVyTGl0ZUxpc3RSZXNwb25zZS5FcnJvckgAGksKBUVycm9yEjgKCnZh", "bGlkYXRpb24YASABKAsyIi5rZXlhcGlzLmJhbm5lci52MS5WYWxpZGF0aW9u", "RXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSJIChVHZXRCYW5uZXJDb3VudFJl", "cXVlc3QSLwoGZmlsdGVyGAEgASgLMh8ua2V5YXBpcy5iYW5uZXIudjEuQmFu", "bmVyRmlsdGVyIr8BChZHZXRCYW5uZXJDb3VudFJlc3BvbnNlEg4KBGRhdGEY", "ASABKAVIABJACgVlcnJvchgCIAEoCzIvLmtleWFwaXMuYmFubmVyLnYxLkdl", "dEJhbm5lckNvdW50UmVzcG9uc2UuRXJyb3JIABpLCgVFcnJvchI4Cgp2YWxp", "ZGF0aW9uGAEgASgLMiIua2V5YXBpcy5iYW5uZXIudjEuVmFsaWRhdGlvbkVy", "cm9ySABCCAoGcmVhc29uQgYKBHR5cGUiIgoLVXBsb2FkSW1hZ2USEwoGYmFz", "ZTY0GAEgASgJQgPgQQIicQocUG9zdEJhbm5lclVwbG9hZEltYWdlUmVxdWVz", "dBIWCgliYW5uZXJfaWQYASABKAlCA+BBAhI5Cgx1cGxvYWRfaW1hZ2UYAiAB", "KAsyHi5rZXlhcGlzLmJhbm5lci52MS5VcGxvYWRJbWFnZUID4EECIs0BCh1Q", "b3N0QmFubmVyVXBsb2FkSW1hZ2VSZXNwb25zZRIOCgRkYXRhGAEgASgJSAAS", "RwoFZXJyb3IYAiABKAsyNi5rZXlhcGlzLmJhbm5lci52MS5Qb3N0QmFubmVy", "VXBsb2FkSW1hZ2VSZXNwb25zZS5FcnJvckgAGksKBUVycm9yEjgKCnZhbGlk", "YXRpb24YASABKAsyIi5rZXlhcGlzLmJhbm5lci52MS5WYWxpZGF0aW9uRXJy", "b3JIAEIICgZyZWFzb25CBgoEdHlwZSI6Cg9WYWxpZGF0aW9uRXJyb3ISEQoE", "cGF0aBgBIAEoCUID4EECEhQKB21lc3NhZ2UYAiABKAlCA+BBAjKNCAoNQmFu", "bmVyU2VydmljZRJ7CgpQb3N0QmFubmVyEiQua2V5YXBpcy5iYW5uZXIudjEu", "UG9zdEJhbm5lclJlcXVlc3QaJS5rZXlhcGlzLmJhbm5lci52MS5Qb3N0QmFu", "bmVyUmVzcG9uc2UiIILT5JMCGiIVL2Jhbm5lci9hcGkvdjEvYmFubmVyOgEq", "EnoKCUdldEJhbm5lchIjLmtleWFwaXMuYmFubmVyLnYxLkdldEJhbm5lclJl", "cXVlc3QaJC5rZXlhcGlzLmJhbm5lci52MS5HZXRCYW5uZXJSZXNwb25zZSIi", "gtPkkwIcEhovYmFubmVyL2FwaS92MS9iYW5uZXIve2lkfRKLAQoNR2V0QmFu", "bmVyTGl0ZRInLmtleWFwaXMuYmFubmVyLnYxLkdldEJhbm5lckxpdGVSZXF1", "ZXN0Gigua2V5YXBpcy5iYW5uZXIudjEuR2V0QmFubmVyTGl0ZVJlc3BvbnNl", "IieC0+STAiESHy9iYW5uZXIvYXBpL3YxL2Jhbm5lcl9saXRlL3tpZH0SiAEK", "DUdldEJhbm5lckxpc3QSJy5rZXlhcGlzLmJhbm5lci52MS5HZXRCYW5uZXJM", "aXN0UmVxdWVzdBooLmtleWFwaXMuYmFubmVyLnYxLkdldEJhbm5lckxpc3RS", "ZXNwb25zZSIigtPkkwIcEhovYmFubmVyL2FwaS92MS9iYW5uZXIvbGlzdDAB", "EpkBChFHZXRCYW5uZXJMaXRlTGlzdBIrLmtleWFwaXMuYmFubmVyLnYxLkdl", "dEJhbm5lckxpdGVMaXN0UmVxdWVzdBosLmtleWFwaXMuYmFubmVyLnYxLkdl", "dEJhbm5lckxpdGVMaXN0UmVzcG9uc2UiJ4LT5JMCIRIfL2Jhbm5lci9hcGkv", "djEvYmFubmVyX2xpdGUvbGlzdDABEooBCg5HZXRCYW5uZXJDb3VudBIoLmtl", "eWFwaXMuYmFubmVyLnYxLkdldEJhbm5lckNvdW50UmVxdWVzdBopLmtleWFw", "aXMuYmFubmVyLnYxLkdldEJhbm5lckNvdW50UmVzcG9uc2UiI4LT5JMCHRIb", "L2Jhbm5lci9hcGkvdjEvYmFubmVyL2NvdW50EsABChVQb3N0QmFubmVyVXBs", "b2FkSW1hZ2USLy5rZXlhcGlzLmJhbm5lci52MS5Qb3N0QmFubmVyVXBsb2Fk", "SW1hZ2VSZXF1ZXN0GjAua2V5YXBpcy5iYW5uZXIudjEuUG9zdEJhbm5lclVw", "bG9hZEltYWdlUmVzcG9uc2UiRILT5JMCPiIuL2Jhbm5lci9hcGkvdjEvYmFu", "bmVyL3tiYW5uZXJfaWR9L3VwbG9hZF9pbWFnZToMdXBsb2FkX2ltYWdlQpoB", "ChRydS5rZXlhcGlzLmJhbm5lci52MUIUS2V5YXBpc0Jhbm5lclYxUHJvdG9I", "A1AAWhIva2V5YXBpc19iYW5uZXJfdjHYAQH4AQGiAg9LRVlBUElTQkFOTkVS", "VjGqAhFLZXlhcGlzLkJhbm5lci5WMcoCEUtleWFwaXNcQmFubmVyXFYx6gIT", "S2V5YXBpczo6QmFubmVyOjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.Banner), global::Keyapis.Banner.V1.Banner.Parser, new[]{ "Id", "Type", "Priority", "PriorityType", "Title", "Header", "HeaderColor", "Subtitle", "SubtitleColor", "BackgroundColor", "BackgroundGradient", "RepeatAfterDays", "ShowStartAt", "ShowEndedAt", "StatusType", "Images", "Links", "UserTags", "AppTags", "CreatedAt", "ChangedAt" }, null, new[]{ typeof(global::Keyapis.Banner.V1.Banner.Types.Type), typeof(global::Keyapis.Banner.V1.Banner.Types.PriorityType), typeof(global::Keyapis.Banner.V1.Banner.Types.StatusType), typeof(global::Keyapis.Banner.V1.Banner.Types.PlatformType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.Banner.Types.Gradient), global::Keyapis.Banner.V1.Banner.Types.Gradient.Parser, new[]{ "Linear" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear), global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear.Parser, new[]{ "Angle", "Points" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear.Types.Point), global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear.Types.Point.Parser, new[]{ "Color", "Stop" }, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.Banner.Types.Image), global::Keyapis.Banner.V1.Banner.Types.Image.Parser, new[]{ "Type", "Url" }, null, new[]{ typeof(global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.Banner.Types.Link), global::Keyapis.Banner.V1.Banner.Types.Link.Parser, new[]{ "PlatformType", "Type", "Url", "Packages" }, null, new[]{ typeof(global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.Banner.Types.SavingError), global::Keyapis.Banner.V1.Banner.Types.SavingError.Parser, new[]{ "Conflict" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.Banner.Types.SavingError.Types.Conflict), global::Keyapis.Banner.V1.Banner.Types.SavingError.Types.Conflict.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.BannerLite), global::Keyapis.Banner.V1.BannerLite.Parser, new[]{ "Id", "RepeatAfterDays", "Images", "Links" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.BannerLite.Types.ImageLite), global::Keyapis.Banner.V1.BannerLite.Types.ImageLite.Parser, new[]{ "Type", "Url" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.BannerLite.Types.LinkLite), global::Keyapis.Banner.V1.BannerLite.Types.LinkLite.Parser, new[]{ "Type", "Url", "Packages", "PlatformType" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.BannerFilter), global::Keyapis.Banner.V1.BannerFilter.Parser, new[]{ "Text", "Types_", "BeginPriority", "EndPriority", "PriorityTypes", "BeginShowStartAt", "EndShowStartAt", "BeginShowEndedAt", "EndShowEndedAt", "StatusTypes", "UserTags", "AppTags" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.BannerLiteFilter), global::Keyapis.Banner.V1.BannerLiteFilter.Parser, new[]{ "Types_", "AppName", "PlatformType", "Version", "UserTags" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.BannerPaging), global::Keyapis.Banner.V1.BannerPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.Banner.V1.BannerPaging.Types.OrderByType), typeof(global::Keyapis.Banner.V1.BannerPaging.Types.DirectionType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.PostBannerRequest), global::Keyapis.Banner.V1.PostBannerRequest.Parser, new[]{ "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.PostBannerResponse), global::Keyapis.Banner.V1.PostBannerResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.PostBannerResponse.Types.Error), global::Keyapis.Banner.V1.PostBannerResponse.Types.Error.Parser, new[]{ "Validation", "Saving" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerRequest), global::Keyapis.Banner.V1.GetBannerRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerResponse), global::Keyapis.Banner.V1.GetBannerResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerResponse.Types.Error), global::Keyapis.Banner.V1.GetBannerResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerLiteRequest), global::Keyapis.Banner.V1.GetBannerLiteRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerLiteResponse), global::Keyapis.Banner.V1.GetBannerLiteResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerLiteResponse.Types.Error), global::Keyapis.Banner.V1.GetBannerLiteResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerListRequest), global::Keyapis.Banner.V1.GetBannerListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerListResponse), global::Keyapis.Banner.V1.GetBannerListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerListResponse.Types.Error), global::Keyapis.Banner.V1.GetBannerListResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerLiteListRequest), global::Keyapis.Banner.V1.GetBannerLiteListRequest.Parser, new[]{ "Filter", "IsLinkFilterDisabled" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerLiteListResponse), global::Keyapis.Banner.V1.GetBannerLiteListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerLiteListResponse.Types.Error), global::Keyapis.Banner.V1.GetBannerLiteListResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerCountRequest), global::Keyapis.Banner.V1.GetBannerCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerCountResponse), global::Keyapis.Banner.V1.GetBannerCountResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.GetBannerCountResponse.Types.Error), global::Keyapis.Banner.V1.GetBannerCountResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.UploadImage), global::Keyapis.Banner.V1.UploadImage.Parser, new[]{ "Base64" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.PostBannerUploadImageRequest), global::Keyapis.Banner.V1.PostBannerUploadImageRequest.Parser, new[]{ "BannerId", "UploadImage" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.PostBannerUploadImageResponse), global::Keyapis.Banner.V1.PostBannerUploadImageResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.PostBannerUploadImageResponse.Types.Error), global::Keyapis.Banner.V1.PostBannerUploadImageResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Banner.V1.ValidationError), global::Keyapis.Banner.V1.ValidationError.Parser, new[]{ "Path", "Message" }, null, null, null, null) })); } #endregion } #region Messages /// /// Баннер. /// # Описание модели /// public sealed partial class Banner : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Banner()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Banner() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Banner(Banner other) : this() { id_ = other.id_; type_ = other.type_; priority_ = other.priority_; priorityType_ = other.priorityType_; title_ = other.title_; Header = other.Header; HeaderColor = other.HeaderColor; Subtitle = other.Subtitle; SubtitleColor = other.SubtitleColor; BackgroundColor = other.BackgroundColor; backgroundGradient_ = other.backgroundGradient_ != null ? other.backgroundGradient_.Clone() : null; RepeatAfterDays = other.RepeatAfterDays; showStartAt_ = other.showStartAt_ != null ? other.showStartAt_.Clone() : null; showEndedAt_ = other.showEndedAt_ != null ? other.showEndedAt_.Clone() : null; statusType_ = other.statusType_; images_ = other.images_.Clone(); links_ = other.links_.Clone(); userTags_ = other.userTags_.Clone(); appTags_ = other.appTags_.Clone(); createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Banner Clone() { return new Banner(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private string id_ = ""; /// /// Идентификатор. /// Если не передан создаётся сервером. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { get { return id_; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "type" field. public const int TypeFieldNumber = 2; private global::Keyapis.Banner.V1.Banner.Types.Type type_ = global::Keyapis.Banner.V1.Banner.Types.Type.Unknown; /// /// Тип баннера. /// Обязательное /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.Type Type { get { return type_; } set { type_ = value; } } /// Field number for the "priority" field. public const int PriorityFieldNumber = 3; private int priority_; /// /// Приоритет. /// Обязательное. /// # Диапазон: 1..255 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Priority { get { return priority_; } set { priority_ = value; } } /// Field number for the "priority_type" field. public const int PriorityTypeFieldNumber = 4; private global::Keyapis.Banner.V1.Banner.Types.PriorityType priorityType_ = global::Keyapis.Banner.V1.Banner.Types.PriorityType.Unknown; /// /// Тип приоритета. /// # Поле вычисляется в коде приложения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.PriorityType PriorityType { get { return priorityType_; } set { priorityType_ = value; } } /// Field number for the "title" field. public const int TitleFieldNumber = 5; private string title_ = ""; /// /// Название. /// Обязательное. /// Обычно это название рекламной компании. /// Не отображается пользователям. /// # Диапазон: 3..256 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Title { get { return title_; } set { title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "header" field. public const int HeaderFieldNumber = 6; private static readonly pb::FieldCodec _single_header_codec = pb::FieldCodec.ForClassWrapper(50); private string header_; /// /// Заголовок. /// # Диапазон: 3..64 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Header { get { return header_; } set { header_ = value; } } /// Field number for the "header_color" field. public const int HeaderColorFieldNumber = 7; private static readonly pb::FieldCodec _single_headerColor_codec = pb::FieldCodec.ForClassWrapper(58); private string headerColor_; /// /// Цвет текста заголовка. /// Все цвета должны быть в формате hex #RRGGBBAA. /// Пример: #7e00c380. /// # Диапазон: 9..9. /// # Паттерн: /^#[0-9a-fA-F]{8}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string HeaderColor { get { return headerColor_; } set { headerColor_ = value; } } /// Field number for the "subtitle" field. public const int SubtitleFieldNumber = 8; private static readonly pb::FieldCodec _single_subtitle_codec = pb::FieldCodec.ForClassWrapper(66); private string subtitle_; /// /// Подзаголовок. /// # Диапазон: 3..256 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Subtitle { get { return subtitle_; } set { subtitle_ = value; } } /// Field number for the "subtitle_color" field. public const int SubtitleColorFieldNumber = 9; private static readonly pb::FieldCodec _single_subtitleColor_codec = pb::FieldCodec.ForClassWrapper(74); private string subtitleColor_; /// /// Цвет текста подзаголовка. /// Все цвета должны быть в формате hex #RRGGBBAA. /// Пример: #7e00c380. /// # Диапазон: 9..9. /// # Паттерн: /^#[0-9a-fA-F]{8}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SubtitleColor { get { return subtitleColor_; } set { subtitleColor_ = value; } } /// Field number for the "background_color" field. public const int BackgroundColorFieldNumber = 10; private static readonly pb::FieldCodec _single_backgroundColor_codec = pb::FieldCodec.ForClassWrapper(82); private string backgroundColor_; /// /// Цвет заднего плана(подложки). /// Отрисовывается до загрузки картинки и градиента. /// Все цвета должны быть в формате hex #RRGGBBAA. /// Пример: #7e00c380. /// # Диапазон: 9..9. /// # Паттерн: /^#[0-9a-fA-F]{8}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string BackgroundColor { get { return backgroundColor_; } set { backgroundColor_ = value; } } /// Field number for the "background_gradient" field. public const int BackgroundGradientFieldNumber = 11; private global::Keyapis.Banner.V1.Banner.Types.Gradient backgroundGradient_; /// /// Градиент /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.Gradient BackgroundGradient { get { return backgroundGradient_; } set { backgroundGradient_ = value; } } /// Field number for the "repeat_after_days" field. public const int RepeatAfterDaysFieldNumber = 12; private static readonly pb::FieldCodec _single_repeatAfterDays_codec = pb::FieldCodec.ForStructWrapper(98); private int? repeatAfterDays_; /// /// Количество дней через которое можно повторно показать баннер. /// Если null, то закрыть нельзя, баннер повторно выводится каждый раз. /// # Диапазон: 0..366 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? RepeatAfterDays { get { return repeatAfterDays_; } set { repeatAfterDays_ = value; } } /// Field number for the "show_start_at" field. public const int ShowStartAtFieldNumber = 13; private global::Google.Protobuf.WellKnownTypes.Timestamp showStartAt_; /// /// Дата начала показа. /// Обязательное. /// Бессрочно если значение 2000-01-01. /// # Тип: DateOnly. /// # Диапазон: 730119..1095362 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ShowStartAt { get { return showStartAt_; } set { showStartAt_ = value; } } /// Field number for the "show_ended_at" field. public const int ShowEndedAtFieldNumber = 14; private global::Google.Protobuf.WellKnownTypes.Timestamp showEndedAt_; /// /// Дата конца показа. /// Обязательное. /// Бессрочно если значение 3000-01-01. /// # Тип: DateOnly. /// # Диапазон: 730119..1095362 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ShowEndedAt { get { return showEndedAt_; } set { showEndedAt_ = value; } } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 15; private global::Keyapis.Banner.V1.Banner.Types.StatusType statusType_ = global::Keyapis.Banner.V1.Banner.Types.StatusType.Unknown; /// /// Статус баннера. /// # Поле вычисляется в коде приложения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "images" field. public const int ImagesFieldNumber = 16; private static readonly pb::FieldCodec _repeated_images_codec = pb::FieldCodec.ForMessage(130, global::Keyapis.Banner.V1.Banner.Types.Image.Parser); private readonly pbc::RepeatedField images_ = new pbc::RepeatedField(); /// /// Картинки. /// # Диапазон: 0..20 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Images { get { return images_; } } /// Field number for the "links" field. public const int LinksFieldNumber = 17; private static readonly pb::FieldCodec _repeated_links_codec = pb::FieldCodec.ForMessage(138, global::Keyapis.Banner.V1.Banner.Types.Link.Parser); private readonly pbc::RepeatedField links_ = new pbc::RepeatedField(); /// /// Ссылки для переходов. /// # Диапазон: 0..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Links { get { return links_; } } /// Field number for the "user_tags" field. public const int UserTagsFieldNumber = 18; private static readonly pb::FieldCodec _repeated_userTags_codec = pb::FieldCodec.ForString(146); private readonly pbc::RepeatedField userTags_ = new pbc::RepeatedField(); /// /// Список тегов пользователей. /// Обязательное. /// Описывает кто может видеть баннер. /// Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10. /// # Диапазон: 1..100. /// # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField UserTags { get { return userTags_; } } /// Field number for the "app_tags" field. public const int AppTagsFieldNumber = 19; private static readonly pb::FieldCodec _repeated_appTags_codec = pb::FieldCodec.ForString(154); private readonly pbc::RepeatedField appTags_ = new pbc::RepeatedField(); /// /// Список тегов приложений. /// Обязательное. /// Описывает какие клиенты могут видеть баннер. /// Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10. /// # Диапазон: 1..20. /// # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField AppTags { get { return appTags_; } } /// Field number for the "created_at" field. public const int CreatedAtFieldNumber = 20; private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; /// /// Дата создания. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { get { return createdAt_; } set { createdAt_ = value; } } /// Field number for the "changed_at" field. public const int ChangedAtFieldNumber = 21; private global::Google.Protobuf.WellKnownTypes.Timestamp changedAt_; /// /// Дата последнего изменения. /// Заполняется и обновляется сервером. /// Заполняется при создании и изменении. /// Является версией объекта. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ChangedAt { get { return changedAt_; } set { changedAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Banner); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Banner other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Type != other.Type) return false; if (Priority != other.Priority) return false; if (PriorityType != other.PriorityType) return false; if (Title != other.Title) return false; if (Header != other.Header) return false; if (HeaderColor != other.HeaderColor) return false; if (Subtitle != other.Subtitle) return false; if (SubtitleColor != other.SubtitleColor) return false; if (BackgroundColor != other.BackgroundColor) return false; if (!object.Equals(BackgroundGradient, other.BackgroundGradient)) return false; if (RepeatAfterDays != other.RepeatAfterDays) return false; if (!object.Equals(ShowStartAt, other.ShowStartAt)) return false; if (!object.Equals(ShowEndedAt, other.ShowEndedAt)) return false; if (StatusType != other.StatusType) return false; if(!images_.Equals(other.images_)) return false; if(!links_.Equals(other.links_)) return false; if(!userTags_.Equals(other.userTags_)) return false; if(!appTags_.Equals(other.appTags_)) return false; if (!object.Equals(CreatedAt, other.CreatedAt)) return false; if (!object.Equals(ChangedAt, other.ChangedAt)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (Type != global::Keyapis.Banner.V1.Banner.Types.Type.Unknown) hash ^= Type.GetHashCode(); if (Priority != 0) hash ^= Priority.GetHashCode(); if (PriorityType != global::Keyapis.Banner.V1.Banner.Types.PriorityType.Unknown) hash ^= PriorityType.GetHashCode(); if (Title.Length != 0) hash ^= Title.GetHashCode(); if (header_ != null) hash ^= Header.GetHashCode(); if (headerColor_ != null) hash ^= HeaderColor.GetHashCode(); if (subtitle_ != null) hash ^= Subtitle.GetHashCode(); if (subtitleColor_ != null) hash ^= SubtitleColor.GetHashCode(); if (backgroundColor_ != null) hash ^= BackgroundColor.GetHashCode(); if (backgroundGradient_ != null) hash ^= BackgroundGradient.GetHashCode(); if (repeatAfterDays_ != null) hash ^= RepeatAfterDays.GetHashCode(); if (showStartAt_ != null) hash ^= ShowStartAt.GetHashCode(); if (showEndedAt_ != null) hash ^= ShowEndedAt.GetHashCode(); if (StatusType != global::Keyapis.Banner.V1.Banner.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); hash ^= images_.GetHashCode(); hash ^= links_.GetHashCode(); hash ^= userTags_.GetHashCode(); hash ^= appTags_.GetHashCode(); if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); if (changedAt_ != null) hash ^= ChangedAt.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (Type != global::Keyapis.Banner.V1.Banner.Types.Type.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) Type); } if (Priority != 0) { output.WriteRawTag(24); output.WriteInt32(Priority); } if (PriorityType != global::Keyapis.Banner.V1.Banner.Types.PriorityType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) PriorityType); } if (Title.Length != 0) { output.WriteRawTag(42); output.WriteString(Title); } if (header_ != null) { _single_header_codec.WriteTagAndValue(output, Header); } if (headerColor_ != null) { _single_headerColor_codec.WriteTagAndValue(output, HeaderColor); } if (subtitle_ != null) { _single_subtitle_codec.WriteTagAndValue(output, Subtitle); } if (subtitleColor_ != null) { _single_subtitleColor_codec.WriteTagAndValue(output, SubtitleColor); } if (backgroundColor_ != null) { _single_backgroundColor_codec.WriteTagAndValue(output, BackgroundColor); } if (backgroundGradient_ != null) { output.WriteRawTag(90); output.WriteMessage(BackgroundGradient); } if (repeatAfterDays_ != null) { _single_repeatAfterDays_codec.WriteTagAndValue(output, RepeatAfterDays); } if (showStartAt_ != null) { output.WriteRawTag(106); output.WriteMessage(ShowStartAt); } if (showEndedAt_ != null) { output.WriteRawTag(114); output.WriteMessage(ShowEndedAt); } if (StatusType != global::Keyapis.Banner.V1.Banner.Types.StatusType.Unknown) { output.WriteRawTag(120); output.WriteEnum((int) StatusType); } images_.WriteTo(output, _repeated_images_codec); links_.WriteTo(output, _repeated_links_codec); userTags_.WriteTo(output, _repeated_userTags_codec); appTags_.WriteTo(output, _repeated_appTags_codec); if (createdAt_ != null) { output.WriteRawTag(162, 1); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(170, 1); output.WriteMessage(ChangedAt); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (Type != global::Keyapis.Banner.V1.Banner.Types.Type.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) Type); } if (Priority != 0) { output.WriteRawTag(24); output.WriteInt32(Priority); } if (PriorityType != global::Keyapis.Banner.V1.Banner.Types.PriorityType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) PriorityType); } if (Title.Length != 0) { output.WriteRawTag(42); output.WriteString(Title); } if (header_ != null) { _single_header_codec.WriteTagAndValue(ref output, Header); } if (headerColor_ != null) { _single_headerColor_codec.WriteTagAndValue(ref output, HeaderColor); } if (subtitle_ != null) { _single_subtitle_codec.WriteTagAndValue(ref output, Subtitle); } if (subtitleColor_ != null) { _single_subtitleColor_codec.WriteTagAndValue(ref output, SubtitleColor); } if (backgroundColor_ != null) { _single_backgroundColor_codec.WriteTagAndValue(ref output, BackgroundColor); } if (backgroundGradient_ != null) { output.WriteRawTag(90); output.WriteMessage(BackgroundGradient); } if (repeatAfterDays_ != null) { _single_repeatAfterDays_codec.WriteTagAndValue(ref output, RepeatAfterDays); } if (showStartAt_ != null) { output.WriteRawTag(106); output.WriteMessage(ShowStartAt); } if (showEndedAt_ != null) { output.WriteRawTag(114); output.WriteMessage(ShowEndedAt); } if (StatusType != global::Keyapis.Banner.V1.Banner.Types.StatusType.Unknown) { output.WriteRawTag(120); output.WriteEnum((int) StatusType); } images_.WriteTo(ref output, _repeated_images_codec); links_.WriteTo(ref output, _repeated_links_codec); userTags_.WriteTo(ref output, _repeated_userTags_codec); appTags_.WriteTo(ref output, _repeated_appTags_codec); if (createdAt_ != null) { output.WriteRawTag(162, 1); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(170, 1); output.WriteMessage(ChangedAt); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } if (Type != global::Keyapis.Banner.V1.Banner.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (Priority != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Priority); } if (PriorityType != global::Keyapis.Banner.V1.Banner.Types.PriorityType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PriorityType); } if (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (header_ != null) { size += _single_header_codec.CalculateSizeWithTag(Header); } if (headerColor_ != null) { size += _single_headerColor_codec.CalculateSizeWithTag(HeaderColor); } if (subtitle_ != null) { size += _single_subtitle_codec.CalculateSizeWithTag(Subtitle); } if (subtitleColor_ != null) { size += _single_subtitleColor_codec.CalculateSizeWithTag(SubtitleColor); } if (backgroundColor_ != null) { size += _single_backgroundColor_codec.CalculateSizeWithTag(BackgroundColor); } if (backgroundGradient_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackgroundGradient); } if (repeatAfterDays_ != null) { size += _single_repeatAfterDays_codec.CalculateSizeWithTag(RepeatAfterDays); } if (showStartAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ShowStartAt); } if (showEndedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ShowEndedAt); } if (StatusType != global::Keyapis.Banner.V1.Banner.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } size += images_.CalculateSize(_repeated_images_codec); size += links_.CalculateSize(_repeated_links_codec); size += userTags_.CalculateSize(_repeated_userTags_codec); size += appTags_.CalculateSize(_repeated_appTags_codec); if (createdAt_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); } if (changedAt_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Banner other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.Type != global::Keyapis.Banner.V1.Banner.Types.Type.Unknown) { Type = other.Type; } if (other.Priority != 0) { Priority = other.Priority; } if (other.PriorityType != global::Keyapis.Banner.V1.Banner.Types.PriorityType.Unknown) { PriorityType = other.PriorityType; } if (other.Title.Length != 0) { Title = other.Title; } if (other.header_ != null) { if (header_ == null || other.Header != "") { Header = other.Header; } } if (other.headerColor_ != null) { if (headerColor_ == null || other.HeaderColor != "") { HeaderColor = other.HeaderColor; } } if (other.subtitle_ != null) { if (subtitle_ == null || other.Subtitle != "") { Subtitle = other.Subtitle; } } if (other.subtitleColor_ != null) { if (subtitleColor_ == null || other.SubtitleColor != "") { SubtitleColor = other.SubtitleColor; } } if (other.backgroundColor_ != null) { if (backgroundColor_ == null || other.BackgroundColor != "") { BackgroundColor = other.BackgroundColor; } } if (other.backgroundGradient_ != null) { if (backgroundGradient_ == null) { BackgroundGradient = new global::Keyapis.Banner.V1.Banner.Types.Gradient(); } BackgroundGradient.MergeFrom(other.BackgroundGradient); } if (other.repeatAfterDays_ != null) { if (repeatAfterDays_ == null || other.RepeatAfterDays != 0) { RepeatAfterDays = other.RepeatAfterDays; } } if (other.showStartAt_ != null) { if (showStartAt_ == null) { ShowStartAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ShowStartAt.MergeFrom(other.ShowStartAt); } if (other.showEndedAt_ != null) { if (showEndedAt_ == null) { ShowEndedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ShowEndedAt.MergeFrom(other.ShowEndedAt); } if (other.StatusType != global::Keyapis.Banner.V1.Banner.Types.StatusType.Unknown) { StatusType = other.StatusType; } images_.Add(other.images_); links_.Add(other.links_); userTags_.Add(other.userTags_); appTags_.Add(other.appTags_); if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.changedAt_ != null) { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ChangedAt.MergeFrom(other.ChangedAt); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Id = input.ReadString(); break; } case 16: { Type = (global::Keyapis.Banner.V1.Banner.Types.Type) input.ReadEnum(); break; } case 24: { Priority = input.ReadInt32(); break; } case 32: { PriorityType = (global::Keyapis.Banner.V1.Banner.Types.PriorityType) input.ReadEnum(); break; } case 42: { Title = input.ReadString(); break; } case 50: { string value = _single_header_codec.Read(input); if (header_ == null || value != "") { Header = value; } break; } case 58: { string value = _single_headerColor_codec.Read(input); if (headerColor_ == null || value != "") { HeaderColor = value; } break; } case 66: { string value = _single_subtitle_codec.Read(input); if (subtitle_ == null || value != "") { Subtitle = value; } break; } case 74: { string value = _single_subtitleColor_codec.Read(input); if (subtitleColor_ == null || value != "") { SubtitleColor = value; } break; } case 82: { string value = _single_backgroundColor_codec.Read(input); if (backgroundColor_ == null || value != "") { BackgroundColor = value; } break; } case 90: { if (backgroundGradient_ == null) { BackgroundGradient = new global::Keyapis.Banner.V1.Banner.Types.Gradient(); } input.ReadMessage(BackgroundGradient); break; } case 98: { int? value = _single_repeatAfterDays_codec.Read(input); if (repeatAfterDays_ == null || value != 0) { RepeatAfterDays = value; } break; } case 106: { if (showStartAt_ == null) { ShowStartAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ShowStartAt); break; } case 114: { if (showEndedAt_ == null) { ShowEndedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ShowEndedAt); break; } case 120: { StatusType = (global::Keyapis.Banner.V1.Banner.Types.StatusType) input.ReadEnum(); break; } case 130: { images_.AddEntriesFrom(input, _repeated_images_codec); break; } case 138: { links_.AddEntriesFrom(input, _repeated_links_codec); break; } case 146: { userTags_.AddEntriesFrom(input, _repeated_userTags_codec); break; } case 154: { appTags_.AddEntriesFrom(input, _repeated_appTags_codec); break; } case 162: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 170: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Id = input.ReadString(); break; } case 16: { Type = (global::Keyapis.Banner.V1.Banner.Types.Type) input.ReadEnum(); break; } case 24: { Priority = input.ReadInt32(); break; } case 32: { PriorityType = (global::Keyapis.Banner.V1.Banner.Types.PriorityType) input.ReadEnum(); break; } case 42: { Title = input.ReadString(); break; } case 50: { string value = _single_header_codec.Read(ref input); if (header_ == null || value != "") { Header = value; } break; } case 58: { string value = _single_headerColor_codec.Read(ref input); if (headerColor_ == null || value != "") { HeaderColor = value; } break; } case 66: { string value = _single_subtitle_codec.Read(ref input); if (subtitle_ == null || value != "") { Subtitle = value; } break; } case 74: { string value = _single_subtitleColor_codec.Read(ref input); if (subtitleColor_ == null || value != "") { SubtitleColor = value; } break; } case 82: { string value = _single_backgroundColor_codec.Read(ref input); if (backgroundColor_ == null || value != "") { BackgroundColor = value; } break; } case 90: { if (backgroundGradient_ == null) { BackgroundGradient = new global::Keyapis.Banner.V1.Banner.Types.Gradient(); } input.ReadMessage(BackgroundGradient); break; } case 98: { int? value = _single_repeatAfterDays_codec.Read(ref input); if (repeatAfterDays_ == null || value != 0) { RepeatAfterDays = value; } break; } case 106: { if (showStartAt_ == null) { ShowStartAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ShowStartAt); break; } case 114: { if (showEndedAt_ == null) { ShowEndedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ShowEndedAt); break; } case 120: { StatusType = (global::Keyapis.Banner.V1.Banner.Types.StatusType) input.ReadEnum(); break; } case 130: { images_.AddEntriesFrom(ref input, _repeated_images_codec); break; } case 138: { links_.AddEntriesFrom(ref input, _repeated_links_codec); break; } case 146: { userTags_.AddEntriesFrom(ref input, _repeated_userTags_codec); break; } case 154: { appTags_.AddEntriesFrom(ref input, _repeated_appTags_codec); break; } case 162: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 170: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } } } } #endif #region Nested types /// Container for nested types declared in the Banner message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов баннеров. /// # Тип: byte /// public enum Type { /// /// Значение не указано /// [pbr::OriginalName("TYPE_UNKNOWN")] Unknown = 0, /// /// Стандартный баннер /// [pbr::OriginalName("STANDARD")] Standard = 1, } /// /// Справочник типов приоритетов. /// # Тип: byte /// public enum PriorityType { /// /// Значение не указано /// [pbr::OriginalName("PRIORITY_TYPE_UNKNOWN")] Unknown = 0, /// /// Обычный. /// Приоритет 31. /// Вычисляется в логике приложения как priority меньше 64. /// Извлекаются из базы по фильтру end_priority = 64 /// [pbr::OriginalName("NORMAL")] Normal = 1, /// /// Вайт-лейбл. /// Приоритет 127. /// Вычисляется в логике приложения как priority больше или равно 64 и priority меньше 160. /// Извлекаются из базы по фильтру begin_priority = 64 и end_priority = 160 /// [pbr::OriginalName("WHITE_LABEL")] WhiteLabel = 2, /// /// Критикл. /// Приоритет 191. /// Вычисляется в логике приложения как priority больше или равно 160. /// Извлекаются из базы по фильтру begin_priority = 160 /// [pbr::OriginalName("CRITICAL")] Critical = 3, } /// /// Справочник статусов баннеров. /// # Тип: byte /// public enum StatusType { /// /// Значение не указано /// [pbr::OriginalName("STATUS_TYPE_UNKNOWN")] Unknown = 0, /// /// Отложен. /// Вычисляется в логике приложения как сurr_date меньше show_start_at. /// Извлекаются из базы по фильтру end_show_start_at = сurr_date /// [pbr::OriginalName("DEFERRED")] Deferred = 1, /// /// Активен. /// Вычисляется в логике приложения как сurr_date больше или равно show_start_at и сurr_date меньше show_ended_at. /// Извлекаются из базы по фильтру begin_show_start_at = сurr_date и end_show_ended_at = сurr_date /// [pbr::OriginalName("ACTIVE")] Active = 2, /// /// Истёк. /// Вычисляется в логике приложения как сurr_date больше или равно show_ended_at. /// Извлекаются из базы по фильтру begin_show_ended_at = сurr_date /// [pbr::OriginalName("EXPIRED")] Expired = 3, } /// /// Справочник платформ. /// # Тип: byte /// public enum PlatformType { /// /// Значение не указано /// [pbr::OriginalName("PLATFORM_TYPE_UNKNOWN")] Unknown = 0, /// /// Платформа iOS. /// Приложение размещается в App Store /// [pbr::OriginalName("IOS")] Ios = 1, /// /// Платформа Android. /// Приложение размещается в Google Play, App Gallery или прочих сторах /// [pbr::OriginalName("ANDROID")] Android = 2, /// /// Платформа Web. /// Приложение размещается по интернет адресу /// [pbr::OriginalName("WEB")] Web = 3, } /// /// Градиент /// public sealed partial class Gradient : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Gradient()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.Banner.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Gradient() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Gradient(Gradient other) : this() { switch (other.TypeCase) { case TypeOneofCase.Linear: Linear = other.Linear.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Gradient Clone() { return new Gradient(this); } /// Field number for the "linear" field. public const int LinearFieldNumber = 1; /// /// Линейный градиент /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear Linear { get { return typeCase_ == TypeOneofCase.Linear ? (global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Linear; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Linear = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Gradient); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Gradient other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Linear, other.Linear)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Linear) hash ^= Linear.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Linear) { output.WriteRawTag(10); output.WriteMessage(Linear); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Linear) { output.WriteRawTag(10); output.WriteMessage(Linear); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Linear) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Linear); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Gradient other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Linear: if (Linear == null) { Linear = new global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear(); } Linear.MergeFrom(other.Linear); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear subBuilder = new global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear(); if (typeCase_ == TypeOneofCase.Linear) { subBuilder.MergeFrom(Linear); } input.ReadMessage(subBuilder); Linear = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear subBuilder = new global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear(); if (typeCase_ == TypeOneofCase.Linear) { subBuilder.MergeFrom(Linear); } input.ReadMessage(subBuilder); Linear = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the Gradient message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Линейный градиент /// public sealed partial class Linear : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Linear()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.Banner.Types.Gradient.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Linear() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Linear(Linear other) : this() { angle_ = other.angle_; points_ = other.points_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Linear Clone() { return new Linear(this); } /// Field number for the "angle" field. public const int AngleFieldNumber = 1; private float angle_; /// /// Угол направления линейного градиента в градусах. /// # Диапазон: 0..360 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Angle { get { return angle_; } set { angle_ = value; } } /// Field number for the "points" field. public const int PointsFieldNumber = 2; private static readonly pb::FieldCodec _repeated_points_codec = pb::FieldCodec.ForMessage(18, global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear.Types.Point.Parser); private readonly pbc::RepeatedField points_ = new pbc::RepeatedField(); /// /// Точки градиента. /// Обязательное. /// # Диапазон: 2..20 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Points { get { return points_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Linear); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Linear other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Angle, other.Angle)) return false; if(!points_.Equals(other.points_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Angle != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Angle); hash ^= points_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Angle != 0F) { output.WriteRawTag(13); output.WriteFloat(Angle); } points_.WriteTo(output, _repeated_points_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Angle != 0F) { output.WriteRawTag(13); output.WriteFloat(Angle); } points_.WriteTo(ref output, _repeated_points_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Angle != 0F) { size += 1 + 4; } size += points_.CalculateSize(_repeated_points_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Linear other) { if (other == null) { return; } if (other.Angle != 0F) { Angle = other.Angle; } points_.Add(other.points_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { Angle = input.ReadFloat(); break; } case 18: { points_.AddEntriesFrom(input, _repeated_points_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 13: { Angle = input.ReadFloat(); break; } case 18: { points_.AddEntriesFrom(ref input, _repeated_points_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the Linear message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Точка /// public sealed partial class Point : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Point()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.Banner.Types.Gradient.Types.Linear.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Point() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Point(Point other) : this() { color_ = other.color_; stop_ = other.stop_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Point Clone() { return new Point(this); } /// Field number for the "color" field. public const int ColorFieldNumber = 1; private string color_ = ""; /// /// Цвет линейного градиента. /// Обязательное. /// Отрисовывается до загрузки картинки и градиента. /// Все цвета должны быть в формате hex #RRGGBBAA. /// Пример: #7e00c380. /// # Диапазон: 9..9. /// # Паттерн: /^#[0-9a-fA-F]{8}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Color { get { return color_; } set { color_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "stop" field. public const int StopFieldNumber = 2; private float stop_; /// /// Стоп линейного градиента. /// Записывается в процентах. /// # Диапазон: 0..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Stop { get { return stop_; } set { stop_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Point); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Point other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Color != other.Color) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Stop, other.Stop)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Color.Length != 0) hash ^= Color.GetHashCode(); if (Stop != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Stop); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Color.Length != 0) { output.WriteRawTag(10); output.WriteString(Color); } if (Stop != 0F) { output.WriteRawTag(21); output.WriteFloat(Stop); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Color.Length != 0) { output.WriteRawTag(10); output.WriteString(Color); } if (Stop != 0F) { output.WriteRawTag(21); output.WriteFloat(Stop); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Color.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Color); } if (Stop != 0F) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Point other) { if (other == null) { return; } if (other.Color.Length != 0) { Color = other.Color; } if (other.Stop != 0F) { Stop = other.Stop; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Color = input.ReadString(); break; } case 21: { Stop = input.ReadFloat(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Color = input.ReadString(); break; } case 21: { Stop = input.ReadFloat(); break; } } } } #endif } } #endregion } } #endregion } /// /// Объект картинки /// public sealed partial class Image : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Image()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.Banner.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Image() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Image(Image other) : this() { type_ = other.type_; url_ = other.url_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Image Clone() { return new Image(this); } /// Field number for the "type" field. public const int TypeFieldNumber = 1; private global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type type_ = global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type.Unknown; /// /// Тип картинки. /// Обязательное /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type Type { get { return type_; } set { type_ = value; } } /// Field number for the "url" field. public const int UrlFieldNumber = 2; private string url_ = ""; /// /// Значение ссылки на картинку. /// Обязательное. /// # Диапазон: 12..512 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Url { get { return url_; } set { url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Image); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Image other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Type != other.Type) return false; if (Url != other.Url) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Type != global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type.Unknown) hash ^= Type.GetHashCode(); if (Url.Length != 0) hash ^= Url.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Type != global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) Type); } if (Url.Length != 0) { output.WriteRawTag(18); output.WriteString(Url); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Type != global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) Type); } if (Url.Length != 0) { output.WriteRawTag(18); output.WriteString(Url); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Type != global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (Url.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Image other) { if (other == null) { return; } if (other.Type != global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type.Unknown) { Type = other.Type; } if (other.Url.Length != 0) { Url = other.Url; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Type = (global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type) input.ReadEnum(); break; } case 18: { Url = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Type = (global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type) input.ReadEnum(); break; } case 18: { Url = input.ReadString(); break; } } } } #endif #region Nested types /// Container for nested types declared in the Image message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов картинок. /// # Тип: byte /// public enum Type { /// /// Значение не указано /// [pbr::OriginalName("TYPE_UNKNOWN")] Unknown = 0, /// /// Пререндеренный баннер в портретном режиме. /// В портретном режиме ширина меньше или равна высоте. /// Представление характерно для телефонов. /// Может содержать дополнительные параметры запроса в ссылке(https://docs.imgproxy.net/generating_the_url?id=processing-options). /// После загрузки изображения отрисовывается поверх цвета и градиента. /// Если ссылки нет то нужно использовать ссылку из ландшафтного режима /// [pbr::OriginalName("PORTRAIT")] Portrait = 1, /// /// Пререндеренный баннер в ландшафтном режиме. /// В ландшафтном режиме ширина больше высоты. /// Представление характерно для планшетов и декстопа. /// Может содержать дополнительные параметры запроса в ссылке(https://docs.imgproxy.net/generating_the_url?id=processing-options). /// После загрузки изображения отрисовывается поверх цвета и градиента. /// Если ссылки нет то нужно использовать ссылку из портретного режима /// [pbr::OriginalName("LANDSCAPE")] Landscape = 2, /// /// Иконка. /// Может содержать дополнительные параметры запроса в ссылке(https://docs.imgproxy.net/generating_the_url?id=processing-options). /// После загрузки изображения отрисовывается поверх цвета и градиента /// [pbr::OriginalName("ICON")] Icon = 3, } } #endregion } /// /// Ссылка /// public sealed partial class Link : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Link()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.Banner.Descriptor.NestedTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Link() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Link(Link other) : this() { platformType_ = other.platformType_; type_ = other.type_; url_ = other.url_; packages_ = other.packages_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Link Clone() { return new Link(this); } /// Field number for the "platform_type" field. public const int PlatformTypeFieldNumber = 1; private global::Keyapis.Banner.V1.Banner.Types.PlatformType platformType_ = global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown; /// /// Тип платформы. /// Обязательное /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.PlatformType PlatformType { get { return platformType_; } set { platformType_ = value; } } /// Field number for the "type" field. public const int TypeFieldNumber = 2; private global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type type_ = global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type.Unknown; /// /// Тип ссылки. /// Обязательное /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type Type { get { return type_; } set { type_ = value; } } /// Field number for the "url" field. public const int UrlFieldNumber = 3; private string url_ = ""; /// /// Значение ссылки для перехода. /// Обязательное. /// # Диапазон: 12..512 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Url { get { return url_; } set { url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "packages" field. public const int PackagesFieldNumber = 4; private static readonly pb::FieldCodec _repeated_packages_codec = pb::FieldCodec.ForString(34); private readonly pbc::RepeatedField packages_ = new pbc::RepeatedField(); /// /// Список пакетов. /// Если пусто попытка перехода осуществляется безусловно. /// Если заполнено, то переход осуществляется только в случае если хоть один пакет есть на устройстве, иначе обработка переходит к следующей ссылке. /// # Диапазон: 0..20 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Packages { get { return packages_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Link); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Link other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (PlatformType != other.PlatformType) return false; if (Type != other.Type) return false; if (Url != other.Url) return false; if(!packages_.Equals(other.packages_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) hash ^= PlatformType.GetHashCode(); if (Type != global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type.Unknown) hash ^= Type.GetHashCode(); if (Url.Length != 0) hash ^= Url.GetHashCode(); hash ^= packages_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) PlatformType); } if (Type != global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) Type); } if (Url.Length != 0) { output.WriteRawTag(26); output.WriteString(Url); } packages_.WriteTo(output, _repeated_packages_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) PlatformType); } if (Type != global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) Type); } if (Url.Length != 0) { output.WriteRawTag(26); output.WriteString(Url); } packages_.WriteTo(ref output, _repeated_packages_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlatformType); } if (Type != global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (Url.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); } size += packages_.CalculateSize(_repeated_packages_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Link other) { if (other == null) { return; } if (other.PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) { PlatformType = other.PlatformType; } if (other.Type != global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type.Unknown) { Type = other.Type; } if (other.Url.Length != 0) { Url = other.Url; } packages_.Add(other.packages_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { PlatformType = (global::Keyapis.Banner.V1.Banner.Types.PlatformType) input.ReadEnum(); break; } case 16: { Type = (global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type) input.ReadEnum(); break; } case 26: { Url = input.ReadString(); break; } case 34: { packages_.AddEntriesFrom(input, _repeated_packages_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { PlatformType = (global::Keyapis.Banner.V1.Banner.Types.PlatformType) input.ReadEnum(); break; } case 16: { Type = (global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type) input.ReadEnum(); break; } case 26: { Url = input.ReadString(); break; } case 34: { packages_.AddEntriesFrom(ref input, _repeated_packages_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the Link message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов ссылок. /// # Тип: byte /// public enum Type { /// /// Значение не указано /// [pbr::OriginalName("TYPE_UNKNOWN")] Unknown = 0, /// /// Ссылка для перехода на раздел текущего приложения /// [pbr::OriginalName("INTERNAL_APP")] InternalApp = 1, /// /// Ссылка для перехода на стороннее приложение /// [pbr::OriginalName("EXTERNAL_APP")] ExternalApp = 2, /// /// Ссылка для перехода на веб-вью внутренних (своих) приложений. /// В окне отсутствует адресаная строка. /// Для iOS используется WKWebView, для Android используется WebView /// [pbr::OriginalName("WEB_VIEW")] WebView = 3, /// /// Ссылка для перехода на веб-браузер /// [pbr::OriginalName("WEB_BROWSER")] WebBrowser = 4, /// /// Ссылка для перехода на веб-вью внешних (партнёрских) приложений. /// В окне присутствует адресаная строка. /// Для iOS используется SFSafariViewController, для Android используется ChromeCustomTabs /// [pbr::OriginalName("EXTERNAL_WEB_VIEW")] ExternalWebView = 5, } } #endregion } /// /// Ошибка сохранения. /// Эти проверки выполняются при работе с базой данных и сторонними сервисами /// public sealed partial class SavingError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SavingError()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.Banner.Descriptor.NestedTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SavingError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SavingError(SavingError other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Conflict: Conflict = other.Conflict.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SavingError Clone() { return new SavingError(this); } /// Field number for the "conflict" field. public const int ConflictFieldNumber = 1; /// /// Конфликт версий /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.SavingError.Types.Conflict Conflict { get { return reasonCase_ == ReasonOneofCase.Conflict ? (global::Keyapis.Banner.V1.Banner.Types.SavingError.Types.Conflict) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Conflict; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Conflict = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SavingError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SavingError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Conflict, other.Conflict)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Conflict) hash ^= Conflict.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Conflict) { output.WriteRawTag(10); output.WriteMessage(Conflict); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Conflict) { output.WriteRawTag(10); output.WriteMessage(Conflict); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Conflict) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Conflict); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SavingError other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Conflict: if (Conflict == null) { Conflict = new global::Keyapis.Banner.V1.Banner.Types.SavingError.Types.Conflict(); } Conflict.MergeFrom(other.Conflict); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.Banner.Types.SavingError.Types.Conflict subBuilder = new global::Keyapis.Banner.V1.Banner.Types.SavingError.Types.Conflict(); if (reasonCase_ == ReasonOneofCase.Conflict) { subBuilder.MergeFrom(Conflict); } input.ReadMessage(subBuilder); Conflict = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.Banner.Types.SavingError.Types.Conflict subBuilder = new global::Keyapis.Banner.V1.Banner.Types.SavingError.Types.Conflict(); if (reasonCase_ == ReasonOneofCase.Conflict) { subBuilder.MergeFrom(Conflict); } input.ReadMessage(subBuilder); Conflict = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the SavingError message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Конфликт версий. /// Причины: /// - В базе хранится другая версия строки, значения changed_at отличаются /// public sealed partial class Conflict : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Conflict()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.Banner.Types.SavingError.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Conflict() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Conflict(Conflict other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Conflict Clone() { return new Conflict(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Conflict); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Conflict other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Conflict other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } } #endregion } } #endregion } /// /// Облегчённый баннер /// public sealed partial class BannerLite : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BannerLite()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BannerLite() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BannerLite(BannerLite other) : this() { id_ = other.id_; RepeatAfterDays = other.RepeatAfterDays; images_ = other.images_.Clone(); links_ = other.links_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BannerLite Clone() { return new BannerLite(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private string id_ = ""; /// /// Идентификатор. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { get { return id_; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "repeat_after_days" field. public const int RepeatAfterDaysFieldNumber = 2; private static readonly pb::FieldCodec _single_repeatAfterDays_codec = pb::FieldCodec.ForStructWrapper(18); private int? repeatAfterDays_; /// /// Количество дней через которое можно повторно показать баннер. /// Если Значение не указано то повторного показа баннера не будет /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? RepeatAfterDays { get { return repeatAfterDays_; } set { repeatAfterDays_ = value; } } /// Field number for the "images" field. public const int ImagesFieldNumber = 3; private static readonly pb::FieldCodec _repeated_images_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Banner.V1.BannerLite.Types.ImageLite.Parser); private readonly pbc::RepeatedField images_ = new pbc::RepeatedField(); /// /// Картинки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Images { get { return images_; } } /// Field number for the "links" field. public const int LinksFieldNumber = 4; private static readonly pb::FieldCodec _repeated_links_codec = pb::FieldCodec.ForMessage(34, global::Keyapis.Banner.V1.BannerLite.Types.LinkLite.Parser); private readonly pbc::RepeatedField links_ = new pbc::RepeatedField(); /// /// Ссылки для переходов. /// Возвращаются отфильтрованные по платформе /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Links { get { return links_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BannerLite); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BannerLite other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (RepeatAfterDays != other.RepeatAfterDays) return false; if(!images_.Equals(other.images_)) return false; if(!links_.Equals(other.links_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (repeatAfterDays_ != null) hash ^= RepeatAfterDays.GetHashCode(); hash ^= images_.GetHashCode(); hash ^= links_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (repeatAfterDays_ != null) { _single_repeatAfterDays_codec.WriteTagAndValue(output, RepeatAfterDays); } images_.WriteTo(output, _repeated_images_codec); links_.WriteTo(output, _repeated_links_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (repeatAfterDays_ != null) { _single_repeatAfterDays_codec.WriteTagAndValue(ref output, RepeatAfterDays); } images_.WriteTo(ref output, _repeated_images_codec); links_.WriteTo(ref output, _repeated_links_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } if (repeatAfterDays_ != null) { size += _single_repeatAfterDays_codec.CalculateSizeWithTag(RepeatAfterDays); } size += images_.CalculateSize(_repeated_images_codec); size += links_.CalculateSize(_repeated_links_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BannerLite other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.repeatAfterDays_ != null) { if (repeatAfterDays_ == null || other.RepeatAfterDays != 0) { RepeatAfterDays = other.RepeatAfterDays; } } images_.Add(other.images_); links_.Add(other.links_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Id = input.ReadString(); break; } case 18: { int? value = _single_repeatAfterDays_codec.Read(input); if (repeatAfterDays_ == null || value != 0) { RepeatAfterDays = value; } break; } case 26: { images_.AddEntriesFrom(input, _repeated_images_codec); break; } case 34: { links_.AddEntriesFrom(input, _repeated_links_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Id = input.ReadString(); break; } case 18: { int? value = _single_repeatAfterDays_codec.Read(ref input); if (repeatAfterDays_ == null || value != 0) { RepeatAfterDays = value; } break; } case 26: { images_.AddEntriesFrom(ref input, _repeated_images_codec); break; } case 34: { links_.AddEntriesFrom(ref input, _repeated_links_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the BannerLite message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Упрощённый объект картинки /// public sealed partial class ImageLite : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImageLite()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.BannerLite.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ImageLite() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ImageLite(ImageLite other) : this() { type_ = other.type_; url_ = other.url_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ImageLite Clone() { return new ImageLite(this); } /// Field number for the "type" field. public const int TypeFieldNumber = 1; private global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type type_ = global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type.Unknown; /// /// Тип картинки. /// Обязательное /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type Type { get { return type_; } set { type_ = value; } } /// Field number for the "url" field. public const int UrlFieldNumber = 2; private string url_ = ""; /// /// Значение ссылки на картинку. /// Обязательное /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Url { get { return url_; } set { url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ImageLite); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ImageLite other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Type != other.Type) return false; if (Url != other.Url) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Type != global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type.Unknown) hash ^= Type.GetHashCode(); if (Url.Length != 0) hash ^= Url.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Type != global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) Type); } if (Url.Length != 0) { output.WriteRawTag(18); output.WriteString(Url); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Type != global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) Type); } if (Url.Length != 0) { output.WriteRawTag(18); output.WriteString(Url); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Type != global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (Url.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ImageLite other) { if (other == null) { return; } if (other.Type != global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type.Unknown) { Type = other.Type; } if (other.Url.Length != 0) { Url = other.Url; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Type = (global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type) input.ReadEnum(); break; } case 18: { Url = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Type = (global::Keyapis.Banner.V1.Banner.Types.Image.Types.Type) input.ReadEnum(); break; } case 18: { Url = input.ReadString(); break; } } } } #endif } /// /// Упрощённая ссылка /// public sealed partial class LinkLite : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LinkLite()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.BannerLite.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LinkLite() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LinkLite(LinkLite other) : this() { type_ = other.type_; url_ = other.url_; packages_ = other.packages_.Clone(); platformType_ = other.platformType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LinkLite Clone() { return new LinkLite(this); } /// Field number for the "type" field. public const int TypeFieldNumber = 1; private global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type type_ = global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type.Unknown; /// /// Тип ссылки. /// Обязательное /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type Type { get { return type_; } set { type_ = value; } } /// Field number for the "url" field. public const int UrlFieldNumber = 2; private string url_ = ""; /// /// Значение ссылки. /// Обязательное /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Url { get { return url_; } set { url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "packages" field. public const int PackagesFieldNumber = 3; private static readonly pb::FieldCodec _repeated_packages_codec = pb::FieldCodec.ForString(26); private readonly pbc::RepeatedField packages_ = new pbc::RepeatedField(); /// /// Список пакетов. /// Если пусто попытка перехода осуществляется безусловно. /// Если заполнено, то переход осуществляется только в случае если хоть один пакет есть на устройстве иначе обработка переходит к следующей ссылке /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Packages { get { return packages_; } } /// Field number for the "platform_type" field. public const int PlatformTypeFieldNumber = 4; private global::Keyapis.Banner.V1.Banner.Types.PlatformType platformType_ = global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown; /// /// Тип платформы. /// Обязательное /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.PlatformType PlatformType { get { return platformType_; } set { platformType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LinkLite); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LinkLite other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Type != other.Type) return false; if (Url != other.Url) return false; if(!packages_.Equals(other.packages_)) return false; if (PlatformType != other.PlatformType) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Type != global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type.Unknown) hash ^= Type.GetHashCode(); if (Url.Length != 0) hash ^= Url.GetHashCode(); hash ^= packages_.GetHashCode(); if (PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) hash ^= PlatformType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Type != global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) Type); } if (Url.Length != 0) { output.WriteRawTag(18); output.WriteString(Url); } packages_.WriteTo(output, _repeated_packages_codec); if (PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) PlatformType); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Type != global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) Type); } if (Url.Length != 0) { output.WriteRawTag(18); output.WriteString(Url); } packages_.WriteTo(ref output, _repeated_packages_codec); if (PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) PlatformType); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Type != global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (Url.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); } size += packages_.CalculateSize(_repeated_packages_codec); if (PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlatformType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(LinkLite other) { if (other == null) { return; } if (other.Type != global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type.Unknown) { Type = other.Type; } if (other.Url.Length != 0) { Url = other.Url; } packages_.Add(other.packages_); if (other.PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) { PlatformType = other.PlatformType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Type = (global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type) input.ReadEnum(); break; } case 18: { Url = input.ReadString(); break; } case 26: { packages_.AddEntriesFrom(input, _repeated_packages_codec); break; } case 32: { PlatformType = (global::Keyapis.Banner.V1.Banner.Types.PlatformType) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Type = (global::Keyapis.Banner.V1.Banner.Types.Link.Types.Type) input.ReadEnum(); break; } case 18: { Url = input.ReadString(); break; } case 26: { packages_.AddEntriesFrom(ref input, _repeated_packages_codec); break; } case 32: { PlatformType = (global::Keyapis.Banner.V1.Banner.Types.PlatformType) input.ReadEnum(); break; } } } } #endif } } #endregion } /// /// Фильтр баннеров /// public sealed partial class BannerFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BannerFilter()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BannerFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BannerFilter(BannerFilter other) : this() { Text = other.Text; types_ = other.types_.Clone(); BeginPriority = other.BeginPriority; EndPriority = other.EndPriority; priorityTypes_ = other.priorityTypes_.Clone(); beginShowStartAt_ = other.beginShowStartAt_ != null ? other.beginShowStartAt_.Clone() : null; endShowStartAt_ = other.endShowStartAt_ != null ? other.endShowStartAt_.Clone() : null; beginShowEndedAt_ = other.beginShowEndedAt_ != null ? other.beginShowEndedAt_.Clone() : null; endShowEndedAt_ = other.endShowEndedAt_ != null ? other.endShowEndedAt_.Clone() : null; statusTypes_ = other.statusTypes_.Clone(); userTags_ = other.userTags_.Clone(); appTags_ = other.appTags_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BannerFilter Clone() { return new BannerFilter(this); } /// Field number for the "text" field. public const int TextFieldNumber = 1; private static readonly pb::FieldCodec _single_text_codec = pb::FieldCodec.ForClassWrapper(10); private string text_; /// /// По тексту. /// Если значение не передано то поиск по нему не производится. /// # Диапазон: 3..64. /// # Поиск производится по полям: /// # - Название; /// # - Заголовок; /// # - Подзаголовок; /// # - Список тегов пользователей; /// # - Список тегов приложений /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Text { get { return text_; } set { text_ = value; } } /// Field number for the "types" field. public const int Types_FieldNumber = 2; private static readonly pb::FieldCodec _repeated_types_codec = pb::FieldCodec.ForEnum(18, x => (int) x, x => (global::Keyapis.Banner.V1.Banner.Types.Type) x); private readonly pbc::RepeatedField types_ = new pbc::RepeatedField(); /// /// По типам баннеров /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Types_ { get { return types_; } } /// Field number for the "begin_priority" field. public const int BeginPriorityFieldNumber = 3; private static readonly pb::FieldCodec _single_beginPriority_codec = pb::FieldCodec.ForStructWrapper(26); private int? beginPriority_; /// /// От приоритета включительно (больше или равно) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? BeginPriority { get { return beginPriority_; } set { beginPriority_ = value; } } /// Field number for the "end_priority" field. public const int EndPriorityFieldNumber = 4; private static readonly pb::FieldCodec _single_endPriority_codec = pb::FieldCodec.ForStructWrapper(34); private int? endPriority_; /// /// До приоритета (меньше) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? EndPriority { get { return endPriority_; } set { endPriority_ = value; } } /// Field number for the "priority_types" field. public const int PriorityTypesFieldNumber = 5; private static readonly pb::FieldCodec _repeated_priorityTypes_codec = pb::FieldCodec.ForEnum(42, x => (int) x, x => (global::Keyapis.Banner.V1.Banner.Types.PriorityType) x); private readonly pbc::RepeatedField priorityTypes_ = new pbc::RepeatedField(); /// /// По типам приоритетов. /// Переписывает значения фильтров по приоритету. /// Если переданы все типы, то фильтр игнорируется(так как нужно вернуть всё) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField PriorityTypes { get { return priorityTypes_; } } /// Field number for the "begin_show_start_at" field. public const int BeginShowStartAtFieldNumber = 6; private global::Google.Protobuf.WellKnownTypes.Timestamp beginShowStartAt_; /// /// От даты начала показа включительно (больше или равно) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp BeginShowStartAt { get { return beginShowStartAt_; } set { beginShowStartAt_ = value; } } /// Field number for the "end_show_start_at" field. public const int EndShowStartAtFieldNumber = 7; private global::Google.Protobuf.WellKnownTypes.Timestamp endShowStartAt_; /// /// До даты начала показа (меньше) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp EndShowStartAt { get { return endShowStartAt_; } set { endShowStartAt_ = value; } } /// Field number for the "begin_show_ended_at" field. public const int BeginShowEndedAtFieldNumber = 8; private global::Google.Protobuf.WellKnownTypes.Timestamp beginShowEndedAt_; /// /// От даты конца показа включительно (больше или равно) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp BeginShowEndedAt { get { return beginShowEndedAt_; } set { beginShowEndedAt_ = value; } } /// Field number for the "end_show_ended_at" field. public const int EndShowEndedAtFieldNumber = 9; private global::Google.Protobuf.WellKnownTypes.Timestamp endShowEndedAt_; /// /// До даты конца показа (меньше) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp EndShowEndedAt { get { return endShowEndedAt_; } set { endShowEndedAt_ = value; } } /// Field number for the "status_types" field. public const int StatusTypesFieldNumber = 10; private static readonly pb::FieldCodec _repeated_statusTypes_codec = pb::FieldCodec.ForEnum(82, x => (int) x, x => (global::Keyapis.Banner.V1.Banner.Types.StatusType) x); private readonly pbc::RepeatedField statusTypes_ = new pbc::RepeatedField(); /// /// По статусам баннеров. /// Переписывает значения фильтров по датам. /// Если переданы все типы, то фильтр игнорируется(так как нужно вернуть всё) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField StatusTypes { get { return statusTypes_; } } /// Field number for the "user_tags" field. public const int UserTagsFieldNumber = 11; private static readonly pb::FieldCodec _repeated_userTags_codec = pb::FieldCodec.ForString(90); private readonly pbc::RepeatedField userTags_ = new pbc::RepeatedField(); /// /// По пользовательским тегам. /// Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10. /// # Диапазон: 0..20. /// # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField UserTags { get { return userTags_; } } /// Field number for the "app_tags" field. public const int AppTagsFieldNumber = 12; private static readonly pb::FieldCodec _repeated_appTags_codec = pb::FieldCodec.ForString(98); private readonly pbc::RepeatedField appTags_ = new pbc::RepeatedField(); /// /// По тегам приложений. /// Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10. /// # Диапазон: 0..20. /// # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField AppTags { get { return appTags_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BannerFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BannerFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Text != other.Text) return false; if(!types_.Equals(other.types_)) return false; if (BeginPriority != other.BeginPriority) return false; if (EndPriority != other.EndPriority) return false; if(!priorityTypes_.Equals(other.priorityTypes_)) return false; if (!object.Equals(BeginShowStartAt, other.BeginShowStartAt)) return false; if (!object.Equals(EndShowStartAt, other.EndShowStartAt)) return false; if (!object.Equals(BeginShowEndedAt, other.BeginShowEndedAt)) return false; if (!object.Equals(EndShowEndedAt, other.EndShowEndedAt)) return false; if(!statusTypes_.Equals(other.statusTypes_)) return false; if(!userTags_.Equals(other.userTags_)) return false; if(!appTags_.Equals(other.appTags_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (text_ != null) hash ^= Text.GetHashCode(); hash ^= types_.GetHashCode(); if (beginPriority_ != null) hash ^= BeginPriority.GetHashCode(); if (endPriority_ != null) hash ^= EndPriority.GetHashCode(); hash ^= priorityTypes_.GetHashCode(); if (beginShowStartAt_ != null) hash ^= BeginShowStartAt.GetHashCode(); if (endShowStartAt_ != null) hash ^= EndShowStartAt.GetHashCode(); if (beginShowEndedAt_ != null) hash ^= BeginShowEndedAt.GetHashCode(); if (endShowEndedAt_ != null) hash ^= EndShowEndedAt.GetHashCode(); hash ^= statusTypes_.GetHashCode(); hash ^= userTags_.GetHashCode(); hash ^= appTags_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (text_ != null) { _single_text_codec.WriteTagAndValue(output, Text); } types_.WriteTo(output, _repeated_types_codec); if (beginPriority_ != null) { _single_beginPriority_codec.WriteTagAndValue(output, BeginPriority); } if (endPriority_ != null) { _single_endPriority_codec.WriteTagAndValue(output, EndPriority); } priorityTypes_.WriteTo(output, _repeated_priorityTypes_codec); if (beginShowStartAt_ != null) { output.WriteRawTag(50); output.WriteMessage(BeginShowStartAt); } if (endShowStartAt_ != null) { output.WriteRawTag(58); output.WriteMessage(EndShowStartAt); } if (beginShowEndedAt_ != null) { output.WriteRawTag(66); output.WriteMessage(BeginShowEndedAt); } if (endShowEndedAt_ != null) { output.WriteRawTag(74); output.WriteMessage(EndShowEndedAt); } statusTypes_.WriteTo(output, _repeated_statusTypes_codec); userTags_.WriteTo(output, _repeated_userTags_codec); appTags_.WriteTo(output, _repeated_appTags_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (text_ != null) { _single_text_codec.WriteTagAndValue(ref output, Text); } types_.WriteTo(ref output, _repeated_types_codec); if (beginPriority_ != null) { _single_beginPriority_codec.WriteTagAndValue(ref output, BeginPriority); } if (endPriority_ != null) { _single_endPriority_codec.WriteTagAndValue(ref output, EndPriority); } priorityTypes_.WriteTo(ref output, _repeated_priorityTypes_codec); if (beginShowStartAt_ != null) { output.WriteRawTag(50); output.WriteMessage(BeginShowStartAt); } if (endShowStartAt_ != null) { output.WriteRawTag(58); output.WriteMessage(EndShowStartAt); } if (beginShowEndedAt_ != null) { output.WriteRawTag(66); output.WriteMessage(BeginShowEndedAt); } if (endShowEndedAt_ != null) { output.WriteRawTag(74); output.WriteMessage(EndShowEndedAt); } statusTypes_.WriteTo(ref output, _repeated_statusTypes_codec); userTags_.WriteTo(ref output, _repeated_userTags_codec); appTags_.WriteTo(ref output, _repeated_appTags_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (text_ != null) { size += _single_text_codec.CalculateSizeWithTag(Text); } size += types_.CalculateSize(_repeated_types_codec); if (beginPriority_ != null) { size += _single_beginPriority_codec.CalculateSizeWithTag(BeginPriority); } if (endPriority_ != null) { size += _single_endPriority_codec.CalculateSizeWithTag(EndPriority); } size += priorityTypes_.CalculateSize(_repeated_priorityTypes_codec); if (beginShowStartAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(BeginShowStartAt); } if (endShowStartAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndShowStartAt); } if (beginShowEndedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(BeginShowEndedAt); } if (endShowEndedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndShowEndedAt); } size += statusTypes_.CalculateSize(_repeated_statusTypes_codec); size += userTags_.CalculateSize(_repeated_userTags_codec); size += appTags_.CalculateSize(_repeated_appTags_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BannerFilter other) { if (other == null) { return; } if (other.text_ != null) { if (text_ == null || other.Text != "") { Text = other.Text; } } types_.Add(other.types_); if (other.beginPriority_ != null) { if (beginPriority_ == null || other.BeginPriority != 0) { BeginPriority = other.BeginPriority; } } if (other.endPriority_ != null) { if (endPriority_ == null || other.EndPriority != 0) { EndPriority = other.EndPriority; } } priorityTypes_.Add(other.priorityTypes_); if (other.beginShowStartAt_ != null) { if (beginShowStartAt_ == null) { BeginShowStartAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } BeginShowStartAt.MergeFrom(other.BeginShowStartAt); } if (other.endShowStartAt_ != null) { if (endShowStartAt_ == null) { EndShowStartAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } EndShowStartAt.MergeFrom(other.EndShowStartAt); } if (other.beginShowEndedAt_ != null) { if (beginShowEndedAt_ == null) { BeginShowEndedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } BeginShowEndedAt.MergeFrom(other.BeginShowEndedAt); } if (other.endShowEndedAt_ != null) { if (endShowEndedAt_ == null) { EndShowEndedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } EndShowEndedAt.MergeFrom(other.EndShowEndedAt); } statusTypes_.Add(other.statusTypes_); userTags_.Add(other.userTags_); appTags_.Add(other.appTags_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { string value = _single_text_codec.Read(input); if (text_ == null || value != "") { Text = value; } break; } case 18: case 16: { types_.AddEntriesFrom(input, _repeated_types_codec); break; } case 26: { int? value = _single_beginPriority_codec.Read(input); if (beginPriority_ == null || value != 0) { BeginPriority = value; } break; } case 34: { int? value = _single_endPriority_codec.Read(input); if (endPriority_ == null || value != 0) { EndPriority = value; } break; } case 42: case 40: { priorityTypes_.AddEntriesFrom(input, _repeated_priorityTypes_codec); break; } case 50: { if (beginShowStartAt_ == null) { BeginShowStartAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(BeginShowStartAt); break; } case 58: { if (endShowStartAt_ == null) { EndShowStartAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(EndShowStartAt); break; } case 66: { if (beginShowEndedAt_ == null) { BeginShowEndedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(BeginShowEndedAt); break; } case 74: { if (endShowEndedAt_ == null) { EndShowEndedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(EndShowEndedAt); break; } case 82: case 80: { statusTypes_.AddEntriesFrom(input, _repeated_statusTypes_codec); break; } case 90: { userTags_.AddEntriesFrom(input, _repeated_userTags_codec); break; } case 98: { appTags_.AddEntriesFrom(input, _repeated_appTags_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { string value = _single_text_codec.Read(ref input); if (text_ == null || value != "") { Text = value; } break; } case 18: case 16: { types_.AddEntriesFrom(ref input, _repeated_types_codec); break; } case 26: { int? value = _single_beginPriority_codec.Read(ref input); if (beginPriority_ == null || value != 0) { BeginPriority = value; } break; } case 34: { int? value = _single_endPriority_codec.Read(ref input); if (endPriority_ == null || value != 0) { EndPriority = value; } break; } case 42: case 40: { priorityTypes_.AddEntriesFrom(ref input, _repeated_priorityTypes_codec); break; } case 50: { if (beginShowStartAt_ == null) { BeginShowStartAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(BeginShowStartAt); break; } case 58: { if (endShowStartAt_ == null) { EndShowStartAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(EndShowStartAt); break; } case 66: { if (beginShowEndedAt_ == null) { BeginShowEndedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(BeginShowEndedAt); break; } case 74: { if (endShowEndedAt_ == null) { EndShowEndedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(EndShowEndedAt); break; } case 82: case 80: { statusTypes_.AddEntriesFrom(ref input, _repeated_statusTypes_codec); break; } case 90: { userTags_.AddEntriesFrom(ref input, _repeated_userTags_codec); break; } case 98: { appTags_.AddEntriesFrom(ref input, _repeated_appTags_codec); break; } } } } #endif } /// /// Упрощённый фильтр по баннерам /// public sealed partial class BannerLiteFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BannerLiteFilter()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BannerLiteFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BannerLiteFilter(BannerLiteFilter other) : this() { types_ = other.types_.Clone(); AppName = other.AppName; platformType_ = other.platformType_; Version = other.Version; userTags_ = other.userTags_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BannerLiteFilter Clone() { return new BannerLiteFilter(this); } /// Field number for the "types" field. public const int Types_FieldNumber = 1; private static readonly pb::FieldCodec _repeated_types_codec = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Keyapis.Banner.V1.Banner.Types.Type) x); private readonly pbc::RepeatedField types_ = new pbc::RepeatedField(); /// /// По типам баннеров /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Types_ { get { return types_; } } /// Field number for the "app_name" field. public const int AppNameFieldNumber = 2; private static readonly pb::FieldCodec _single_appName_codec = pb::FieldCodec.ForClassWrapper(18); private string appName_; /// /// Название приложения. /// # Диапазон: 1..19. /// # Паттерн: /^[0-9A-Z-]{1,19}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string AppName { get { return appName_; } set { appName_ = value; } } /// Field number for the "platform_type" field. public const int PlatformTypeFieldNumber = 3; private global::Keyapis.Banner.V1.Banner.Types.PlatformType platformType_ = global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown; /// /// Тип платформы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.PlatformType PlatformType { get { return platformType_; } set { platformType_ = value; } } /// Field number for the "version" field. public const int VersionFieldNumber = 4; private static readonly pb::FieldCodec _single_version_codec = pb::FieldCodec.ForClassWrapper(34); private string version_; /// /// Версия приложения. /// # Диапазон: 1..19. /// # Паттерн: /^[0-9A-Z-]{1,19}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Version { get { return version_; } set { version_ = value; } } /// Field number for the "user_tags" field. public const int UserTagsFieldNumber = 5; private static readonly pb::FieldCodec _repeated_userTags_codec = pb::FieldCodec.ForString(42); private readonly pbc::RepeatedField userTags_ = new pbc::RepeatedField(); /// /// По тегам пользователя. /// Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10. /// # Диапазон: 1..20. /// # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField UserTags { get { return userTags_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BannerLiteFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BannerLiteFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!types_.Equals(other.types_)) return false; if (AppName != other.AppName) return false; if (PlatformType != other.PlatformType) return false; if (Version != other.Version) return false; if(!userTags_.Equals(other.userTags_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= types_.GetHashCode(); if (appName_ != null) hash ^= AppName.GetHashCode(); if (PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) hash ^= PlatformType.GetHashCode(); if (version_ != null) hash ^= Version.GetHashCode(); hash ^= userTags_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else types_.WriteTo(output, _repeated_types_codec); if (appName_ != null) { _single_appName_codec.WriteTagAndValue(output, AppName); } if (PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) PlatformType); } if (version_ != null) { _single_version_codec.WriteTagAndValue(output, Version); } userTags_.WriteTo(output, _repeated_userTags_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { types_.WriteTo(ref output, _repeated_types_codec); if (appName_ != null) { _single_appName_codec.WriteTagAndValue(ref output, AppName); } if (PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) PlatformType); } if (version_ != null) { _single_version_codec.WriteTagAndValue(ref output, Version); } userTags_.WriteTo(ref output, _repeated_userTags_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += types_.CalculateSize(_repeated_types_codec); if (appName_ != null) { size += _single_appName_codec.CalculateSizeWithTag(AppName); } if (PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlatformType); } if (version_ != null) { size += _single_version_codec.CalculateSizeWithTag(Version); } size += userTags_.CalculateSize(_repeated_userTags_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BannerLiteFilter other) { if (other == null) { return; } types_.Add(other.types_); if (other.appName_ != null) { if (appName_ == null || other.AppName != "") { AppName = other.AppName; } } if (other.PlatformType != global::Keyapis.Banner.V1.Banner.Types.PlatformType.Unknown) { PlatformType = other.PlatformType; } if (other.version_ != null) { if (version_ == null || other.Version != "") { Version = other.Version; } } userTags_.Add(other.userTags_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: case 8: { types_.AddEntriesFrom(input, _repeated_types_codec); break; } case 18: { string value = _single_appName_codec.Read(input); if (appName_ == null || value != "") { AppName = value; } break; } case 24: { PlatformType = (global::Keyapis.Banner.V1.Banner.Types.PlatformType) input.ReadEnum(); break; } case 34: { string value = _single_version_codec.Read(input); if (version_ == null || value != "") { Version = value; } break; } case 42: { userTags_.AddEntriesFrom(input, _repeated_userTags_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: case 8: { types_.AddEntriesFrom(ref input, _repeated_types_codec); break; } case 18: { string value = _single_appName_codec.Read(ref input); if (appName_ == null || value != "") { AppName = value; } break; } case 24: { PlatformType = (global::Keyapis.Banner.V1.Banner.Types.PlatformType) input.ReadEnum(); break; } case 34: { string value = _single_version_codec.Read(ref input); if (version_ == null || value != "") { Version = value; } break; } case 42: { userTags_.AddEntriesFrom(ref input, _repeated_userTags_codec); break; } } } } #endif } /// /// Пагинация баннеров /// public sealed partial class BannerPaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BannerPaging()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BannerPaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BannerPaging(BannerPaging other) : this() { orderByType_ = other.orderByType_; directionType_ = other.directionType_; limit_ = other.limit_; offset_ = other.offset_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BannerPaging Clone() { return new BannerPaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.Banner.V1.BannerPaging.Types.OrderByType orderByType_ = global::Keyapis.Banner.V1.BannerPaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// Если значение не передано, то будет взято значение по умолчанию. /// # По умолчанию: CHANGED_AT /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.BannerPaging.Types.OrderByType OrderByType { get { return orderByType_; } set { orderByType_ = value; } } /// Field number for the "direction_type" field. public const int DirectionTypeFieldNumber = 2; private global::Keyapis.Banner.V1.BannerPaging.Types.DirectionType directionType_ = global::Keyapis.Banner.V1.BannerPaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// # По умолчанию: DESC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.BannerPaging.Types.DirectionType DirectionType { get { return directionType_; } set { directionType_ = value; } } /// Field number for the "limit" field. public const int LimitFieldNumber = 3; private int limit_; /// /// Количество записей на страницу. /// Если значение 0 (не передано), то будет взято значение по умолчанию. /// # Диапазон: 0..100. /// # По умолчанию: 20 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Limit { get { return limit_; } set { limit_ = value; } } /// Field number for the "offset" field. public const int OffsetFieldNumber = 4; private int offset_; /// /// Сдвиг. /// # Диапазон: 0..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Offset { get { return offset_; } set { offset_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BannerPaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BannerPaging other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (OrderByType != other.OrderByType) return false; if (DirectionType != other.DirectionType) return false; if (Limit != other.Limit) return false; if (Offset != other.Offset) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (OrderByType != global::Keyapis.Banner.V1.BannerPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.Banner.V1.BannerPaging.Types.DirectionType.Unknown) hash ^= DirectionType.GetHashCode(); if (Limit != 0) hash ^= Limit.GetHashCode(); if (Offset != 0) hash ^= Offset.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (OrderByType != global::Keyapis.Banner.V1.BannerPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.Banner.V1.BannerPaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (OrderByType != global::Keyapis.Banner.V1.BannerPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.Banner.V1.BannerPaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (OrderByType != global::Keyapis.Banner.V1.BannerPaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.Banner.V1.BannerPaging.Types.DirectionType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DirectionType); } if (Limit != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit); } if (Offset != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Offset); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BannerPaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.Banner.V1.BannerPaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.Banner.V1.BannerPaging.Types.DirectionType.Unknown) { DirectionType = other.DirectionType; } if (other.Limit != 0) { Limit = other.Limit; } if (other.Offset != 0) { Offset = other.Offset; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { OrderByType = (global::Keyapis.Banner.V1.BannerPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.Banner.V1.BannerPaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { OrderByType = (global::Keyapis.Banner.V1.BannerPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.Banner.V1.BannerPaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = input.ReadInt32(); break; } } } } #endif #region Nested types /// Container for nested types declared in the BannerPaging message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов значений сортировки. /// # Тип: byte /// public enum OrderByType { /// /// Значение не указано /// [pbr::OriginalName("ORDER_BY_TYPE_UNKNOWN")] Unknown = 0, /// /// Дата последнего изменения /// [pbr::OriginalName("CHANGED_AT")] ChangedAt = 1, /// /// По приоритету, затем по дате начала показа /// [pbr::OriginalName("PRIORITY_THEN_SHOW_START_AT")] PriorityThenShowStartAt = 2, /// /// Дата создания /// [pbr::OriginalName("CREATED_AT")] CreatedAt = 3, /// /// Дата начала показа /// [pbr::OriginalName("SHOW_START_AT")] ShowStartAt = 4, /// /// Дата конца показа /// [pbr::OriginalName("SHOW_ENDED_AT")] ShowEndedAt = 5, /// /// По рангу для поиска по тексту. /// Применяется когда передано поле для поиска по тексту. /// В случае если текстовое поле не передано, применяется значение по умолчанию /// [pbr::OriginalName("RANK")] Rank = 6, } /// /// Справочник типов направлений сортировки. /// # Тип: byte /// public enum DirectionType { /// /// Значение не указано /// [pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0, /// /// От большего к меньшему /// [pbr::OriginalName("DESC")] Desc = 1, /// /// От меньшего к большему /// [pbr::OriginalName("ASC")] Asc = 2, } } #endregion } /// /// Запрос сохранения баннера /// public sealed partial class PostBannerRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostBannerRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBannerRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBannerRequest(PostBannerRequest other) : this() { data_ = other.data_ != null ? other.data_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBannerRequest Clone() { return new PostBannerRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Keyapis.Banner.V1.Banner data_; /// /// Баннер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner Data { get { return data_; } set { data_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostBannerRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostBannerRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (data_ != null) hash ^= Data.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (data_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostBannerRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Keyapis.Banner.V1.Banner(); } Data.MergeFrom(other.Data); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (data_ == null) { Data = new global::Keyapis.Banner.V1.Banner(); } input.ReadMessage(Data); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (data_ == null) { Data = new global::Keyapis.Banner.V1.Banner(); } input.ReadMessage(Data); break; } } } } #endif } /// /// Ответ на запрос сохранения баннера /// public sealed partial class PostBannerResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostBannerResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBannerResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBannerResponse(PostBannerResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBannerResponse Clone() { return new PostBannerResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Баннер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Banner.V1.Banner) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.PostBannerResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Banner.V1.PostBannerResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostBannerResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostBannerResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostBannerResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Banner.V1.Banner(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Banner.V1.PostBannerResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.Banner subBuilder = new global::Keyapis.Banner.V1.Banner(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Banner.V1.PostBannerResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.PostBannerResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.Banner subBuilder = new global::Keyapis.Banner.V1.Banner(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Banner.V1.PostBannerResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.PostBannerResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostBannerResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса сохранения баннера /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.PostBannerResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; case ReasonOneofCase.Saving: Saving = other.Saving.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Banner.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } /// Field number for the "saving" field. public const int SavingFieldNumber = 2; /// /// Ошибка сохранения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner.Types.SavingError Saving { get { return reasonCase_ == ReasonOneofCase.Saving ? (global::Keyapis.Banner.V1.Banner.Types.SavingError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Saving; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, Saving = 2, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (!object.Equals(Saving, other.Saving)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); if (reasonCase_ == ReasonOneofCase.Saving) hash ^= Saving.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (reasonCase_ == ReasonOneofCase.Saving) { output.WriteRawTag(18); output.WriteMessage(Saving); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (reasonCase_ == ReasonOneofCase.Saving) { output.WriteRawTag(18); output.WriteMessage(Saving); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (reasonCase_ == ReasonOneofCase.Saving) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Saving); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.Banner.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; case ReasonOneofCase.Saving: if (Saving == null) { Saving = new global::Keyapis.Banner.V1.Banner.Types.SavingError(); } Saving.MergeFrom(other.Saving); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } case 18: { global::Keyapis.Banner.V1.Banner.Types.SavingError subBuilder = new global::Keyapis.Banner.V1.Banner.Types.SavingError(); if (reasonCase_ == ReasonOneofCase.Saving) { subBuilder.MergeFrom(Saving); } input.ReadMessage(subBuilder); Saving = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } case 18: { global::Keyapis.Banner.V1.Banner.Types.SavingError subBuilder = new global::Keyapis.Banner.V1.Banner.Types.SavingError(); if (reasonCase_ == ReasonOneofCase.Saving) { subBuilder.MergeFrom(Saving); } input.ReadMessage(subBuilder); Saving = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения баннера /// public sealed partial class GetBannerRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBannerRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerRequest(GetBannerRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerRequest Clone() { return new GetBannerRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private string id_ = ""; /// /// Идентификатор баннера. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { get { return id_; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBannerRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBannerRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBannerRequest other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Id = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Id = input.ReadString(); break; } } } } #endif } /// /// Ответ на запрос получения баннера /// public sealed partial class GetBannerResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBannerResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerResponse(GetBannerResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerResponse Clone() { return new GetBannerResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Баннер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Banner.V1.Banner) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.GetBannerResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Banner.V1.GetBannerResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBannerResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBannerResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBannerResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Banner.V1.Banner(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Banner.V1.GetBannerResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.Banner subBuilder = new global::Keyapis.Banner.V1.Banner(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Banner.V1.GetBannerResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.GetBannerResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.Banner subBuilder = new global::Keyapis.Banner.V1.Banner(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Banner.V1.GetBannerResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.GetBannerResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetBannerResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса получения баннера /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.GetBannerResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Banner.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.Banner.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения упрощённого баннера /// public sealed partial class GetBannerLiteRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBannerLiteRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerLiteRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerLiteRequest(GetBannerLiteRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerLiteRequest Clone() { return new GetBannerLiteRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private string id_ = ""; /// /// Идентификатор баннера. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { get { return id_; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBannerLiteRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBannerLiteRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBannerLiteRequest other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Id = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Id = input.ReadString(); break; } } } } #endif } /// /// Ответ на запрос получения упрощённого баннера /// public sealed partial class GetBannerLiteResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBannerLiteResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerLiteResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerLiteResponse(GetBannerLiteResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerLiteResponse Clone() { return new GetBannerLiteResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Упрощённый баннер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.BannerLite Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Banner.V1.BannerLite) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.GetBannerLiteResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Banner.V1.GetBannerLiteResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBannerLiteResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBannerLiteResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBannerLiteResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Banner.V1.BannerLite(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Banner.V1.GetBannerLiteResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.BannerLite subBuilder = new global::Keyapis.Banner.V1.BannerLite(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Banner.V1.GetBannerLiteResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.GetBannerLiteResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.BannerLite subBuilder = new global::Keyapis.Banner.V1.BannerLite(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Banner.V1.GetBannerLiteResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.GetBannerLiteResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetBannerLiteResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса получения упрощённого баннера /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.GetBannerLiteResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Banner.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.Banner.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения списка баннеров /// public sealed partial class GetBannerListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBannerListRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[11]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerListRequest(GetBannerListRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; switch (other.PaginationCase) { case PaginationOneofCase.Paging: Paging = other.Paging.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerListRequest Clone() { return new GetBannerListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.Banner.V1.BannerFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.BannerFilter Filter { get { return filter_; } set { filter_ = value; } } /// Field number for the "paging" field. public const int PagingFieldNumber = 2; /// /// Пагинация /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.BannerPaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.Banner.V1.BannerPaging) pagination_ : null; } set { pagination_ = value; paginationCase_ = value == null ? PaginationOneofCase.None : PaginationOneofCase.Paging; } } private object pagination_; /// Enum of possible cases for the "pagination" oneof. public enum PaginationOneofCase { None = 0, Paging = 2, } private PaginationOneofCase paginationCase_ = PaginationOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PaginationOneofCase PaginationCase { get { return paginationCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearPagination() { paginationCase_ = PaginationOneofCase.None; pagination_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBannerListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBannerListRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) return false; if (!object.Equals(Paging, other.Paging)) return false; if (PaginationCase != other.PaginationCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (filter_ != null) hash ^= Filter.GetHashCode(); if (paginationCase_ == PaginationOneofCase.Paging) hash ^= Paging.GetHashCode(); hash ^= (int) paginationCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(18); output.WriteMessage(Paging); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(18); output.WriteMessage(Paging); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Paging); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBannerListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.Banner.V1.BannerFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.Banner.V1.BannerPaging(); } Paging.MergeFrom(other.Paging); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Banner.V1.BannerFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.Banner.V1.BannerPaging subBuilder = new global::Keyapis.Banner.V1.BannerPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Banner.V1.BannerFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.Banner.V1.BannerPaging subBuilder = new global::Keyapis.Banner.V1.BannerPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Ответ на запрос получения списка баннеров /// public sealed partial class GetBannerListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBannerListResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerListResponse(GetBannerListResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerListResponse Clone() { return new GetBannerListResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Баннер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.Banner Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Banner.V1.Banner) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.GetBannerListResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Banner.V1.GetBannerListResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBannerListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBannerListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBannerListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Banner.V1.Banner(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Banner.V1.GetBannerListResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.Banner subBuilder = new global::Keyapis.Banner.V1.Banner(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Banner.V1.GetBannerListResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.GetBannerListResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.Banner subBuilder = new global::Keyapis.Banner.V1.Banner(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Banner.V1.GetBannerListResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.GetBannerListResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetBannerListResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса получения списка баннеров /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.GetBannerListResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Banner.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.Banner.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения списка упрощённого баннеров /// public sealed partial class GetBannerLiteListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBannerLiteListRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerLiteListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerLiteListRequest(GetBannerLiteListRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; isLinkFilterDisabled_ = other.isLinkFilterDisabled_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerLiteListRequest Clone() { return new GetBannerLiteListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.Banner.V1.BannerLiteFilter filter_; /// /// Упрощённый фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.BannerLiteFilter Filter { get { return filter_; } set { filter_ = value; } } /// Field number for the "is_link_filter_disabled" field. public const int IsLinkFilterDisabledFieldNumber = 2; private bool isLinkFilterDisabled_; /// /// Признак отключения фильтрации по типу платформы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsLinkFilterDisabled { get { return isLinkFilterDisabled_; } set { isLinkFilterDisabled_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBannerLiteListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBannerLiteListRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) return false; if (IsLinkFilterDisabled != other.IsLinkFilterDisabled) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (filter_ != null) hash ^= Filter.GetHashCode(); if (IsLinkFilterDisabled != false) hash ^= IsLinkFilterDisabled.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (IsLinkFilterDisabled != false) { output.WriteRawTag(16); output.WriteBool(IsLinkFilterDisabled); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (IsLinkFilterDisabled != false) { output.WriteRawTag(16); output.WriteBool(IsLinkFilterDisabled); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (IsLinkFilterDisabled != false) { size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBannerLiteListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.Banner.V1.BannerLiteFilter(); } Filter.MergeFrom(other.Filter); } if (other.IsLinkFilterDisabled != false) { IsLinkFilterDisabled = other.IsLinkFilterDisabled; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Banner.V1.BannerLiteFilter(); } input.ReadMessage(Filter); break; } case 16: { IsLinkFilterDisabled = input.ReadBool(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Banner.V1.BannerLiteFilter(); } input.ReadMessage(Filter); break; } case 16: { IsLinkFilterDisabled = input.ReadBool(); break; } } } } #endif } /// /// Ответ на запрос получения списка упрощённых баннеров /// public sealed partial class GetBannerLiteListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBannerLiteListResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerLiteListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerLiteListResponse(GetBannerLiteListResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerLiteListResponse Clone() { return new GetBannerLiteListResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Упрощённый баннер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.BannerLite Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Banner.V1.BannerLite) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.GetBannerLiteListResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Banner.V1.GetBannerLiteListResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBannerLiteListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBannerLiteListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBannerLiteListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Banner.V1.BannerLite(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Banner.V1.GetBannerLiteListResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.BannerLite subBuilder = new global::Keyapis.Banner.V1.BannerLite(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Banner.V1.GetBannerLiteListResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.GetBannerLiteListResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.BannerLite subBuilder = new global::Keyapis.Banner.V1.BannerLite(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Banner.V1.GetBannerLiteListResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.GetBannerLiteListResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetBannerLiteListResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса получения списка баннеров /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.GetBannerLiteListResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Banner.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.Banner.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения количества баннеров /// public sealed partial class GetBannerCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBannerCountRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerCountRequest(GetBannerCountRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerCountRequest Clone() { return new GetBannerCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.Banner.V1.BannerFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.BannerFilter Filter { get { return filter_; } set { filter_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBannerCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBannerCountRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (filter_ != null) hash ^= Filter.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBannerCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.Banner.V1.BannerFilter(); } Filter.MergeFrom(other.Filter); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Banner.V1.BannerFilter(); } input.ReadMessage(Filter); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Banner.V1.BannerFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Ответ на запрос получения количества баннеров /// public sealed partial class GetBannerCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBannerCountResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerCountResponse(GetBannerCountResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBannerCountResponse Clone() { return new GetBannerCountResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Всего баннеров /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Data { get { return HasData ? (int) type_ : 0; } set { type_ = value; typeCase_ = TypeOneofCase.Data; } } /// Gets whether the "data" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasData { get { return typeCase_ == TypeOneofCase.Data; } } /// Clears the value of the oneof if it's currently set to "data" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearData() { if (HasData) { ClearType(); } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.GetBannerCountResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Banner.V1.GetBannerCountResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBannerCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBannerCountResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Data != other.Data) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HasData) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HasData) { output.WriteRawTag(8); output.WriteInt32(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HasData) { output.WriteRawTag(8); output.WriteInt32(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HasData) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBannerCountResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Banner.V1.GetBannerCountResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Data = input.ReadInt32(); break; } case 18: { global::Keyapis.Banner.V1.GetBannerCountResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.GetBannerCountResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Data = input.ReadInt32(); break; } case 18: { global::Keyapis.Banner.V1.GetBannerCountResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.GetBannerCountResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetBannerCountResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса получения количества баннеров /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.GetBannerCountResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Banner.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.Banner.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Объект загружаемой картинки /// public sealed partial class UploadImage : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UploadImage()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UploadImage() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UploadImage(UploadImage other) : this() { base64_ = other.base64_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UploadImage Clone() { return new UploadImage(this); } /// Field number for the "base64" field. public const int Base64FieldNumber = 1; private string base64_ = ""; /// /// Картинка в формате инлайн base64. /// Обязательное. /// Пример: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA...". /// # Паттерн: /^data:\s*image\/(png|jpeg|jpg);\s*base64/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Base64 { get { return base64_; } set { base64_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UploadImage); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UploadImage other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Base64 != other.Base64) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Base64.Length != 0) hash ^= Base64.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Base64.Length != 0) { output.WriteRawTag(10); output.WriteString(Base64); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Base64.Length != 0) { output.WriteRawTag(10); output.WriteString(Base64); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Base64.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Base64); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UploadImage other) { if (other == null) { return; } if (other.Base64.Length != 0) { Base64 = other.Base64; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Base64 = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Base64 = input.ReadString(); break; } } } } #endif } /// /// Запрос загрузки картинки баннера /// public sealed partial class PostBannerUploadImageRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostBannerUploadImageRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[18]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBannerUploadImageRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBannerUploadImageRequest(PostBannerUploadImageRequest other) : this() { bannerId_ = other.bannerId_; uploadImage_ = other.uploadImage_ != null ? other.uploadImage_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBannerUploadImageRequest Clone() { return new PostBannerUploadImageRequest(this); } /// Field number for the "banner_id" field. public const int BannerIdFieldNumber = 1; private string bannerId_ = ""; /// /// Идентификатор баннера. /// Используется для складывания картинок баннера в папку баннера в бакете. /// Название картинки в папке создаётся из случайного Guid. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string BannerId { get { return bannerId_; } set { bannerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "upload_image" field. public const int UploadImageFieldNumber = 2; private global::Keyapis.Banner.V1.UploadImage uploadImage_; /// /// Загружаемая картинка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.UploadImage UploadImage { get { return uploadImage_; } set { uploadImage_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostBannerUploadImageRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostBannerUploadImageRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (BannerId != other.BannerId) return false; if (!object.Equals(UploadImage, other.UploadImage)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (BannerId.Length != 0) hash ^= BannerId.GetHashCode(); if (uploadImage_ != null) hash ^= UploadImage.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (BannerId.Length != 0) { output.WriteRawTag(10); output.WriteString(BannerId); } if (uploadImage_ != null) { output.WriteRawTag(18); output.WriteMessage(UploadImage); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (BannerId.Length != 0) { output.WriteRawTag(10); output.WriteString(BannerId); } if (uploadImage_ != null) { output.WriteRawTag(18); output.WriteMessage(UploadImage); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (BannerId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(BannerId); } if (uploadImage_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UploadImage); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostBannerUploadImageRequest other) { if (other == null) { return; } if (other.BannerId.Length != 0) { BannerId = other.BannerId; } if (other.uploadImage_ != null) { if (uploadImage_ == null) { UploadImage = new global::Keyapis.Banner.V1.UploadImage(); } UploadImage.MergeFrom(other.UploadImage); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { BannerId = input.ReadString(); break; } case 18: { if (uploadImage_ == null) { UploadImage = new global::Keyapis.Banner.V1.UploadImage(); } input.ReadMessage(UploadImage); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { BannerId = input.ReadString(); break; } case 18: { if (uploadImage_ == null) { UploadImage = new global::Keyapis.Banner.V1.UploadImage(); } input.ReadMessage(UploadImage); break; } } } } #endif } /// /// Ответ на запрос загрузки картинки баннера /// public sealed partial class PostBannerUploadImageResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostBannerUploadImageResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBannerUploadImageResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBannerUploadImageResponse(PostBannerUploadImageResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBannerUploadImageResponse Clone() { return new PostBannerUploadImageResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Ссылка на баннер на imageproxy cdn сервер. /// Общедоступна в интернете /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Data { get { return HasData ? (string) type_ : ""; } set { type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); typeCase_ = TypeOneofCase.Data; } } /// Gets whether the "data" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasData { get { return typeCase_ == TypeOneofCase.Data; } } /// Clears the value of the oneof if it's currently set to "data" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearData() { if (HasData) { ClearType(); } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.PostBannerUploadImageResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Banner.V1.PostBannerUploadImageResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostBannerUploadImageResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostBannerUploadImageResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Data != other.Data) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HasData) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HasData) { output.WriteRawTag(10); output.WriteString(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HasData) { output.WriteRawTag(10); output.WriteString(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HasData) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostBannerUploadImageResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Banner.V1.PostBannerUploadImageResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Data = input.ReadString(); break; } case 18: { global::Keyapis.Banner.V1.PostBannerUploadImageResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.PostBannerUploadImageResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Data = input.ReadString(); break; } case 18: { global::Keyapis.Banner.V1.PostBannerUploadImageResponse.Types.Error subBuilder = new global::Keyapis.Banner.V1.PostBannerUploadImageResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostBannerUploadImageResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса загрузки картинки баннера /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.PostBannerUploadImageResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Banner.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Banner.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.Banner.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Banner.V1.ValidationError subBuilder = new global::Keyapis.Banner.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Ошибки валидации. /// Эти проверки выполняются до обращения в базу данных /// public sealed partial class ValidationError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidationError()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError(ValidationError other) : this() { path_ = other.path_; message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError Clone() { return new ValidationError(this); } /// Field number for the "path" field. public const int PathFieldNumber = 1; private string path_ = ""; /// /// Путь к полю в формате наименования прото /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "message" field. public const int MessageFieldNumber = 2; private string message_ = ""; /// /// Валидационное сообщение /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { get { return message_; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ValidationError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ValidationError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Path != other.Path) return false; if (Message != other.Message) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Path.Length != 0) hash ^= Path.GetHashCode(); if (Message.Length != 0) hash ^= Message.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Path.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); } if (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ValidationError other) { if (other == null) { return; } if (other.Path.Length != 0) { Path = other.Path; } if (other.Message.Length != 0) { Message = other.Message; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } } #endif } #endregion } #endregion Designer generated code