//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/subscription/v1/keyapis_subscription_offer_template_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.Subscription.V1 {
/// Holder for reflection information generated from keyapis/subscription/v1/keyapis_subscription_offer_template_v1.proto
public static partial class KeyapisSubscriptionOfferTemplateV1Reflection {
#region Descriptor
/// File descriptor for keyapis/subscription/v1/keyapis_subscription_offer_template_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisSubscriptionOfferTemplateV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CkRrZXlhcGlzL3N1YnNjcmlwdGlvbi92MS9rZXlhcGlzX3N1YnNjcmlwdGlv",
"bl9vZmZlcl90ZW1wbGF0ZV92MS5wcm90bxIXa2V5YXBpcy5zdWJzY3JpcHRp",
"b24udjEaHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aH2dvb2dsZS9h",
"cGkvZmllbGRfYmVoYXZpb3IucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9kZXNj",
"cmlwdG9yLnByb3RvGh5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8a",
"H2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aO2tleWFwaXMvc3Vi",
"c2NyaXB0aW9uL3YxL2tleWFwaXNfc3Vic2NyaXB0aW9uX29mZmVyX3YxLnBy",
"b3RvIswSCg1PZmZlclRlbXBsYXRlEgoKAmlkGAEgASgJEk0KDHNlcnZpY2Vf",
"dHlwZRgCIAEoDjIyLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLk9mZmVyVGVt",
"cGxhdGUuU2VydmljZVR5cGVCA+BBAhISCgV0aXRsZRgDIAEoCUID4EECEjEK",
"C2Rlc2NyaXB0aW9uGAQgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1Zh",
"bHVlEksKC3N0YXR1c190eXBlGAUgASgOMjEua2V5YXBpcy5zdWJzY3JpcHRp",
"b24udjEuT2ZmZXJUZW1wbGF0ZS5TdGF0dXNUeXBlQgPgQQMSWwoTYXBwbGlj",
"YWJpbGl0eV9ydWxlcxgGIAEoCzI5LmtleWFwaXMuc3Vic2NyaXB0aW9uLnYx",
"Lk9mZmVyVGVtcGxhdGUuQXBwbGljYWJpbGl0eVJ1bGVzQgPgQQISPwoFaXRl",
"bXMYByADKAsyKy5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5PZmZlclRlbXBs",
"YXRlLkl0ZW1CA+BBAhIzCgpjcmVhdGVkX2F0GAggASgLMhouZ29vZ2xlLnBy",
"b3RvYnVmLlRpbWVzdGFtcEID4EEDEi4KCnVwZGF0ZWRfYXQYCSABKAsyGi5n",
"b29nbGUucHJvdG9idWYuVGltZXN0YW1wGtsJChJBcHBsaWNhYmlsaXR5UnVs",
"ZXMSDgoGcmZfaWRzGAEgAygFEl0KDWNvbnRyYWN0X3R5cGUYAiABKA4yRi5r",
"ZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5PZmZlclRlbXBsYXRlLkFwcGxpY2Fi",
"aWxpdHlSdWxlcy5Db250cmFjdFR5cGUSWQoLY2xpZW50X3R5cGUYAyABKA4y",
"RC5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5PZmZlclRlbXBsYXRlLkFwcGxp",
"Y2FiaWxpdHlSdWxlcy5DbGllbnRUeXBlEmgKE2JpbGxpbmdfc3lzdGVtX3R5",
"cGUYBCABKA4ySy5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5PZmZlclRlbXBs",
"YXRlLkFwcGxpY2FiaWxpdHlSdWxlcy5CaWxsaW5nU3lzdGVtVHlwZRIuCiZp",
"c19leHRlcm5hbF9wYXltZW50X2Zvcl9zbWFydF9pbnRlcmNvbRgFIAEoCBIU",
"Cgxpc19jbXNfcGhvbmUYBiABKAgSFAoMaXNfc2lwX3Bob25lGAcgASgIEhgK",
"EGlzX3ZpZGVvX21vbml0b3IYCCABKAgScwoZcm9vbV9kZXZpY2VfY29udHJh",
"Y3RfdHlwZRgJIAEoDjJQLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLk9mZmVy",
"VGVtcGxhdGUuQXBwbGljYWJpbGl0eVJ1bGVzLlJvb21EZXZpY2VDb250cmFj",
"dFR5cGUSbwoXbW9iaWxlX2FwcF9wYWNrYWdlX3R5cGUYCiABKA4yTi5rZXlh",
"cGlzLnN1YnNjcmlwdGlvbi52MS5PZmZlclRlbXBsYXRlLkFwcGxpY2FiaWxp",
"dHlSdWxlcy5Nb2JpbGVBcHBQYWNrYWdlVHlwZRIiChppc19jYWxsX2Zvcndh",
"cmRpbmdfZW5hYmxlZBgLIAEoCBIWCg5pc19kaWdpdGFsX3dheRgMIAEoCCJG",
"CgxDb250cmFjdFR5cGUSGQoVQ09OVFJBQ1RfVFlQRV9VTktOT1dOEAASBwoD",
"QjJCEAESBwoDQjJDEAISCQoFQjJCMkMQAyJTCgpDbGllbnRUeXBlEhcKE0NM",
"SUVOVF9UWVBFX1VOS05PV04QABIWChJNQU5BR0VNRU5UX0NPTVBBTlkQARIU",
"ChBJTlRFUkNPTV9DT01QQU5ZEAIiUwoRQmlsbGluZ1N5c3RlbVR5cGUSHwob",
"QklMTElOR19TWVNURU1fVFlQRV9VTktOT1dOEAASCwoHQVNSX01SRhABEhAK",
"DEtFWV9QTEFURk9STRACImkKFlJvb21EZXZpY2VDb250cmFjdFR5cGUSJQoh",
"Uk9PTV9ERVZJQ0VfQ09OVFJBQ1RfVFlQRV9VTktOT1dOEAASEwoPUk9PTV9E",
"RVZJQ0VfQjJCEAESEwoPUk9PTV9ERVZJQ0VfQjJDEAIimwEKFE1vYmlsZUFw",
"cFBhY2thZ2VUeXBlEiMKH01PQklMRV9BUFBfUEFDS0FHRV9UWVBFX1VOS05P",
"V04QABIWChJPUEVOX0RPT1JfQU5EX0tFWVMQARIiCh5PUEVOX0RPT1JfQU5E",
"X0tFWVNfQVVESU9fQ0FMTFMQAhIiCh5PUEVOX0RPT1JfQU5EX0tFWVNfVklE",
"RU9fQ0FMTFMQAxq/AQoESXRlbRIUCgdwbGFuX2lkGAEgASgFQgPgQQISNgoE",
"dHlwZRgCIAEoDjIjLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLk9mZmVyLlR5",
"cGVCA+BBAhIgChhpc19lbmFibGVfYXV0b19zdWJzY3JpYmUYAyABKAgSFgoO",
"aXNfZGlnaXRhbF93YXkYBCABKAgSLwoJb2ZmZXJfdXJsGAUgASgLMhwuZ29v",
"Z2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlGu0BCgtTYXZpbmdFcnJvchJPCghj",
"b25mbGljdBgBIAEoCzI7LmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLk9mZmVy",
"VGVtcGxhdGUuU2F2aW5nRXJyb3IuQ29uZmxpY3RIABJiChJkdXBsaWNhdGVf",
"dGVtcGxhdGUYAiABKAsyRC5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5PZmZl",
"clRlbXBsYXRlLlNhdmluZ0Vycm9yLkR1cGxpY2F0ZVRlbXBsYXRlSAAaCgoI",
"Q29uZmxpY3QaEwoRRHVwbGljYXRlVGVtcGxhdGVCCAoGcmVhc29uIngKC1Nl",
"cnZpY2VUeXBlEhgKFFNFUlZJQ0VfVFlQRV9VTktOT1dOEAASDAoISU5URVJD",
"T00QARILCgdDQU1FUkFTEAISDQoJVEVMRU1FVFJZEAMSGAoUQUNDRVNTX0NP",
"TlRST0xfUEFORUwQBBILCgdCQVJSSUVSEAUiPwoKU3RhdHVzVHlwZRIXChNT",
"VEFUVVNfVFlQRV9VTktOT1dOEAASCgoGQUNUSVZFEAESDAoIQVJDSElWRUQQ",
"AiKCCgoTT2ZmZXJUZW1wbGF0ZUZpbHRlchJHCgxzdGF0dXNfdHlwZXMYASAD",
"KA4yMS5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5PZmZlclRlbXBsYXRlLlN0",
"YXR1c1R5cGUSSQoNc2VydmljZV90eXBlcxgCIAMoDjIyLmtleWFwaXMuc3Vi",
"c2NyaXB0aW9uLnYxLk9mZmVyVGVtcGxhdGUuU2VydmljZVR5cGUSDgoGcmZf",
"aWRzGAMgAygFEioKBHRleHQYBCABKAsyHC5nb29nbGUucHJvdG9idWYuU3Ry",
"aW5nVmFsdWUScgoiYXBwbGljYWJpbGl0eV9ydWxlc19jb250cmFjdF90eXBl",
"cxgFIAMoDjJGLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLk9mZmVyVGVtcGxh",
"dGUuQXBwbGljYWJpbGl0eVJ1bGVzLkNvbnRyYWN0VHlwZRJuCiBhcHBsaWNh",
"YmlsaXR5X3J1bGVzX2NsaWVudF90eXBlcxgGIAMoDjJELmtleWFwaXMuc3Vi",
"c2NyaXB0aW9uLnYxLk9mZmVyVGVtcGxhdGUuQXBwbGljYWJpbGl0eVJ1bGVz",
"LkNsaWVudFR5cGUSfQooYXBwbGljYWJpbGl0eV9ydWxlc19iaWxsaW5nX3N5",
"c3RlbV90eXBlcxgHIAMoDjJLLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLk9m",
"ZmVyVGVtcGxhdGUuQXBwbGljYWJpbGl0eVJ1bGVzLkJpbGxpbmdTeXN0ZW1U",
"eXBlEkoKJmlzX2V4dGVybmFsX3BheW1lbnRfZm9yX3NtYXJ0X2ludGVyY29t",
"GAggASgLMhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZRJECiBhcHBsaWNh",
"YmlsaXR5X3J1bGVzX2lzX2Ntc19waG9uZRgJIAEoCzIaLmdvb2dsZS5wcm90",
"b2J1Zi5Cb29sVmFsdWUSRAogYXBwbGljYWJpbGl0eV9ydWxlc19pc19zaXBf",
"cGhvbmUYCiABKAsyGi5nb29nbGUucHJvdG9idWYuQm9vbFZhbHVlEkgKJGFw",
"cGxpY2FiaWxpdHlfcnVsZXNfaXNfdmlkZW9fbW9uaXRvchgLIAEoCzIaLmdv",
"b2dsZS5wcm90b2J1Zi5Cb29sVmFsdWUSiAEKLmFwcGxpY2FiaWxpdHlfcnVs",
"ZXNfcm9vbV9kZXZpY2VfY29udHJhY3RfdHlwZXMYDCADKA4yUC5rZXlhcGlz",
"LnN1YnNjcmlwdGlvbi52MS5PZmZlclRlbXBsYXRlLkFwcGxpY2FiaWxpdHlS",
"dWxlcy5Sb29tRGV2aWNlQ29udHJhY3RUeXBlEoQBCixhcHBsaWNhYmlsaXR5",
"X3J1bGVzX21vYmlsZV9hcHBfcGFja2FnZV90eXBlcxgNIAMoDjJOLmtleWFw",
"aXMuc3Vic2NyaXB0aW9uLnYxLk9mZmVyVGVtcGxhdGUuQXBwbGljYWJpbGl0",
"eVJ1bGVzLk1vYmlsZUFwcFBhY2thZ2VUeXBlEj4KGmlzX2NhbGxfZm9yd2Fy",
"ZGluZ19lbmFibGVkGA4gASgLMhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1",
"ZRIyCg5pc19kaWdpdGFsX3dheRgPIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5C",
"b29sVmFsdWUSEAoIcGxhbl9pZHMYECADKAUi3gIKE09mZmVyVGVtcGxhdGVQ",
"YWdpbmcSTwoNb3JkZXJfYnlfdHlwZRgBIAEoDjI4LmtleWFwaXMuc3Vic2Ny",
"aXB0aW9uLnYxLk9mZmVyVGVtcGxhdGVQYWdpbmcuT3JkZXJCeVR5cGUSUgoO",
"ZGlyZWN0aW9uX3R5cGUYAiABKA4yOi5rZXlhcGlzLnN1YnNjcmlwdGlvbi52",
"MS5PZmZlclRlbXBsYXRlUGFnaW5nLkRpcmVjdGlvblR5cGUSDQoFbGltaXQY",
"AyABKAUSDgoGb2Zmc2V0GAQgASgFIkMKC09yZGVyQnlUeXBlEhkKFU9SREVS",
"X0JZX1RZUEVfVU5LTk9XThAAEg4KCkNSRUFURURfQVQQARIJCgVUSVRMRRAC",
"Ij4KDURpcmVjdGlvblR5cGUSGgoWRElSRUNUSU9OX1RZUEVfVU5LTk9XThAA",
"EggKBERFU0MQARIHCgNBU0MQAiIqChdHZXRPZmZlclRlbXBsYXRlUmVxdWVz",
"dBIPCgJpZBgBIAEoCUID4EECIloKGEdldE9mZmVyVGVtcGxhdGVSZXNwb25z",
"ZRI2CgRkYXRhGAEgASgLMiYua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuT2Zm",
"ZXJUZW1wbGF0ZUgAQgYKBHR5cGUiqQEKG0dldE9mZmVyVGVtcGxhdGVMaXN0",
"UmVxdWVzdBI8CgZmaWx0ZXIYASABKAsyLC5rZXlhcGlzLnN1YnNjcmlwdGlv",
"bi52MS5PZmZlclRlbXBsYXRlRmlsdGVyEj4KBnBhZ2luZxgCIAEoCzIsLmtl",
"eWFwaXMuc3Vic2NyaXB0aW9uLnYxLk9mZmVyVGVtcGxhdGVQYWdpbmdIAEIM",
"CgpwYWdpbmF0aW9uIv8BChxHZXRPZmZlclRlbXBsYXRlTGlzdFJlc3BvbnNl",
"EjYKBGRhdGEYASABKAsyJi5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5PZmZl",
"clRlbXBsYXRlSAASTAoFZXJyb3IYAiABKAsyOy5rZXlhcGlzLnN1YnNjcmlw",
"dGlvbi52MS5HZXRPZmZlclRlbXBsYXRlTGlzdFJlc3BvbnNlLkVycm9ySAAa",
"UQoFRXJyb3ISPgoKdmFsaWRhdGlvbhgBIAEoCzIoLmtleWFwaXMuc3Vic2Ny",
"aXB0aW9uLnYxLlZhbGlkYXRpb25FcnJvckgAQggKBnJlYXNvbkIGCgR0eXBl",
"IjgKIkdldE9mZmVyVGVtcGxhdGVCeU9ycG9uTGlzdFJlcXVlc3QSEgoFb3Jw",
"b24YASABKANCA+BBAiKNAgojR2V0T2ZmZXJUZW1wbGF0ZUJ5T3Jwb25MaXN0",
"UmVzcG9uc2USNgoEZGF0YRgBIAEoCzImLmtleWFwaXMuc3Vic2NyaXB0aW9u",
"LnYxLk9mZmVyVGVtcGxhdGVIABJTCgVlcnJvchgCIAEoCzJCLmtleWFwaXMu",
"c3Vic2NyaXB0aW9uLnYxLkdldE9mZmVyVGVtcGxhdGVCeU9ycG9uTGlzdFJl",
"c3BvbnNlLkVycm9ySAAaUQoFRXJyb3ISPgoKdmFsaWRhdGlvbhgBIAEoCzIo",
"LmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLlZhbGlkYXRpb25FcnJvckgAQggK",
"BnJlYXNvbkIGCgR0eXBlIlwKHEdldE9mZmVyVGVtcGxhdGVDb3VudFJlcXVl",
"c3QSPAoGZmlsdGVyGAEgASgLMiwua2V5YXBpcy5zdWJzY3JpcHRpb24udjEu",
"T2ZmZXJUZW1wbGF0ZUZpbHRlciLZAQodR2V0T2ZmZXJUZW1wbGF0ZUNvdW50",
"UmVzcG9uc2USDgoEZGF0YRgBIAEoBUgAEk0KBWVycm9yGAIgASgLMjwua2V5",
"YXBpcy5zdWJzY3JpcHRpb24udjEuR2V0T2ZmZXJUZW1wbGF0ZUNvdW50UmVz",
"cG9uc2UuRXJyb3JIABpRCgVFcnJvchI+Cgp2YWxpZGF0aW9uGAEgASgLMigu",
"a2V5YXBpcy5zdWJzY3JpcHRpb24udjEuVmFsaWRhdGlvbkVycm9ySABCCAoG",
"cmVhc29uQgYKBHR5cGUiOQojR2V0T2ZmZXJUZW1wbGF0ZUJ5T3Jwb25Db3Vu",
"dFJlcXVlc3QSEgoFb3Jwb24YASABKANCA+BBAiLnAQokR2V0T2ZmZXJUZW1w",
"bGF0ZUJ5T3Jwb25Db3VudFJlc3BvbnNlEg4KBGRhdGEYASABKAVIABJUCgVl",
"cnJvchgCIAEoCzJDLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLkdldE9mZmVy",
"VGVtcGxhdGVCeU9ycG9uQ291bnRSZXNwb25zZS5FcnJvckgAGlEKBUVycm9y",
"Ej4KCnZhbGlkYXRpb24YASABKAsyKC5rZXlhcGlzLnN1YnNjcmlwdGlvbi52",
"MS5WYWxpZGF0aW9uRXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSJVChhQb3N0",
"T2ZmZXJUZW1wbGF0ZVJlcXVlc3QSOQoEZGF0YRgBIAEoCzImLmtleWFwaXMu",
"c3Vic2NyaXB0aW9uLnYxLk9mZmVyVGVtcGxhdGVCA+BBAiLAAgoZUG9zdE9m",
"ZmVyVGVtcGxhdGVSZXNwb25zZRI2CgRkYXRhGAEgASgLMiYua2V5YXBpcy5z",
"dWJzY3JpcHRpb24udjEuT2ZmZXJUZW1wbGF0ZUgAEkkKBWVycm9yGAIgASgL",
"Mjgua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuUG9zdE9mZmVyVGVtcGxhdGVS",
"ZXNwb25zZS5FcnJvckgAGpcBCgVFcnJvchI+Cgp2YWxpZGF0aW9uGAEgASgL",
"Migua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuVmFsaWRhdGlvbkVycm9ySAAS",
"RAoGc2F2aW5nGAIgASgLMjIua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuT2Zm",
"ZXJUZW1wbGF0ZS5TYXZpbmdFcnJvckgAQggKBnJlYXNvbkIGCgR0eXBlIi0K",
"GkRlbGV0ZU9mZmVyVGVtcGxhdGVSZXF1ZXN0Eg8KAmlkGAEgASgJQgPgQQIi",
"HQobRGVsZXRlT2ZmZXJUZW1wbGF0ZVJlc3BvbnNlIjIKH1Bvc3RPZmZlclRl",
"bXBsYXRlUmVzdG9yZVJlcXVlc3QSDwoCaWQYASABKAlCA+BBAiJiCiBQb3N0",
"T2ZmZXJUZW1wbGF0ZVJlc3RvcmVSZXNwb25zZRI2CgRkYXRhGAEgASgLMiYu",
"a2V5YXBpcy5zdWJzY3JpcHRpb24udjEuT2ZmZXJUZW1wbGF0ZUgAQgYKBHR5",
"cGUiOgoPVmFsaWRhdGlvbkVycm9yEhEKBHBhdGgYASABKAlCA+BBAhIUCgdt",
"ZXNzYWdlGAIgASgJQgPgQQIyqwwKFE9mZmVyVGVtcGxhdGVTZXJ2aWNlEqkB",
"ChBHZXRPZmZlclRlbXBsYXRlEjAua2V5YXBpcy5zdWJzY3JpcHRpb24udjEu",
"R2V0T2ZmZXJUZW1wbGF0ZVJlcXVlc3QaMS5rZXlhcGlzLnN1YnNjcmlwdGlv",
"bi52MS5HZXRPZmZlclRlbXBsYXRlUmVzcG9uc2UiMILT5JMCKhIoL3N1YnNj",
"cmlwdGlvbi9hcGkvdjEvb2ZmZXJfdGVtcGxhdGUve2lkfRK3AQoUR2V0T2Zm",
"ZXJUZW1wbGF0ZUxpc3QSNC5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5HZXRP",
"ZmZlclRlbXBsYXRlTGlzdFJlcXVlc3QaNS5rZXlhcGlzLnN1YnNjcmlwdGlv",
"bi52MS5HZXRPZmZlclRlbXBsYXRlTGlzdFJlc3BvbnNlIjCC0+STAioSKC9z",
"dWJzY3JpcHRpb24vYXBpL3YxL29mZmVyX3RlbXBsYXRlL2xpc3QwARLdAQob",
"R2V0T2ZmZXJUZW1wbGF0ZUJ5T3Jwb25MaXN0Ejsua2V5YXBpcy5zdWJzY3Jp",
"cHRpb24udjEuR2V0T2ZmZXJUZW1wbGF0ZUJ5T3Jwb25MaXN0UmVxdWVzdBo8",
"LmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLkdldE9mZmVyVGVtcGxhdGVCeU9y",
"cG9uTGlzdFJlc3BvbnNlIkGC0+STAjsSOS9zdWJzY3JpcHRpb24vYXBpL3Yx",
"L29mZmVyX3RlbXBsYXRlX2J5X29ycG9uL3tvcnBvbn0vbGlzdDABErkBChVH",
"ZXRPZmZlclRlbXBsYXRlQ291bnQSNS5rZXlhcGlzLnN1YnNjcmlwdGlvbi52",
"MS5HZXRPZmZlclRlbXBsYXRlQ291bnRSZXF1ZXN0GjYua2V5YXBpcy5zdWJz",
"Y3JpcHRpb24udjEuR2V0T2ZmZXJUZW1wbGF0ZUNvdW50UmVzcG9uc2UiMYLT",
"5JMCKxIpL3N1YnNjcmlwdGlvbi9hcGkvdjEvb2ZmZXJfdGVtcGxhdGUvY291",
"bnQS3wEKHEdldE9mZmVyVGVtcGxhdGVCeU9ycG9uQ291bnQSPC5rZXlhcGlz",
"LnN1YnNjcmlwdGlvbi52MS5HZXRPZmZlclRlbXBsYXRlQnlPcnBvbkNvdW50",
"UmVxdWVzdBo9LmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLkdldE9mZmVyVGVt",
"cGxhdGVCeU9ycG9uQ291bnRSZXNwb25zZSJCgtPkkwI8Ejovc3Vic2NyaXB0",
"aW9uL2FwaS92MS9vZmZlcl90ZW1wbGF0ZV9ieV9vcnBvbi97b3Jwb259L2Nv",
"dW50EqoBChFQb3N0T2ZmZXJUZW1wbGF0ZRIxLmtleWFwaXMuc3Vic2NyaXB0",
"aW9uLnYxLlBvc3RPZmZlclRlbXBsYXRlUmVxdWVzdBoyLmtleWFwaXMuc3Vi",
"c2NyaXB0aW9uLnYxLlBvc3RPZmZlclRlbXBsYXRlUmVzcG9uc2UiLoLT5JMC",
"KCIjL3N1YnNjcmlwdGlvbi9hcGkvdjEvb2ZmZXJfdGVtcGxhdGU6ASoSsgEK",
"E0RlbGV0ZU9mZmVyVGVtcGxhdGUSMy5rZXlhcGlzLnN1YnNjcmlwdGlvbi52",
"MS5EZWxldGVPZmZlclRlbXBsYXRlUmVxdWVzdBo0LmtleWFwaXMuc3Vic2Ny",
"aXB0aW9uLnYxLkRlbGV0ZU9mZmVyVGVtcGxhdGVSZXNwb25zZSIwgtPkkwIq",
"Kigvc3Vic2NyaXB0aW9uL2FwaS92MS9vZmZlcl90ZW1wbGF0ZS97aWR9EswB",
"ChhQb3N0T2ZmZXJUZW1wbGF0ZVJlc3RvcmUSOC5rZXlhcGlzLnN1YnNjcmlw",
"dGlvbi52MS5Qb3N0T2ZmZXJUZW1wbGF0ZVJlc3RvcmVSZXF1ZXN0Gjkua2V5",
"YXBpcy5zdWJzY3JpcHRpb24udjEuUG9zdE9mZmVyVGVtcGxhdGVSZXN0b3Jl",
"UmVzcG9uc2UiO4LT5JMCNSIwL3N1YnNjcmlwdGlvbi9hcGkvdjEvb2ZmZXJf",
"dGVtcGxhdGUve2lkfS9yZXN0b3JlOgEqQsQBChpydS5rZXlhcGlzLnN1YnNj",
"cmlwdGlvbi52MUIaS2V5YXBpc1N1YnNjcmlwdGlvblYxUHJvdG9IA1AAWhgv",
"a2V5YXBpc19zdWJzY3JpcHRpb25fdjHYAQH4AQGiAhVLRVlBUElTU1VCU0NS",
"SVBUSU9OVjGqAhdLZXlhcGlzLlN1YnNjcmlwdGlvbi5WMcoCF0tleWFwaXNc",
"U3Vic2NyaXB0aW9uXFYx6gIZS2V5YXBpczo6U3Vic2NyaXB0aW9uOjpWMWIG",
"cHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Keyapis.Subscription.V1.KeyapisSubscriptionOfferV1Reflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.OfferTemplate), global::Keyapis.Subscription.V1.OfferTemplate.Parser, new[]{ "Id", "ServiceType", "Title", "Description", "StatusType", "ApplicabilityRules", "Items", "CreatedAt", "UpdatedAt" }, null, new[]{ typeof(global::Keyapis.Subscription.V1.OfferTemplate.Types.ServiceType), typeof(global::Keyapis.Subscription.V1.OfferTemplate.Types.StatusType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules), global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Parser, new[]{ "RfIds", "ContractType", "ClientType", "BillingSystemType", "IsExternalPaymentForSmartIntercom", "IsCmsPhone", "IsSipPhone", "IsVideoMonitor", "RoomDeviceContractType", "MobileAppPackageType", "IsCallForwardingEnabled", "IsDigitalWay" }, null, new[]{ typeof(global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ContractType), typeof(global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ClientType), typeof(global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.BillingSystemType), typeof(global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.RoomDeviceContractType), typeof(global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.MobileAppPackageType) }, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.OfferTemplate.Types.Item), global::Keyapis.Subscription.V1.OfferTemplate.Types.Item.Parser, new[]{ "PlanId", "Type", "IsEnableAutoSubscribe", "IsDigitalWay", "OfferUrl" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError), global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Parser, new[]{ "Conflict", "DuplicateTemplate" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.Conflict), global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.Conflict.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.DuplicateTemplate), global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.DuplicateTemplate.Parser, null, null, null, null, null)})}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.OfferTemplateFilter), global::Keyapis.Subscription.V1.OfferTemplateFilter.Parser, new[]{ "StatusTypes", "ServiceTypes", "RfIds", "Text", "ApplicabilityRulesContractTypes", "ApplicabilityRulesClientTypes", "ApplicabilityRulesBillingSystemTypes", "IsExternalPaymentForSmartIntercom", "ApplicabilityRulesIsCmsPhone", "ApplicabilityRulesIsSipPhone", "ApplicabilityRulesIsVideoMonitor", "ApplicabilityRulesRoomDeviceContractTypes", "ApplicabilityRulesMobileAppPackageTypes", "IsCallForwardingEnabled", "IsDigitalWay", "PlanIds" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.OfferTemplatePaging), global::Keyapis.Subscription.V1.OfferTemplatePaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.Subscription.V1.OfferTemplatePaging.Types.OrderByType), typeof(global::Keyapis.Subscription.V1.OfferTemplatePaging.Types.DirectionType) }, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateRequest), global::Keyapis.Subscription.V1.GetOfferTemplateRequest.Parser, new[]{ "Id" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateResponse), global::Keyapis.Subscription.V1.GetOfferTemplateResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateListRequest), global::Keyapis.Subscription.V1.GetOfferTemplateListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateListResponse), global::Keyapis.Subscription.V1.GetOfferTemplateListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateListResponse.Types.Error), global::Keyapis.Subscription.V1.GetOfferTemplateListResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListRequest), global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListRequest.Parser, new[]{ "Orpon" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListResponse), global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListResponse.Types.Error), global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateCountRequest), global::Keyapis.Subscription.V1.GetOfferTemplateCountRequest.Parser, new[]{ "Filter" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateCountResponse), global::Keyapis.Subscription.V1.GetOfferTemplateCountResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateCountResponse.Types.Error), global::Keyapis.Subscription.V1.GetOfferTemplateCountResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountRequest), global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountRequest.Parser, new[]{ "Orpon" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountResponse), global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountResponse.Types.Error), global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PostOfferTemplateRequest), global::Keyapis.Subscription.V1.PostOfferTemplateRequest.Parser, new[]{ "Data" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PostOfferTemplateResponse), global::Keyapis.Subscription.V1.PostOfferTemplateResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PostOfferTemplateResponse.Types.Error), global::Keyapis.Subscription.V1.PostOfferTemplateResponse.Types.Error.Parser, new[]{ "Validation", "Saving" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.DeleteOfferTemplateRequest), global::Keyapis.Subscription.V1.DeleteOfferTemplateRequest.Parser, new[]{ "Id" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.DeleteOfferTemplateResponse), global::Keyapis.Subscription.V1.DeleteOfferTemplateResponse.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PostOfferTemplateRestoreRequest), global::Keyapis.Subscription.V1.PostOfferTemplateRestoreRequest.Parser, new[]{ "Id" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PostOfferTemplateRestoreResponse), global::Keyapis.Subscription.V1.PostOfferTemplateRestoreResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.ValidationError), global::Keyapis.Subscription.V1.ValidationError.Parser, new[]{ "Path", "Message" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
///
/// Шаблон КВ
///
public sealed partial class OfferTemplate : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OfferTemplate());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 OfferTemplate() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OfferTemplate(OfferTemplate other) : this() {
id_ = other.id_;
serviceType_ = other.serviceType_;
title_ = other.title_;
Description = other.Description;
statusType_ = other.statusType_;
applicabilityRules_ = other.applicabilityRules_ != null ? other.applicabilityRules_.Clone() : null;
items_ = other.items_.Clone();
createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null;
updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OfferTemplate Clone() {
return new OfferTemplate(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 "service_type" field.
public const int ServiceTypeFieldNumber = 2;
private global::Keyapis.Subscription.V1.OfferTemplate.Types.ServiceType serviceType_ = global::Keyapis.Subscription.V1.OfferTemplate.Types.ServiceType.Unknown;
///
/// Тип сервиса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplate.Types.ServiceType ServiceType {
get { return serviceType_; }
set {
serviceType_ = value;
}
}
/// Field number for the "title" field.
public const int TitleFieldNumber = 3;
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 "description" field.
public const int DescriptionFieldNumber = 4;
private static readonly pb::FieldCodec _single_description_codec = pb::FieldCodec.ForClassWrapper(34);
private string description_;
///
/// Описание КВ.
/// # Диапазон: 3..1024
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Description {
get { return description_; }
set {
description_ = value;
}
}
/// Field number for the "status_type" field.
public const int StatusTypeFieldNumber = 5;
private global::Keyapis.Subscription.V1.OfferTemplate.Types.StatusType statusType_ = global::Keyapis.Subscription.V1.OfferTemplate.Types.StatusType.Unknown;
///
/// Статус шаблона КВ.
/// Заполняется сервером
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplate.Types.StatusType StatusType {
get { return statusType_; }
set {
statusType_ = value;
}
}
/// Field number for the "applicability_rules" field.
public const int ApplicabilityRulesFieldNumber = 6;
private global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules applicabilityRules_;
///
/// Правила применимости Шаблона КВ
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules ApplicabilityRules {
get { return applicabilityRules_; }
set {
applicabilityRules_ = value;
}
}
/// Field number for the "items" field.
public const int ItemsFieldNumber = 7;
private static readonly pb::FieldCodec _repeated_items_codec
= pb::FieldCodec.ForMessage(58, global::Keyapis.Subscription.V1.OfferTemplate.Types.Item.Parser);
private readonly pbc::RepeatedField items_ = new pbc::RepeatedField();
///
/// Список элементов Шаблона КВ.
/// Каждый элемент описывает технологический план и параметры создания КВ для него
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Items {
get { return items_; }
}
/// Field number for the "created_at" field.
public const int CreatedAtFieldNumber = 8;
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 "updated_at" field.
public const int UpdatedAtFieldNumber = 9;
private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_;
///
/// Дата и время последнего изменения.
/// Заполняется и обновляется сервером.
/// Является версией объекта.
/// # Тип: DateTime
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt {
get { return updatedAt_; }
set {
updatedAt_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as OfferTemplate);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OfferTemplate other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (ServiceType != other.ServiceType) return false;
if (Title != other.Title) return false;
if (Description != other.Description) return false;
if (StatusType != other.StatusType) return false;
if (!object.Equals(ApplicabilityRules, other.ApplicabilityRules)) return false;
if(!items_.Equals(other.items_)) return false;
if (!object.Equals(CreatedAt, other.CreatedAt)) return false;
if (!object.Equals(UpdatedAt, other.UpdatedAt)) 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 (ServiceType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ServiceType.Unknown) hash ^= ServiceType.GetHashCode();
if (Title.Length != 0) hash ^= Title.GetHashCode();
if (description_ != null) hash ^= Description.GetHashCode();
if (StatusType != global::Keyapis.Subscription.V1.OfferTemplate.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode();
if (applicabilityRules_ != null) hash ^= ApplicabilityRules.GetHashCode();
hash ^= items_.GetHashCode();
if (createdAt_ != null) hash ^= CreatedAt.GetHashCode();
if (updatedAt_ != null) hash ^= UpdatedAt.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 (ServiceType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ServiceType.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) ServiceType);
}
if (Title.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Title);
}
if (description_ != null) {
_single_description_codec.WriteTagAndValue(output, Description);
}
if (StatusType != global::Keyapis.Subscription.V1.OfferTemplate.Types.StatusType.Unknown) {
output.WriteRawTag(40);
output.WriteEnum((int) StatusType);
}
if (applicabilityRules_ != null) {
output.WriteRawTag(50);
output.WriteMessage(ApplicabilityRules);
}
items_.WriteTo(output, _repeated_items_codec);
if (createdAt_ != null) {
output.WriteRawTag(66);
output.WriteMessage(CreatedAt);
}
if (updatedAt_ != null) {
output.WriteRawTag(74);
output.WriteMessage(UpdatedAt);
}
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 (ServiceType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ServiceType.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) ServiceType);
}
if (Title.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Title);
}
if (description_ != null) {
_single_description_codec.WriteTagAndValue(ref output, Description);
}
if (StatusType != global::Keyapis.Subscription.V1.OfferTemplate.Types.StatusType.Unknown) {
output.WriteRawTag(40);
output.WriteEnum((int) StatusType);
}
if (applicabilityRules_ != null) {
output.WriteRawTag(50);
output.WriteMessage(ApplicabilityRules);
}
items_.WriteTo(ref output, _repeated_items_codec);
if (createdAt_ != null) {
output.WriteRawTag(66);
output.WriteMessage(CreatedAt);
}
if (updatedAt_ != null) {
output.WriteRawTag(74);
output.WriteMessage(UpdatedAt);
}
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 (ServiceType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ServiceType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ServiceType);
}
if (Title.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Title);
}
if (description_ != null) {
size += _single_description_codec.CalculateSizeWithTag(Description);
}
if (StatusType != global::Keyapis.Subscription.V1.OfferTemplate.Types.StatusType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType);
}
if (applicabilityRules_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApplicabilityRules);
}
size += items_.CalculateSize(_repeated_items_codec);
if (createdAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt);
}
if (updatedAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(OfferTemplate other) {
if (other == null) {
return;
}
if (other.Id.Length != 0) {
Id = other.Id;
}
if (other.ServiceType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ServiceType.Unknown) {
ServiceType = other.ServiceType;
}
if (other.Title.Length != 0) {
Title = other.Title;
}
if (other.description_ != null) {
if (description_ == null || other.Description != "") {
Description = other.Description;
}
}
if (other.StatusType != global::Keyapis.Subscription.V1.OfferTemplate.Types.StatusType.Unknown) {
StatusType = other.StatusType;
}
if (other.applicabilityRules_ != null) {
if (applicabilityRules_ == null) {
ApplicabilityRules = new global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules();
}
ApplicabilityRules.MergeFrom(other.ApplicabilityRules);
}
items_.Add(other.items_);
if (other.createdAt_ != null) {
if (createdAt_ == null) {
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
CreatedAt.MergeFrom(other.CreatedAt);
}
if (other.updatedAt_ != null) {
if (updatedAt_ == null) {
UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
UpdatedAt.MergeFrom(other.UpdatedAt);
}
_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: {
ServiceType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.ServiceType) input.ReadEnum();
break;
}
case 26: {
Title = input.ReadString();
break;
}
case 34: {
string value = _single_description_codec.Read(input);
if (description_ == null || value != "") {
Description = value;
}
break;
}
case 40: {
StatusType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.StatusType) input.ReadEnum();
break;
}
case 50: {
if (applicabilityRules_ == null) {
ApplicabilityRules = new global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules();
}
input.ReadMessage(ApplicabilityRules);
break;
}
case 58: {
items_.AddEntriesFrom(input, _repeated_items_codec);
break;
}
case 66: {
if (createdAt_ == null) {
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(CreatedAt);
break;
}
case 74: {
if (updatedAt_ == null) {
UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(UpdatedAt);
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: {
ServiceType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.ServiceType) input.ReadEnum();
break;
}
case 26: {
Title = input.ReadString();
break;
}
case 34: {
string value = _single_description_codec.Read(ref input);
if (description_ == null || value != "") {
Description = value;
}
break;
}
case 40: {
StatusType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.StatusType) input.ReadEnum();
break;
}
case 50: {
if (applicabilityRules_ == null) {
ApplicabilityRules = new global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules();
}
input.ReadMessage(ApplicabilityRules);
break;
}
case 58: {
items_.AddEntriesFrom(ref input, _repeated_items_codec);
break;
}
case 66: {
if (createdAt_ == null) {
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(CreatedAt);
break;
}
case 74: {
if (updatedAt_ == null) {
UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(UpdatedAt);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the OfferTemplate message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Справочник типов сервисов
///
public enum ServiceType {
///
/// Значение не указано
///
[pbr::OriginalName("SERVICE_TYPE_UNKNOWN")] Unknown = 0,
///
/// Умный домофон
///
[pbr::OriginalName("INTERCOM")] Intercom = 1,
///
/// Комплексное видеонаблюдение
///
[pbr::OriginalName("CAMERAS")] Cameras = 2,
///
/// Умные счётчики
///
[pbr::OriginalName("TELEMETRY")] Telemetry = 3,
///
/// Система контроля и управления доступом
///
[pbr::OriginalName("ACCESS_CONTROL_PANEL")] AccessControlPanel = 4,
///
/// Умный шлагбаум
///
[pbr::OriginalName("BARRIER")] Barrier = 5,
}
///
/// Справочник статусов шаблона КВ
///
public enum StatusType {
///
/// Значение не указано
///
[pbr::OriginalName("STATUS_TYPE_UNKNOWN")] Unknown = 0,
///
/// Активен
///
[pbr::OriginalName("ACTIVE")] Active = 1,
///
/// Архивирован
///
[pbr::OriginalName("ARCHIVED")] Archived = 2,
}
///
/// Правила применимости Шаблона КВ
///
public sealed partial class ApplicabilityRules : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApplicabilityRules());
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.Subscription.V1.OfferTemplate.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 ApplicabilityRules() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ApplicabilityRules(ApplicabilityRules other) : this() {
rfIds_ = other.rfIds_.Clone();
contractType_ = other.contractType_;
clientType_ = other.clientType_;
billingSystemType_ = other.billingSystemType_;
isExternalPaymentForSmartIntercom_ = other.isExternalPaymentForSmartIntercom_;
isCmsPhone_ = other.isCmsPhone_;
isSipPhone_ = other.isSipPhone_;
isVideoMonitor_ = other.isVideoMonitor_;
roomDeviceContractType_ = other.roomDeviceContractType_;
mobileAppPackageType_ = other.mobileAppPackageType_;
isCallForwardingEnabled_ = other.isCallForwardingEnabled_;
isDigitalWay_ = other.isDigitalWay_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ApplicabilityRules Clone() {
return new ApplicabilityRules(this);
}
/// Field number for the "rf_ids" field.
public const int RfIdsFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_rfIds_codec
= pb::FieldCodec.ForInt32(10);
private readonly pbc::RepeatedField rfIds_ = new pbc::RepeatedField();
///
/// Ограничение по регионам.
/// # Диапазон: 0..100
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField RfIds {
get { return rfIds_; }
}
/// Field number for the "contract_type" field.
public const int ContractTypeFieldNumber = 2;
private global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ContractType contractType_ = global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ContractType.Unknown;
///
/// Договорная схема
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ContractType ContractType {
get { return contractType_; }
set {
contractType_ = value;
}
}
/// Field number for the "client_type" field.
public const int ClientTypeFieldNumber = 3;
private global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ClientType clientType_ = global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ClientType.Unknown;
///
/// Тип клиента.
/// Заполняется только когда contract_type принимает одно из значений: B2B, B2B2C
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ClientType ClientType {
get { return clientType_; }
set {
clientType_ = value;
}
}
/// Field number for the "billing_system_type" field.
public const int BillingSystemTypeFieldNumber = 4;
private global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.BillingSystemType billingSystemType_ = global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.BillingSystemType.Unknown;
///
/// Биллинговая система.
/// Заполняется только когда contract_type принимает одно из значений: B2B, B2B2C
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.BillingSystemType BillingSystemType {
get { return billingSystemType_; }
set {
billingSystemType_ = value;
}
}
/// Field number for the "is_external_payment_for_smart_intercom" field.
public const int IsExternalPaymentForSmartIntercomFieldNumber = 5;
private bool isExternalPaymentForSmartIntercom_;
///
/// Принимаются ли платежи за умный домофон на счёт внешней компании
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsExternalPaymentForSmartIntercom {
get { return isExternalPaymentForSmartIntercom_; }
set {
isExternalPaymentForSmartIntercom_ = value;
}
}
/// Field number for the "is_cms_phone" field.
public const int IsCmsPhoneFieldNumber = 6;
private bool isCmsPhone_;
///
/// Аналоговые трубки устанавливаются в квартирах объекта
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsCmsPhone {
get { return isCmsPhone_; }
set {
isCmsPhone_ = value;
}
}
/// Field number for the "is_sip_phone" field.
public const int IsSipPhoneFieldNumber = 7;
private bool isSipPhone_;
///
/// SIP-трубки устанавливаются в квартирах объекта
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsSipPhone {
get { return isSipPhone_; }
set {
isSipPhone_ = value;
}
}
/// Field number for the "is_video_monitor" field.
public const int IsVideoMonitorFieldNumber = 8;
private bool isVideoMonitor_;
///
/// Видеомониторы устанавливаются в квартирах объекта
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsVideoMonitor {
get { return isVideoMonitor_; }
set {
isVideoMonitor_ = value;
}
}
/// Field number for the "room_device_contract_type" field.
public const int RoomDeviceContractTypeFieldNumber = 9;
private global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.RoomDeviceContractType roomDeviceContractType_ = global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.RoomDeviceContractType.Unknown;
///
/// Тип договорной схемы устройства в квартире
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.RoomDeviceContractType RoomDeviceContractType {
get { return roomDeviceContractType_; }
set {
roomDeviceContractType_ = value;
}
}
/// Field number for the "mobile_app_package_type" field.
public const int MobileAppPackageTypeFieldNumber = 10;
private global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.MobileAppPackageType mobileAppPackageType_ = global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.MobileAppPackageType.Unknown;
///
/// Минимальный бесплатный пакет мобильного приложения
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.MobileAppPackageType MobileAppPackageType {
get { return mobileAppPackageType_; }
set {
mobileAppPackageType_ = value;
}
}
/// Field number for the "is_call_forwarding_enabled" field.
public const int IsCallForwardingEnabledFieldNumber = 11;
private bool isCallForwardingEnabled_;
///
/// Переадресация на городские/мобильные номера
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsCallForwardingEnabled {
get { return isCallForwardingEnabled_; }
set {
isCallForwardingEnabled_ = value;
}
}
/// Field number for the "is_digital_way" field.
public const int IsDigitalWayFieldNumber = 12;
private bool isDigitalWay_;
///
/// Цифровой клиентский путь
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsDigitalWay {
get { return isDigitalWay_; }
set {
isDigitalWay_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ApplicabilityRules);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ApplicabilityRules other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!rfIds_.Equals(other.rfIds_)) return false;
if (ContractType != other.ContractType) return false;
if (ClientType != other.ClientType) return false;
if (BillingSystemType != other.BillingSystemType) return false;
if (IsExternalPaymentForSmartIntercom != other.IsExternalPaymentForSmartIntercom) return false;
if (IsCmsPhone != other.IsCmsPhone) return false;
if (IsSipPhone != other.IsSipPhone) return false;
if (IsVideoMonitor != other.IsVideoMonitor) return false;
if (RoomDeviceContractType != other.RoomDeviceContractType) return false;
if (MobileAppPackageType != other.MobileAppPackageType) return false;
if (IsCallForwardingEnabled != other.IsCallForwardingEnabled) return false;
if (IsDigitalWay != other.IsDigitalWay) 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 ^= rfIds_.GetHashCode();
if (ContractType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ContractType.Unknown) hash ^= ContractType.GetHashCode();
if (ClientType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ClientType.Unknown) hash ^= ClientType.GetHashCode();
if (BillingSystemType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.BillingSystemType.Unknown) hash ^= BillingSystemType.GetHashCode();
if (IsExternalPaymentForSmartIntercom != false) hash ^= IsExternalPaymentForSmartIntercom.GetHashCode();
if (IsCmsPhone != false) hash ^= IsCmsPhone.GetHashCode();
if (IsSipPhone != false) hash ^= IsSipPhone.GetHashCode();
if (IsVideoMonitor != false) hash ^= IsVideoMonitor.GetHashCode();
if (RoomDeviceContractType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.RoomDeviceContractType.Unknown) hash ^= RoomDeviceContractType.GetHashCode();
if (MobileAppPackageType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.MobileAppPackageType.Unknown) hash ^= MobileAppPackageType.GetHashCode();
if (IsCallForwardingEnabled != false) hash ^= IsCallForwardingEnabled.GetHashCode();
if (IsDigitalWay != false) hash ^= IsDigitalWay.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
rfIds_.WriteTo(output, _repeated_rfIds_codec);
if (ContractType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ContractType.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) ContractType);
}
if (ClientType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ClientType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) ClientType);
}
if (BillingSystemType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.BillingSystemType.Unknown) {
output.WriteRawTag(32);
output.WriteEnum((int) BillingSystemType);
}
if (IsExternalPaymentForSmartIntercom != false) {
output.WriteRawTag(40);
output.WriteBool(IsExternalPaymentForSmartIntercom);
}
if (IsCmsPhone != false) {
output.WriteRawTag(48);
output.WriteBool(IsCmsPhone);
}
if (IsSipPhone != false) {
output.WriteRawTag(56);
output.WriteBool(IsSipPhone);
}
if (IsVideoMonitor != false) {
output.WriteRawTag(64);
output.WriteBool(IsVideoMonitor);
}
if (RoomDeviceContractType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.RoomDeviceContractType.Unknown) {
output.WriteRawTag(72);
output.WriteEnum((int) RoomDeviceContractType);
}
if (MobileAppPackageType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.MobileAppPackageType.Unknown) {
output.WriteRawTag(80);
output.WriteEnum((int) MobileAppPackageType);
}
if (IsCallForwardingEnabled != false) {
output.WriteRawTag(88);
output.WriteBool(IsCallForwardingEnabled);
}
if (IsDigitalWay != false) {
output.WriteRawTag(96);
output.WriteBool(IsDigitalWay);
}
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) {
rfIds_.WriteTo(ref output, _repeated_rfIds_codec);
if (ContractType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ContractType.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) ContractType);
}
if (ClientType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ClientType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) ClientType);
}
if (BillingSystemType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.BillingSystemType.Unknown) {
output.WriteRawTag(32);
output.WriteEnum((int) BillingSystemType);
}
if (IsExternalPaymentForSmartIntercom != false) {
output.WriteRawTag(40);
output.WriteBool(IsExternalPaymentForSmartIntercom);
}
if (IsCmsPhone != false) {
output.WriteRawTag(48);
output.WriteBool(IsCmsPhone);
}
if (IsSipPhone != false) {
output.WriteRawTag(56);
output.WriteBool(IsSipPhone);
}
if (IsVideoMonitor != false) {
output.WriteRawTag(64);
output.WriteBool(IsVideoMonitor);
}
if (RoomDeviceContractType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.RoomDeviceContractType.Unknown) {
output.WriteRawTag(72);
output.WriteEnum((int) RoomDeviceContractType);
}
if (MobileAppPackageType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.MobileAppPackageType.Unknown) {
output.WriteRawTag(80);
output.WriteEnum((int) MobileAppPackageType);
}
if (IsCallForwardingEnabled != false) {
output.WriteRawTag(88);
output.WriteBool(IsCallForwardingEnabled);
}
if (IsDigitalWay != false) {
output.WriteRawTag(96);
output.WriteBool(IsDigitalWay);
}
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 += rfIds_.CalculateSize(_repeated_rfIds_codec);
if (ContractType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ContractType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ContractType);
}
if (ClientType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ClientType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ClientType);
}
if (BillingSystemType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.BillingSystemType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BillingSystemType);
}
if (IsExternalPaymentForSmartIntercom != false) {
size += 1 + 1;
}
if (IsCmsPhone != false) {
size += 1 + 1;
}
if (IsSipPhone != false) {
size += 1 + 1;
}
if (IsVideoMonitor != false) {
size += 1 + 1;
}
if (RoomDeviceContractType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.RoomDeviceContractType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RoomDeviceContractType);
}
if (MobileAppPackageType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.MobileAppPackageType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MobileAppPackageType);
}
if (IsCallForwardingEnabled != false) {
size += 1 + 1;
}
if (IsDigitalWay != 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(ApplicabilityRules other) {
if (other == null) {
return;
}
rfIds_.Add(other.rfIds_);
if (other.ContractType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ContractType.Unknown) {
ContractType = other.ContractType;
}
if (other.ClientType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ClientType.Unknown) {
ClientType = other.ClientType;
}
if (other.BillingSystemType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.BillingSystemType.Unknown) {
BillingSystemType = other.BillingSystemType;
}
if (other.IsExternalPaymentForSmartIntercom != false) {
IsExternalPaymentForSmartIntercom = other.IsExternalPaymentForSmartIntercom;
}
if (other.IsCmsPhone != false) {
IsCmsPhone = other.IsCmsPhone;
}
if (other.IsSipPhone != false) {
IsSipPhone = other.IsSipPhone;
}
if (other.IsVideoMonitor != false) {
IsVideoMonitor = other.IsVideoMonitor;
}
if (other.RoomDeviceContractType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.RoomDeviceContractType.Unknown) {
RoomDeviceContractType = other.RoomDeviceContractType;
}
if (other.MobileAppPackageType != global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.MobileAppPackageType.Unknown) {
MobileAppPackageType = other.MobileAppPackageType;
}
if (other.IsCallForwardingEnabled != false) {
IsCallForwardingEnabled = other.IsCallForwardingEnabled;
}
if (other.IsDigitalWay != false) {
IsDigitalWay = other.IsDigitalWay;
}
_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: {
rfIds_.AddEntriesFrom(input, _repeated_rfIds_codec);
break;
}
case 16: {
ContractType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ContractType) input.ReadEnum();
break;
}
case 24: {
ClientType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ClientType) input.ReadEnum();
break;
}
case 32: {
BillingSystemType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.BillingSystemType) input.ReadEnum();
break;
}
case 40: {
IsExternalPaymentForSmartIntercom = input.ReadBool();
break;
}
case 48: {
IsCmsPhone = input.ReadBool();
break;
}
case 56: {
IsSipPhone = input.ReadBool();
break;
}
case 64: {
IsVideoMonitor = input.ReadBool();
break;
}
case 72: {
RoomDeviceContractType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.RoomDeviceContractType) input.ReadEnum();
break;
}
case 80: {
MobileAppPackageType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.MobileAppPackageType) input.ReadEnum();
break;
}
case 88: {
IsCallForwardingEnabled = input.ReadBool();
break;
}
case 96: {
IsDigitalWay = 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:
case 8: {
rfIds_.AddEntriesFrom(ref input, _repeated_rfIds_codec);
break;
}
case 16: {
ContractType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ContractType) input.ReadEnum();
break;
}
case 24: {
ClientType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ClientType) input.ReadEnum();
break;
}
case 32: {
BillingSystemType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.BillingSystemType) input.ReadEnum();
break;
}
case 40: {
IsExternalPaymentForSmartIntercom = input.ReadBool();
break;
}
case 48: {
IsCmsPhone = input.ReadBool();
break;
}
case 56: {
IsSipPhone = input.ReadBool();
break;
}
case 64: {
IsVideoMonitor = input.ReadBool();
break;
}
case 72: {
RoomDeviceContractType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.RoomDeviceContractType) input.ReadEnum();
break;
}
case 80: {
MobileAppPackageType = (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.MobileAppPackageType) input.ReadEnum();
break;
}
case 88: {
IsCallForwardingEnabled = input.ReadBool();
break;
}
case 96: {
IsDigitalWay = input.ReadBool();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the ApplicabilityRules message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Справочник типов договорных схем
///
public enum ContractType {
///
/// Значение не указано
///
[pbr::OriginalName("CONTRACT_TYPE_UNKNOWN")] Unknown = 0,
///
/// Договор заключён с юридическим лицом
///
[pbr::OriginalName("B2B")] B2B = 1,
///
/// Договор заключён с физическим лицом
///
[pbr::OriginalName("B2C")] B2C = 2,
///
/// Смешанная схема. Ростелеком работает с клиентом через партнёра
///
[pbr::OriginalName("B2B2C")] B2B2C = 3,
}
///
/// Справочник типов клиентов
///
public enum ClientType {
///
/// Значение не указано
///
[pbr::OriginalName("CLIENT_TYPE_UNKNOWN")] Unknown = 0,
///
/// Управляющая компания
///
[pbr::OriginalName("MANAGEMENT_COMPANY")] ManagementCompany = 1,
///
/// Домофонная компания
///
[pbr::OriginalName("INTERCOM_COMPANY")] IntercomCompany = 2,
}
///
/// Справочник типов биллинговых систем
///
public enum BillingSystemType {
///
/// Значение не указано
///
[pbr::OriginalName("BILLING_SYSTEM_TYPE_UNKNOWN")] Unknown = 0,
///
/// Автоматизированная система расчётов макрорегионального филиала/АСР МРФ
///
[pbr::OriginalName("ASR_MRF")] AsrMrf = 1,
///
/// Платформа Ключ
///
[pbr::OriginalName("KEY_PLATFORM")] KeyPlatform = 2,
}
///
/// Справочник типов договорной схемы устройства в квартире
///
public enum RoomDeviceContractType {
///
/// Значение не указано
///
[pbr::OriginalName("ROOM_DEVICE_CONTRACT_TYPE_UNKNOWN")] Unknown = 0,
///
/// Житель заключает договор на квартирное устройство с внешней компанией
///
[pbr::OriginalName("ROOM_DEVICE_B2B")] RoomDeviceB2B = 1,
///
/// Житель заключает договор на квартирное устройство с Ростелекомом
///
[pbr::OriginalName("ROOM_DEVICE_B2C")] RoomDeviceB2C = 2,
}
///
/// Справочник типов минимального бесплатного пакета мобильного приложения
///
public enum MobileAppPackageType {
///
/// Значение не указано
///
[pbr::OriginalName("MOBILE_APP_PACKAGE_TYPE_UNKNOWN")] Unknown = 0,
///
/// Кнопка открытия + Ключи
///
[pbr::OriginalName("OPEN_DOOR_AND_KEYS")] OpenDoorAndKeys = 1,
///
/// Кнопка открытия + Ключи + Аудиовызовы
///
[pbr::OriginalName("OPEN_DOOR_AND_KEYS_AUDIO_CALLS")] OpenDoorAndKeysAudioCalls = 2,
///
/// Кнопка открытия + Ключи + Видеовызовы
///
[pbr::OriginalName("OPEN_DOOR_AND_KEYS_VIDEO_CALLS")] OpenDoorAndKeysVideoCalls = 3,
}
}
#endregion
}
///
/// Элемент Шаблона КВ
///
public sealed partial class Item : pb::IMessage-
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser
- _parser = new pb::MessageParser
- (() => new Item());
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.Subscription.V1.OfferTemplate.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 Item() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Item(Item other) : this() {
planId_ = other.planId_;
type_ = other.type_;
isEnableAutoSubscribe_ = other.isEnableAutoSubscribe_;
isDigitalWay_ = other.isDigitalWay_;
OfferUrl = other.OfferUrl;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Item Clone() {
return new Item(this);
}
/// Field number for the "plan_id" field.
public const int PlanIdFieldNumber = 1;
private int planId_;
///
/// Идентификатор технологического плана.
/// # Диапазон: 1..2147483647
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int PlanId {
get { return planId_; }
set {
planId_ = value;
}
}
/// Field number for the "type" field.
public const int TypeFieldNumber = 2;
private global::Keyapis.Subscription.V1.Offer.Types.Type type_ = global::Keyapis.Subscription.V1.Offer.Types.Type.Unknown;
///
/// Тип коммерческой возможности
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.Offer.Types.Type Type {
get { return type_; }
set {
type_ = value;
}
}
/// Field number for the "is_enable_auto_subscribe" field.
public const int IsEnableAutoSubscribeFieldNumber = 3;
private bool isEnableAutoSubscribe_;
///
/// Подключать ли автоматическую подписку
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsEnableAutoSubscribe {
get { return isEnableAutoSubscribe_; }
set {
isEnableAutoSubscribe_ = value;
}
}
/// Field number for the "is_digital_way" field.
public const int IsDigitalWayFieldNumber = 4;
private bool isDigitalWay_;
///
/// Признак принадлежности к цифровому клиентскому пути
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsDigitalWay {
get { return isDigitalWay_; }
set {
isDigitalWay_ = value;
}
}
/// Field number for the "offer_url" field.
public const int OfferUrlFieldNumber = 5;
private static readonly pb::FieldCodec _single_offerUrl_codec = pb::FieldCodec.ForClassWrapper(42);
private string offerUrl_;
///
/// Адрес размещения офферты.
/// Полный url до файла.
/// # Диапазон: 0..2048
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string OfferUrl {
get { return offerUrl_; }
set {
offerUrl_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Item);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Item other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (PlanId != other.PlanId) return false;
if (Type != other.Type) return false;
if (IsEnableAutoSubscribe != other.IsEnableAutoSubscribe) return false;
if (IsDigitalWay != other.IsDigitalWay) return false;
if (OfferUrl != other.OfferUrl) 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 (PlanId != 0) hash ^= PlanId.GetHashCode();
if (Type != global::Keyapis.Subscription.V1.Offer.Types.Type.Unknown) hash ^= Type.GetHashCode();
if (IsEnableAutoSubscribe != false) hash ^= IsEnableAutoSubscribe.GetHashCode();
if (IsDigitalWay != false) hash ^= IsDigitalWay.GetHashCode();
if (offerUrl_ != null) hash ^= OfferUrl.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 (PlanId != 0) {
output.WriteRawTag(8);
output.WriteInt32(PlanId);
}
if (Type != global::Keyapis.Subscription.V1.Offer.Types.Type.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) Type);
}
if (IsEnableAutoSubscribe != false) {
output.WriteRawTag(24);
output.WriteBool(IsEnableAutoSubscribe);
}
if (IsDigitalWay != false) {
output.WriteRawTag(32);
output.WriteBool(IsDigitalWay);
}
if (offerUrl_ != null) {
_single_offerUrl_codec.WriteTagAndValue(output, OfferUrl);
}
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 (PlanId != 0) {
output.WriteRawTag(8);
output.WriteInt32(PlanId);
}
if (Type != global::Keyapis.Subscription.V1.Offer.Types.Type.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) Type);
}
if (IsEnableAutoSubscribe != false) {
output.WriteRawTag(24);
output.WriteBool(IsEnableAutoSubscribe);
}
if (IsDigitalWay != false) {
output.WriteRawTag(32);
output.WriteBool(IsDigitalWay);
}
if (offerUrl_ != null) {
_single_offerUrl_codec.WriteTagAndValue(ref output, OfferUrl);
}
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 (PlanId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlanId);
}
if (Type != global::Keyapis.Subscription.V1.Offer.Types.Type.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (IsEnableAutoSubscribe != false) {
size += 1 + 1;
}
if (IsDigitalWay != false) {
size += 1 + 1;
}
if (offerUrl_ != null) {
size += _single_offerUrl_codec.CalculateSizeWithTag(OfferUrl);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Item other) {
if (other == null) {
return;
}
if (other.PlanId != 0) {
PlanId = other.PlanId;
}
if (other.Type != global::Keyapis.Subscription.V1.Offer.Types.Type.Unknown) {
Type = other.Type;
}
if (other.IsEnableAutoSubscribe != false) {
IsEnableAutoSubscribe = other.IsEnableAutoSubscribe;
}
if (other.IsDigitalWay != false) {
IsDigitalWay = other.IsDigitalWay;
}
if (other.offerUrl_ != null) {
if (offerUrl_ == null || other.OfferUrl != "") {
OfferUrl = other.OfferUrl;
}
}
_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: {
PlanId = input.ReadInt32();
break;
}
case 16: {
Type = (global::Keyapis.Subscription.V1.Offer.Types.Type) input.ReadEnum();
break;
}
case 24: {
IsEnableAutoSubscribe = input.ReadBool();
break;
}
case 32: {
IsDigitalWay = input.ReadBool();
break;
}
case 42: {
string value = _single_offerUrl_codec.Read(input);
if (offerUrl_ == null || value != "") {
OfferUrl = value;
}
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: {
PlanId = input.ReadInt32();
break;
}
case 16: {
Type = (global::Keyapis.Subscription.V1.Offer.Types.Type) input.ReadEnum();
break;
}
case 24: {
IsEnableAutoSubscribe = input.ReadBool();
break;
}
case 32: {
IsDigitalWay = input.ReadBool();
break;
}
case 42: {
string value = _single_offerUrl_codec.Read(ref input);
if (offerUrl_ == null || value != "") {
OfferUrl = value;
}
break;
}
}
}
}
#endif
}
///
/// Ошибка сохранения.
/// Эти проверки выполняются при работе с базой данных и сторонними сервисами
///
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.Subscription.V1.OfferTemplate.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 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;
case ReasonOneofCase.DuplicateTemplate:
DuplicateTemplate = other.DuplicateTemplate.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.Subscription.V1.OfferTemplate.Types.SavingError.Types.Conflict Conflict {
get { return reasonCase_ == ReasonOneofCase.Conflict ? (global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.Conflict) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Conflict;
}
}
/// Field number for the "duplicate_template" field.
public const int DuplicateTemplateFieldNumber = 2;
///
/// Дублирование шаблона
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.DuplicateTemplate DuplicateTemplate {
get { return reasonCase_ == ReasonOneofCase.DuplicateTemplate ? (global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.DuplicateTemplate) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.DuplicateTemplate;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
Conflict = 1,
DuplicateTemplate = 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 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 (!object.Equals(DuplicateTemplate, other.DuplicateTemplate)) 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();
if (reasonCase_ == ReasonOneofCase.DuplicateTemplate) hash ^= DuplicateTemplate.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 (reasonCase_ == ReasonOneofCase.DuplicateTemplate) {
output.WriteRawTag(18);
output.WriteMessage(DuplicateTemplate);
}
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 (reasonCase_ == ReasonOneofCase.DuplicateTemplate) {
output.WriteRawTag(18);
output.WriteMessage(DuplicateTemplate);
}
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 (reasonCase_ == ReasonOneofCase.DuplicateTemplate) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(DuplicateTemplate);
}
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.Subscription.V1.OfferTemplate.Types.SavingError.Types.Conflict();
}
Conflict.MergeFrom(other.Conflict);
break;
case ReasonOneofCase.DuplicateTemplate:
if (DuplicateTemplate == null) {
DuplicateTemplate = new global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.DuplicateTemplate();
}
DuplicateTemplate.MergeFrom(other.DuplicateTemplate);
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.Subscription.V1.OfferTemplate.Types.SavingError.Types.Conflict subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.Conflict();
if (reasonCase_ == ReasonOneofCase.Conflict) {
subBuilder.MergeFrom(Conflict);
}
input.ReadMessage(subBuilder);
Conflict = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.DuplicateTemplate subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.DuplicateTemplate();
if (reasonCase_ == ReasonOneofCase.DuplicateTemplate) {
subBuilder.MergeFrom(DuplicateTemplate);
}
input.ReadMessage(subBuilder);
DuplicateTemplate = 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.Subscription.V1.OfferTemplate.Types.SavingError.Types.Conflict subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.Conflict();
if (reasonCase_ == ReasonOneofCase.Conflict) {
subBuilder.MergeFrom(Conflict);
}
input.ReadMessage(subBuilder);
Conflict = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.DuplicateTemplate subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError.Types.DuplicateTemplate();
if (reasonCase_ == ReasonOneofCase.DuplicateTemplate) {
subBuilder.MergeFrom(DuplicateTemplate);
}
input.ReadMessage(subBuilder);
DuplicateTemplate = 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 {
///
/// Конфликт версий.
/// Причины:
/// - В базе хранится другая версия строки, значения updated_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.Subscription.V1.OfferTemplate.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
}
///
/// Шаблон с таким типом сервиса и правилами применимости уже существует.
/// Нельзя создать два или более шаблона с одинаковым типом сервиса и одинаковыми правилами применимости
///
public sealed partial class DuplicateTemplate : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DuplicateTemplate());
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.Subscription.V1.OfferTemplate.Types.SavingError.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 DuplicateTemplate() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DuplicateTemplate(DuplicateTemplate other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DuplicateTemplate Clone() {
return new DuplicateTemplate(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DuplicateTemplate);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DuplicateTemplate 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(DuplicateTemplate 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 OfferTemplateFilter : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OfferTemplateFilter());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 OfferTemplateFilter() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OfferTemplateFilter(OfferTemplateFilter other) : this() {
statusTypes_ = other.statusTypes_.Clone();
serviceTypes_ = other.serviceTypes_.Clone();
rfIds_ = other.rfIds_.Clone();
Text = other.Text;
applicabilityRulesContractTypes_ = other.applicabilityRulesContractTypes_.Clone();
applicabilityRulesClientTypes_ = other.applicabilityRulesClientTypes_.Clone();
applicabilityRulesBillingSystemTypes_ = other.applicabilityRulesBillingSystemTypes_.Clone();
IsExternalPaymentForSmartIntercom = other.IsExternalPaymentForSmartIntercom;
ApplicabilityRulesIsCmsPhone = other.ApplicabilityRulesIsCmsPhone;
ApplicabilityRulesIsSipPhone = other.ApplicabilityRulesIsSipPhone;
ApplicabilityRulesIsVideoMonitor = other.ApplicabilityRulesIsVideoMonitor;
applicabilityRulesRoomDeviceContractTypes_ = other.applicabilityRulesRoomDeviceContractTypes_.Clone();
applicabilityRulesMobileAppPackageTypes_ = other.applicabilityRulesMobileAppPackageTypes_.Clone();
IsCallForwardingEnabled = other.IsCallForwardingEnabled;
IsDigitalWay = other.IsDigitalWay;
planIds_ = other.planIds_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OfferTemplateFilter Clone() {
return new OfferTemplateFilter(this);
}
/// Field number for the "status_types" field.
public const int StatusTypesFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_statusTypes_codec
= pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Keyapis.Subscription.V1.OfferTemplate.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 "service_types" field.
public const int ServiceTypesFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_serviceTypes_codec
= pb::FieldCodec.ForEnum(18, x => (int) x, x => (global::Keyapis.Subscription.V1.OfferTemplate.Types.ServiceType) x);
private readonly pbc::RepeatedField serviceTypes_ = new pbc::RepeatedField();
///
/// По типам сервисов
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField ServiceTypes {
get { return serviceTypes_; }
}
/// Field number for the "rf_ids" field.
public const int RfIdsFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_rfIds_codec
= pb::FieldCodec.ForInt32(26);
private readonly pbc::RepeatedField rfIds_ = new pbc::RepeatedField();
///
/// По идентификаторам регионов (из правил применимости)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField RfIds {
get { return rfIds_; }
}
/// Field number for the "text" field.
public const int TextFieldNumber = 4;
private static readonly pb::FieldCodec _single_text_codec = pb::FieldCodec.ForClassWrapper(34);
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 "applicability_rules_contract_types" field.
public const int ApplicabilityRulesContractTypesFieldNumber = 5;
private static readonly pb::FieldCodec _repeated_applicabilityRulesContractTypes_codec
= pb::FieldCodec.ForEnum(42, x => (int) x, x => (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ContractType) x);
private readonly pbc::RepeatedField applicabilityRulesContractTypes_ = new pbc::RepeatedField();
///
/// По типам договорных схем (из правил применимости)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField ApplicabilityRulesContractTypes {
get { return applicabilityRulesContractTypes_; }
}
/// Field number for the "applicability_rules_client_types" field.
public const int ApplicabilityRulesClientTypesFieldNumber = 6;
private static readonly pb::FieldCodec _repeated_applicabilityRulesClientTypes_codec
= pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.ClientType) x);
private readonly pbc::RepeatedField applicabilityRulesClientTypes_ = new pbc::RepeatedField();
///
/// По типам клиентов (из правил применимости)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField ApplicabilityRulesClientTypes {
get { return applicabilityRulesClientTypes_; }
}
/// Field number for the "applicability_rules_billing_system_types" field.
public const int ApplicabilityRulesBillingSystemTypesFieldNumber = 7;
private static readonly pb::FieldCodec _repeated_applicabilityRulesBillingSystemTypes_codec
= pb::FieldCodec.ForEnum(58, x => (int) x, x => (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.BillingSystemType) x);
private readonly pbc::RepeatedField applicabilityRulesBillingSystemTypes_ = new pbc::RepeatedField();
///
/// По типам биллинговых систем (из правил применимости)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField ApplicabilityRulesBillingSystemTypes {
get { return applicabilityRulesBillingSystemTypes_; }
}
/// Field number for the "is_external_payment_for_smart_intercom" field.
public const int IsExternalPaymentForSmartIntercomFieldNumber = 8;
private static readonly pb::FieldCodec _single_isExternalPaymentForSmartIntercom_codec = pb::FieldCodec.ForStructWrapper(66);
private bool? isExternalPaymentForSmartIntercom_;
///
/// По признаку внешней оплаты умного домофона (из правил применимости)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool? IsExternalPaymentForSmartIntercom {
get { return isExternalPaymentForSmartIntercom_; }
set {
isExternalPaymentForSmartIntercom_ = value;
}
}
/// Field number for the "applicability_rules_is_cms_phone" field.
public const int ApplicabilityRulesIsCmsPhoneFieldNumber = 9;
private static readonly pb::FieldCodec _single_applicabilityRulesIsCmsPhone_codec = pb::FieldCodec.ForStructWrapper(74);
private bool? applicabilityRulesIsCmsPhone_;
///
/// По наличию CMS телефона в квартире (из правил применимости)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool? ApplicabilityRulesIsCmsPhone {
get { return applicabilityRulesIsCmsPhone_; }
set {
applicabilityRulesIsCmsPhone_ = value;
}
}
/// Field number for the "applicability_rules_is_sip_phone" field.
public const int ApplicabilityRulesIsSipPhoneFieldNumber = 10;
private static readonly pb::FieldCodec _single_applicabilityRulesIsSipPhone_codec = pb::FieldCodec.ForStructWrapper(82);
private bool? applicabilityRulesIsSipPhone_;
///
/// По наличию SIP телефона в квартире (из правил применимости)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool? ApplicabilityRulesIsSipPhone {
get { return applicabilityRulesIsSipPhone_; }
set {
applicabilityRulesIsSipPhone_ = value;
}
}
/// Field number for the "applicability_rules_is_video_monitor" field.
public const int ApplicabilityRulesIsVideoMonitorFieldNumber = 11;
private static readonly pb::FieldCodec _single_applicabilityRulesIsVideoMonitor_codec = pb::FieldCodec.ForStructWrapper(90);
private bool? applicabilityRulesIsVideoMonitor_;
///
/// По наличию видеомонитора в квартире (из правил применимости)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool? ApplicabilityRulesIsVideoMonitor {
get { return applicabilityRulesIsVideoMonitor_; }
set {
applicabilityRulesIsVideoMonitor_ = value;
}
}
/// Field number for the "applicability_rules_room_device_contract_types" field.
public const int ApplicabilityRulesRoomDeviceContractTypesFieldNumber = 12;
private static readonly pb::FieldCodec _repeated_applicabilityRulesRoomDeviceContractTypes_codec
= pb::FieldCodec.ForEnum(98, x => (int) x, x => (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.RoomDeviceContractType) x);
private readonly pbc::RepeatedField applicabilityRulesRoomDeviceContractTypes_ = new pbc::RepeatedField();
///
/// По типам договорной схемы устройства в квартире (из правил применимости)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField ApplicabilityRulesRoomDeviceContractTypes {
get { return applicabilityRulesRoomDeviceContractTypes_; }
}
/// Field number for the "applicability_rules_mobile_app_package_types" field.
public const int ApplicabilityRulesMobileAppPackageTypesFieldNumber = 13;
private static readonly pb::FieldCodec _repeated_applicabilityRulesMobileAppPackageTypes_codec
= pb::FieldCodec.ForEnum(106, x => (int) x, x => (global::Keyapis.Subscription.V1.OfferTemplate.Types.ApplicabilityRules.Types.MobileAppPackageType) x);
private readonly pbc::RepeatedField applicabilityRulesMobileAppPackageTypes_ = new pbc::RepeatedField();
///
/// По типам минимального бесплатного пакета мобильного приложения (из правил применимости)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField ApplicabilityRulesMobileAppPackageTypes {
get { return applicabilityRulesMobileAppPackageTypes_; }
}
/// Field number for the "is_call_forwarding_enabled" field.
public const int IsCallForwardingEnabledFieldNumber = 14;
private static readonly pb::FieldCodec _single_isCallForwardingEnabled_codec = pb::FieldCodec.ForStructWrapper(114);
private bool? isCallForwardingEnabled_;
///
/// По признаку переадресации на городские/мобильные номера (из правил применимости)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool? IsCallForwardingEnabled {
get { return isCallForwardingEnabled_; }
set {
isCallForwardingEnabled_ = value;
}
}
/// Field number for the "is_digital_way" field.
public const int IsDigitalWayFieldNumber = 15;
private static readonly pb::FieldCodec _single_isDigitalWay_codec = pb::FieldCodec.ForStructWrapper(122);
private bool? isDigitalWay_;
///
/// По признаку цифрового клиентского пути (из правил применимости)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool? IsDigitalWay {
get { return isDigitalWay_; }
set {
isDigitalWay_ = value;
}
}
/// Field number for the "plan_ids" field.
public const int PlanIdsFieldNumber = 16;
private static readonly pb::FieldCodec _repeated_planIds_codec
= pb::FieldCodec.ForInt32(130);
private readonly pbc::RepeatedField planIds_ = new pbc::RepeatedField();
///
/// По идентификаторам технологических планов (из элементов шаблона)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField PlanIds {
get { return planIds_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as OfferTemplateFilter);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OfferTemplateFilter other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!statusTypes_.Equals(other.statusTypes_)) return false;
if(!serviceTypes_.Equals(other.serviceTypes_)) return false;
if(!rfIds_.Equals(other.rfIds_)) return false;
if (Text != other.Text) return false;
if(!applicabilityRulesContractTypes_.Equals(other.applicabilityRulesContractTypes_)) return false;
if(!applicabilityRulesClientTypes_.Equals(other.applicabilityRulesClientTypes_)) return false;
if(!applicabilityRulesBillingSystemTypes_.Equals(other.applicabilityRulesBillingSystemTypes_)) return false;
if (IsExternalPaymentForSmartIntercom != other.IsExternalPaymentForSmartIntercom) return false;
if (ApplicabilityRulesIsCmsPhone != other.ApplicabilityRulesIsCmsPhone) return false;
if (ApplicabilityRulesIsSipPhone != other.ApplicabilityRulesIsSipPhone) return false;
if (ApplicabilityRulesIsVideoMonitor != other.ApplicabilityRulesIsVideoMonitor) return false;
if(!applicabilityRulesRoomDeviceContractTypes_.Equals(other.applicabilityRulesRoomDeviceContractTypes_)) return false;
if(!applicabilityRulesMobileAppPackageTypes_.Equals(other.applicabilityRulesMobileAppPackageTypes_)) return false;
if (IsCallForwardingEnabled != other.IsCallForwardingEnabled) return false;
if (IsDigitalWay != other.IsDigitalWay) return false;
if(!planIds_.Equals(other.planIds_)) 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 ^= statusTypes_.GetHashCode();
hash ^= serviceTypes_.GetHashCode();
hash ^= rfIds_.GetHashCode();
if (text_ != null) hash ^= Text.GetHashCode();
hash ^= applicabilityRulesContractTypes_.GetHashCode();
hash ^= applicabilityRulesClientTypes_.GetHashCode();
hash ^= applicabilityRulesBillingSystemTypes_.GetHashCode();
if (isExternalPaymentForSmartIntercom_ != null) hash ^= IsExternalPaymentForSmartIntercom.GetHashCode();
if (applicabilityRulesIsCmsPhone_ != null) hash ^= ApplicabilityRulesIsCmsPhone.GetHashCode();
if (applicabilityRulesIsSipPhone_ != null) hash ^= ApplicabilityRulesIsSipPhone.GetHashCode();
if (applicabilityRulesIsVideoMonitor_ != null) hash ^= ApplicabilityRulesIsVideoMonitor.GetHashCode();
hash ^= applicabilityRulesRoomDeviceContractTypes_.GetHashCode();
hash ^= applicabilityRulesMobileAppPackageTypes_.GetHashCode();
if (isCallForwardingEnabled_ != null) hash ^= IsCallForwardingEnabled.GetHashCode();
if (isDigitalWay_ != null) hash ^= IsDigitalWay.GetHashCode();
hash ^= planIds_.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
statusTypes_.WriteTo(output, _repeated_statusTypes_codec);
serviceTypes_.WriteTo(output, _repeated_serviceTypes_codec);
rfIds_.WriteTo(output, _repeated_rfIds_codec);
if (text_ != null) {
_single_text_codec.WriteTagAndValue(output, Text);
}
applicabilityRulesContractTypes_.WriteTo(output, _repeated_applicabilityRulesContractTypes_codec);
applicabilityRulesClientTypes_.WriteTo(output, _repeated_applicabilityRulesClientTypes_codec);
applicabilityRulesBillingSystemTypes_.WriteTo(output, _repeated_applicabilityRulesBillingSystemTypes_codec);
if (isExternalPaymentForSmartIntercom_ != null) {
_single_isExternalPaymentForSmartIntercom_codec.WriteTagAndValue(output, IsExternalPaymentForSmartIntercom);
}
if (applicabilityRulesIsCmsPhone_ != null) {
_single_applicabilityRulesIsCmsPhone_codec.WriteTagAndValue(output, ApplicabilityRulesIsCmsPhone);
}
if (applicabilityRulesIsSipPhone_ != null) {
_single_applicabilityRulesIsSipPhone_codec.WriteTagAndValue(output, ApplicabilityRulesIsSipPhone);
}
if (applicabilityRulesIsVideoMonitor_ != null) {
_single_applicabilityRulesIsVideoMonitor_codec.WriteTagAndValue(output, ApplicabilityRulesIsVideoMonitor);
}
applicabilityRulesRoomDeviceContractTypes_.WriteTo(output, _repeated_applicabilityRulesRoomDeviceContractTypes_codec);
applicabilityRulesMobileAppPackageTypes_.WriteTo(output, _repeated_applicabilityRulesMobileAppPackageTypes_codec);
if (isCallForwardingEnabled_ != null) {
_single_isCallForwardingEnabled_codec.WriteTagAndValue(output, IsCallForwardingEnabled);
}
if (isDigitalWay_ != null) {
_single_isDigitalWay_codec.WriteTagAndValue(output, IsDigitalWay);
}
planIds_.WriteTo(output, _repeated_planIds_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) {
statusTypes_.WriteTo(ref output, _repeated_statusTypes_codec);
serviceTypes_.WriteTo(ref output, _repeated_serviceTypes_codec);
rfIds_.WriteTo(ref output, _repeated_rfIds_codec);
if (text_ != null) {
_single_text_codec.WriteTagAndValue(ref output, Text);
}
applicabilityRulesContractTypes_.WriteTo(ref output, _repeated_applicabilityRulesContractTypes_codec);
applicabilityRulesClientTypes_.WriteTo(ref output, _repeated_applicabilityRulesClientTypes_codec);
applicabilityRulesBillingSystemTypes_.WriteTo(ref output, _repeated_applicabilityRulesBillingSystemTypes_codec);
if (isExternalPaymentForSmartIntercom_ != null) {
_single_isExternalPaymentForSmartIntercom_codec.WriteTagAndValue(ref output, IsExternalPaymentForSmartIntercom);
}
if (applicabilityRulesIsCmsPhone_ != null) {
_single_applicabilityRulesIsCmsPhone_codec.WriteTagAndValue(ref output, ApplicabilityRulesIsCmsPhone);
}
if (applicabilityRulesIsSipPhone_ != null) {
_single_applicabilityRulesIsSipPhone_codec.WriteTagAndValue(ref output, ApplicabilityRulesIsSipPhone);
}
if (applicabilityRulesIsVideoMonitor_ != null) {
_single_applicabilityRulesIsVideoMonitor_codec.WriteTagAndValue(ref output, ApplicabilityRulesIsVideoMonitor);
}
applicabilityRulesRoomDeviceContractTypes_.WriteTo(ref output, _repeated_applicabilityRulesRoomDeviceContractTypes_codec);
applicabilityRulesMobileAppPackageTypes_.WriteTo(ref output, _repeated_applicabilityRulesMobileAppPackageTypes_codec);
if (isCallForwardingEnabled_ != null) {
_single_isCallForwardingEnabled_codec.WriteTagAndValue(ref output, IsCallForwardingEnabled);
}
if (isDigitalWay_ != null) {
_single_isDigitalWay_codec.WriteTagAndValue(ref output, IsDigitalWay);
}
planIds_.WriteTo(ref output, _repeated_planIds_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 += statusTypes_.CalculateSize(_repeated_statusTypes_codec);
size += serviceTypes_.CalculateSize(_repeated_serviceTypes_codec);
size += rfIds_.CalculateSize(_repeated_rfIds_codec);
if (text_ != null) {
size += _single_text_codec.CalculateSizeWithTag(Text);
}
size += applicabilityRulesContractTypes_.CalculateSize(_repeated_applicabilityRulesContractTypes_codec);
size += applicabilityRulesClientTypes_.CalculateSize(_repeated_applicabilityRulesClientTypes_codec);
size += applicabilityRulesBillingSystemTypes_.CalculateSize(_repeated_applicabilityRulesBillingSystemTypes_codec);
if (isExternalPaymentForSmartIntercom_ != null) {
size += _single_isExternalPaymentForSmartIntercom_codec.CalculateSizeWithTag(IsExternalPaymentForSmartIntercom);
}
if (applicabilityRulesIsCmsPhone_ != null) {
size += _single_applicabilityRulesIsCmsPhone_codec.CalculateSizeWithTag(ApplicabilityRulesIsCmsPhone);
}
if (applicabilityRulesIsSipPhone_ != null) {
size += _single_applicabilityRulesIsSipPhone_codec.CalculateSizeWithTag(ApplicabilityRulesIsSipPhone);
}
if (applicabilityRulesIsVideoMonitor_ != null) {
size += _single_applicabilityRulesIsVideoMonitor_codec.CalculateSizeWithTag(ApplicabilityRulesIsVideoMonitor);
}
size += applicabilityRulesRoomDeviceContractTypes_.CalculateSize(_repeated_applicabilityRulesRoomDeviceContractTypes_codec);
size += applicabilityRulesMobileAppPackageTypes_.CalculateSize(_repeated_applicabilityRulesMobileAppPackageTypes_codec);
if (isCallForwardingEnabled_ != null) {
size += _single_isCallForwardingEnabled_codec.CalculateSizeWithTag(IsCallForwardingEnabled);
}
if (isDigitalWay_ != null) {
size += _single_isDigitalWay_codec.CalculateSizeWithTag(IsDigitalWay);
}
size += planIds_.CalculateSize(_repeated_planIds_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(OfferTemplateFilter other) {
if (other == null) {
return;
}
statusTypes_.Add(other.statusTypes_);
serviceTypes_.Add(other.serviceTypes_);
rfIds_.Add(other.rfIds_);
if (other.text_ != null) {
if (text_ == null || other.Text != "") {
Text = other.Text;
}
}
applicabilityRulesContractTypes_.Add(other.applicabilityRulesContractTypes_);
applicabilityRulesClientTypes_.Add(other.applicabilityRulesClientTypes_);
applicabilityRulesBillingSystemTypes_.Add(other.applicabilityRulesBillingSystemTypes_);
if (other.isExternalPaymentForSmartIntercom_ != null) {
if (isExternalPaymentForSmartIntercom_ == null || other.IsExternalPaymentForSmartIntercom != false) {
IsExternalPaymentForSmartIntercom = other.IsExternalPaymentForSmartIntercom;
}
}
if (other.applicabilityRulesIsCmsPhone_ != null) {
if (applicabilityRulesIsCmsPhone_ == null || other.ApplicabilityRulesIsCmsPhone != false) {
ApplicabilityRulesIsCmsPhone = other.ApplicabilityRulesIsCmsPhone;
}
}
if (other.applicabilityRulesIsSipPhone_ != null) {
if (applicabilityRulesIsSipPhone_ == null || other.ApplicabilityRulesIsSipPhone != false) {
ApplicabilityRulesIsSipPhone = other.ApplicabilityRulesIsSipPhone;
}
}
if (other.applicabilityRulesIsVideoMonitor_ != null) {
if (applicabilityRulesIsVideoMonitor_ == null || other.ApplicabilityRulesIsVideoMonitor != false) {
ApplicabilityRulesIsVideoMonitor = other.ApplicabilityRulesIsVideoMonitor;
}
}
applicabilityRulesRoomDeviceContractTypes_.Add(other.applicabilityRulesRoomDeviceContractTypes_);
applicabilityRulesMobileAppPackageTypes_.Add(other.applicabilityRulesMobileAppPackageTypes_);
if (other.isCallForwardingEnabled_ != null) {
if (isCallForwardingEnabled_ == null || other.IsCallForwardingEnabled != false) {
IsCallForwardingEnabled = other.IsCallForwardingEnabled;
}
}
if (other.isDigitalWay_ != null) {
if (isDigitalWay_ == null || other.IsDigitalWay != false) {
IsDigitalWay = other.IsDigitalWay;
}
}
planIds_.Add(other.planIds_);
_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: {
statusTypes_.AddEntriesFrom(input, _repeated_statusTypes_codec);
break;
}
case 18:
case 16: {
serviceTypes_.AddEntriesFrom(input, _repeated_serviceTypes_codec);
break;
}
case 26:
case 24: {
rfIds_.AddEntriesFrom(input, _repeated_rfIds_codec);
break;
}
case 34: {
string value = _single_text_codec.Read(input);
if (text_ == null || value != "") {
Text = value;
}
break;
}
case 42:
case 40: {
applicabilityRulesContractTypes_.AddEntriesFrom(input, _repeated_applicabilityRulesContractTypes_codec);
break;
}
case 50:
case 48: {
applicabilityRulesClientTypes_.AddEntriesFrom(input, _repeated_applicabilityRulesClientTypes_codec);
break;
}
case 58:
case 56: {
applicabilityRulesBillingSystemTypes_.AddEntriesFrom(input, _repeated_applicabilityRulesBillingSystemTypes_codec);
break;
}
case 66: {
bool? value = _single_isExternalPaymentForSmartIntercom_codec.Read(input);
if (isExternalPaymentForSmartIntercom_ == null || value != false) {
IsExternalPaymentForSmartIntercom = value;
}
break;
}
case 74: {
bool? value = _single_applicabilityRulesIsCmsPhone_codec.Read(input);
if (applicabilityRulesIsCmsPhone_ == null || value != false) {
ApplicabilityRulesIsCmsPhone = value;
}
break;
}
case 82: {
bool? value = _single_applicabilityRulesIsSipPhone_codec.Read(input);
if (applicabilityRulesIsSipPhone_ == null || value != false) {
ApplicabilityRulesIsSipPhone = value;
}
break;
}
case 90: {
bool? value = _single_applicabilityRulesIsVideoMonitor_codec.Read(input);
if (applicabilityRulesIsVideoMonitor_ == null || value != false) {
ApplicabilityRulesIsVideoMonitor = value;
}
break;
}
case 98:
case 96: {
applicabilityRulesRoomDeviceContractTypes_.AddEntriesFrom(input, _repeated_applicabilityRulesRoomDeviceContractTypes_codec);
break;
}
case 106:
case 104: {
applicabilityRulesMobileAppPackageTypes_.AddEntriesFrom(input, _repeated_applicabilityRulesMobileAppPackageTypes_codec);
break;
}
case 114: {
bool? value = _single_isCallForwardingEnabled_codec.Read(input);
if (isCallForwardingEnabled_ == null || value != false) {
IsCallForwardingEnabled = value;
}
break;
}
case 122: {
bool? value = _single_isDigitalWay_codec.Read(input);
if (isDigitalWay_ == null || value != false) {
IsDigitalWay = value;
}
break;
}
case 130:
case 128: {
planIds_.AddEntriesFrom(input, _repeated_planIds_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: {
statusTypes_.AddEntriesFrom(ref input, _repeated_statusTypes_codec);
break;
}
case 18:
case 16: {
serviceTypes_.AddEntriesFrom(ref input, _repeated_serviceTypes_codec);
break;
}
case 26:
case 24: {
rfIds_.AddEntriesFrom(ref input, _repeated_rfIds_codec);
break;
}
case 34: {
string value = _single_text_codec.Read(ref input);
if (text_ == null || value != "") {
Text = value;
}
break;
}
case 42:
case 40: {
applicabilityRulesContractTypes_.AddEntriesFrom(ref input, _repeated_applicabilityRulesContractTypes_codec);
break;
}
case 50:
case 48: {
applicabilityRulesClientTypes_.AddEntriesFrom(ref input, _repeated_applicabilityRulesClientTypes_codec);
break;
}
case 58:
case 56: {
applicabilityRulesBillingSystemTypes_.AddEntriesFrom(ref input, _repeated_applicabilityRulesBillingSystemTypes_codec);
break;
}
case 66: {
bool? value = _single_isExternalPaymentForSmartIntercom_codec.Read(ref input);
if (isExternalPaymentForSmartIntercom_ == null || value != false) {
IsExternalPaymentForSmartIntercom = value;
}
break;
}
case 74: {
bool? value = _single_applicabilityRulesIsCmsPhone_codec.Read(ref input);
if (applicabilityRulesIsCmsPhone_ == null || value != false) {
ApplicabilityRulesIsCmsPhone = value;
}
break;
}
case 82: {
bool? value = _single_applicabilityRulesIsSipPhone_codec.Read(ref input);
if (applicabilityRulesIsSipPhone_ == null || value != false) {
ApplicabilityRulesIsSipPhone = value;
}
break;
}
case 90: {
bool? value = _single_applicabilityRulesIsVideoMonitor_codec.Read(ref input);
if (applicabilityRulesIsVideoMonitor_ == null || value != false) {
ApplicabilityRulesIsVideoMonitor = value;
}
break;
}
case 98:
case 96: {
applicabilityRulesRoomDeviceContractTypes_.AddEntriesFrom(ref input, _repeated_applicabilityRulesRoomDeviceContractTypes_codec);
break;
}
case 106:
case 104: {
applicabilityRulesMobileAppPackageTypes_.AddEntriesFrom(ref input, _repeated_applicabilityRulesMobileAppPackageTypes_codec);
break;
}
case 114: {
bool? value = _single_isCallForwardingEnabled_codec.Read(ref input);
if (isCallForwardingEnabled_ == null || value != false) {
IsCallForwardingEnabled = value;
}
break;
}
case 122: {
bool? value = _single_isDigitalWay_codec.Read(ref input);
if (isDigitalWay_ == null || value != false) {
IsDigitalWay = value;
}
break;
}
case 130:
case 128: {
planIds_.AddEntriesFrom(ref input, _repeated_planIds_codec);
break;
}
}
}
}
#endif
}
///
/// Пагинация по шаблонам КВ
///
public sealed partial class OfferTemplatePaging : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OfferTemplatePaging());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 OfferTemplatePaging() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OfferTemplatePaging(OfferTemplatePaging 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 OfferTemplatePaging Clone() {
return new OfferTemplatePaging(this);
}
/// Field number for the "order_by_type" field.
public const int OrderByTypeFieldNumber = 1;
private global::Keyapis.Subscription.V1.OfferTemplatePaging.Types.OrderByType orderByType_ = global::Keyapis.Subscription.V1.OfferTemplatePaging.Types.OrderByType.Unknown;
///
/// Тип значения сортировки.
/// Если значение не передано, то будет взято значение по умолчанию.
/// # По умолчанию: CREATED_AT
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplatePaging.Types.OrderByType OrderByType {
get { return orderByType_; }
set {
orderByType_ = value;
}
}
/// Field number for the "direction_type" field.
public const int DirectionTypeFieldNumber = 2;
private global::Keyapis.Subscription.V1.OfferTemplatePaging.Types.DirectionType directionType_ = global::Keyapis.Subscription.V1.OfferTemplatePaging.Types.DirectionType.Unknown;
///
/// Тип направления сортировки.
/// # По умолчанию: DESC
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplatePaging.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 OfferTemplatePaging);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OfferTemplatePaging 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.Subscription.V1.OfferTemplatePaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode();
if (DirectionType != global::Keyapis.Subscription.V1.OfferTemplatePaging.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.Subscription.V1.OfferTemplatePaging.Types.OrderByType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) OrderByType);
}
if (DirectionType != global::Keyapis.Subscription.V1.OfferTemplatePaging.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.Subscription.V1.OfferTemplatePaging.Types.OrderByType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) OrderByType);
}
if (DirectionType != global::Keyapis.Subscription.V1.OfferTemplatePaging.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.Subscription.V1.OfferTemplatePaging.Types.OrderByType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType);
}
if (DirectionType != global::Keyapis.Subscription.V1.OfferTemplatePaging.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(OfferTemplatePaging other) {
if (other == null) {
return;
}
if (other.OrderByType != global::Keyapis.Subscription.V1.OfferTemplatePaging.Types.OrderByType.Unknown) {
OrderByType = other.OrderByType;
}
if (other.DirectionType != global::Keyapis.Subscription.V1.OfferTemplatePaging.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.Subscription.V1.OfferTemplatePaging.Types.OrderByType) input.ReadEnum();
break;
}
case 16: {
DirectionType = (global::Keyapis.Subscription.V1.OfferTemplatePaging.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.Subscription.V1.OfferTemplatePaging.Types.OrderByType) input.ReadEnum();
break;
}
case 16: {
DirectionType = (global::Keyapis.Subscription.V1.OfferTemplatePaging.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 OfferTemplatePaging 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("CREATED_AT")] CreatedAt = 1,
///
/// По наименованию
///
[pbr::OriginalName("TITLE")] Title = 2,
}
///
/// Справочник типов направлений сортировки.
/// # Тип: 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 GetOfferTemplateRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOfferTemplateRequest());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 GetOfferTemplateRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateRequest(GetOfferTemplateRequest other) : this() {
id_ = other.id_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateRequest Clone() {
return new GetOfferTemplateRequest(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 GetOfferTemplateRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetOfferTemplateRequest 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(GetOfferTemplateRequest 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 GetOfferTemplateResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOfferTemplateResponse());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 GetOfferTemplateResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateResponse(GetOfferTemplateResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateResponse Clone() {
return new GetOfferTemplateResponse(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.Subscription.V1.OfferTemplate Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Subscription.V1.OfferTemplate) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 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 GetOfferTemplateResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetOfferTemplateResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Data, other.Data)) 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();
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 (_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 (_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 (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetOfferTemplateResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.Subscription.V1.OfferTemplate();
}
Data.MergeFrom(other.Data);
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.Subscription.V1.OfferTemplate subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = 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.Subscription.V1.OfferTemplate subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Запрос получения списка шаблонов КВ
///
public sealed partial class GetOfferTemplateListRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOfferTemplateListRequest());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 GetOfferTemplateListRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateListRequest(GetOfferTemplateListRequest 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 GetOfferTemplateListRequest Clone() {
return new GetOfferTemplateListRequest(this);
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 1;
private global::Keyapis.Subscription.V1.OfferTemplateFilter filter_;
///
/// Фильтр
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplateFilter 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.Subscription.V1.OfferTemplatePaging Paging {
get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.Subscription.V1.OfferTemplatePaging) 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 GetOfferTemplateListRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetOfferTemplateListRequest 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(GetOfferTemplateListRequest other) {
if (other == null) {
return;
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.Subscription.V1.OfferTemplateFilter();
}
Filter.MergeFrom(other.Filter);
}
switch (other.PaginationCase) {
case PaginationOneofCase.Paging:
if (Paging == null) {
Paging = new global::Keyapis.Subscription.V1.OfferTemplatePaging();
}
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.Subscription.V1.OfferTemplateFilter();
}
input.ReadMessage(Filter);
break;
}
case 18: {
global::Keyapis.Subscription.V1.OfferTemplatePaging subBuilder = new global::Keyapis.Subscription.V1.OfferTemplatePaging();
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.Subscription.V1.OfferTemplateFilter();
}
input.ReadMessage(Filter);
break;
}
case 18: {
global::Keyapis.Subscription.V1.OfferTemplatePaging subBuilder = new global::Keyapis.Subscription.V1.OfferTemplatePaging();
if (paginationCase_ == PaginationOneofCase.Paging) {
subBuilder.MergeFrom(Paging);
}
input.ReadMessage(subBuilder);
Paging = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения списка шаблонов КВ
///
public sealed partial class GetOfferTemplateListResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOfferTemplateListResponse());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 GetOfferTemplateListResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateListResponse(GetOfferTemplateListResponse 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 GetOfferTemplateListResponse Clone() {
return new GetOfferTemplateListResponse(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.Subscription.V1.OfferTemplate Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Subscription.V1.OfferTemplate) 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.Subscription.V1.GetOfferTemplateListResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Subscription.V1.GetOfferTemplateListResponse.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 GetOfferTemplateListResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetOfferTemplateListResponse 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(GetOfferTemplateListResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.Subscription.V1.OfferTemplate();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Subscription.V1.GetOfferTemplateListResponse.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.Subscription.V1.OfferTemplate subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.GetOfferTemplateListResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetOfferTemplateListResponse.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.Subscription.V1.OfferTemplate subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.GetOfferTemplateListResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetOfferTemplateListResponse.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 GetOfferTemplateListResponse 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.Subscription.V1.GetOfferTemplateListResponse.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.Subscription.V1.ValidationError Validation {
get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Subscription.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.Subscription.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.Subscription.V1.ValidationError subBuilder = new global::Keyapis.Subscription.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.Subscription.V1.ValidationError subBuilder = new global::Keyapis.Subscription.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос получения списка Шаблонов КВ по ОРПОН дома
///
public sealed partial class GetOfferTemplateByOrponListRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOfferTemplateByOrponListRequest());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 GetOfferTemplateByOrponListRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateByOrponListRequest(GetOfferTemplateByOrponListRequest other) : this() {
orpon_ = other.orpon_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateByOrponListRequest Clone() {
return new GetOfferTemplateByOrponListRequest(this);
}
/// Field number for the "orpon" field.
public const int OrponFieldNumber = 1;
private long orpon_;
///
/// ОРПОН. Идентификатор дома
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long Orpon {
get { return orpon_; }
set {
orpon_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetOfferTemplateByOrponListRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetOfferTemplateByOrponListRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Orpon != other.Orpon) 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 (Orpon != 0L) hash ^= Orpon.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 (Orpon != 0L) {
output.WriteRawTag(8);
output.WriteInt64(Orpon);
}
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 (Orpon != 0L) {
output.WriteRawTag(8);
output.WriteInt64(Orpon);
}
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 (Orpon != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetOfferTemplateByOrponListRequest other) {
if (other == null) {
return;
}
if (other.Orpon != 0L) {
Orpon = other.Orpon;
}
_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: {
Orpon = input.ReadInt64();
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: {
Orpon = input.ReadInt64();
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения списка Шаблонов КВ по ОРПОН дома
///
public sealed partial class GetOfferTemplateByOrponListResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOfferTemplateByOrponListResponse());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 GetOfferTemplateByOrponListResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateByOrponListResponse(GetOfferTemplateByOrponListResponse 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 GetOfferTemplateByOrponListResponse Clone() {
return new GetOfferTemplateByOrponListResponse(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.Subscription.V1.OfferTemplate Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Subscription.V1.OfferTemplate) 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.Subscription.V1.GetOfferTemplateByOrponListResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListResponse.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 GetOfferTemplateByOrponListResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetOfferTemplateByOrponListResponse 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(GetOfferTemplateByOrponListResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.Subscription.V1.OfferTemplate();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListResponse.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.Subscription.V1.OfferTemplate subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListResponse.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.Subscription.V1.OfferTemplate subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListResponse.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 GetOfferTemplateByOrponListResponse 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.Subscription.V1.GetOfferTemplateByOrponListResponse.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.Subscription.V1.ValidationError Validation {
get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Subscription.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.Subscription.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.Subscription.V1.ValidationError subBuilder = new global::Keyapis.Subscription.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.Subscription.V1.ValidationError subBuilder = new global::Keyapis.Subscription.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос получения количества шаблонов КВ
///
public sealed partial class GetOfferTemplateCountRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOfferTemplateCountRequest());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 GetOfferTemplateCountRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateCountRequest(GetOfferTemplateCountRequest 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 GetOfferTemplateCountRequest Clone() {
return new GetOfferTemplateCountRequest(this);
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 1;
private global::Keyapis.Subscription.V1.OfferTemplateFilter filter_;
///
/// Фильтр
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplateFilter 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 GetOfferTemplateCountRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetOfferTemplateCountRequest 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(GetOfferTemplateCountRequest other) {
if (other == null) {
return;
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.Subscription.V1.OfferTemplateFilter();
}
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.Subscription.V1.OfferTemplateFilter();
}
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.Subscription.V1.OfferTemplateFilter();
}
input.ReadMessage(Filter);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения количества шаблонов КВ
///
public sealed partial class GetOfferTemplateCountResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOfferTemplateCountResponse());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 GetOfferTemplateCountResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateCountResponse(GetOfferTemplateCountResponse 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 GetOfferTemplateCountResponse Clone() {
return new GetOfferTemplateCountResponse(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.Subscription.V1.GetOfferTemplateCountResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Subscription.V1.GetOfferTemplateCountResponse.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 GetOfferTemplateCountResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetOfferTemplateCountResponse 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(GetOfferTemplateCountResponse 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.Subscription.V1.GetOfferTemplateCountResponse.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.Subscription.V1.GetOfferTemplateCountResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetOfferTemplateCountResponse.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.Subscription.V1.GetOfferTemplateCountResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetOfferTemplateCountResponse.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 GetOfferTemplateCountResponse 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.Subscription.V1.GetOfferTemplateCountResponse.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.Subscription.V1.ValidationError Validation {
get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Subscription.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.Subscription.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.Subscription.V1.ValidationError subBuilder = new global::Keyapis.Subscription.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.Subscription.V1.ValidationError subBuilder = new global::Keyapis.Subscription.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос получения количества Шаблонов КВ по ОРПОН дома
///
public sealed partial class GetOfferTemplateByOrponCountRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOfferTemplateByOrponCountRequest());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 GetOfferTemplateByOrponCountRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateByOrponCountRequest(GetOfferTemplateByOrponCountRequest other) : this() {
orpon_ = other.orpon_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateByOrponCountRequest Clone() {
return new GetOfferTemplateByOrponCountRequest(this);
}
/// Field number for the "orpon" field.
public const int OrponFieldNumber = 1;
private long orpon_;
///
/// ОРПОН. Идентификатор дома
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long Orpon {
get { return orpon_; }
set {
orpon_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetOfferTemplateByOrponCountRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetOfferTemplateByOrponCountRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Orpon != other.Orpon) 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 (Orpon != 0L) hash ^= Orpon.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 (Orpon != 0L) {
output.WriteRawTag(8);
output.WriteInt64(Orpon);
}
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 (Orpon != 0L) {
output.WriteRawTag(8);
output.WriteInt64(Orpon);
}
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 (Orpon != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetOfferTemplateByOrponCountRequest other) {
if (other == null) {
return;
}
if (other.Orpon != 0L) {
Orpon = other.Orpon;
}
_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: {
Orpon = input.ReadInt64();
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: {
Orpon = input.ReadInt64();
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения количества Шаблонов КВ по ОРПОН дома
///
public sealed partial class GetOfferTemplateByOrponCountResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOfferTemplateByOrponCountResponse());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 GetOfferTemplateByOrponCountResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOfferTemplateByOrponCountResponse(GetOfferTemplateByOrponCountResponse 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 GetOfferTemplateByOrponCountResponse Clone() {
return new GetOfferTemplateByOrponCountResponse(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.Subscription.V1.GetOfferTemplateByOrponCountResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountResponse.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 GetOfferTemplateByOrponCountResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetOfferTemplateByOrponCountResponse 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(GetOfferTemplateByOrponCountResponse 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.Subscription.V1.GetOfferTemplateByOrponCountResponse.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.Subscription.V1.GetOfferTemplateByOrponCountResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountResponse.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.Subscription.V1.GetOfferTemplateByOrponCountResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountResponse.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 GetOfferTemplateByOrponCountResponse 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.Subscription.V1.GetOfferTemplateByOrponCountResponse.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.Subscription.V1.ValidationError Validation {
get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Subscription.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.Subscription.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.Subscription.V1.ValidationError subBuilder = new global::Keyapis.Subscription.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.Subscription.V1.ValidationError subBuilder = new global::Keyapis.Subscription.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос создания/редактирования шаблона КВ
///
public sealed partial class PostOfferTemplateRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostOfferTemplateRequest());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 PostOfferTemplateRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostOfferTemplateRequest(PostOfferTemplateRequest 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 PostOfferTemplateRequest Clone() {
return new PostOfferTemplateRequest(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
private global::Keyapis.Subscription.V1.OfferTemplate data_;
///
/// Шаблон КВ.
/// Если id не передан — создаётся новый шаблон.
/// Если id передан — редактируется существующий шаблон
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.OfferTemplate 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 PostOfferTemplateRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostOfferTemplateRequest 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(PostOfferTemplateRequest other) {
if (other == null) {
return;
}
if (other.data_ != null) {
if (data_ == null) {
Data = new global::Keyapis.Subscription.V1.OfferTemplate();
}
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.Subscription.V1.OfferTemplate();
}
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.Subscription.V1.OfferTemplate();
}
input.ReadMessage(Data);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос создания/редактирования шаблона КВ
///
public sealed partial class PostOfferTemplateResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostOfferTemplateResponse());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 PostOfferTemplateResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostOfferTemplateResponse(PostOfferTemplateResponse 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 PostOfferTemplateResponse Clone() {
return new PostOfferTemplateResponse(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.Subscription.V1.OfferTemplate Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Subscription.V1.OfferTemplate) 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.Subscription.V1.PostOfferTemplateResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Subscription.V1.PostOfferTemplateResponse.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 PostOfferTemplateResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostOfferTemplateResponse 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(PostOfferTemplateResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.Subscription.V1.OfferTemplate();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Subscription.V1.PostOfferTemplateResponse.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.Subscription.V1.OfferTemplate subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.PostOfferTemplateResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.PostOfferTemplateResponse.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.Subscription.V1.OfferTemplate subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.PostOfferTemplateResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.PostOfferTemplateResponse.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 PostOfferTemplateResponse 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.Subscription.V1.PostOfferTemplateResponse.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.Subscription.V1.ValidationError Validation {
get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Subscription.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.Subscription.V1.OfferTemplate.Types.SavingError Saving {
get { return reasonCase_ == ReasonOneofCase.Saving ? (global::Keyapis.Subscription.V1.OfferTemplate.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.Subscription.V1.ValidationError();
}
Validation.MergeFrom(other.Validation);
break;
case ReasonOneofCase.Saving:
if (Saving == null) {
Saving = new global::Keyapis.Subscription.V1.OfferTemplate.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.Subscription.V1.ValidationError subBuilder = new global::Keyapis.Subscription.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate.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.Subscription.V1.ValidationError subBuilder = new global::Keyapis.Subscription.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate.Types.SavingError();
if (reasonCase_ == ReasonOneofCase.Saving) {
subBuilder.MergeFrom(Saving);
}
input.ReadMessage(subBuilder);
Saving = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос архивации шаблона КВ
///
public sealed partial class DeleteOfferTemplateRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteOfferTemplateRequest());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 DeleteOfferTemplateRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteOfferTemplateRequest(DeleteOfferTemplateRequest other) : this() {
id_ = other.id_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteOfferTemplateRequest Clone() {
return new DeleteOfferTemplateRequest(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 DeleteOfferTemplateRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeleteOfferTemplateRequest 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(DeleteOfferTemplateRequest 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 DeleteOfferTemplateResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteOfferTemplateResponse());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 DeleteOfferTemplateResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteOfferTemplateResponse(DeleteOfferTemplateResponse other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteOfferTemplateResponse Clone() {
return new DeleteOfferTemplateResponse(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeleteOfferTemplateResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeleteOfferTemplateResponse 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(DeleteOfferTemplateResponse 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
}
///
/// Запрос восстановления шаблона КВ из архива
///
public sealed partial class PostOfferTemplateRestoreRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostOfferTemplateRestoreRequest());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 PostOfferTemplateRestoreRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostOfferTemplateRestoreRequest(PostOfferTemplateRestoreRequest other) : this() {
id_ = other.id_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostOfferTemplateRestoreRequest Clone() {
return new PostOfferTemplateRestoreRequest(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 PostOfferTemplateRestoreRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostOfferTemplateRestoreRequest 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(PostOfferTemplateRestoreRequest 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 PostOfferTemplateRestoreResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostOfferTemplateRestoreResponse());
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 PostOfferTemplateRestoreResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostOfferTemplateRestoreResponse(PostOfferTemplateRestoreResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostOfferTemplateRestoreResponse Clone() {
return new PostOfferTemplateRestoreResponse(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.Subscription.V1.OfferTemplate Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Subscription.V1.OfferTemplate) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 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 PostOfferTemplateRestoreResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostOfferTemplateRestoreResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Data, other.Data)) 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();
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 (_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 (_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 (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostOfferTemplateRestoreResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.Subscription.V1.OfferTemplate();
}
Data.MergeFrom(other.Data);
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.Subscription.V1.OfferTemplate subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = 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.Subscription.V1.OfferTemplate subBuilder = new global::Keyapis.Subscription.V1.OfferTemplate();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Ошибки валидации.
/// Эти проверки выполняются до обращения в базу данных
///
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.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.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 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