// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: deviceapis/device/v1/deviceapis_device_system_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 Deviceapis.Device.V1 { /// Holder for reflection information generated from deviceapis/device/v1/deviceapis_device_system_v1.proto public static partial class DeviceapisDeviceSystemV1Reflection { #region Descriptor /// File descriptor for deviceapis/device/v1/deviceapis_device_system_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static DeviceapisDeviceSystemV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjZkZXZpY2VhcGlzL2RldmljZS92MS9kZXZpY2VhcGlzX2RldmljZV9zeXN0", "ZW1fdjEucHJvdG8SFGRldmljZWFwaXMuZGV2aWNlLnYxGhxnb29nbGUvYXBp", "L2Fubm90YXRpb25zLnByb3RvGi5wcm90b2MtZ2VuLW9wZW5hcGl2Mi9vcHRp", "b25zL2Fubm90YXRpb25zLnByb3RvIhkKF1Bvc3RTeXN0ZW1SZWJvb3RSZXF1", "ZXN0IhoKGFBvc3RTeXN0ZW1SZWJvb3RSZXNwb25zZSLzAwoKRGV2aWNlSW5m", "bxIwChBmaXJtd2FyZV92ZXJzaW9uGAEgASgJQhaSQRNKESIzLjUuMC4wLjEu", "MjcuMjkiEi0KEGhhcmR3YXJlX3ZlcnNpb24YAiABKAlCE5JBEEoOInJldjUu", "NS42LjEuMiISJgoFbW9kZWwYAyABKAlCF5JBFEoSIkJld2FyZCBEUzg2MDE3", "Q1AiElkKC21hY19hZGRyZXNzGAQgASgJQkSSQUFKEyIwMDoxYjo2Mzo4NDo0", "NTplNiKKASleKFswLTlBLUZhLWZdezJ9WzotXSl7NX0oWzAtOUEtRmEtZl17", "Mn0pJBJ7CgJpcBgFIAEoCUJvkkFsSg0iMTAuNTQuMTcuMjMieA+AAQeKAVVe", "KCgyNVswLTVdfDJbMC00XVswLTldfFswMV0/WzAtOV1bMC05XT8pXC4pezN9", "KDI1WzAtNV18MlswLTRdWzAtOV18WzAxXT9bMC05XVswLTldPykkEigKDXNl", "cmlhbF9udW1iZXIYBiABKAlCEZJBDkoMIjAwMDAxNDU5OTYiEiUKBnVwdGlt", "ZRgHIAEoBUIVkkESSgczNjAwNzY1WQAAwP///99BEjMKE21jX2Zpcm13YXJl", "X3ZlcnNpb24YCCABKAlCFpJBE0oRIjcuOC4wLjAuMS4yNy4yOSIiFgoUR2V0", "U3lzdGVtSW5mb1JlcXVlc3QiUQoVR2V0U3lzdGVtSW5mb1Jlc3BvbnNlEjAK", "BGRhdGEYASABKAsyIC5kZXZpY2VhcGlzLmRldmljZS52MS5EZXZpY2VJbmZv", "SABCBgoEdHlwZTK7AgoNU3lzdGVtU2VydmljZRKaAQoQUG9zdFN5c3RlbVJl", "Ym9vdBItLmRldmljZWFwaXMuZGV2aWNlLnYxLlBvc3RTeXN0ZW1SZWJvb3RS", "ZXF1ZXN0Gi4uZGV2aWNlYXBpcy5kZXZpY2UudjEuUG9zdFN5c3RlbVJlYm9v", "dFJlc3BvbnNlIieC0+STAiEiHC9kZXZpY2UvYXBpL3YxL3N5c3RlbS9yZWJv", "b3Q6ASoSjAEKDUdldFN5c3RlbUluZm8SKi5kZXZpY2VhcGlzLmRldmljZS52", "MS5HZXRTeXN0ZW1JbmZvUmVxdWVzdBorLmRldmljZWFwaXMuZGV2aWNlLnYx", "LkdldFN5c3RlbUluZm9SZXNwb25zZSIigtPkkwIcEhovZGV2aWNlL2FwaS92", "MS9zeXN0ZW0vaW5mb0KvAQoXcnUuZGV2aWNlYXBpcy5kZXZpY2UudjFCF0Rl", "dmljZWFwaXNEZXZpY2VWMVByb3RvSANQAFoVL2RldmljZWFwaXNfZGV2aWNl", "X3Yx2AEB+AEBogISREVWSUNFQVBJU0RFVklDRVYxqgIURGV2aWNlYXBpcy5E", "ZXZpY2UuVjHKAhREZXZpY2VhcGlzXERldmljZVxWMeoCFkRldmljZWFwaXM6", "OkRldmljZTo6VjFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Grpc.Gateway.ProtocGenOpenapiv2.Options.AnnotationsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.PostSystemRebootRequest), global::Deviceapis.Device.V1.PostSystemRebootRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.PostSystemRebootResponse), global::Deviceapis.Device.V1.PostSystemRebootResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.DeviceInfo), global::Deviceapis.Device.V1.DeviceInfo.Parser, new[]{ "FirmwareVersion", "HardwareVersion", "Model", "MacAddress", "Ip", "SerialNumber", "Uptime", "McFirmwareVersion" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetSystemInfoRequest), global::Deviceapis.Device.V1.GetSystemInfoRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetSystemInfoResponse), global::Deviceapis.Device.V1.GetSystemInfoResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null) })); } #endregion } #region Messages /// /// Запрос удаленной перезагрузки /// public sealed partial class PostSystemRebootRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostSystemRebootRequest()); 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::Deviceapis.Device.V1.DeviceapisDeviceSystemV1Reflection.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 PostSystemRebootRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSystemRebootRequest(PostSystemRebootRequest other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSystemRebootRequest Clone() { return new PostSystemRebootRequest(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostSystemRebootRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostSystemRebootRequest 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(PostSystemRebootRequest 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 } /// /// Ответ на запрос удаленной перезагрузки /// public sealed partial class PostSystemRebootResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostSystemRebootResponse()); 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::Deviceapis.Device.V1.DeviceapisDeviceSystemV1Reflection.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 PostSystemRebootResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSystemRebootResponse(PostSystemRebootResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSystemRebootResponse Clone() { return new PostSystemRebootResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostSystemRebootResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostSystemRebootResponse 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(PostSystemRebootResponse 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 } /// /// Общая информация об устройстве /// public sealed partial class DeviceInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceInfo()); 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::Deviceapis.Device.V1.DeviceapisDeviceSystemV1Reflection.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 DeviceInfo() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceInfo(DeviceInfo other) : this() { firmwareVersion_ = other.firmwareVersion_; hardwareVersion_ = other.hardwareVersion_; model_ = other.model_; macAddress_ = other.macAddress_; ip_ = other.ip_; serialNumber_ = other.serialNumber_; uptime_ = other.uptime_; mcFirmwareVersion_ = other.mcFirmwareVersion_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceInfo Clone() { return new DeviceInfo(this); } /// Field number for the "firmware_version" field. public const int FirmwareVersionFieldNumber = 1; private string firmwareVersion_ = ""; /// /// Версия программного обеспечения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string FirmwareVersion { get { return firmwareVersion_; } set { firmwareVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "hardware_version" field. public const int HardwareVersionFieldNumber = 2; private string hardwareVersion_ = ""; /// /// Версия аппаратного обеспечения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string HardwareVersion { get { return hardwareVersion_; } set { hardwareVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "model" field. public const int ModelFieldNumber = 3; 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 "mac_address" field. public const int MacAddressFieldNumber = 4; private string macAddress_ = ""; /// /// MAC-адрес. /// Диапазон: 17..17. /// Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string MacAddress { get { return macAddress_; } set { macAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "ip" field. public const int IpFieldNumber = 5; private string ip_ = ""; /// /// IP адрес. /// Диапазон: 7..15. /// Паттерн: /^((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 Ip { get { return ip_; } set { ip_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "serial_number" field. public const int SerialNumberFieldNumber = 6; private string serialNumber_ = ""; /// /// Серийный номер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SerialNumber { get { return serialNumber_; } set { serialNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "uptime" field. public const int UptimeFieldNumber = 7; private int uptime_; /// /// Время работы в секундах. /// Диапазон: 0..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Uptime { get { return uptime_; } set { uptime_ = value; } } /// Field number for the "mc_firmware_version" field. public const int McFirmwareVersionFieldNumber = 8; private string mcFirmwareVersion_ = ""; /// /// Версия программного обеспечения микроконтроллера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string McFirmwareVersion { get { return mcFirmwareVersion_; } set { mcFirmwareVersion_ = 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 DeviceInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (FirmwareVersion != other.FirmwareVersion) return false; if (HardwareVersion != other.HardwareVersion) return false; if (Model != other.Model) return false; if (MacAddress != other.MacAddress) return false; if (Ip != other.Ip) return false; if (SerialNumber != other.SerialNumber) return false; if (Uptime != other.Uptime) return false; if (McFirmwareVersion != other.McFirmwareVersion) 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 (FirmwareVersion.Length != 0) hash ^= FirmwareVersion.GetHashCode(); if (HardwareVersion.Length != 0) hash ^= HardwareVersion.GetHashCode(); if (Model.Length != 0) hash ^= Model.GetHashCode(); if (MacAddress.Length != 0) hash ^= MacAddress.GetHashCode(); if (Ip.Length != 0) hash ^= Ip.GetHashCode(); if (SerialNumber.Length != 0) hash ^= SerialNumber.GetHashCode(); if (Uptime != 0) hash ^= Uptime.GetHashCode(); if (McFirmwareVersion.Length != 0) hash ^= McFirmwareVersion.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 (FirmwareVersion.Length != 0) { output.WriteRawTag(10); output.WriteString(FirmwareVersion); } if (HardwareVersion.Length != 0) { output.WriteRawTag(18); output.WriteString(HardwareVersion); } if (Model.Length != 0) { output.WriteRawTag(26); output.WriteString(Model); } if (MacAddress.Length != 0) { output.WriteRawTag(34); output.WriteString(MacAddress); } if (Ip.Length != 0) { output.WriteRawTag(42); output.WriteString(Ip); } if (SerialNumber.Length != 0) { output.WriteRawTag(50); output.WriteString(SerialNumber); } if (Uptime != 0) { output.WriteRawTag(56); output.WriteInt32(Uptime); } if (McFirmwareVersion.Length != 0) { output.WriteRawTag(66); output.WriteString(McFirmwareVersion); } 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 (FirmwareVersion.Length != 0) { output.WriteRawTag(10); output.WriteString(FirmwareVersion); } if (HardwareVersion.Length != 0) { output.WriteRawTag(18); output.WriteString(HardwareVersion); } if (Model.Length != 0) { output.WriteRawTag(26); output.WriteString(Model); } if (MacAddress.Length != 0) { output.WriteRawTag(34); output.WriteString(MacAddress); } if (Ip.Length != 0) { output.WriteRawTag(42); output.WriteString(Ip); } if (SerialNumber.Length != 0) { output.WriteRawTag(50); output.WriteString(SerialNumber); } if (Uptime != 0) { output.WriteRawTag(56); output.WriteInt32(Uptime); } if (McFirmwareVersion.Length != 0) { output.WriteRawTag(66); output.WriteString(McFirmwareVersion); } 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 (FirmwareVersion.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareVersion); } if (HardwareVersion.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareVersion); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (MacAddress.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MacAddress); } if (Ip.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Ip); } if (SerialNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SerialNumber); } if (Uptime != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Uptime); } if (McFirmwareVersion.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(McFirmwareVersion); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceInfo other) { if (other == null) { return; } if (other.FirmwareVersion.Length != 0) { FirmwareVersion = other.FirmwareVersion; } if (other.HardwareVersion.Length != 0) { HardwareVersion = other.HardwareVersion; } if (other.Model.Length != 0) { Model = other.Model; } if (other.MacAddress.Length != 0) { MacAddress = other.MacAddress; } if (other.Ip.Length != 0) { Ip = other.Ip; } if (other.SerialNumber.Length != 0) { SerialNumber = other.SerialNumber; } if (other.Uptime != 0) { Uptime = other.Uptime; } if (other.McFirmwareVersion.Length != 0) { McFirmwareVersion = other.McFirmwareVersion; } _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: { FirmwareVersion = input.ReadString(); break; } case 18: { HardwareVersion = input.ReadString(); break; } case 26: { Model = input.ReadString(); break; } case 34: { MacAddress = input.ReadString(); break; } case 42: { Ip = input.ReadString(); break; } case 50: { SerialNumber = input.ReadString(); break; } case 56: { Uptime = input.ReadInt32(); break; } case 66: { McFirmwareVersion = 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: { FirmwareVersion = input.ReadString(); break; } case 18: { HardwareVersion = input.ReadString(); break; } case 26: { Model = input.ReadString(); break; } case 34: { MacAddress = input.ReadString(); break; } case 42: { Ip = input.ReadString(); break; } case 50: { SerialNumber = input.ReadString(); break; } case 56: { Uptime = input.ReadInt32(); break; } case 66: { McFirmwareVersion = input.ReadString(); break; } } } } #endif } /// /// Запрос получения общей информации об устройстве /// public sealed partial class GetSystemInfoRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSystemInfoRequest()); 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::Deviceapis.Device.V1.DeviceapisDeviceSystemV1Reflection.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 GetSystemInfoRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSystemInfoRequest(GetSystemInfoRequest other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSystemInfoRequest Clone() { return new GetSystemInfoRequest(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetSystemInfoRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSystemInfoRequest 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(GetSystemInfoRequest 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 } /// /// Ответ на запрос получения общей информации об устройстве /// public sealed partial class GetSystemInfoResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSystemInfoResponse()); 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::Deviceapis.Device.V1.DeviceapisDeviceSystemV1Reflection.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 GetSystemInfoResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSystemInfoResponse(GetSystemInfoResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSystemInfoResponse Clone() { return new GetSystemInfoResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Общая информация об устройстве /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.DeviceInfo Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Deviceapis.Device.V1.DeviceInfo) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetSystemInfoResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSystemInfoResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetSystemInfoResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Deviceapis.Device.V1.DeviceInfo(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Deviceapis.Device.V1.DeviceInfo subBuilder = new global::Deviceapis.Device.V1.DeviceInfo(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Deviceapis.Device.V1.DeviceInfo subBuilder = new global::Deviceapis.Device.V1.DeviceInfo(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } #endregion } #endregion Designer generated code