// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/preset/v1/keyapis_preset_events_v1.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Keyapis.Preset.V1 { /// Holder for reflection information generated from keyapis/preset/v1/keyapis_preset_events_v1.proto public static partial class KeyapisPresetEventsV1Reflection { #region Descriptor /// File descriptor for keyapis/preset/v1/keyapis_preset_events_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisPresetEventsV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjBrZXlhcGlzL3ByZXNldC92MS9rZXlhcGlzX3ByZXNldF9ldmVudHNfdjEu", "cHJvdG8SEWtleWFwaXMucHJlc2V0LnYxGhxnb29nbGUvYXBpL2Fubm90YXRp", "b25zLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGh9n", "b29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGjBrZXlhcGlzL3ByZXNl", "dC92MS9rZXlhcGlzX3ByZXNldF9wcmVzZXRfdjEucHJvdG8iMAodUG9zdEV2", "ZW50UHJlc2V0SW5zdGFsbFJlcXVlc3QSDwoCaWQYASABKAVCA+BBAiIgCh5Q", "b3N0RXZlbnRQcmVzZXRJbnN0YWxsUmVzcG9uc2Ui6gEKF1ByZXNldENvbmZp", "Z3VyYXRpb25UYXNrEhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIuCgZwcmVz", "ZXQYAiABKAsyGS5rZXlhcGlzLnByZXNldC52MS5QcmVzZXRCA+BBAhIWCglk", "ZXZpY2VfaWQYAyABKAVCA+BBAhISCgVtb2RlbBgEIAEoCUID4EECEhEKBGhv", "c3QYBSABKAlCA+BBAhIVCgh1c2VybmFtZRgGIAEoCUID4EECEhUKCHBhc3N3", "b3JkGAcgASgJQgPgQQISGQoMbnRwX3RpbWV6b25lGAggASgJQgPgQQIioQEK", "HlByZXNldENvbmZpZ3VyYXRpb25TdWNjZXNzVGFzaxIXCgpyZXF1ZXN0X2lk", "GAEgASgJQgPgQQISFgoJZGV2aWNlX2lkGAIgASgFQgPgQQISFgoJcHJlc2V0", "X2lkGAMgASgFQgPgQQISNgoNY29uZmlndXJlZF9hdBgEIAEoCzIaLmdvb2ds", "ZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAiKCAQobUHJlc2V0Q29uZmlndXJh", "dGlvbkZhaWxUYXNrEhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIWCglkZXZp", "Y2VfaWQYAiABKAVCA+BBAhIWCglwcmVzZXRfaWQYAyABKAVCA+BBAhIaCg1l", "cnJvcl9tZXNzYWdlGAQgASgJQgPgQQIiXAoRUHJlc2V0SW5zdGFsbFRhc2sS", "FwoKcmVxdWVzdF9pZBgBIAEoCUID4EECEi4KBnByZXNldBgCIAEoCzIZLmtl", "eWFwaXMucHJlc2V0LnYxLlByZXNldEID4EECMsABCgxFdmVudFNlcnZpY2US", "rwEKFlBvc3RFdmVudFByZXNldEluc3RhbGwSMC5rZXlhcGlzLnByZXNldC52", "MS5Qb3N0RXZlbnRQcmVzZXRJbnN0YWxsUmVxdWVzdBoxLmtleWFwaXMucHJl", "c2V0LnYxLlBvc3RFdmVudFByZXNldEluc3RhbGxSZXNwb25zZSIwgtPkkwIq", "IigvcHJlc2V0L2FwaS92MS9ldmVudC9wcmVzZXQve2lkfS9pbnN0YWxsQpoB", "ChRydS5rZXlhcGlzLnByZXNldC52MUIUS2V5YXBpc1ByZXNldFYxUHJvdG9I", "A1AAWhIva2V5YXBpc19wcmVzZXRfdjHYAQH4AQGiAg9LRVlBUElTUFJFU0VU", "VjGqAhFLZXlhcGlzLlByZXNldC5WMcoCEUtleWFwaXNcUHJlc2V0XFYx6gIT", "S2V5YXBpczo6UHJlc2V0OjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Keyapis.Preset.V1.KeyapisPresetPresetV1Reflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Preset.V1.PostEventPresetInstallRequest), global::Keyapis.Preset.V1.PostEventPresetInstallRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Preset.V1.PostEventPresetInstallResponse), global::Keyapis.Preset.V1.PostEventPresetInstallResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Preset.V1.PresetConfigurationTask), global::Keyapis.Preset.V1.PresetConfigurationTask.Parser, new[]{ "RequestId", "Preset", "DeviceId", "Model", "Host", "Username", "Password", "NtpTimezone" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Preset.V1.PresetConfigurationSuccessTask), global::Keyapis.Preset.V1.PresetConfigurationSuccessTask.Parser, new[]{ "RequestId", "DeviceId", "PresetId", "ConfiguredAt" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Preset.V1.PresetConfigurationFailTask), global::Keyapis.Preset.V1.PresetConfigurationFailTask.Parser, new[]{ "RequestId", "DeviceId", "PresetId", "ErrorMessage" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Preset.V1.PresetInstallTask), global::Keyapis.Preset.V1.PresetInstallTask.Parser, new[]{ "RequestId", "Preset" }, null, null, null, null) })); } #endregion } #region Messages /// /// Запрос на установку пресета /// public sealed partial class PostEventPresetInstallRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostEventPresetInstallRequest()); 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.Preset.V1.KeyapisPresetEventsV1Reflection.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 PostEventPresetInstallRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostEventPresetInstallRequest(PostEventPresetInstallRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostEventPresetInstallRequest Clone() { return new PostEventPresetInstallRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор пресета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostEventPresetInstallRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostEventPresetInstallRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostEventPresetInstallRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос на установку пресета /// public sealed partial class PostEventPresetInstallResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostEventPresetInstallResponse()); 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.Preset.V1.KeyapisPresetEventsV1Reflection.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 PostEventPresetInstallResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostEventPresetInstallResponse(PostEventPresetInstallResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostEventPresetInstallResponse Clone() { return new PostEventPresetInstallResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostEventPresetInstallResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostEventPresetInstallResponse 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(PostEventPresetInstallResponse 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 } /// /// Задача на конфигурирование устройства. /// Очередь key.preset.configuration /// public sealed partial class PresetConfigurationTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PresetConfigurationTask()); 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.Preset.V1.KeyapisPresetEventsV1Reflection.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 PresetConfigurationTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetConfigurationTask(PresetConfigurationTask other) : this() { requestId_ = other.requestId_; preset_ = other.preset_ != null ? other.preset_.Clone() : null; deviceId_ = other.deviceId_; model_ = other.model_; host_ = other.host_; username_ = other.username_; password_ = other.password_; ntpTimezone_ = other.ntpTimezone_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetConfigurationTask Clone() { return new PresetConfigurationTask(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 "preset" field. public const int PresetFieldNumber = 2; private global::Keyapis.Preset.V1.Preset preset_; /// /// Пресет /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Preset.V1.Preset Preset { get { return preset_; } set { preset_ = 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 "model" field. public const int ModelFieldNumber = 4; private string model_ = ""; /// /// Модель /// [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 "host" field. public const int HostFieldNumber = 5; private string host_ = ""; /// /// Адрес устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "username" field. public const int UsernameFieldNumber = 6; private string username_ = ""; /// /// Имя пользователя устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Username { get { return username_; } set { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 7; private string password_ = ""; /// /// Пароль пользователья устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "ntp_timezone" field. public const int NtpTimezoneFieldNumber = 8; private string ntpTimezone_ = ""; /// /// Таймзона NTP /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string NtpTimezone { get { return ntpTimezone_; } set { ntpTimezone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PresetConfigurationTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PresetConfigurationTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (!object.Equals(Preset, other.Preset)) return false; if (DeviceId != other.DeviceId) return false; if (Model != other.Model) return false; if (Host != other.Host) return false; if (Username != other.Username) return false; if (Password != other.Password) return false; if (NtpTimezone != other.NtpTimezone) 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 (preset_ != null) hash ^= Preset.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (Model.Length != 0) hash ^= Model.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); if (NtpTimezone.Length != 0) hash ^= NtpTimezone.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 (preset_ != null) { output.WriteRawTag(18); output.WriteMessage(Preset); } if (DeviceId != 0) { output.WriteRawTag(24); output.WriteInt32(DeviceId); } if (Model.Length != 0) { output.WriteRawTag(34); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(42); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(50); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(58); output.WriteString(Password); } if (NtpTimezone.Length != 0) { output.WriteRawTag(66); output.WriteString(NtpTimezone); } 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 (preset_ != null) { output.WriteRawTag(18); output.WriteMessage(Preset); } if (DeviceId != 0) { output.WriteRawTag(24); output.WriteInt32(DeviceId); } if (Model.Length != 0) { output.WriteRawTag(34); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(42); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(50); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(58); output.WriteString(Password); } if (NtpTimezone.Length != 0) { output.WriteRawTag(66); output.WriteString(NtpTimezone); } 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 (preset_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Preset); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (NtpTimezone.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(NtpTimezone); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PresetConfigurationTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.preset_ != null) { if (preset_ == null) { Preset = new global::Keyapis.Preset.V1.Preset(); } Preset.MergeFrom(other.Preset); } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Password.Length != 0) { Password = other.Password; } if (other.NtpTimezone.Length != 0) { NtpTimezone = other.NtpTimezone; } _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: { if (preset_ == null) { Preset = new global::Keyapis.Preset.V1.Preset(); } input.ReadMessage(Preset); break; } case 24: { DeviceId = input.ReadInt32(); break; } case 34: { Model = input.ReadString(); break; } case 42: { Host = input.ReadString(); break; } case 50: { Username = input.ReadString(); break; } case 58: { Password = input.ReadString(); break; } case 66: { NtpTimezone = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 18: { if (preset_ == null) { Preset = new global::Keyapis.Preset.V1.Preset(); } input.ReadMessage(Preset); break; } case 24: { DeviceId = input.ReadInt32(); break; } case 34: { Model = input.ReadString(); break; } case 42: { Host = input.ReadString(); break; } case 50: { Username = input.ReadString(); break; } case 58: { Password = input.ReadString(); break; } case 66: { NtpTimezone = input.ReadString(); break; } } } } #endif } /// /// Задача успешной конфигурации устройства. /// Очередь key.preset.configuration_success /// public sealed partial class PresetConfigurationSuccessTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PresetConfigurationSuccessTask()); 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.Preset.V1.KeyapisPresetEventsV1Reflection.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 PresetConfigurationSuccessTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetConfigurationSuccessTask(PresetConfigurationSuccessTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; presetId_ = other.presetId_; configuredAt_ = other.configuredAt_ != null ? other.configuredAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetConfigurationSuccessTask Clone() { return new PresetConfigurationSuccessTask(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; } } /// Field number for the "preset_id" field. public const int PresetIdFieldNumber = 3; private int presetId_; /// /// Идентификатор пресета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int PresetId { get { return presetId_; } set { presetId_ = value; } } /// Field number for the "configured_at" field. public const int ConfiguredAtFieldNumber = 4; private global::Google.Protobuf.WellKnownTypes.Timestamp configuredAt_; /// /// Дата и время конфигурации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ConfiguredAt { get { return configuredAt_; } set { configuredAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PresetConfigurationSuccessTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PresetConfigurationSuccessTask 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 (PresetId != other.PresetId) return false; if (!object.Equals(ConfiguredAt, other.ConfiguredAt)) 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 (PresetId != 0) hash ^= PresetId.GetHashCode(); if (configuredAt_ != null) hash ^= ConfiguredAt.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 (PresetId != 0) { output.WriteRawTag(24); output.WriteInt32(PresetId); } if (configuredAt_ != null) { output.WriteRawTag(34); output.WriteMessage(ConfiguredAt); } 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 (PresetId != 0) { output.WriteRawTag(24); output.WriteInt32(PresetId); } if (configuredAt_ != null) { output.WriteRawTag(34); output.WriteMessage(ConfiguredAt); } 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 (PresetId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PresetId); } if (configuredAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConfiguredAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PresetConfigurationSuccessTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.PresetId != 0) { PresetId = other.PresetId; } if (other.configuredAt_ != null) { if (configuredAt_ == null) { ConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ConfiguredAt.MergeFrom(other.ConfiguredAt); } _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 24: { PresetId = input.ReadInt32(); break; } case 34: { if (configuredAt_ == null) { ConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ConfiguredAt); 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 24: { PresetId = input.ReadInt32(); break; } case 34: { if (configuredAt_ == null) { ConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ConfiguredAt); break; } } } } #endif } /// /// Задача ошибки при конфигурации устройства. /// Очередь key.preset.configuration_fail /// public sealed partial class PresetConfigurationFailTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PresetConfigurationFailTask()); 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.Preset.V1.KeyapisPresetEventsV1Reflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetConfigurationFailTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetConfigurationFailTask(PresetConfigurationFailTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; presetId_ = other.presetId_; errorMessage_ = other.errorMessage_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetConfigurationFailTask Clone() { return new PresetConfigurationFailTask(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; } } /// Field number for the "preset_id" field. public const int PresetIdFieldNumber = 3; private int presetId_; /// /// Идентификатор пресета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int PresetId { get { return presetId_; } set { presetId_ = value; } } /// Field number for the "error_message" field. public const int ErrorMessageFieldNumber = 4; private string errorMessage_ = ""; /// /// Текст ошибки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ErrorMessage { get { return errorMessage_; } set { errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PresetConfigurationFailTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PresetConfigurationFailTask 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 (PresetId != other.PresetId) return false; if (ErrorMessage != other.ErrorMessage) 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 (PresetId != 0) hash ^= PresetId.GetHashCode(); if (ErrorMessage.Length != 0) hash ^= ErrorMessage.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 (PresetId != 0) { output.WriteRawTag(24); output.WriteInt32(PresetId); } if (ErrorMessage.Length != 0) { output.WriteRawTag(34); output.WriteString(ErrorMessage); } 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 (PresetId != 0) { output.WriteRawTag(24); output.WriteInt32(PresetId); } if (ErrorMessage.Length != 0) { output.WriteRawTag(34); output.WriteString(ErrorMessage); } 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 (PresetId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PresetId); } if (ErrorMessage.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PresetConfigurationFailTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.PresetId != 0) { PresetId = other.PresetId; } if (other.ErrorMessage.Length != 0) { ErrorMessage = other.ErrorMessage; } _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 24: { PresetId = input.ReadInt32(); break; } case 34: { ErrorMessage = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 24: { PresetId = input.ReadInt32(); break; } case 34: { ErrorMessage = input.ReadString(); break; } } } } #endif } /// /// Задача на установку пресета. /// Очередь key.preset.install /// public sealed partial class PresetInstallTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PresetInstallTask()); 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.Preset.V1.KeyapisPresetEventsV1Reflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetInstallTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetInstallTask(PresetInstallTask other) : this() { requestId_ = other.requestId_; preset_ = other.preset_ != null ? other.preset_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetInstallTask Clone() { return new PresetInstallTask(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 "preset" field. public const int PresetFieldNumber = 2; private global::Keyapis.Preset.V1.Preset preset_; /// /// Пресет /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Preset.V1.Preset Preset { get { return preset_; } set { preset_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PresetInstallTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PresetInstallTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (!object.Equals(Preset, other.Preset)) 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 (preset_ != null) hash ^= Preset.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 (preset_ != null) { output.WriteRawTag(18); output.WriteMessage(Preset); } 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 (preset_ != null) { output.WriteRawTag(18); output.WriteMessage(Preset); } 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 (preset_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Preset); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PresetInstallTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.preset_ != null) { if (preset_ == null) { Preset = new global::Keyapis.Preset.V1.Preset(); } Preset.MergeFrom(other.Preset); } _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: { if (preset_ == null) { Preset = new global::Keyapis.Preset.V1.Preset(); } input.ReadMessage(Preset); 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: { if (preset_ == null) { Preset = new global::Keyapis.Preset.V1.Preset(); } input.ReadMessage(Preset); break; } } } } #endif } #endregion } #endregion Designer generated code