// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/subscription/v1/keyapis_subscription_events_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_events_v1.proto public static partial class KeyapisSubscriptionEventsV1Reflection { #region Descriptor /// File descriptor for keyapis/subscription/v1/keyapis_subscription_events_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisSubscriptionEventsV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjxrZXlhcGlzL3N1YnNjcmlwdGlvbi92MS9rZXlhcGlzX3N1YnNjcmlwdGlv", "bl9ldmVudHNfdjEucHJvdG8SF2tleWFwaXMuc3Vic2NyaXB0aW9uLnYxGhxn", "b29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxk", "X2JlaGF2aW9yLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnBy", "b3RvGj9rZXlhcGlzL3N1YnNjcmlwdGlvbi92MS9rZXlhcGlzX3N1YnNjcmlw", "dGlvbl9wcml2aWxlZ2VfdjEucHJvdG8icgofQ29tbWVyY2lhbE9mZmVyQ21z", "QXZhaWxhYmxlVGFzaxIXCgpyZXF1ZXN0X2lkGAEgASgJQgPgQQISFQoIb3Jw", "b25faWQYAiABKANCA+BBAhIfChdwcml2aWxlZ2VkX3Jvb21fbnVtYmVycxgD", "IAMoCSJTCiFDb21tZXJjaWFsT2ZmZXJDbXNVbmF2YWlsYWJsZVRhc2sSFwoK", "cmVxdWVzdF9pZBgBIAEoCUID4EECEhUKCG9ycG9uX2lkGAIgASgDQgPgQQIi", "8QIKGFByaXZpbGVnZVN0YXRlQ2hhbmdlVGFzaxIXCgpyZXF1ZXN0X2lkGAEg", "ASgJQgPgQQISFQoIb3Jwb25faWQYAiABKANCA+BBAhIYCgtyb29tX251bWJl", "chgDIAEoCUID4EECEkQKDnByaXZpbGVnZV90eXBlGAQgASgOMicua2V5YXBp", "cy5zdWJzY3JpcHRpb24udjEuUHJpdmlsZWdlLlR5cGVCA+BBAhJFCgpzdGF0", "ZV90eXBlGAUgASgOMiwua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuUHJpdmls", "ZWdlLlN0YXRlVHlwZUID4EECEkkKE3ByZXZpb3VzX3N0YXRlX3R5cGUYBiAB", "KA4yLC5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5Qcml2aWxlZ2UuU3RhdGVU", "eXBlEjMKCnVwZGF0ZWRfYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", "ZXN0YW1wQgPgQQIiOwoLQ21zSW5pdFRhc2sSFwoKcmVxdWVzdF9pZBgBIAEo", "CUID4EECEhMKBm9ycG9ucxgCIAMoA0ID4EECQsQBChpydS5rZXlhcGlzLnN1", "YnNjcmlwdGlvbi52MUIaS2V5YXBpc1N1YnNjcmlwdGlvblYxUHJvdG9IA1AA", "Whgva2V5YXBpc19zdWJzY3JpcHRpb25fdjHYAQH4AQGiAhVLRVlBUElTU1VC", "U0NSSVBUSU9OVjGqAhdLZXlhcGlzLlN1YnNjcmlwdGlvbi5WMcoCF0tleWFw", "aXNcU3Vic2NyaXB0aW9uXFYx6gIZS2V5YXBpczo6U3Vic2NyaXB0aW9uOjpW", "MWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Keyapis.Subscription.V1.KeyapisSubscriptionPrivilegeV1Reflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.CommercialOfferCmsAvailableTask), global::Keyapis.Subscription.V1.CommercialOfferCmsAvailableTask.Parser, new[]{ "RequestId", "OrponId", "PrivilegedRoomNumbers" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.CommercialOfferCmsUnavailableTask), global::Keyapis.Subscription.V1.CommercialOfferCmsUnavailableTask.Parser, new[]{ "RequestId", "OrponId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PrivilegeStateChangeTask), global::Keyapis.Subscription.V1.PrivilegeStateChangeTask.Parser, new[]{ "RequestId", "OrponId", "RoomNumber", "PrivilegeType", "StateType", "PreviousStateType", "UpdatedAt" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.CmsInitTask), global::Keyapis.Subscription.V1.CmsInitTask.Parser, new[]{ "RequestId", "Orpons" }, null, null, null, null) })); } #endregion } #region Messages /// /// Событие о появлении коммерческой возможности с услугой аналоговой трубки. /// Очередь key.subscription.cms_available /// public sealed partial class CommercialOfferCmsAvailableTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommercialOfferCmsAvailableTask()); 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.KeyapisSubscriptionEventsV1Reflection.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 CommercialOfferCmsAvailableTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CommercialOfferCmsAvailableTask(CommercialOfferCmsAvailableTask other) : this() { requestId_ = other.requestId_; orponId_ = other.orponId_; privilegedRoomNumbers_ = other.privilegedRoomNumbers_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CommercialOfferCmsAvailableTask Clone() { return new CommercialOfferCmsAvailableTask(this); } /// Field number for the "request_id" field. public const int RequestIdFieldNumber = 1; private string requestId_ = ""; /// /// Идентификатор запроса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RequestId { get { return requestId_; } set { requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "orpon_id" field. public const int OrponIdFieldNumber = 2; private long orponId_; /// /// Идентификатор ОРПОН дома /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long OrponId { get { return orponId_; } set { orponId_ = value; } } /// Field number for the "privileged_room_numbers" field. public const int PrivilegedRoomNumbersFieldNumber = 3; private static readonly pb::FieldCodec _repeated_privilegedRoomNumbers_codec = pb::FieldCodec.ForString(26); private readonly pbc::RepeatedField privilegedRoomNumbers_ = new pbc::RepeatedField(); /// /// Номера квартир, с привилегией "Аналоговая трубка" в статусе: Оплачено, Промо, Отключается /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField PrivilegedRoomNumbers { get { return privilegedRoomNumbers_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CommercialOfferCmsAvailableTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CommercialOfferCmsAvailableTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (OrponId != other.OrponId) return false; if(!privilegedRoomNumbers_.Equals(other.privilegedRoomNumbers_)) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (OrponId != 0L) hash ^= OrponId.GetHashCode(); hash ^= privilegedRoomNumbers_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (OrponId != 0L) { output.WriteRawTag(16); output.WriteInt64(OrponId); } privilegedRoomNumbers_.WriteTo(output, _repeated_privilegedRoomNumbers_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (OrponId != 0L) { output.WriteRawTag(16); output.WriteInt64(OrponId); } privilegedRoomNumbers_.WriteTo(ref output, _repeated_privilegedRoomNumbers_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (OrponId != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrponId); } size += privilegedRoomNumbers_.CalculateSize(_repeated_privilegedRoomNumbers_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CommercialOfferCmsAvailableTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.OrponId != 0L) { OrponId = other.OrponId; } privilegedRoomNumbers_.Add(other.privilegedRoomNumbers_); _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: { RequestId = input.ReadString(); break; } case 16: { OrponId = input.ReadInt64(); break; } case 26: { privilegedRoomNumbers_.AddEntriesFrom(input, _repeated_privilegedRoomNumbers_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: { RequestId = input.ReadString(); break; } case 16: { OrponId = input.ReadInt64(); break; } case 26: { privilegedRoomNumbers_.AddEntriesFrom(ref input, _repeated_privilegedRoomNumbers_codec); break; } } } } #endif } /// /// Событие о прекращении действия коммерческой возможности с услугой аналоговой трубки. /// Очередь key.subscription.cms_unavailable /// public sealed partial class CommercialOfferCmsUnavailableTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommercialOfferCmsUnavailableTask()); 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.KeyapisSubscriptionEventsV1Reflection.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 CommercialOfferCmsUnavailableTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CommercialOfferCmsUnavailableTask(CommercialOfferCmsUnavailableTask other) : this() { requestId_ = other.requestId_; orponId_ = other.orponId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CommercialOfferCmsUnavailableTask Clone() { return new CommercialOfferCmsUnavailableTask(this); } /// Field number for the "request_id" field. public const int RequestIdFieldNumber = 1; private string requestId_ = ""; /// /// Идентификатор запроса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RequestId { get { return requestId_; } set { requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "orpon_id" field. public const int OrponIdFieldNumber = 2; private long orponId_; /// /// Идентификатор ОРПОН дома /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long OrponId { get { return orponId_; } set { orponId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CommercialOfferCmsUnavailableTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CommercialOfferCmsUnavailableTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (OrponId != other.OrponId) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (OrponId != 0L) hash ^= OrponId.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (OrponId != 0L) { output.WriteRawTag(16); output.WriteInt64(OrponId); } 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (OrponId != 0L) { output.WriteRawTag(16); output.WriteInt64(OrponId); } 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 (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (OrponId != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrponId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CommercialOfferCmsUnavailableTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.OrponId != 0L) { OrponId = other.OrponId; } _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: { RequestId = input.ReadString(); break; } case 16: { OrponId = input.ReadInt64(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 16: { OrponId = input.ReadInt64(); break; } } } } #endif } /// /// Сообщение об изменении состояния привилегии. /// Очередь key.subscription.privilege_state_change /// public sealed partial class PrivilegeStateChangeTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PrivilegeStateChangeTask()); 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.KeyapisSubscriptionEventsV1Reflection.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 PrivilegeStateChangeTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PrivilegeStateChangeTask(PrivilegeStateChangeTask other) : this() { requestId_ = other.requestId_; orponId_ = other.orponId_; roomNumber_ = other.roomNumber_; privilegeType_ = other.privilegeType_; stateType_ = other.stateType_; previousStateType_ = other.previousStateType_; updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PrivilegeStateChangeTask Clone() { return new PrivilegeStateChangeTask(this); } /// Field number for the "request_id" field. public const int RequestIdFieldNumber = 1; private string requestId_ = ""; /// /// Идентификатор запроса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RequestId { get { return requestId_; } set { requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "orpon_id" field. public const int OrponIdFieldNumber = 2; private long orponId_; /// /// Идентификатор ОРПОН дома /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long OrponId { get { return orponId_; } set { orponId_ = value; } } /// Field number for the "room_number" field. public const int RoomNumberFieldNumber = 3; private string roomNumber_ = ""; /// /// Номер квартиры /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RoomNumber { get { return roomNumber_; } set { roomNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "privilege_type" field. public const int PrivilegeTypeFieldNumber = 4; private global::Keyapis.Subscription.V1.Privilege.Types.Type privilegeType_ = global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown; /// /// Тип привилегии /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.Privilege.Types.Type PrivilegeType { get { return privilegeType_; } set { privilegeType_ = value; } } /// Field number for the "state_type" field. public const int StateTypeFieldNumber = 5; private global::Keyapis.Subscription.V1.Privilege.Types.StateType stateType_ = global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown; /// /// Тип состояния привилегий /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.Privilege.Types.StateType StateType { get { return stateType_; } set { stateType_ = value; } } /// Field number for the "previous_state_type" field. public const int PreviousStateTypeFieldNumber = 6; private global::Keyapis.Subscription.V1.Privilege.Types.StateType previousStateType_ = global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown; /// /// Предыдущий тип состояния привилегии /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Subscription.V1.Privilege.Types.StateType PreviousStateType { get { return previousStateType_; } set { previousStateType_ = value; } } /// Field number for the "updated_at" field. public const int UpdatedAtFieldNumber = 7; private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; /// /// Дата обновления состояния привилегии /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { get { return updatedAt_; } set { updatedAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PrivilegeStateChangeTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PrivilegeStateChangeTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (OrponId != other.OrponId) return false; if (RoomNumber != other.RoomNumber) return false; if (PrivilegeType != other.PrivilegeType) return false; if (StateType != other.StateType) return false; if (PreviousStateType != other.PreviousStateType) return false; if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (OrponId != 0L) hash ^= OrponId.GetHashCode(); if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode(); if (PrivilegeType != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) hash ^= PrivilegeType.GetHashCode(); if (StateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) hash ^= StateType.GetHashCode(); if (PreviousStateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) hash ^= PreviousStateType.GetHashCode(); if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (OrponId != 0L) { output.WriteRawTag(16); output.WriteInt64(OrponId); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } if (PrivilegeType != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) PrivilegeType); } if (StateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) StateType); } if (PreviousStateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) { output.WriteRawTag(48); output.WriteEnum((int) PreviousStateType); } if (updatedAt_ != null) { output.WriteRawTag(58); output.WriteMessage(UpdatedAt); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (OrponId != 0L) { output.WriteRawTag(16); output.WriteInt64(OrponId); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } if (PrivilegeType != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) PrivilegeType); } if (StateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) StateType); } if (PreviousStateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) { output.WriteRawTag(48); output.WriteEnum((int) PreviousStateType); } if (updatedAt_ != null) { output.WriteRawTag(58); output.WriteMessage(UpdatedAt); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (OrponId != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrponId); } if (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (PrivilegeType != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrivilegeType); } if (StateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StateType); } if (PreviousStateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PreviousStateType); } if (updatedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PrivilegeStateChangeTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.OrponId != 0L) { OrponId = other.OrponId; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } if (other.PrivilegeType != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) { PrivilegeType = other.PrivilegeType; } if (other.StateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) { StateType = other.StateType; } if (other.PreviousStateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) { PreviousStateType = other.PreviousStateType; } if (other.updatedAt_ != null) { if (updatedAt_ == null) { UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } UpdatedAt.MergeFrom(other.UpdatedAt); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { RequestId = input.ReadString(); break; } case 16: { OrponId = input.ReadInt64(); break; } case 26: { RoomNumber = input.ReadString(); break; } case 32: { PrivilegeType = (global::Keyapis.Subscription.V1.Privilege.Types.Type) input.ReadEnum(); break; } case 40: { StateType = (global::Keyapis.Subscription.V1.Privilege.Types.StateType) input.ReadEnum(); break; } case 48: { PreviousStateType = (global::Keyapis.Subscription.V1.Privilege.Types.StateType) input.ReadEnum(); break; } case 58: { if (updatedAt_ == null) { UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(UpdatedAt); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 16: { OrponId = input.ReadInt64(); break; } case 26: { RoomNumber = input.ReadString(); break; } case 32: { PrivilegeType = (global::Keyapis.Subscription.V1.Privilege.Types.Type) input.ReadEnum(); break; } case 40: { StateType = (global::Keyapis.Subscription.V1.Privilege.Types.StateType) input.ReadEnum(); break; } case 48: { PreviousStateType = (global::Keyapis.Subscription.V1.Privilege.Types.StateType) input.ReadEnum(); break; } case 58: { if (updatedAt_ == null) { UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(UpdatedAt); break; } } } } #endif } /// /// Событие инициализации сценария обновления статусов аналоговых трубок. /// Очередь key.subscription.cms_init /// public sealed partial class CmsInitTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CmsInitTask()); 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.KeyapisSubscriptionEventsV1Reflection.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 CmsInitTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CmsInitTask(CmsInitTask other) : this() { requestId_ = other.requestId_; orpons_ = other.orpons_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CmsInitTask Clone() { return new CmsInitTask(this); } /// Field number for the "request_id" field. public const int RequestIdFieldNumber = 1; private string requestId_ = ""; /// /// Идентификатор запроса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RequestId { get { return requestId_; } set { requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "orpons" field. public const int OrponsFieldNumber = 2; private static readonly pb::FieldCodec _repeated_orpons_codec = pb::FieldCodec.ForInt64(18); 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_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CmsInitTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CmsInitTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if(!orpons_.Equals(other.orpons_)) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); hash ^= orpons_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } orpons_.WriteTo(output, _repeated_orpons_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } orpons_.WriteTo(ref output, _repeated_orpons_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } size += orpons_.CalculateSize(_repeated_orpons_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CmsInitTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } orpons_.Add(other.orpons_); _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: { RequestId = input.ReadString(); break; } case 18: case 16: { orpons_.AddEntriesFrom(input, _repeated_orpons_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: { RequestId = input.ReadString(); break; } case 18: case 16: { orpons_.AddEntriesFrom(ref input, _repeated_orpons_codec); break; } } } } #endif } #endregion } #endregion Designer generated code