// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/subscription/v1/keyapis_subscription_subscription_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_subscription_v1.proto public static partial class KeyapisSubscriptionSubscriptionV1Reflection { #region Descriptor /// File descriptor for keyapis/subscription/v1/keyapis_subscription_subscription_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisSubscriptionSubscriptionV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CkJrZXlhcGlzL3N1YnNjcmlwdGlvbi92MS9rZXlhcGlzX3N1YnNjcmlwdGlv", "bl9zdWJzY3JpcHRpb25fdjEucHJvdG8SF2tleWFwaXMuc3Vic2NyaXB0aW9u", "LnYxGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGhxnb29nbGUv", "YXBpL2Fubm90YXRpb25zLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2", "aW9yLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90bxoe", "Z29vZ2xlL3Byb3RvYnVmL3dyYXBwZXJzLnByb3RvGjtrZXlhcGlzL3N1YnNj", "cmlwdGlvbi92MS9rZXlhcGlzX3N1YnNjcmlwdGlvbl9vZmZlcl92MS5wcm90", "byK7BwoMU3Vic2NyaXB0aW9uEgoKAmlkGAEgASgJEhIKBW9ycG9uGAIgASgD", "QgPgQQISGAoLZmxhdF9udW1iZXIYAyABKAlCA+BBAhIVCghvZmZlcl9pZBgE", "IAEoBUID4EEDEkoKC3N0YXR1c190eXBlGAUgASgOMjAua2V5YXBpcy5zdWJz", "Y3JpcHRpb24udjEuU3Vic2NyaXB0aW9uLlN0YXR1c1R5cGVCA+BBAhJTChRw", "cmV2aW91c19zdGF0dXNfdHlwZRgGIAEoDjIwLmtleWFwaXMuc3Vic2NyaXB0", "aW9uLnYxLlN1YnNjcmlwdGlvbi5TdGF0dXNUeXBlQgPgQQMSKwoFcHJpY2UY", "ByABKAsyHC5nb29nbGUucHJvdG9idWYuRG91YmxlVmFsdWUSMwoKY3JlYXRl", "ZF9hdBgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxIz", "CgpjaGFuZ2VkX2F0GAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", "cEID4EEDEiUKGGlzX2VuYWJsZV9hdXRvX3N1YnNjcmliZRgKIAEoCEID4EED", "EkcKDGJpbGxpbmdfdHlwZRgLIAEoDjIxLmtleWFwaXMuc3Vic2NyaXB0aW9u", "LnYxLlN1YnNjcmlwdGlvbi5CaWxsaW5nVHlwZRIuCgpleHBpcmVkX2F0GAwg", "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCglwYXJlbnRfaWQY", "DSABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSLAoHYWNjb3Vu", "dBgOIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlEi0KBW9mZmVy", "GA8gASgLMh4ua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuT2ZmZXISNAoOZGlz", "Y291bnRfcHJpY2UYECABKAsyHC5nb29nbGUucHJvdG9idWYuRG91YmxlVmFs", "dWUibwoKU3RhdHVzVHlwZRIXChNTVEFUVVNfVFlQRV9VTktOT1dOEAASCQoF", "U0VUVVAQARIKCgZBQ1RJVkUQAhILCgdCTE9DS0VEEAMSDAoIQ0FOQ0VMRUQQ", "BBIWChJTQ0hFRFVMRURfQ0FOQ0VMRUQQBSJNCgtCaWxsaW5nVHlwZRIYChRC", "SUxMSU5HX1RZUEVfVU5LTk9XThAAEgsKB0FTUl9NUkYQARILCgdBU1JfS0VZ", "EAISCgoGQVNSX01DEAMixAIKElN1YnNjcmlwdGlvbkZpbHRlchIOCgZvcnBv", "bnMYASADKAMSFAoMZmxhdF9udW1iZXJzGAIgAygJGocCCg9WYWxpZGF0aW9u", "RXJyb3ISWwoGb3Jwb25zGAEgASgLMkkua2V5YXBpcy5zdWJzY3JpcHRpb24u", "djEuU3Vic2NyaXB0aW9uRmlsdGVyLlZhbGlkYXRpb25FcnJvci5PcnBvbnNJ", "bnZhbGlkSAASZgoMZmxhdF9udW1iZXJzGAIgASgLMk4ua2V5YXBpcy5zdWJz", "Y3JpcHRpb24udjEuU3Vic2NyaXB0aW9uRmlsdGVyLlZhbGlkYXRpb25FcnJv", "ci5GbGF0TnVtYmVyc0ludmFsaWRIABoPCg1PcnBvbnNJbnZhbGlkGhQKEkZs", "YXROdW1iZXJzSW52YWxpZEIICgZyZWFzb24ivwQKElN1YnNjcmlwdGlvblBh", "Z2luZxJOCg1vcmRlcl9ieV90eXBlGAEgASgOMjcua2V5YXBpcy5zdWJzY3Jp", "cHRpb24udjEuU3Vic2NyaXB0aW9uUGFnaW5nLk9yZGVyQnlUeXBlElEKDmRp", "cmVjdGlvbl90eXBlGAIgASgOMjkua2V5YXBpcy5zdWJzY3JpcHRpb24udjEu", "U3Vic2NyaXB0aW9uUGFnaW5nLkRpcmVjdGlvblR5cGUSDQoFbGltaXQYAyAB", "KAUSDgoGb2Zmc2V0GAQgASgFGvQBCg9WYWxpZGF0aW9uRXJyb3ISWQoFbGlt", "aXQYASABKAsySC5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5TdWJzY3JpcHRp", "b25QYWdpbmcuVmFsaWRhdGlvbkVycm9yLkxpbWl0SW52YWxpZEgAElsKBm9m", "ZnNldBgCIAEoCzJJLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLlN1YnNjcmlw", "dGlvblBhZ2luZy5WYWxpZGF0aW9uRXJyb3IuT2Zmc2V0SW52YWxpZEgAGg4K", "DExpbWl0SW52YWxpZBoPCg1PZmZzZXRJbnZhbGlkQggKBnJlYXNvbiIwCgtP", "cmRlckJ5VHlwZRIZChVPUkRFUl9CWV9UWVBFX1VOS05PV04QABIGCgJJRBAB", "Ij4KDURpcmVjdGlvblR5cGUSGgoWRElSRUNUSU9OX1RZUEVfVU5LTk9XThAA", "EggKBERFU0MQARIHCgNBU0MQAiIpChZHZXRTdWJzY3JpcHRpb25SZXF1ZXN0", "Eg8KAmlkGAEgASgJQgPgQQIiWAoXR2V0U3Vic2NyaXB0aW9uUmVzcG9uc2US", "NQoEZGF0YRgBIAEoCzIlLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLlN1YnNj", "cmlwdGlvbkgAQgYKBHR5cGUipgEKGkdldFN1YnNjcmlwdGlvbkxpc3RSZXF1", "ZXN0EjsKBmZpbHRlchgBIAEoCzIrLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYx", "LlN1YnNjcmlwdGlvbkZpbHRlchI9CgZwYWdpbmcYAiABKAsyKy5rZXlhcGlz", "LnN1YnNjcmlwdGlvbi52MS5TdWJzY3JpcHRpb25QYWdpbmdIAEIMCgpwYWdp", "bmF0aW9uIosDChtHZXRTdWJzY3JpcHRpb25MaXN0UmVzcG9uc2USNQoEZGF0", "YRgBIAEoCzIlLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLlN1YnNjcmlwdGlv", "bkgAEksKBWVycm9yGAIgASgLMjoua2V5YXBpcy5zdWJzY3JpcHRpb24udjEu", "R2V0U3Vic2NyaXB0aW9uTGlzdFJlc3BvbnNlLkVycm9ySAAa3wEKBUVycm9y", "EmUKHnN1YnNjcmlwdGlvbl9maWx0ZXJfdmFsaWRhdGlvbhgBIAEoCzI7Lmtl", "eWFwaXMuc3Vic2NyaXB0aW9uLnYxLlN1YnNjcmlwdGlvbkZpbHRlci5WYWxp", "ZGF0aW9uRXJyb3JIABJlCh5zdWJzY3JpcHRpb25fcGFnaW5nX3ZhbGlkYXRp", "b24YAiABKAsyOy5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5TdWJzY3JpcHRp", "b25QYWdpbmcuVmFsaWRhdGlvbkVycm9ySABCCAoGcmVhc29uQgYKBHR5cGUi", "WgobR2V0U3Vic2NyaXB0aW9uQ291bnRSZXF1ZXN0EjsKBmZpbHRlchgBIAEo", "CzIrLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLlN1YnNjcmlwdGlvbkZpbHRl", "ciL+AQocR2V0U3Vic2NyaXB0aW9uQ291bnRSZXNwb25zZRIOCgRkYXRhGAEg", "ASgFSAASTAoFZXJyb3IYAiABKAsyOy5rZXlhcGlzLnN1YnNjcmlwdGlvbi52", "MS5HZXRTdWJzY3JpcHRpb25Db3VudFJlc3BvbnNlLkVycm9ySAAaeAoFRXJy", "b3ISZQoec3Vic2NyaXB0aW9uX2ZpbHRlcl92YWxpZGF0aW9uGAEgASgLMjsu", "a2V5YXBpcy5zdWJzY3JpcHRpb24udjEuU3Vic2NyaXB0aW9uRmlsdGVyLlZh", "bGlkYXRpb25FcnJvckgAQggKBnJlYXNvbkIGCgR0eXBlMqgEChNTdWJzY3Jp", "cHRpb25TZXJ2aWNlEqQBCg9HZXRTdWJzY3JpcHRpb24SLy5rZXlhcGlzLnN1", "YnNjcmlwdGlvbi52MS5HZXRTdWJzY3JpcHRpb25SZXF1ZXN0GjAua2V5YXBp", "cy5zdWJzY3JpcHRpb24udjEuR2V0U3Vic2NyaXB0aW9uUmVzcG9uc2UiLoLT", "5JMCKBImL3N1YnNjcmlwdGlvbi9hcGkvdjEvc3Vic2NyaXB0aW9uL3tpZH0S", "sgEKE0dldFN1YnNjcmlwdGlvbkxpc3QSMy5rZXlhcGlzLnN1YnNjcmlwdGlv", "bi52MS5HZXRTdWJzY3JpcHRpb25MaXN0UmVxdWVzdBo0LmtleWFwaXMuc3Vi", "c2NyaXB0aW9uLnYxLkdldFN1YnNjcmlwdGlvbkxpc3RSZXNwb25zZSIugtPk", "kwIoEiYvc3Vic2NyaXB0aW9uL2FwaS92MS9zdWJzY3JpcHRpb24vbGlzdDAB", "ErQBChRHZXRTdWJzY3JpcHRpb25Db3VudBI0LmtleWFwaXMuc3Vic2NyaXB0", "aW9uLnYxLkdldFN1YnNjcmlwdGlvbkNvdW50UmVxdWVzdBo1LmtleWFwaXMu", "c3Vic2NyaXB0aW9uLnYxLkdldFN1YnNjcmlwdGlvbkNvdW50UmVzcG9uc2Ui", "L4LT5JMCKRInL3N1YnNjcmlwdGlvbi9hcGkvdjEvc3Vic2NyaXB0aW9uL2Nv", "dW50QsQBChpydS5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MUIaS2V5YXBpc1N1", "YnNjcmlwdGlvblYxUHJvdG9IA1AAWhgva2V5YXBpc19zdWJzY3JpcHRpb25f", "djHYAQH4AQGiAhVLRVlBUElTU1VCU0NSSVBUSU9OVjGqAhdLZXlhcGlzLlN1", "YnNjcmlwdGlvbi5WMcoCF0tleWFwaXNcU3Vic2NyaXB0aW9uXFYx6gIZS2V5", "YXBpczo6U3Vic2NyaXB0aW9uOjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Keyapis.Subscription.V1.KeyapisSubscriptionOfferV1Reflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.Subscription), global::Keyapis.Subscription.V1.Subscription.Parser, new[]{ "Id", "Orpon", "FlatNumber", "OfferId", "StatusType", "PreviousStatusType", "Price", "CreatedAt", "ChangedAt", "IsEnableAutoSubscribe", "BillingType", "ExpiredAt", "ParentId", "Account", "Offer", "DiscountPrice" }, null, new[]{ typeof(global::Keyapis.Subscription.V1.Subscription.Types.StatusType), typeof(global::Keyapis.Subscription.V1.Subscription.Types.BillingType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.SubscriptionFilter), global::Keyapis.Subscription.V1.SubscriptionFilter.Parser, new[]{ "Orpons", "FlatNumbers" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError), global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Parser, new[]{ "Orpons", "FlatNumbers" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.OrponsInvalid), global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.OrponsInvalid.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.FlatNumbersInvalid), global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.FlatNumbersInvalid.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.SubscriptionPaging), global::Keyapis.Subscription.V1.SubscriptionPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.Subscription.V1.SubscriptionPaging.Types.OrderByType), typeof(global::Keyapis.Subscription.V1.SubscriptionPaging.Types.DirectionType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError), global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Parser, new[]{ "Limit", "Offset" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.LimitInvalid), global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.LimitInvalid.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.OffsetInvalid), global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.OffsetInvalid.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetSubscriptionRequest), global::Keyapis.Subscription.V1.GetSubscriptionRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetSubscriptionResponse), global::Keyapis.Subscription.V1.GetSubscriptionResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetSubscriptionListRequest), global::Keyapis.Subscription.V1.GetSubscriptionListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetSubscriptionListResponse), global::Keyapis.Subscription.V1.GetSubscriptionListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetSubscriptionListResponse.Types.Error), global::Keyapis.Subscription.V1.GetSubscriptionListResponse.Types.Error.Parser, new[]{ "SubscriptionFilterValidation", "SubscriptionPagingValidation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetSubscriptionCountRequest), global::Keyapis.Subscription.V1.GetSubscriptionCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetSubscriptionCountResponse), global::Keyapis.Subscription.V1.GetSubscriptionCountResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetSubscriptionCountResponse.Types.Error), global::Keyapis.Subscription.V1.GetSubscriptionCountResponse.Types.Error.Parser, new[]{ "SubscriptionFilterValidation" }, new[]{ "Reason" }, null, null, null)}) })); } #endregion } #region Messages /// /// Подписка /// public sealed partial class Subscription : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Subscription()); 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.KeyapisSubscriptionSubscriptionV1Reflection.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 Subscription() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Subscription(Subscription other) : this() { id_ = other.id_; orpon_ = other.orpon_; flatNumber_ = other.flatNumber_; offerId_ = other.offerId_; statusType_ = other.statusType_; previousStatusType_ = other.previousStatusType_; Price = other.Price; createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null; isEnableAutoSubscribe_ = other.isEnableAutoSubscribe_; billingType_ = other.billingType_; expiredAt_ = other.expiredAt_ != null ? other.expiredAt_.Clone() : null; ParentId = other.ParentId; Account = other.Account; offer_ = other.offer_ != null ? other.offer_.Clone() : null; DiscountPrice = other.DiscountPrice; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Subscription Clone() { return new Subscription(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 "orpon" field. public const int OrponFieldNumber = 2; private long orpon_; /// /// ОРПОН. /// Идентификатор дома /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Orpon { get { return orpon_; } set { orpon_ = value; } } /// Field number for the "flat_number" field. public const int FlatNumberFieldNumber = 3; private string flatNumber_ = ""; /// /// Номер квартиры /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string FlatNumber { get { return flatNumber_; } set { flatNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "offer_id" field. public const int OfferIdFieldNumber = 4; private int offerId_; /// /// Идентификатор коммерческой возможности(КВ). /// Заполняется сервером на основе идентификатора из технологического плана(ТП) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int OfferId { get { return offerId_; } set { offerId_ = value; } } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 5; private global::Keyapis.Subscription.V1.Subscription.Types.StatusType statusType_ = global::Keyapis.Subscription.V1.Subscription.Types.StatusType.Unknown; /// /// Cтатус подписки. /// При создании может быть: SETUP, ACTIVE /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.Subscription.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "previous_status_type" field. public const int PreviousStatusTypeFieldNumber = 6; private global::Keyapis.Subscription.V1.Subscription.Types.StatusType previousStatusType_ = global::Keyapis.Subscription.V1.Subscription.Types.StatusType.Unknown; /// /// Предыдущий статус подписки. /// В справочник входят только финальные статусы. /// Заполняется сервером при изменении статусов /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.Subscription.Types.StatusType PreviousStatusType { get { return previousStatusType_; } set { previousStatusType_ = value; } } /// Field number for the "price" field. public const int PriceFieldNumber = 7; private static readonly pb::FieldCodec _single_price_codec = pb::FieldCodec.ForStructWrapper(58); private double? price_; /// /// Цена /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double? Price { get { return price_; } set { price_ = value; } } /// Field number for the "created_at" field. public const int CreatedAtFieldNumber = 8; private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; /// /// Дата создания записи. /// Заполняется сервером /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { get { return createdAt_; } set { createdAt_ = value; } } /// Field number for the "changed_at" field. public const int ChangedAtFieldNumber = 9; private global::Google.Protobuf.WellKnownTypes.Timestamp changedAt_; /// /// Дата последнего изменения. /// Заполняется и обновляется сервером. /// Заполняется при создании и изменении. /// Является версией объекта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ChangedAt { get { return changedAt_; } set { changedAt_ = value; } } /// Field number for the "is_enable_auto_subscribe" field. public const int IsEnableAutoSubscribeFieldNumber = 10; private bool isEnableAutoSubscribe_; /// /// Признак для определения автоподписок. /// Редактировать флаг запрещено. /// Проставляется сервером в true при создании через задачу на автоподписку /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsEnableAutoSubscribe { get { return isEnableAutoSubscribe_; } set { isEnableAutoSubscribe_ = value; } } /// Field number for the "billing_type" field. public const int BillingTypeFieldNumber = 11; private global::Keyapis.Subscription.V1.Subscription.Types.BillingType billingType_ = global::Keyapis.Subscription.V1.Subscription.Types.BillingType.Unknown; /// /// Тип биллинга /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.Subscription.Types.BillingType BillingType { get { return billingType_; } set { billingType_ = value; } } /// Field number for the "expired_at" field. public const int ExpiredAtFieldNumber = 12; private global::Google.Protobuf.WellKnownTypes.Timestamp expiredAt_; /// /// Срок действия. /// Проставляется при создании /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiredAt { get { return expiredAt_; } set { expiredAt_ = value; } } /// Field number for the "parent_id" field. public const int ParentIdFieldNumber = 13; private static readonly pb::FieldCodec _single_parentId_codec = pb::FieldCodec.ForClassWrapper(106); private string parentId_; /// /// Идентификатор подписки, в зависимости от которой подключена данная. /// Заполняется в подписках на опции. /// Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParentId { get { return parentId_; } set { parentId_ = value; } } /// Field number for the "account" field. public const int AccountFieldNumber = 14; private static readonly pb::FieldCodec _single_account_codec = pb::FieldCodec.ForStructWrapper(114); private long? account_; /// /// Аккаунт /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long? Account { get { return account_; } set { account_ = value; } } /// Field number for the "offer" field. public const int OfferFieldNumber = 15; private global::Keyapis.Subscription.V1.Offer offer_; /// /// Снапшот состояния коммерческой возможности на момент создания подписки. /// В данный момент это ссылка в базе на запись, в будущем это будет снапшот /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.Offer Offer { get { return offer_; } set { offer_ = value; } } /// Field number for the "discount_price" field. public const int DiscountPriceFieldNumber = 16; private static readonly pb::FieldCodec _single_discountPrice_codec = pb::FieldCodec.ForStructWrapper(130); private double? discountPrice_; /// /// Цена по скидки. /// Заполнена если оплата подписки прошла по скидке, иначе очищается /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double? DiscountPrice { get { return discountPrice_; } set { discountPrice_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Subscription); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Subscription other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Orpon != other.Orpon) return false; if (FlatNumber != other.FlatNumber) return false; if (OfferId != other.OfferId) return false; if (StatusType != other.StatusType) return false; if (PreviousStatusType != other.PreviousStatusType) return false; if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(Price, other.Price)) return false; if (!object.Equals(CreatedAt, other.CreatedAt)) return false; if (!object.Equals(ChangedAt, other.ChangedAt)) return false; if (IsEnableAutoSubscribe != other.IsEnableAutoSubscribe) return false; if (BillingType != other.BillingType) return false; if (!object.Equals(ExpiredAt, other.ExpiredAt)) return false; if (ParentId != other.ParentId) return false; if (Account != other.Account) return false; if (!object.Equals(Offer, other.Offer)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(DiscountPrice, other.DiscountPrice)) 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 (Orpon != 0L) hash ^= Orpon.GetHashCode(); if (FlatNumber.Length != 0) hash ^= FlatNumber.GetHashCode(); if (OfferId != 0) hash ^= OfferId.GetHashCode(); if (StatusType != global::Keyapis.Subscription.V1.Subscription.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); if (PreviousStatusType != global::Keyapis.Subscription.V1.Subscription.Types.StatusType.Unknown) hash ^= PreviousStatusType.GetHashCode(); if (price_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(Price); if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); if (changedAt_ != null) hash ^= ChangedAt.GetHashCode(); if (IsEnableAutoSubscribe != false) hash ^= IsEnableAutoSubscribe.GetHashCode(); if (BillingType != global::Keyapis.Subscription.V1.Subscription.Types.BillingType.Unknown) hash ^= BillingType.GetHashCode(); if (expiredAt_ != null) hash ^= ExpiredAt.GetHashCode(); if (parentId_ != null) hash ^= ParentId.GetHashCode(); if (account_ != null) hash ^= Account.GetHashCode(); if (offer_ != null) hash ^= Offer.GetHashCode(); if (discountPrice_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(DiscountPrice); 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 (Orpon != 0L) { output.WriteRawTag(16); output.WriteInt64(Orpon); } if (FlatNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(FlatNumber); } if (OfferId != 0) { output.WriteRawTag(32); output.WriteInt32(OfferId); } if (StatusType != global::Keyapis.Subscription.V1.Subscription.Types.StatusType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) StatusType); } if (PreviousStatusType != global::Keyapis.Subscription.V1.Subscription.Types.StatusType.Unknown) { output.WriteRawTag(48); output.WriteEnum((int) PreviousStatusType); } if (price_ != null) { _single_price_codec.WriteTagAndValue(output, Price); } if (createdAt_ != null) { output.WriteRawTag(66); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(74); output.WriteMessage(ChangedAt); } if (IsEnableAutoSubscribe != false) { output.WriteRawTag(80); output.WriteBool(IsEnableAutoSubscribe); } if (BillingType != global::Keyapis.Subscription.V1.Subscription.Types.BillingType.Unknown) { output.WriteRawTag(88); output.WriteEnum((int) BillingType); } if (expiredAt_ != null) { output.WriteRawTag(98); output.WriteMessage(ExpiredAt); } if (parentId_ != null) { _single_parentId_codec.WriteTagAndValue(output, ParentId); } if (account_ != null) { _single_account_codec.WriteTagAndValue(output, Account); } if (offer_ != null) { output.WriteRawTag(122); output.WriteMessage(Offer); } if (discountPrice_ != null) { _single_discountPrice_codec.WriteTagAndValue(output, DiscountPrice); } 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 (Orpon != 0L) { output.WriteRawTag(16); output.WriteInt64(Orpon); } if (FlatNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(FlatNumber); } if (OfferId != 0) { output.WriteRawTag(32); output.WriteInt32(OfferId); } if (StatusType != global::Keyapis.Subscription.V1.Subscription.Types.StatusType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) StatusType); } if (PreviousStatusType != global::Keyapis.Subscription.V1.Subscription.Types.StatusType.Unknown) { output.WriteRawTag(48); output.WriteEnum((int) PreviousStatusType); } if (price_ != null) { _single_price_codec.WriteTagAndValue(ref output, Price); } if (createdAt_ != null) { output.WriteRawTag(66); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(74); output.WriteMessage(ChangedAt); } if (IsEnableAutoSubscribe != false) { output.WriteRawTag(80); output.WriteBool(IsEnableAutoSubscribe); } if (BillingType != global::Keyapis.Subscription.V1.Subscription.Types.BillingType.Unknown) { output.WriteRawTag(88); output.WriteEnum((int) BillingType); } if (expiredAt_ != null) { output.WriteRawTag(98); output.WriteMessage(ExpiredAt); } if (parentId_ != null) { _single_parentId_codec.WriteTagAndValue(ref output, ParentId); } if (account_ != null) { _single_account_codec.WriteTagAndValue(ref output, Account); } if (offer_ != null) { output.WriteRawTag(122); output.WriteMessage(Offer); } if (discountPrice_ != null) { _single_discountPrice_codec.WriteTagAndValue(ref output, DiscountPrice); } 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 (Orpon != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon); } if (FlatNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FlatNumber); } if (OfferId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(OfferId); } if (StatusType != global::Keyapis.Subscription.V1.Subscription.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (PreviousStatusType != global::Keyapis.Subscription.V1.Subscription.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PreviousStatusType); } if (price_ != null) { size += _single_price_codec.CalculateSizeWithTag(Price); } if (createdAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); } if (changedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt); } if (IsEnableAutoSubscribe != false) { size += 1 + 1; } if (BillingType != global::Keyapis.Subscription.V1.Subscription.Types.BillingType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BillingType); } if (expiredAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiredAt); } if (parentId_ != null) { size += _single_parentId_codec.CalculateSizeWithTag(ParentId); } if (account_ != null) { size += _single_account_codec.CalculateSizeWithTag(Account); } if (offer_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Offer); } if (discountPrice_ != null) { size += _single_discountPrice_codec.CalculateSizeWithTag(DiscountPrice); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Subscription other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.Orpon != 0L) { Orpon = other.Orpon; } if (other.FlatNumber.Length != 0) { FlatNumber = other.FlatNumber; } if (other.OfferId != 0) { OfferId = other.OfferId; } if (other.StatusType != global::Keyapis.Subscription.V1.Subscription.Types.StatusType.Unknown) { StatusType = other.StatusType; } if (other.PreviousStatusType != global::Keyapis.Subscription.V1.Subscription.Types.StatusType.Unknown) { PreviousStatusType = other.PreviousStatusType; } if (other.price_ != null) { if (price_ == null || other.Price != 0D) { Price = other.Price; } } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.changedAt_ != null) { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ChangedAt.MergeFrom(other.ChangedAt); } if (other.IsEnableAutoSubscribe != false) { IsEnableAutoSubscribe = other.IsEnableAutoSubscribe; } if (other.BillingType != global::Keyapis.Subscription.V1.Subscription.Types.BillingType.Unknown) { BillingType = other.BillingType; } if (other.expiredAt_ != null) { if (expiredAt_ == null) { ExpiredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ExpiredAt.MergeFrom(other.ExpiredAt); } if (other.parentId_ != null) { if (parentId_ == null || other.ParentId != "") { ParentId = other.ParentId; } } if (other.account_ != null) { if (account_ == null || other.Account != 0L) { Account = other.Account; } } if (other.offer_ != null) { if (offer_ == null) { Offer = new global::Keyapis.Subscription.V1.Offer(); } Offer.MergeFrom(other.Offer); } if (other.discountPrice_ != null) { if (discountPrice_ == null || other.DiscountPrice != 0D) { DiscountPrice = other.DiscountPrice; } } _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: { Orpon = input.ReadInt64(); break; } case 26: { FlatNumber = input.ReadString(); break; } case 32: { OfferId = input.ReadInt32(); break; } case 40: { StatusType = (global::Keyapis.Subscription.V1.Subscription.Types.StatusType) input.ReadEnum(); break; } case 48: { PreviousStatusType = (global::Keyapis.Subscription.V1.Subscription.Types.StatusType) input.ReadEnum(); break; } case 58: { double? value = _single_price_codec.Read(input); if (price_ == null || value != 0D) { Price = value; } break; } case 66: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 74: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 80: { IsEnableAutoSubscribe = input.ReadBool(); break; } case 88: { BillingType = (global::Keyapis.Subscription.V1.Subscription.Types.BillingType) input.ReadEnum(); break; } case 98: { if (expiredAt_ == null) { ExpiredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ExpiredAt); break; } case 106: { string value = _single_parentId_codec.Read(input); if (parentId_ == null || value != "") { ParentId = value; } break; } case 114: { long? value = _single_account_codec.Read(input); if (account_ == null || value != 0L) { Account = value; } break; } case 122: { if (offer_ == null) { Offer = new global::Keyapis.Subscription.V1.Offer(); } input.ReadMessage(Offer); break; } case 130: { double? value = _single_discountPrice_codec.Read(input); if (discountPrice_ == null || value != 0D) { DiscountPrice = 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 10: { Id = input.ReadString(); break; } case 16: { Orpon = input.ReadInt64(); break; } case 26: { FlatNumber = input.ReadString(); break; } case 32: { OfferId = input.ReadInt32(); break; } case 40: { StatusType = (global::Keyapis.Subscription.V1.Subscription.Types.StatusType) input.ReadEnum(); break; } case 48: { PreviousStatusType = (global::Keyapis.Subscription.V1.Subscription.Types.StatusType) input.ReadEnum(); break; } case 58: { double? value = _single_price_codec.Read(ref input); if (price_ == null || value != 0D) { Price = value; } break; } case 66: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 74: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 80: { IsEnableAutoSubscribe = input.ReadBool(); break; } case 88: { BillingType = (global::Keyapis.Subscription.V1.Subscription.Types.BillingType) input.ReadEnum(); break; } case 98: { if (expiredAt_ == null) { ExpiredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ExpiredAt); break; } case 106: { string value = _single_parentId_codec.Read(ref input); if (parentId_ == null || value != "") { ParentId = value; } break; } case 114: { long? value = _single_account_codec.Read(ref input); if (account_ == null || value != 0L) { Account = value; } break; } case 122: { if (offer_ == null) { Offer = new global::Keyapis.Subscription.V1.Offer(); } input.ReadMessage(Offer); break; } case 130: { double? value = _single_discountPrice_codec.Read(ref input); if (discountPrice_ == null || value != 0D) { DiscountPrice = value; } break; } } } } #endif #region Nested types /// Container for nested types declared in the Subscription message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Типы статусов подписки /// public enum StatusType { /// /// Значение не указано /// [pbr::OriginalName("STATUS_TYPE_UNKNOWN")] Unknown = 0, /// /// Настроена. /// Подписка переведена в статус настройки. /// Это промо-период, либо монтажник проверяет работу оборудования. /// Услуги подписки не оплачены, но доступны для использования. /// Финальный статус /// [pbr::OriginalName("SETUP")] Setup = 1, /// /// Активна. /// Подписка активирована. /// С этого момента считаем что нужно считать денежки. /// Услуги подписки оплачены и доступны для использования. /// Финальный статус /// [pbr::OriginalName("ACTIVE")] Active = 2, /// /// Заблокирована. /// Подписка фин. заблокирована. /// Подписка в фин. блокировке. /// Услуги подписки не оплачены и не доступны. /// Финальный статус /// [pbr::OriginalName("BLOCKED")] Blocked = 3, /// /// Отменена. /// Подписка отменена. /// Пользователь отменил подписку. /// Услуги подписки больше не существуют и не доступны абоненту /// [pbr::OriginalName("CANCELED")] Canceled = 4, /// /// Запланированная отмена. /// Пользователь решил отказаться от услуги, но уже заплатил. /// Подписка запланирована к отмене, будет действовать до истечения срока действия в подписке. /// Услуги подписки оплачены и доступны для использования. /// Финальный статус /// [pbr::OriginalName("SCHEDULED_CANCELED")] ScheduledCanceled = 5, } /// /// Типы биллинга подпискии /// public enum BillingType { /// /// Значение не указано /// [pbr::OriginalName("BILLING_TYPE_UNKNOWN")] Unknown = 0, /// /// АСР МРФ. /// Обслуживание счетов и расчёты с клиентами происходят в АСР МРФ /// [pbr::OriginalName("ASR_MRF")] AsrMrf = 1, /// /// АСР Ключ. /// Обслуживание счетов и расчёты с клиентами происходят внутри Ключа /// [pbr::OriginalName("ASR_KEY")] AsrKey = 2, /// /// АСР УК. /// Обслуживание счетов и расчёты с клиентами происходят во внешнем АСР от управляющей компании /// [pbr::OriginalName("ASR_MC")] AsrMc = 3, } } #endregion } /// /// Фильтр подписок /// public sealed partial class SubscriptionFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriptionFilter()); 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.KeyapisSubscriptionSubscriptionV1Reflection.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 SubscriptionFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SubscriptionFilter(SubscriptionFilter other) : this() { orpons_ = other.orpons_.Clone(); flatNumbers_ = other.flatNumbers_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SubscriptionFilter Clone() { return new SubscriptionFilter(this); } /// Field number for the "orpons" field. public const int OrponsFieldNumber = 1; private static readonly pb::FieldCodec _repeated_orpons_codec = pb::FieldCodec.ForInt64(10); private readonly pbc::RepeatedField orpons_ = new pbc::RepeatedField(); /// /// По ОРПОНам /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Orpons { get { return orpons_; } } /// Field number for the "flat_numbers" field. public const int FlatNumbersFieldNumber = 2; private static readonly pb::FieldCodec _repeated_flatNumbers_codec = pb::FieldCodec.ForString(18); private readonly pbc::RepeatedField flatNumbers_ = new pbc::RepeatedField(); /// /// По номерам квартир /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField FlatNumbers { get { return flatNumbers_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SubscriptionFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SubscriptionFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!orpons_.Equals(other.orpons_)) return false; if(!flatNumbers_.Equals(other.flatNumbers_)) 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 ^= orpons_.GetHashCode(); hash ^= flatNumbers_.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 orpons_.WriteTo(output, _repeated_orpons_codec); flatNumbers_.WriteTo(output, _repeated_flatNumbers_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) { orpons_.WriteTo(ref output, _repeated_orpons_codec); flatNumbers_.WriteTo(ref output, _repeated_flatNumbers_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 += orpons_.CalculateSize(_repeated_orpons_codec); size += flatNumbers_.CalculateSize(_repeated_flatNumbers_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SubscriptionFilter other) { if (other == null) { return; } orpons_.Add(other.orpons_); flatNumbers_.Add(other.flatNumbers_); _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: { orpons_.AddEntriesFrom(input, _repeated_orpons_codec); break; } case 18: { flatNumbers_.AddEntriesFrom(input, _repeated_flatNumbers_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: { orpons_.AddEntriesFrom(ref input, _repeated_orpons_codec); break; } case 18: { flatNumbers_.AddEntriesFrom(ref input, _repeated_flatNumbers_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the SubscriptionFilter message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибки валидации фильтра по подпискам. /// Эти проверки выполняются до обращения в базу данных /// 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.SubscriptionFilter.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 ValidationError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError(ValidationError other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Orpons: Orpons = other.Orpons.Clone(); break; case ReasonOneofCase.FlatNumbers: FlatNumbers = other.FlatNumbers.Clone(); break; } _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 "orpons" field. public const int OrponsFieldNumber = 1; /// /// Формат ОРПОН некорректен /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.OrponsInvalid Orpons { get { return reasonCase_ == ReasonOneofCase.Orpons ? (global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.OrponsInvalid) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Orpons; } } /// Field number for the "flat_numbers" field. public const int FlatNumbersFieldNumber = 2; /// /// Формат квартиры некорректен /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.FlatNumbersInvalid FlatNumbers { get { return reasonCase_ == ReasonOneofCase.FlatNumbers ? (global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.FlatNumbersInvalid) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.FlatNumbers; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Orpons = 1, FlatNumbers = 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 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 (!object.Equals(Orpons, other.Orpons)) return false; if (!object.Equals(FlatNumbers, other.FlatNumbers)) 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.Orpons) hash ^= Orpons.GetHashCode(); if (reasonCase_ == ReasonOneofCase.FlatNumbers) hash ^= FlatNumbers.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.Orpons) { output.WriteRawTag(10); output.WriteMessage(Orpons); } if (reasonCase_ == ReasonOneofCase.FlatNumbers) { output.WriteRawTag(18); output.WriteMessage(FlatNumbers); } 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.Orpons) { output.WriteRawTag(10); output.WriteMessage(Orpons); } if (reasonCase_ == ReasonOneofCase.FlatNumbers) { output.WriteRawTag(18); output.WriteMessage(FlatNumbers); } 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.Orpons) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Orpons); } if (reasonCase_ == ReasonOneofCase.FlatNumbers) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(FlatNumbers); } 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; } switch (other.ReasonCase) { case ReasonOneofCase.Orpons: if (Orpons == null) { Orpons = new global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.OrponsInvalid(); } Orpons.MergeFrom(other.Orpons); break; case ReasonOneofCase.FlatNumbers: if (FlatNumbers == null) { FlatNumbers = new global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.FlatNumbersInvalid(); } FlatNumbers.MergeFrom(other.FlatNumbers); 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.SubscriptionFilter.Types.ValidationError.Types.OrponsInvalid subBuilder = new global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.OrponsInvalid(); if (reasonCase_ == ReasonOneofCase.Orpons) { subBuilder.MergeFrom(Orpons); } input.ReadMessage(subBuilder); Orpons = subBuilder; break; } case 18: { global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.FlatNumbersInvalid subBuilder = new global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.FlatNumbersInvalid(); if (reasonCase_ == ReasonOneofCase.FlatNumbers) { subBuilder.MergeFrom(FlatNumbers); } input.ReadMessage(subBuilder); FlatNumbers = 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.SubscriptionFilter.Types.ValidationError.Types.OrponsInvalid subBuilder = new global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.OrponsInvalid(); if (reasonCase_ == ReasonOneofCase.Orpons) { subBuilder.MergeFrom(Orpons); } input.ReadMessage(subBuilder); Orpons = subBuilder; break; } case 18: { global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.FlatNumbersInvalid subBuilder = new global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError.Types.FlatNumbersInvalid(); if (reasonCase_ == ReasonOneofCase.FlatNumbers) { subBuilder.MergeFrom(FlatNumbers); } input.ReadMessage(subBuilder); FlatNumbers = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the ValidationError message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Причины: /// - Формат ОРПОН некорректен; /// - ОРПОН передан некорректно, к примеру, значение <= 1 /// public sealed partial class OrponsInvalid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OrponsInvalid()); 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.SubscriptionFilter.Types.ValidationError.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 OrponsInvalid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OrponsInvalid(OrponsInvalid other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OrponsInvalid Clone() { return new OrponsInvalid(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OrponsInvalid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OrponsInvalid 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(OrponsInvalid 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 } /// /// Причины: /// - Формат квартиры некорректен (например, длина номера квартира более 4 знаков или отрицательное значение) /// public sealed partial class FlatNumbersInvalid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlatNumbersInvalid()); 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.SubscriptionFilter.Types.ValidationError.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 FlatNumbersInvalid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FlatNumbersInvalid(FlatNumbersInvalid other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FlatNumbersInvalid Clone() { return new FlatNumbersInvalid(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as FlatNumbersInvalid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(FlatNumbersInvalid 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(FlatNumbersInvalid 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 SubscriptionPaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriptionPaging()); 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.KeyapisSubscriptionSubscriptionV1Reflection.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 SubscriptionPaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SubscriptionPaging(SubscriptionPaging 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 SubscriptionPaging Clone() { return new SubscriptionPaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.Subscription.V1.SubscriptionPaging.Types.OrderByType orderByType_ = global::Keyapis.Subscription.V1.SubscriptionPaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// По умолчанию: ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.SubscriptionPaging.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.SubscriptionPaging.Types.DirectionType directionType_ = global::Keyapis.Subscription.V1.SubscriptionPaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// По умолчанию: DESC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.SubscriptionPaging.Types.DirectionType DirectionType { get { return directionType_; } set { directionType_ = value; } } /// Field number for the "limit" field. public const int LimitFieldNumber = 3; private int limit_; /// /// Количество записей на страницу. /// Минимальное значение: 1. /// Максимальное значение: 100. /// По умолчанию: 20. /// Если значение 0 (не передано), то выставляем значение по умолчанию /// [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 /// [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 SubscriptionPaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SubscriptionPaging 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.SubscriptionPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.Subscription.V1.SubscriptionPaging.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.SubscriptionPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.Subscription.V1.SubscriptionPaging.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.SubscriptionPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.Subscription.V1.SubscriptionPaging.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.SubscriptionPaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.Subscription.V1.SubscriptionPaging.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(SubscriptionPaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.Subscription.V1.SubscriptionPaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.Subscription.V1.SubscriptionPaging.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.SubscriptionPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.Subscription.V1.SubscriptionPaging.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.SubscriptionPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.Subscription.V1.SubscriptionPaging.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 SubscriptionPaging message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов значений сортировки /// public enum OrderByType { /// /// Значение не указано /// [pbr::OriginalName("ORDER_BY_TYPE_UNKNOWN")] Unknown = 0, /// /// По идентификатору /// [pbr::OriginalName("ID")] Id = 1, } /// /// Справочник типов направлений сортировки /// public enum DirectionType { /// /// Значение не указано /// [pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0, /// /// От большего к меньшему /// [pbr::OriginalName("DESC")] Desc = 1, /// /// От меньшего к большему /// [pbr::OriginalName("ASC")] Asc = 2, } /// /// Ошибка валидации постраничной пагинации по подпискам. /// Эти проверки выполняются до обращения в базу данных /// 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.SubscriptionPaging.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 ValidationError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError(ValidationError other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Limit: Limit = other.Limit.Clone(); break; case ReasonOneofCase.Offset: Offset = other.Offset.Clone(); break; } _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 "limit" field. public const int LimitFieldNumber = 1; /// /// Количество передано некорректно /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.LimitInvalid Limit { get { return reasonCase_ == ReasonOneofCase.Limit ? (global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.LimitInvalid) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Limit; } } /// Field number for the "offset" field. public const int OffsetFieldNumber = 2; /// /// Сдвиг передан некорректно /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.OffsetInvalid Offset { get { return reasonCase_ == ReasonOneofCase.Offset ? (global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.OffsetInvalid) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Offset; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Limit = 1, Offset = 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 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 (!object.Equals(Limit, other.Limit)) return false; if (!object.Equals(Offset, other.Offset)) 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.Limit) hash ^= Limit.GetHashCode(); if (reasonCase_ == ReasonOneofCase.Offset) hash ^= Offset.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.Limit) { output.WriteRawTag(10); output.WriteMessage(Limit); } if (reasonCase_ == ReasonOneofCase.Offset) { output.WriteRawTag(18); output.WriteMessage(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 (reasonCase_ == ReasonOneofCase.Limit) { output.WriteRawTag(10); output.WriteMessage(Limit); } if (reasonCase_ == ReasonOneofCase.Offset) { output.WriteRawTag(18); output.WriteMessage(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 (reasonCase_ == ReasonOneofCase.Limit) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Limit); } if (reasonCase_ == ReasonOneofCase.Offset) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Offset); } 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; } switch (other.ReasonCase) { case ReasonOneofCase.Limit: if (Limit == null) { Limit = new global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.LimitInvalid(); } Limit.MergeFrom(other.Limit); break; case ReasonOneofCase.Offset: if (Offset == null) { Offset = new global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.OffsetInvalid(); } Offset.MergeFrom(other.Offset); 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.SubscriptionPaging.Types.ValidationError.Types.LimitInvalid subBuilder = new global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.LimitInvalid(); if (reasonCase_ == ReasonOneofCase.Limit) { subBuilder.MergeFrom(Limit); } input.ReadMessage(subBuilder); Limit = subBuilder; break; } case 18: { global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.OffsetInvalid subBuilder = new global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.OffsetInvalid(); if (reasonCase_ == ReasonOneofCase.Offset) { subBuilder.MergeFrom(Offset); } input.ReadMessage(subBuilder); Offset = 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.SubscriptionPaging.Types.ValidationError.Types.LimitInvalid subBuilder = new global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.LimitInvalid(); if (reasonCase_ == ReasonOneofCase.Limit) { subBuilder.MergeFrom(Limit); } input.ReadMessage(subBuilder); Limit = subBuilder; break; } case 18: { global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.OffsetInvalid subBuilder = new global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError.Types.OffsetInvalid(); if (reasonCase_ == ReasonOneofCase.Offset) { subBuilder.MergeFrom(Offset); } input.ReadMessage(subBuilder); Offset = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the ValidationError message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Причины: /// - Значение количества < 0 или > 100 /// public sealed partial class LimitInvalid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LimitInvalid()); 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.SubscriptionPaging.Types.ValidationError.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 LimitInvalid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LimitInvalid(LimitInvalid other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LimitInvalid Clone() { return new LimitInvalid(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LimitInvalid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LimitInvalid 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(LimitInvalid 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 } /// /// Причины: /// - Значение сдвига < 0 /// public sealed partial class OffsetInvalid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OffsetInvalid()); 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.SubscriptionPaging.Types.ValidationError.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 OffsetInvalid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OffsetInvalid(OffsetInvalid other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OffsetInvalid Clone() { return new OffsetInvalid(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OffsetInvalid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OffsetInvalid 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(OffsetInvalid 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 GetSubscriptionRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSubscriptionRequest()); 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.KeyapisSubscriptionSubscriptionV1Reflection.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 GetSubscriptionRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSubscriptionRequest(GetSubscriptionRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSubscriptionRequest Clone() { return new GetSubscriptionRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private string id_ = ""; /// /// Идентификатор подписки /// [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 GetSubscriptionRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSubscriptionRequest 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(GetSubscriptionRequest 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 GetSubscriptionResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSubscriptionResponse()); 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.KeyapisSubscriptionSubscriptionV1Reflection.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 GetSubscriptionResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSubscriptionResponse(GetSubscriptionResponse 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 GetSubscriptionResponse Clone() { return new GetSubscriptionResponse(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.Subscription Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Subscription.V1.Subscription) 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 GetSubscriptionResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSubscriptionResponse 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(GetSubscriptionResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Subscription.V1.Subscription(); } 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.Subscription subBuilder = new global::Keyapis.Subscription.V1.Subscription(); 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.Subscription subBuilder = new global::Keyapis.Subscription.V1.Subscription(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос получения списка подписок /// public sealed partial class GetSubscriptionListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSubscriptionListRequest()); 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.KeyapisSubscriptionSubscriptionV1Reflection.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 GetSubscriptionListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSubscriptionListRequest(GetSubscriptionListRequest 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 GetSubscriptionListRequest Clone() { return new GetSubscriptionListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.Subscription.V1.SubscriptionFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.SubscriptionFilter 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.SubscriptionPaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.Subscription.V1.SubscriptionPaging) 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 GetSubscriptionListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSubscriptionListRequest 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(GetSubscriptionListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.Subscription.V1.SubscriptionFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.Subscription.V1.SubscriptionPaging(); } 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.SubscriptionFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.Subscription.V1.SubscriptionPaging subBuilder = new global::Keyapis.Subscription.V1.SubscriptionPaging(); 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.SubscriptionFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.Subscription.V1.SubscriptionPaging subBuilder = new global::Keyapis.Subscription.V1.SubscriptionPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Ответ на запрос получения списка подписок /// public sealed partial class GetSubscriptionListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSubscriptionListResponse()); 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.KeyapisSubscriptionSubscriptionV1Reflection.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 GetSubscriptionListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSubscriptionListResponse(GetSubscriptionListResponse 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 GetSubscriptionListResponse Clone() { return new GetSubscriptionListResponse(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.Subscription Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Subscription.V1.Subscription) 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.GetSubscriptionListResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Subscription.V1.GetSubscriptionListResponse.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 GetSubscriptionListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSubscriptionListResponse 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(GetSubscriptionListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Subscription.V1.Subscription(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Subscription.V1.GetSubscriptionListResponse.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.Subscription subBuilder = new global::Keyapis.Subscription.V1.Subscription(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Subscription.V1.GetSubscriptionListResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetSubscriptionListResponse.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.Subscription subBuilder = new global::Keyapis.Subscription.V1.Subscription(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Subscription.V1.GetSubscriptionListResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetSubscriptionListResponse.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 GetSubscriptionListResponse 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.GetSubscriptionListResponse.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.SubscriptionFilterValidation: SubscriptionFilterValidation = other.SubscriptionFilterValidation.Clone(); break; case ReasonOneofCase.SubscriptionPagingValidation: SubscriptionPagingValidation = other.SubscriptionPagingValidation.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 "subscription_filter_validation" field. public const int SubscriptionFilterValidationFieldNumber = 1; /// /// Ошибка фильтрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError SubscriptionFilterValidation { get { return reasonCase_ == ReasonOneofCase.SubscriptionFilterValidation ? (global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.SubscriptionFilterValidation; } } /// Field number for the "subscription_paging_validation" field. public const int SubscriptionPagingValidationFieldNumber = 2; /// /// Ошибка пагинации по страницам /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError SubscriptionPagingValidation { get { return reasonCase_ == ReasonOneofCase.SubscriptionPagingValidation ? (global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.SubscriptionPagingValidation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, SubscriptionFilterValidation = 1, SubscriptionPagingValidation = 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(SubscriptionFilterValidation, other.SubscriptionFilterValidation)) return false; if (!object.Equals(SubscriptionPagingValidation, other.SubscriptionPagingValidation)) 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.SubscriptionFilterValidation) hash ^= SubscriptionFilterValidation.GetHashCode(); if (reasonCase_ == ReasonOneofCase.SubscriptionPagingValidation) hash ^= SubscriptionPagingValidation.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.SubscriptionFilterValidation) { output.WriteRawTag(10); output.WriteMessage(SubscriptionFilterValidation); } if (reasonCase_ == ReasonOneofCase.SubscriptionPagingValidation) { output.WriteRawTag(18); output.WriteMessage(SubscriptionPagingValidation); } 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.SubscriptionFilterValidation) { output.WriteRawTag(10); output.WriteMessage(SubscriptionFilterValidation); } if (reasonCase_ == ReasonOneofCase.SubscriptionPagingValidation) { output.WriteRawTag(18); output.WriteMessage(SubscriptionPagingValidation); } 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.SubscriptionFilterValidation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubscriptionFilterValidation); } if (reasonCase_ == ReasonOneofCase.SubscriptionPagingValidation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubscriptionPagingValidation); } 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.SubscriptionFilterValidation: if (SubscriptionFilterValidation == null) { SubscriptionFilterValidation = new global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError(); } SubscriptionFilterValidation.MergeFrom(other.SubscriptionFilterValidation); break; case ReasonOneofCase.SubscriptionPagingValidation: if (SubscriptionPagingValidation == null) { SubscriptionPagingValidation = new global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError(); } SubscriptionPagingValidation.MergeFrom(other.SubscriptionPagingValidation); 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.SubscriptionFilter.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.SubscriptionFilterValidation) { subBuilder.MergeFrom(SubscriptionFilterValidation); } input.ReadMessage(subBuilder); SubscriptionFilterValidation = subBuilder; break; } case 18: { global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.SubscriptionPagingValidation) { subBuilder.MergeFrom(SubscriptionPagingValidation); } input.ReadMessage(subBuilder); SubscriptionPagingValidation = 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.SubscriptionFilter.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.SubscriptionFilterValidation) { subBuilder.MergeFrom(SubscriptionFilterValidation); } input.ReadMessage(subBuilder); SubscriptionFilterValidation = subBuilder; break; } case 18: { global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.SubscriptionPaging.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.SubscriptionPagingValidation) { subBuilder.MergeFrom(SubscriptionPagingValidation); } input.ReadMessage(subBuilder); SubscriptionPagingValidation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения количества подписок /// public sealed partial class GetSubscriptionCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSubscriptionCountRequest()); 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.KeyapisSubscriptionSubscriptionV1Reflection.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 GetSubscriptionCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSubscriptionCountRequest(GetSubscriptionCountRequest 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 GetSubscriptionCountRequest Clone() { return new GetSubscriptionCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.Subscription.V1.SubscriptionFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.SubscriptionFilter 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 GetSubscriptionCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSubscriptionCountRequest 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(GetSubscriptionCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.Subscription.V1.SubscriptionFilter(); } 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.SubscriptionFilter(); } 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.SubscriptionFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Ответ на запрос получения количества подписок /// public sealed partial class GetSubscriptionCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSubscriptionCountResponse()); 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.KeyapisSubscriptionSubscriptionV1Reflection.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 GetSubscriptionCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSubscriptionCountResponse(GetSubscriptionCountResponse 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 GetSubscriptionCountResponse Clone() { return new GetSubscriptionCountResponse(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.GetSubscriptionCountResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Subscription.V1.GetSubscriptionCountResponse.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 GetSubscriptionCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSubscriptionCountResponse 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(GetSubscriptionCountResponse 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.GetSubscriptionCountResponse.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.GetSubscriptionCountResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetSubscriptionCountResponse.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.GetSubscriptionCountResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetSubscriptionCountResponse.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 GetSubscriptionCountResponse 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.GetSubscriptionCountResponse.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.SubscriptionFilterValidation: SubscriptionFilterValidation = other.SubscriptionFilterValidation.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 "subscription_filter_validation" field. public const int SubscriptionFilterValidationFieldNumber = 1; /// /// Ошибка фильтрации подписок /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError SubscriptionFilterValidation { get { return reasonCase_ == ReasonOneofCase.SubscriptionFilterValidation ? (global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.SubscriptionFilterValidation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, SubscriptionFilterValidation = 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(SubscriptionFilterValidation, other.SubscriptionFilterValidation)) 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.SubscriptionFilterValidation) hash ^= SubscriptionFilterValidation.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.SubscriptionFilterValidation) { output.WriteRawTag(10); output.WriteMessage(SubscriptionFilterValidation); } 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.SubscriptionFilterValidation) { output.WriteRawTag(10); output.WriteMessage(SubscriptionFilterValidation); } 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.SubscriptionFilterValidation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubscriptionFilterValidation); } 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.SubscriptionFilterValidation: if (SubscriptionFilterValidation == null) { SubscriptionFilterValidation = new global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError(); } SubscriptionFilterValidation.MergeFrom(other.SubscriptionFilterValidation); 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.SubscriptionFilter.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.SubscriptionFilterValidation) { subBuilder.MergeFrom(SubscriptionFilterValidation); } input.ReadMessage(subBuilder); SubscriptionFilterValidation = 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.SubscriptionFilter.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.SubscriptionFilter.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.SubscriptionFilterValidation) { subBuilder.MergeFrom(SubscriptionFilterValidation); } input.ReadMessage(subBuilder); SubscriptionFilterValidation = subBuilder; break; } } } } #endif } } #endregion } #endregion } #endregion Designer generated code