// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/device/v1/keyapis_device_event_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.Device.V1 { /// Holder for reflection information generated from keyapis/device/v1/keyapis_device_event_alert_v1.proto public static partial class KeyapisDeviceEventAlertV1Reflection { #region Descriptor /// File descriptor for keyapis/device/v1/keyapis_device_event_alert_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisDeviceEventAlertV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjVrZXlhcGlzL2RldmljZS92MS9rZXlhcGlzX2RldmljZV9ldmVudF9hbGVy", "dF92MS5wcm90bxIRa2V5YXBpcy5kZXZpY2UudjEaH2dvb2dsZS9hcGkvZmll", "bGRfYmVoYXZpb3IucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5w", "cm90byKAAwoQUHJlcGFyZVN0YXJ0VGFzaxIXCgpyZXF1ZXN0X2lkGAEgASgJ", "QgPgQQISGwoOc291bmRfZmlsZV91cmkYAiABKAlCA+BBAhIWCglkZXZpY2Vf", "aWQYAyABKAVCA+BBAhIfChJ0YWN0X3BsYXlfZHVyYXRpb24YBCABKAVCA+BB", "AhIeChF0YWN0X3JlcGVhdF9jb3VudBgFIAEoBUID4EECEh4KEXBsYXlfcmVw", "ZWF0X2NvdW50GAYgASgFQgPgQQISRAoJcGxheV90eXBlGAcgASgOMiwua2V5", "YXBpcy5kZXZpY2UudjEuUHJlcGFyZVN0YXJ0VGFzay5QbGF5VHlwZUID4EEC", "IncKCFBsYXlUeXBlEhUKEVBMQVlfVFlQRV9VTktOT1dOEAASEAoMSEFORFNF", "VF9PTkxZEAESEAoMU1BFQUtFUl9PTkxZEAISFwoTSEFORFNFVF9BTkRfU1BF", "QUtFUhADEhcKE1NQRUFLRVJfQU5EX0hBTkRTRVQQBCJCCg9QcmVwYXJlU3Rv", "cFRhc2sSFwoKcmVxdWVzdF9pZBgBIAEoCUID4EECEhYKCWRldmljZV9pZBgC", "IAEoBUID4EECIq8ECg1QbGF5U3RhcnRUYXNrEhcKCnJlcXVlc3RfaWQYASAB", "KAlCA+BBAhIWCglkZXZpY2VfaWQYAiABKAVCA+BBAhIbCg5zb3VuZF9maWxl", "X3VyaRgDIAEoCUID4EECEhcKCmlwX2FkZHJlc3MYBCABKAlCA+BBAhIpCgRw", "b3J0GAUgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSEgoFbW9k", "ZWwYBiABKAlCA+BBAhIfChJ0YWN0X3BsYXlfZHVyYXRpb24YByABKAVCA+BB", "AhIeChF0YWN0X3JlcGVhdF9jb3VudBgIIAEoBUID4EECEh4KEXBsYXlfcmVw", "ZWF0X2NvdW50GAkgASgFQgPgQQISQQoJcGxheV90eXBlGAogASgOMikua2V5", "YXBpcy5kZXZpY2UudjEuUGxheVN0YXJ0VGFzay5QbGF5VHlwZUID4EECEisK", "BWxvZ2luGAsgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEi4K", "CHBhc3N3b3JkGAwgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVl", "IncKCFBsYXlUeXBlEhUKEVBMQVlfVFlQRV9VTktOT1dOEAASEAoMSEFORFNF", "VF9PTkxZEAESEAoMU1BFQUtFUl9PTkxZEAISFwoTSEFORFNFVF9BTkRfU1BF", "QUtFUhADEhcKE1NQRUFLRVJfQU5EX0hBTkRTRVQQBCL0AQoMUGxheVN0b3BU", "YXNrEhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIWCglkZXZpY2VfaWQYAiAB", "KAVCA+BBAhIXCgppcF9hZGRyZXNzGAMgASgJQgPgQQISKQoEcG9ydBgEIAEo", "CzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlEhIKBW1vZGVsGAUgASgJ", "QgPgQQISKwoFbG9naW4YBiABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5n", "VmFsdWUSLgoIcGFzc3dvcmQYByABKAsyHC5nb29nbGUucHJvdG9idWYuU3Ry", "aW5nVmFsdWVCmgEKFHJ1LmtleWFwaXMuZGV2aWNlLnYxQhRLZXlhcGlzRGV2", "aWNlVjFQcm90b0gDUABaEi9rZXlhcGlzX2RldmljZV92MdgBAfgBAaICD0tF", "WUFQSVNERVZJQ0VWMaoCEUtleWFwaXMuRGV2aWNlLlYxygIRS2V5YXBpc1xE", "ZXZpY2VcVjHqAhNLZXlhcGlzOjpEZXZpY2U6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PrepareStartTask), global::Keyapis.Device.V1.PrepareStartTask.Parser, new[]{ "RequestId", "SoundFileUri", "DeviceId", "TactPlayDuration", "TactRepeatCount", "PlayRepeatCount", "PlayType" }, null, new[]{ typeof(global::Keyapis.Device.V1.PrepareStartTask.Types.PlayType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PrepareStopTask), global::Keyapis.Device.V1.PrepareStopTask.Parser, new[]{ "RequestId", "DeviceId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PlayStartTask), global::Keyapis.Device.V1.PlayStartTask.Parser, new[]{ "RequestId", "DeviceId", "SoundFileUri", "IpAddress", "Port", "Model", "TactPlayDuration", "TactRepeatCount", "PlayRepeatCount", "PlayType", "Login", "Password" }, null, new[]{ typeof(global::Keyapis.Device.V1.PlayStartTask.Types.PlayType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PlayStopTask), global::Keyapis.Device.V1.PlayStopTask.Parser, new[]{ "RequestId", "DeviceId", "IpAddress", "Port", "Model", "Login", "Password" }, null, null, null, null) })); } #endregion } #region Messages /// /// Команда на подготовку и старт проигрывания файла через домофон. /// Очередь key.device.alert.prepare_start /// public sealed partial class PrepareStartTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PrepareStartTask()); 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.Device.V1.KeyapisDeviceEventAlertV1Reflection.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 PrepareStartTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PrepareStartTask(PrepareStartTask other) : this() { requestId_ = other.requestId_; soundFileUri_ = other.soundFileUri_; deviceId_ = other.deviceId_; 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 PrepareStartTask Clone() { return new PrepareStartTask(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 "sound_file_uri" field. public const int SoundFileUriFieldNumber = 2; 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 "device_id" field. public const int DeviceIdFieldNumber = 3; private int deviceId_; /// /// Идентификатор устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return deviceId_; } set { deviceId_ = value; } } /// Field number for the "tact_play_duration" field. public const int TactPlayDurationFieldNumber = 4; 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 = 5; 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 = 6; 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 = 7; private global::Keyapis.Device.V1.PrepareStartTask.Types.PlayType playType_ = global::Keyapis.Device.V1.PrepareStartTask.Types.PlayType.Unknown; /// /// Тип проигрывания /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PrepareStartTask.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 PrepareStartTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PrepareStartTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (SoundFileUri != other.SoundFileUri) return false; if (DeviceId != other.DeviceId) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (SoundFileUri.Length != 0) hash ^= SoundFileUri.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (TactPlayDuration != 0) hash ^= TactPlayDuration.GetHashCode(); if (TactRepeatCount != 0) hash ^= TactRepeatCount.GetHashCode(); if (PlayRepeatCount != 0) hash ^= PlayRepeatCount.GetHashCode(); if (PlayType != global::Keyapis.Device.V1.PrepareStartTask.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (SoundFileUri.Length != 0) { output.WriteRawTag(18); output.WriteString(SoundFileUri); } if (DeviceId != 0) { output.WriteRawTag(24); output.WriteInt32(DeviceId); } if (TactPlayDuration != 0) { output.WriteRawTag(32); output.WriteInt32(TactPlayDuration); } if (TactRepeatCount != 0) { output.WriteRawTag(40); output.WriteInt32(TactRepeatCount); } if (PlayRepeatCount != 0) { output.WriteRawTag(48); output.WriteInt32(PlayRepeatCount); } if (PlayType != global::Keyapis.Device.V1.PrepareStartTask.Types.PlayType.Unknown) { output.WriteRawTag(56); 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (SoundFileUri.Length != 0) { output.WriteRawTag(18); output.WriteString(SoundFileUri); } if (DeviceId != 0) { output.WriteRawTag(24); output.WriteInt32(DeviceId); } if (TactPlayDuration != 0) { output.WriteRawTag(32); output.WriteInt32(TactPlayDuration); } if (TactRepeatCount != 0) { output.WriteRawTag(40); output.WriteInt32(TactRepeatCount); } if (PlayRepeatCount != 0) { output.WriteRawTag(48); output.WriteInt32(PlayRepeatCount); } if (PlayType != global::Keyapis.Device.V1.PrepareStartTask.Types.PlayType.Unknown) { output.WriteRawTag(56); 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 (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (SoundFileUri.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SoundFileUri); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } 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.Device.V1.PrepareStartTask.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(PrepareStartTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.SoundFileUri.Length != 0) { SoundFileUri = other.SoundFileUri; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } 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.Device.V1.PrepareStartTask.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: { RequestId = input.ReadString(); break; } case 18: { SoundFileUri = input.ReadString(); break; } case 24: { DeviceId = input.ReadInt32(); break; } case 32: { TactPlayDuration = input.ReadInt32(); break; } case 40: { TactRepeatCount = input.ReadInt32(); break; } case 48: { PlayRepeatCount = input.ReadInt32(); break; } case 56: { PlayType = (global::Keyapis.Device.V1.PrepareStartTask.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: { RequestId = input.ReadString(); break; } case 18: { SoundFileUri = input.ReadString(); break; } case 24: { DeviceId = input.ReadInt32(); break; } case 32: { TactPlayDuration = input.ReadInt32(); break; } case 40: { TactRepeatCount = input.ReadInt32(); break; } case 48: { PlayRepeatCount = input.ReadInt32(); break; } case 56: { PlayType = (global::Keyapis.Device.V1.PrepareStartTask.Types.PlayType) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the PrepareStartTask 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, /// /// Только на динамик домофона /// [pbr::OriginalName("SPEAKER_ONLY")] SpeakerOnly = 2, /// /// Сначала на аналоговые трубки проигрываем заданное количество тактов, затем на динамик домофона /// [pbr::OriginalName("HANDSET_AND_SPEAKER")] HandsetAndSpeaker = 3, /// /// Сначала на динамик домофона проигрываем заданное количество тактов, затем на аналоговые трубки /// [pbr::OriginalName("SPEAKER_AND_HANDSET")] SpeakerAndHandset = 4, } } #endregion } /// /// Команда на подготовку и прекращение проигрывания файла через домофон. /// Очередь key.device.alert.prepare_stop /// public sealed partial class PrepareStopTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PrepareStopTask()); 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.Device.V1.KeyapisDeviceEventAlertV1Reflection.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 PrepareStopTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PrepareStopTask(PrepareStopTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PrepareStopTask Clone() { return new PrepareStopTask(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 "device_id" field. public const int DeviceIdFieldNumber = 2; private int deviceId_; /// /// Идентификатор устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return deviceId_; } set { deviceId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PrepareStopTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PrepareStopTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) 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 (DeviceId != 0) hash ^= DeviceId.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 (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } 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 (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } 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 (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PrepareStopTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } _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: { DeviceId = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } } } } #endif } /// /// Команда на старт проигрывания файла через домофон. /// Очередь key.device.alert.play_start /// public sealed partial class PlayStartTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayStartTask()); 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.Device.V1.KeyapisDeviceEventAlertV1Reflection.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 PlayStartTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PlayStartTask(PlayStartTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; soundFileUri_ = other.soundFileUri_; ipAddress_ = other.ipAddress_; Port = other.Port; model_ = other.model_; tactPlayDuration_ = other.tactPlayDuration_; tactRepeatCount_ = other.tactRepeatCount_; playRepeatCount_ = other.playRepeatCount_; playType_ = other.playType_; Login = other.Login; Password = other.Password; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PlayStartTask Clone() { return new PlayStartTask(this); } /// Field number for the "request_id" field. public const int RequestIdFieldNumber = 1; private string requestId_ = ""; /// /// Идентификатор запроса. /// # Тип: Guid /// [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 "device_id" field. public const int DeviceIdFieldNumber = 2; private int deviceId_; /// /// Идентификатор устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return deviceId_; } set { deviceId_ = value; } } /// Field number for the "sound_file_uri" field. public const int SoundFileUriFieldNumber = 3; private string soundFileUri_ = ""; /// /// Ссылка на звуковой файл для проигрывания. /// Файл должен лежать на внутреннем хранилище. /// # Диапазон: 7..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 "ip_address" field. public const int IpAddressFieldNumber = 4; private string ipAddress_ = ""; /// /// Сетевой адрес. /// # Паттерн: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string IpAddress { get { return ipAddress_; } set { ipAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "port" field. public const int PortFieldNumber = 5; private static readonly pb::FieldCodec _single_port_codec = pb::FieldCodec.ForStructWrapper(42); private int? port_; /// /// Сетевой порт. /// # Диапазон: 0..65535 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? Port { get { return port_; } set { port_ = value; } } /// Field number for the "model" field. public const int ModelFieldNumber = 6; private string model_ = ""; /// /// Модель устройства. /// # Диапазон: 2..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Model { get { return model_; } set { model_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "tact_play_duration" field. public const int TactPlayDurationFieldNumber = 7; 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 = 8; 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 = 9; 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 = 10; private global::Keyapis.Device.V1.PlayStartTask.Types.PlayType playType_ = global::Keyapis.Device.V1.PlayStartTask.Types.PlayType.Unknown; /// /// Тип проигрывания /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PlayStartTask.Types.PlayType PlayType { get { return playType_; } set { playType_ = value; } } /// Field number for the "login" field. public const int LoginFieldNumber = 11; private static readonly pb::FieldCodec _single_login_codec = pb::FieldCodec.ForClassWrapper(90); private string login_; /// /// Логин. /// # Диапазон: 0..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Login { get { return login_; } set { login_ = value; } } /// Field number for the "password" field. public const int PasswordFieldNumber = 12; private static readonly pb::FieldCodec _single_password_codec = pb::FieldCodec.ForClassWrapper(98); private string password_; /// /// Пароль. /// # Диапазон: 0..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PlayStartTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PlayStartTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if (SoundFileUri != other.SoundFileUri) return false; if (IpAddress != other.IpAddress) return false; if (Port != other.Port) return false; if (Model != other.Model) 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; if (Login != other.Login) return false; if (Password != other.Password) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (SoundFileUri.Length != 0) hash ^= SoundFileUri.GetHashCode(); if (IpAddress.Length != 0) hash ^= IpAddress.GetHashCode(); if (port_ != null) hash ^= Port.GetHashCode(); if (Model.Length != 0) hash ^= Model.GetHashCode(); if (TactPlayDuration != 0) hash ^= TactPlayDuration.GetHashCode(); if (TactRepeatCount != 0) hash ^= TactRepeatCount.GetHashCode(); if (PlayRepeatCount != 0) hash ^= PlayRepeatCount.GetHashCode(); if (PlayType != global::Keyapis.Device.V1.PlayStartTask.Types.PlayType.Unknown) hash ^= PlayType.GetHashCode(); if (login_ != null) hash ^= Login.GetHashCode(); if (password_ != null) hash ^= Password.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 (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (SoundFileUri.Length != 0) { output.WriteRawTag(26); output.WriteString(SoundFileUri); } if (IpAddress.Length != 0) { output.WriteRawTag(34); output.WriteString(IpAddress); } if (port_ != null) { _single_port_codec.WriteTagAndValue(output, Port); } if (Model.Length != 0) { output.WriteRawTag(50); output.WriteString(Model); } if (TactPlayDuration != 0) { output.WriteRawTag(56); output.WriteInt32(TactPlayDuration); } if (TactRepeatCount != 0) { output.WriteRawTag(64); output.WriteInt32(TactRepeatCount); } if (PlayRepeatCount != 0) { output.WriteRawTag(72); output.WriteInt32(PlayRepeatCount); } if (PlayType != global::Keyapis.Device.V1.PlayStartTask.Types.PlayType.Unknown) { output.WriteRawTag(80); output.WriteEnum((int) PlayType); } if (login_ != null) { _single_login_codec.WriteTagAndValue(output, Login); } if (password_ != null) { _single_password_codec.WriteTagAndValue(output, Password); } 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 (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (SoundFileUri.Length != 0) { output.WriteRawTag(26); output.WriteString(SoundFileUri); } if (IpAddress.Length != 0) { output.WriteRawTag(34); output.WriteString(IpAddress); } if (port_ != null) { _single_port_codec.WriteTagAndValue(ref output, Port); } if (Model.Length != 0) { output.WriteRawTag(50); output.WriteString(Model); } if (TactPlayDuration != 0) { output.WriteRawTag(56); output.WriteInt32(TactPlayDuration); } if (TactRepeatCount != 0) { output.WriteRawTag(64); output.WriteInt32(TactRepeatCount); } if (PlayRepeatCount != 0) { output.WriteRawTag(72); output.WriteInt32(PlayRepeatCount); } if (PlayType != global::Keyapis.Device.V1.PlayStartTask.Types.PlayType.Unknown) { output.WriteRawTag(80); output.WriteEnum((int) PlayType); } if (login_ != null) { _single_login_codec.WriteTagAndValue(ref output, Login); } if (password_ != null) { _single_password_codec.WriteTagAndValue(ref output, Password); } 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 (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (SoundFileUri.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SoundFileUri); } if (IpAddress.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(IpAddress); } if (port_ != null) { size += _single_port_codec.CalculateSizeWithTag(Port); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } 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.Device.V1.PlayStartTask.Types.PlayType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayType); } if (login_ != null) { size += _single_login_codec.CalculateSizeWithTag(Login); } if (password_ != null) { size += _single_password_codec.CalculateSizeWithTag(Password); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PlayStartTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.SoundFileUri.Length != 0) { SoundFileUri = other.SoundFileUri; } if (other.IpAddress.Length != 0) { IpAddress = other.IpAddress; } if (other.port_ != null) { if (port_ == null || other.Port != 0) { Port = other.Port; } } if (other.Model.Length != 0) { Model = other.Model; } 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.Device.V1.PlayStartTask.Types.PlayType.Unknown) { PlayType = other.PlayType; } if (other.login_ != null) { if (login_ == null || other.Login != "") { Login = other.Login; } } if (other.password_ != null) { if (password_ == null || other.Password != "") { Password = other.Password; } } _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: { DeviceId = input.ReadInt32(); break; } case 26: { SoundFileUri = input.ReadString(); break; } case 34: { IpAddress = input.ReadString(); break; } case 42: { int? value = _single_port_codec.Read(input); if (port_ == null || value != 0) { Port = value; } break; } case 50: { Model = input.ReadString(); break; } case 56: { TactPlayDuration = input.ReadInt32(); break; } case 64: { TactRepeatCount = input.ReadInt32(); break; } case 72: { PlayRepeatCount = input.ReadInt32(); break; } case 80: { PlayType = (global::Keyapis.Device.V1.PlayStartTask.Types.PlayType) input.ReadEnum(); break; } case 90: { string value = _single_login_codec.Read(input); if (login_ == null || value != "") { Login = value; } break; } case 98: { string value = _single_password_codec.Read(input); if (password_ == null || value != "") { Password = value; } break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { SoundFileUri = input.ReadString(); break; } case 34: { IpAddress = input.ReadString(); break; } case 42: { int? value = _single_port_codec.Read(ref input); if (port_ == null || value != 0) { Port = value; } break; } case 50: { Model = input.ReadString(); break; } case 56: { TactPlayDuration = input.ReadInt32(); break; } case 64: { TactRepeatCount = input.ReadInt32(); break; } case 72: { PlayRepeatCount = input.ReadInt32(); break; } case 80: { PlayType = (global::Keyapis.Device.V1.PlayStartTask.Types.PlayType) input.ReadEnum(); break; } case 90: { string value = _single_login_codec.Read(ref input); if (login_ == null || value != "") { Login = value; } break; } case 98: { string value = _single_password_codec.Read(ref input); if (password_ == null || value != "") { Password = value; } break; } } } } #endif #region Nested types /// Container for nested types declared in the PlayStartTask 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, /// /// Только на динамик домофона /// [pbr::OriginalName("SPEAKER_ONLY")] SpeakerOnly = 2, /// /// Сначала на аналоговые трубки проигрываем заданное количество тактов, затем на динамик домофона /// [pbr::OriginalName("HANDSET_AND_SPEAKER")] HandsetAndSpeaker = 3, /// /// Сначала на динамик домофона проигрываем заданное количество тактов, затем на аналоговые трубки /// [pbr::OriginalName("SPEAKER_AND_HANDSET")] SpeakerAndHandset = 4, } } #endregion } /// /// Команда на прекращение проигрывания файла через домофон. /// Очередь key.device.alert.play_stop /// public sealed partial class PlayStopTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayStopTask()); 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.Device.V1.KeyapisDeviceEventAlertV1Reflection.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 PlayStopTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PlayStopTask(PlayStopTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; ipAddress_ = other.ipAddress_; Port = other.Port; model_ = other.model_; Login = other.Login; Password = other.Password; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PlayStopTask Clone() { return new PlayStopTask(this); } /// Field number for the "request_id" field. public const int RequestIdFieldNumber = 1; private string requestId_ = ""; /// /// Идентификатор запроса. /// # Тип: Guid /// [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 "device_id" field. public const int DeviceIdFieldNumber = 2; private int deviceId_; /// /// Идентификатор устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return deviceId_; } set { deviceId_ = value; } } /// Field number for the "ip_address" field. public const int IpAddressFieldNumber = 3; private string ipAddress_ = ""; /// /// Сетевой адрес. /// # Паттерн: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string IpAddress { get { return ipAddress_; } set { ipAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "port" field. public const int PortFieldNumber = 4; private static readonly pb::FieldCodec _single_port_codec = pb::FieldCodec.ForStructWrapper(34); private int? port_; /// /// Сетевой порт. /// # Диапазон: 0..65535 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? Port { get { return port_; } set { port_ = value; } } /// Field number for the "model" field. public const int ModelFieldNumber = 5; private string model_ = ""; /// /// Модель устройства. /// # Диапазон: 2..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Model { get { return model_; } set { model_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "login" field. public const int LoginFieldNumber = 6; private static readonly pb::FieldCodec _single_login_codec = pb::FieldCodec.ForClassWrapper(50); private string login_; /// /// Логин. /// # Диапазон: 0..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Login { get { return login_; } set { login_ = value; } } /// Field number for the "password" field. public const int PasswordFieldNumber = 7; private static readonly pb::FieldCodec _single_password_codec = pb::FieldCodec.ForClassWrapper(58); private string password_; /// /// Пароль. /// # Диапазон: 0..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PlayStopTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PlayStopTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if (IpAddress != other.IpAddress) return false; if (Port != other.Port) return false; if (Model != other.Model) return false; if (Login != other.Login) return false; if (Password != other.Password) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (IpAddress.Length != 0) hash ^= IpAddress.GetHashCode(); if (port_ != null) hash ^= Port.GetHashCode(); if (Model.Length != 0) hash ^= Model.GetHashCode(); if (login_ != null) hash ^= Login.GetHashCode(); if (password_ != null) hash ^= Password.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 (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (IpAddress.Length != 0) { output.WriteRawTag(26); output.WriteString(IpAddress); } if (port_ != null) { _single_port_codec.WriteTagAndValue(output, Port); } if (Model.Length != 0) { output.WriteRawTag(42); output.WriteString(Model); } if (login_ != null) { _single_login_codec.WriteTagAndValue(output, Login); } if (password_ != null) { _single_password_codec.WriteTagAndValue(output, Password); } 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 (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (IpAddress.Length != 0) { output.WriteRawTag(26); output.WriteString(IpAddress); } if (port_ != null) { _single_port_codec.WriteTagAndValue(ref output, Port); } if (Model.Length != 0) { output.WriteRawTag(42); output.WriteString(Model); } if (login_ != null) { _single_login_codec.WriteTagAndValue(ref output, Login); } if (password_ != null) { _single_password_codec.WriteTagAndValue(ref output, Password); } 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 (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (IpAddress.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(IpAddress); } if (port_ != null) { size += _single_port_codec.CalculateSizeWithTag(Port); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (login_ != null) { size += _single_login_codec.CalculateSizeWithTag(Login); } if (password_ != null) { size += _single_password_codec.CalculateSizeWithTag(Password); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PlayStopTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.IpAddress.Length != 0) { IpAddress = other.IpAddress; } if (other.port_ != null) { if (port_ == null || other.Port != 0) { Port = other.Port; } } if (other.Model.Length != 0) { Model = other.Model; } if (other.login_ != null) { if (login_ == null || other.Login != "") { Login = other.Login; } } if (other.password_ != null) { if (password_ == null || other.Password != "") { Password = other.Password; } } _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: { DeviceId = input.ReadInt32(); break; } case 26: { IpAddress = input.ReadString(); break; } case 34: { int? value = _single_port_codec.Read(input); if (port_ == null || value != 0) { Port = value; } break; } case 42: { Model = input.ReadString(); break; } case 50: { string value = _single_login_codec.Read(input); if (login_ == null || value != "") { Login = value; } break; } case 58: { string value = _single_password_codec.Read(input); if (password_ == null || value != "") { Password = value; } break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { IpAddress = input.ReadString(); break; } case 34: { int? value = _single_port_codec.Read(ref input); if (port_ == null || value != 0) { Port = value; } break; } case 42: { Model = input.ReadString(); break; } case 50: { string value = _single_login_codec.Read(ref input); if (login_ == null || value != "") { Login = value; } break; } case 58: { string value = _single_password_codec.Read(ref input); if (password_ == null || value != "") { Password = value; } break; } } } } #endif } #endregion } #endregion Designer generated code