// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/access_control/v1/keyapis_access_control_broadcast_alert_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.AccessControl.V1 { /// Holder for reflection information generated from keyapis/access_control/v1/keyapis_access_control_broadcast_alert_v1.proto public static partial class KeyapisAccessControlBroadcastAlertV1Reflection { #region Descriptor /// File descriptor for keyapis/access_control/v1/keyapis_access_control_broadcast_alert_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisAccessControlBroadcastAlertV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CklrZXlhcGlzL2FjY2Vzc19jb250cm9sL3YxL2tleWFwaXNfYWNjZXNzX2Nv", "bnRyb2xfYnJvYWRjYXN0X2FsZXJ0X3YxLnByb3RvEhlrZXlhcGlzLmFjY2Vz", "c19jb250cm9sLnYxGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGh9n", "b29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGkhrZXlhcGlzL2FjY2Vz", "c19jb250cm9sL3YxL2tleWFwaXNfYWNjZXNzX2NvbnRyb2xfYWNjZXNzX2Nv", "bnRyb2xfdjEucHJvdG8igwMKHlBvc3RCcm9hZGNhc3RBbGVydFN0YXJ0UmVx", "dWVzdBIbCg5zb3VuZF9maWxlX3VyaRgBIAEoCUID4EECEg4KBm9ycG9ucxgC", "IAMoAxIfChJ0YWN0X3BsYXlfZHVyYXRpb24YAyABKAVCA+BBAhIeChF0YWN0", "X3JlcGVhdF9jb3VudBgEIAEoBUID4EECEh4KEXBsYXlfcmVwZWF0X2NvdW50", "GAUgASgFQgPgQQISWgoJcGxheV90eXBlGAYgASgOMkIua2V5YXBpcy5hY2Nl", "c3NfY29udHJvbC52MS5Qb3N0QnJvYWRjYXN0QWxlcnRTdGFydFJlcXVlc3Qu", "UGxheVR5cGVCA+BBAiJ3CghQbGF5VHlwZRIVChFQTEFZX1RZUEVfVU5LTk9X", "ThAAEhAKDEhBTkRTRVRfT05MWRABEhAKDFNQRUFLRVJfT05MWRACEhcKE0hB", "TkRTRVRfQU5EX1NQRUFLRVIQAxIXChNTUEVBS0VSX0FORF9IQU5EU0VUEAQi", "2wIKH1Bvc3RCcm9hZGNhc3RBbGVydFN0YXJ0UmVzcG9uc2USUQoFZXJyb3IY", "ASABKAsyQC5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLlBvc3RCcm9hZGNh", "c3RBbGVydFN0YXJ0UmVzcG9uc2UuRXJyb3JIABrcAQoFRXJyb3ISQAoKdmFs", "aWRhdGlvbhgBIAEoCzIqLmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuVmFs", "aWRhdGlvbkVycm9ySAAScgoUc291bmRfZmlsZV9ub3RfZm91bmQYAiABKAsy", "Ui5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLlBvc3RCcm9hZGNhc3RBbGVy", "dFN0YXJ0UmVzcG9uc2UuRXJyb3IuU291bmRGaWxlTm90Rm91bmRIABoTChFT", "b3VuZEZpbGVOb3RGb3VuZEIICgZyZWFzb25CBgoEdHlwZSIvCh1Qb3N0QnJv", "YWRjYXN0QWxlcnRTdG9wUmVxdWVzdBIOCgZvcnBvbnMYASADKAMizwEKHlBv", "c3RCcm9hZGNhc3RBbGVydFN0b3BSZXNwb25zZRJQCgVlcnJvchgBIAEoCzI/", "LmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuUG9zdEJyb2FkY2FzdEFsZXJ0", "U3RvcFJlc3BvbnNlLkVycm9ySAAaUwoFRXJyb3ISQAoKdmFsaWRhdGlvbhgB", "IAEoCzIqLmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuVmFsaWRhdGlvbkVy", "cm9ySABCCAoGcmVhc29uQgYKBHR5cGUyvQMKFUJyb2FkY2FzdEFsZXJ0U2Vy", "dmljZRLSAQoXUG9zdEJyb2FkY2FzdEFsZXJ0U3RhcnQSOS5rZXlhcGlzLmFj", "Y2Vzc19jb250cm9sLnYxLlBvc3RCcm9hZGNhc3RBbGVydFN0YXJ0UmVxdWVz", "dBo6LmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuUG9zdEJyb2FkY2FzdEFs", "ZXJ0U3RhcnRSZXNwb25zZSJAgtPkkwI6IjUvYWNjZXNzX2NvbnRyb2wvaW50", "ZXJuYWwvYXBpL3YxL2Jyb2FkY2FzdF9hbGVydC9zdGFydDoBKhLOAQoWUG9z", "dEJyb2FkY2FzdEFsZXJ0U3RvcBI4LmtleWFwaXMuYWNjZXNzX2NvbnRyb2wu", "djEuUG9zdEJyb2FkY2FzdEFsZXJ0U3RvcFJlcXVlc3QaOS5rZXlhcGlzLmFj", "Y2Vzc19jb250cm9sLnYxLlBvc3RCcm9hZGNhc3RBbGVydFN0b3BSZXNwb25z", "ZSI/gtPkkwI5IjQvYWNjZXNzX2NvbnRyb2wvaW50ZXJuYWwvYXBpL3YxL2Jy", "b2FkY2FzdF9hbGVydC9zdG9wOgEqQs0BChxydS5rZXlhcGlzLmFjY2Vzc19j", "b250cm9sLnYxQhtLZXlhcGlzQWNjZXNzQ29udHJvbFYxUHJvdG9IA1AAWhov", "a2V5YXBpc19hY2Nlc3NfY29udHJvbF92MdgBAfgBAaICFktFWUFQSVNBQ0NF", "U1NDT05UUk9MVjGqAhhLZXlhcGlzLkFjY2Vzc0NvbnRyb2wuVjHKAhhLZXlh", "cGlzXEFjY2Vzc0NvbnRyb2xcVjHqAhpLZXlhcGlzOjpBY2Nlc3NDb250cm9s", "OjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Keyapis.AccessControl.V1.KeyapisAccessControlAccessControlV1Reflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest), global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest.Parser, new[]{ "SoundFileUri", "Orpons", "TactPlayDuration", "TactRepeatCount", "PlayRepeatCount", "PlayType" }, null, new[]{ typeof(global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest.Types.PlayType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse), global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error), global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error.Parser, new[]{ "Validation", "SoundFileNotFound" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error.Types.SoundFileNotFound), global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error.Types.SoundFileNotFound.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostBroadcastAlertStopRequest), global::Keyapis.AccessControl.V1.PostBroadcastAlertStopRequest.Parser, new[]{ "Orpons" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostBroadcastAlertStopResponse), global::Keyapis.AccessControl.V1.PostBroadcastAlertStopResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostBroadcastAlertStopResponse.Types.Error), global::Keyapis.AccessControl.V1.PostBroadcastAlertStopResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}) })); } #endregion } #region Messages /// /// Запрос на запуск массового оповещения через домофоны /// public sealed partial class PostBroadcastAlertStartRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostBroadcastAlertStartRequest()); 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.AccessControl.V1.KeyapisAccessControlBroadcastAlertV1Reflection.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 PostBroadcastAlertStartRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBroadcastAlertStartRequest(PostBroadcastAlertStartRequest other) : this() { soundFileUri_ = other.soundFileUri_; orpons_ = other.orpons_.Clone(); tactPlayDuration_ = other.tactPlayDuration_; tactRepeatCount_ = other.tactRepeatCount_; playRepeatCount_ = other.playRepeatCount_; playType_ = other.playType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBroadcastAlertStartRequest Clone() { return new PostBroadcastAlertStartRequest(this); } /// Field number for the "sound_file_uri" field. public const int SoundFileUriFieldNumber = 1; private string soundFileUri_ = ""; /// /// Ссылка на звуковой файл для проигрывания. /// Файл должен лежать на внутреннем хранилище. /// # Диапазон: 2..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SoundFileUri { get { return soundFileUri_; } set { soundFileUri_ = 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(); /// /// Массив ОРПОНов домов, на которых запускаем проигрывание. /// # Диапазон: 1..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Orpons { get { return orpons_; } } /// Field number for the "tact_play_duration" field. public const int TactPlayDurationFieldNumber = 3; private int tactPlayDuration_; /// /// Длительность воспроизведения такта в секундах. /// Такт включает в себя проигрывание файла на трубках или на динамике. /// # Диапазон: 0..65536 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int TactPlayDuration { get { return tactPlayDuration_; } set { tactPlayDuration_ = value; } } /// Field number for the "tact_repeat_count" field. public const int TactRepeatCountFieldNumber = 4; private int tactRepeatCount_; /// /// Количество последовательных повторов тактов перед сменой динамика на трубки или наоборот. /// # Диапазон: 0..65536 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int TactRepeatCount { get { return tactRepeatCount_; } set { tactRepeatCount_ = value; } } /// Field number for the "play_repeat_count" field. public const int PlayRepeatCountFieldNumber = 5; private int playRepeatCount_; /// /// Количество дополнительных повторов тактов, т.е. умолчание=0 - это проигрывание одного такта. /// # Диапазон: 0..65536 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int PlayRepeatCount { get { return playRepeatCount_; } set { playRepeatCount_ = value; } } /// Field number for the "play_type" field. public const int PlayTypeFieldNumber = 6; private global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest.Types.PlayType playType_ = global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest.Types.PlayType.Unknown; /// /// Тип проигрывания /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest.Types.PlayType PlayType { get { return playType_; } set { playType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostBroadcastAlertStartRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostBroadcastAlertStartRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (SoundFileUri != other.SoundFileUri) return false; if(!orpons_.Equals(other.orpons_)) return false; if (TactPlayDuration != other.TactPlayDuration) return false; if (TactRepeatCount != other.TactRepeatCount) return false; if (PlayRepeatCount != other.PlayRepeatCount) return false; if (PlayType != other.PlayType) 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 (SoundFileUri.Length != 0) hash ^= SoundFileUri.GetHashCode(); hash ^= orpons_.GetHashCode(); if (TactPlayDuration != 0) hash ^= TactPlayDuration.GetHashCode(); if (TactRepeatCount != 0) hash ^= TactRepeatCount.GetHashCode(); if (PlayRepeatCount != 0) hash ^= PlayRepeatCount.GetHashCode(); if (PlayType != global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest.Types.PlayType.Unknown) hash ^= PlayType.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 (SoundFileUri.Length != 0) { output.WriteRawTag(10); output.WriteString(SoundFileUri); } orpons_.WriteTo(output, _repeated_orpons_codec); if (TactPlayDuration != 0) { output.WriteRawTag(24); output.WriteInt32(TactPlayDuration); } if (TactRepeatCount != 0) { output.WriteRawTag(32); output.WriteInt32(TactRepeatCount); } if (PlayRepeatCount != 0) { output.WriteRawTag(40); output.WriteInt32(PlayRepeatCount); } if (PlayType != global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest.Types.PlayType.Unknown) { output.WriteRawTag(48); output.WriteEnum((int) PlayType); } 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 (SoundFileUri.Length != 0) { output.WriteRawTag(10); output.WriteString(SoundFileUri); } orpons_.WriteTo(ref output, _repeated_orpons_codec); if (TactPlayDuration != 0) { output.WriteRawTag(24); output.WriteInt32(TactPlayDuration); } if (TactRepeatCount != 0) { output.WriteRawTag(32); output.WriteInt32(TactRepeatCount); } if (PlayRepeatCount != 0) { output.WriteRawTag(40); output.WriteInt32(PlayRepeatCount); } if (PlayType != global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest.Types.PlayType.Unknown) { output.WriteRawTag(48); output.WriteEnum((int) PlayType); } 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 (SoundFileUri.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SoundFileUri); } size += orpons_.CalculateSize(_repeated_orpons_codec); if (TactPlayDuration != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(TactPlayDuration); } if (TactRepeatCount != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(TactRepeatCount); } if (PlayRepeatCount != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayRepeatCount); } if (PlayType != global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest.Types.PlayType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostBroadcastAlertStartRequest other) { if (other == null) { return; } if (other.SoundFileUri.Length != 0) { SoundFileUri = other.SoundFileUri; } orpons_.Add(other.orpons_); if (other.TactPlayDuration != 0) { TactPlayDuration = other.TactPlayDuration; } if (other.TactRepeatCount != 0) { TactRepeatCount = other.TactRepeatCount; } if (other.PlayRepeatCount != 0) { PlayRepeatCount = other.PlayRepeatCount; } if (other.PlayType != global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest.Types.PlayType.Unknown) { PlayType = other.PlayType; } _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: { SoundFileUri = input.ReadString(); break; } case 18: case 16: { orpons_.AddEntriesFrom(input, _repeated_orpons_codec); break; } case 24: { TactPlayDuration = input.ReadInt32(); break; } case 32: { TactRepeatCount = input.ReadInt32(); break; } case 40: { PlayRepeatCount = input.ReadInt32(); break; } case 48: { PlayType = (global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest.Types.PlayType) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { SoundFileUri = input.ReadString(); break; } case 18: case 16: { orpons_.AddEntriesFrom(ref input, _repeated_orpons_codec); break; } case 24: { TactPlayDuration = input.ReadInt32(); break; } case 32: { TactRepeatCount = input.ReadInt32(); break; } case 40: { PlayRepeatCount = input.ReadInt32(); break; } case 48: { PlayType = (global::Keyapis.AccessControl.V1.PostBroadcastAlertStartRequest.Types.PlayType) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the PostBroadcastAlertStartRequest message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Тип проигрывания. /// # Тип: byte /// public enum PlayType { /// /// Значение не указано /// [pbr::OriginalName("PLAY_TYPE_UNKNOWN")] Unknown = 0, /// /// Только на аналоговые трубки /// [pbr::OriginalName("HANDSET_ONLY")] HandsetOnly = 1, /// /// Tолько на динамик домофона /// [pbr::OriginalName("SPEAKER_ONLY")] SpeakerOnly = 2, /// /// Сначала на аналоговые трубки проигрываем заданное количество тактов, затем на динамик домофона /// [pbr::OriginalName("HANDSET_AND_SPEAKER")] HandsetAndSpeaker = 3, /// /// Сначала на динамик домофона проигрываем заданное количество тактов, затем на аналоговые трубки /// [pbr::OriginalName("SPEAKER_AND_HANDSET")] SpeakerAndHandset = 4, } } #endregion } /// /// Ответ на запрос на запуск массового оповещения через домофоны /// public sealed partial class PostBroadcastAlertStartResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostBroadcastAlertStartResponse()); 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.AccessControl.V1.KeyapisAccessControlBroadcastAlertV1Reflection.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 PostBroadcastAlertStartResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBroadcastAlertStartResponse(PostBroadcastAlertStartResponse other) : this() { switch (other.TypeCase) { 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 PostBroadcastAlertStartResponse Clone() { return new PostBroadcastAlertStartResponse(this); } /// Field number for the "error" field. public const int ErrorFieldNumber = 1; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.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, Error = 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 PostBroadcastAlertStartResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostBroadcastAlertStartResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } 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.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.Error) { output.WriteRawTag(10); 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.Error) { output.WriteRawTag(10); 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.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(PostBroadcastAlertStartResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.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.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.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.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.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 PostBroadcastAlertStartResponse 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.AccessControl.V1.PostBroadcastAlertStartResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; case ReasonOneofCase.SoundFileNotFound: SoundFileNotFound = other.SoundFileNotFound.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.AccessControl.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } /// Field number for the "sound_file_not_found" field. public const int SoundFileNotFoundFieldNumber = 2; /// /// Звуковой файл не найден /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error.Types.SoundFileNotFound SoundFileNotFound { get { return reasonCase_ == ReasonOneofCase.SoundFileNotFound ? (global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error.Types.SoundFileNotFound) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.SoundFileNotFound; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, SoundFileNotFound = 2, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (!object.Equals(SoundFileNotFound, other.SoundFileNotFound)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); if (reasonCase_ == ReasonOneofCase.SoundFileNotFound) hash ^= SoundFileNotFound.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (reasonCase_ == ReasonOneofCase.SoundFileNotFound) { output.WriteRawTag(18); output.WriteMessage(SoundFileNotFound); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (reasonCase_ == ReasonOneofCase.SoundFileNotFound) { output.WriteRawTag(18); output.WriteMessage(SoundFileNotFound); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (reasonCase_ == ReasonOneofCase.SoundFileNotFound) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SoundFileNotFound); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.AccessControl.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; case ReasonOneofCase.SoundFileNotFound: if (SoundFileNotFound == null) { SoundFileNotFound = new global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error.Types.SoundFileNotFound(); } SoundFileNotFound.MergeFrom(other.SoundFileNotFound); 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.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error.Types.SoundFileNotFound subBuilder = new global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error.Types.SoundFileNotFound(); if (reasonCase_ == ReasonOneofCase.SoundFileNotFound) { subBuilder.MergeFrom(SoundFileNotFound); } input.ReadMessage(subBuilder); SoundFileNotFound = 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.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error.Types.SoundFileNotFound subBuilder = new global::Keyapis.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error.Types.SoundFileNotFound(); if (reasonCase_ == ReasonOneofCase.SoundFileNotFound) { subBuilder.MergeFrom(SoundFileNotFound); } input.ReadMessage(subBuilder); SoundFileNotFound = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the Error message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Звуковой файл не найден /// public sealed partial class SoundFileNotFound : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SoundFileNotFound()); 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.AccessControl.V1.PostBroadcastAlertStartResponse.Types.Error.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 SoundFileNotFound() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SoundFileNotFound(SoundFileNotFound other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SoundFileNotFound Clone() { return new SoundFileNotFound(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SoundFileNotFound); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SoundFileNotFound 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(SoundFileNotFound 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 PostBroadcastAlertStopRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostBroadcastAlertStopRequest()); 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.AccessControl.V1.KeyapisAccessControlBroadcastAlertV1Reflection.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 PostBroadcastAlertStopRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBroadcastAlertStopRequest(PostBroadcastAlertStopRequest other) : this() { orpons_ = other.orpons_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBroadcastAlertStopRequest Clone() { return new PostBroadcastAlertStopRequest(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(); /// /// Массив ОРПОНов домов, на которых запускаем проигрывание. /// # Диапазон: 1..100 /// [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 PostBroadcastAlertStopRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostBroadcastAlertStopRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } 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; 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 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) { 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; 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(PostBroadcastAlertStopRequest other) { if (other == null) { return; } 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: case 8: { 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: case 8: { orpons_.AddEntriesFrom(ref input, _repeated_orpons_codec); break; } } } } #endif } /// /// Ответ на запрос на прекращение массового оповещения через домофоны /// public sealed partial class PostBroadcastAlertStopResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostBroadcastAlertStopResponse()); 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.AccessControl.V1.KeyapisAccessControlBroadcastAlertV1Reflection.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 PostBroadcastAlertStopResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostBroadcastAlertStopResponse(PostBroadcastAlertStopResponse other) : this() { switch (other.TypeCase) { 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 PostBroadcastAlertStopResponse Clone() { return new PostBroadcastAlertStopResponse(this); } /// Field number for the "error" field. public const int ErrorFieldNumber = 1; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.PostBroadcastAlertStopResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.PostBroadcastAlertStopResponse.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, Error = 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 PostBroadcastAlertStopResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostBroadcastAlertStopResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } 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.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.Error) { output.WriteRawTag(10); 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.Error) { output.WriteRawTag(10); 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.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(PostBroadcastAlertStopResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.AccessControl.V1.PostBroadcastAlertStopResponse.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.AccessControl.V1.PostBroadcastAlertStopResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.PostBroadcastAlertStopResponse.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.AccessControl.V1.PostBroadcastAlertStopResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.PostBroadcastAlertStopResponse.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 PostBroadcastAlertStopResponse 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.AccessControl.V1.PostBroadcastAlertStopResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.AccessControl.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.AccessControl.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } #endregion } #endregion Designer generated code