// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/telemetry_control/v1/keyapis_telemetry_control_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.TelemetryControl.V1 { /// Holder for reflection information generated from keyapis/telemetry_control/v1/keyapis_telemetry_control_events_v1.proto public static partial class KeyapisTelemetryControlEventsV1Reflection { #region Descriptor /// File descriptor for keyapis/telemetry_control/v1/keyapis_telemetry_control_events_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisTelemetryControlEventsV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CkZrZXlhcGlzL3RlbGVtZXRyeV9jb250cm9sL3YxL2tleWFwaXNfdGVsZW1l", "dHJ5X2NvbnRyb2xfZXZlbnRzX3YxLnByb3RvEhxrZXlhcGlzLnRlbGVtZXRy", "eV9jb250cm9sLnYxGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3Rv", "ItQDCg9Db2xsZWN0b3JQYXJhbXMSDAoEZGF0ZRgBIAEoCRJPCgxhcmNoaXZl", "X3R5cGUYAiABKA4yOS5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkNv", "bGxlY3RvclBhcmFtcy5BcmNoaXZlVHlwZRJJCglzaWduX3R5cGUYAyABKA4y", "Ni5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkNvbGxlY3RvclBhcmFt", "cy5TaWduVHlwZSKqAQoIU2lnblR5cGUSFQoRU0lHTl9UWVBFX1VOS05PV04Q", "ABIPCgtBQlNPTFVURV9EUxABEg8KC0FCU09MVVRFX1JDEAISDwoLSU5URVJW", "QUxfRFMQAxIPCgtJTlRFUlZBTF9SQxAEEg4KCkNVUlJFTlRfRFMQBRIOCgpD", "VVJSRU5UX1JTEAYSCgoGVk9MVU1FEAcSDQoJUEFSQU1FVEVSEAgSCAoERkxB", "RxAJImoKC0FyY2hpdmVUeXBlEhgKFEFSQ0hJVkVfVFlQRV9VTktOT1dOEAAS", "CwoHQ1VSUkVOVBABEgwKCEhBTEZIT1VSEAISCAoESE9VUhADEgcKA0RBWRAE", "EgkKBU1PTlRIEAUSCAoEWUVBUhAGImMKE0VJQ0FsbEZpYXNTdGFydFRhc2sS", "TAoQY29sbGVjdG9yX3BhcmFtcxgBIAEoCzItLmtleWFwaXMudGVsZW1ldHJ5", "X2NvbnRyb2wudjEuQ29sbGVjdG9yUGFyYW1zQgPgQQJC4gEKH3J1LmtleWFw", "aXMudGVsZW1ldHJ5X2NvbnRyb2wudjFCHktleWFwaXNUZWxlbWV0cnlDb250", "cm9sVjFQcm90b0gDUABaHS9rZXlhcGlzX3RlbGVtZXRyeV9jb250cm9sX3Yx", "2AEB+AEBogIZS0VZQVBJU1RFTEVNRVRSWUNPTlRST0xWMaoCG0tleWFwaXMu", "VGVsZW1ldHJ5Q29udHJvbC5WMcoCG0tleWFwaXNcVGVsZW1ldHJ5Q29udHJv", "bFxWMeoCHUtleWFwaXM6OlRlbGVtZXRyeUNvbnRyb2w6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.CollectorParams), global::Keyapis.TelemetryControl.V1.CollectorParams.Parser, new[]{ "Date", "ArchiveType", "SignType" }, null, new[]{ typeof(global::Keyapis.TelemetryControl.V1.CollectorParams.Types.SignType), typeof(global::Keyapis.TelemetryControl.V1.CollectorParams.Types.ArchiveType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.EICAllFiasStartTask), global::Keyapis.TelemetryControl.V1.EICAllFiasStartTask.Parser, new[]{ "CollectorParams" }, null, null, null, null) })); } #endregion } #region Messages /// /// Параметры сбора показаний /// public sealed partial class CollectorParams : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CollectorParams()); 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.TelemetryControl.V1.KeyapisTelemetryControlEventsV1Reflection.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 CollectorParams() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CollectorParams(CollectorParams other) : this() { date_ = other.date_; archiveType_ = other.archiveType_; signType_ = other.signType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CollectorParams Clone() { return new CollectorParams(this); } /// Field number for the "date" field. public const int DateFieldNumber = 1; private string date_ = ""; /// /// Дата в формате YYYYMMDD. /// При пустой дате запускается на текущую дату /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Date { get { return date_; } set { date_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "archive_type" field. public const int ArchiveTypeFieldNumber = 2; private global::Keyapis.TelemetryControl.V1.CollectorParams.Types.ArchiveType archiveType_ = global::Keyapis.TelemetryControl.V1.CollectorParams.Types.ArchiveType.Unknown; /// /// Тип архивности. /// При отсутствии переданного значения, будут запрошены показания по всем возможным типам архивности /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.CollectorParams.Types.ArchiveType ArchiveType { get { return archiveType_; } set { archiveType_ = value; } } /// Field number for the "sign_type" field. public const int SignTypeFieldNumber = 3; private global::Keyapis.TelemetryControl.V1.CollectorParams.Types.SignType signType_ = global::Keyapis.TelemetryControl.V1.CollectorParams.Types.SignType.Unknown; /// /// Tип измерений. /// При отсутствии переданного значения, будут запрошены показания по всем возможным типам измерений /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.CollectorParams.Types.SignType SignType { get { return signType_; } set { signType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CollectorParams); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CollectorParams other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Date != other.Date) return false; if (ArchiveType != other.ArchiveType) return false; if (SignType != other.SignType) 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 (Date.Length != 0) hash ^= Date.GetHashCode(); if (ArchiveType != global::Keyapis.TelemetryControl.V1.CollectorParams.Types.ArchiveType.Unknown) hash ^= ArchiveType.GetHashCode(); if (SignType != global::Keyapis.TelemetryControl.V1.CollectorParams.Types.SignType.Unknown) hash ^= SignType.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 (Date.Length != 0) { output.WriteRawTag(10); output.WriteString(Date); } if (ArchiveType != global::Keyapis.TelemetryControl.V1.CollectorParams.Types.ArchiveType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) ArchiveType); } if (SignType != global::Keyapis.TelemetryControl.V1.CollectorParams.Types.SignType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) SignType); } 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 (Date.Length != 0) { output.WriteRawTag(10); output.WriteString(Date); } if (ArchiveType != global::Keyapis.TelemetryControl.V1.CollectorParams.Types.ArchiveType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) ArchiveType); } if (SignType != global::Keyapis.TelemetryControl.V1.CollectorParams.Types.SignType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) SignType); } 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 (Date.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Date); } if (ArchiveType != global::Keyapis.TelemetryControl.V1.CollectorParams.Types.ArchiveType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ArchiveType); } if (SignType != global::Keyapis.TelemetryControl.V1.CollectorParams.Types.SignType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SignType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CollectorParams other) { if (other == null) { return; } if (other.Date.Length != 0) { Date = other.Date; } if (other.ArchiveType != global::Keyapis.TelemetryControl.V1.CollectorParams.Types.ArchiveType.Unknown) { ArchiveType = other.ArchiveType; } if (other.SignType != global::Keyapis.TelemetryControl.V1.CollectorParams.Types.SignType.Unknown) { SignType = other.SignType; } _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: { Date = input.ReadString(); break; } case 16: { ArchiveType = (global::Keyapis.TelemetryControl.V1.CollectorParams.Types.ArchiveType) input.ReadEnum(); break; } case 24: { SignType = (global::Keyapis.TelemetryControl.V1.CollectorParams.Types.SignType) 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: { Date = input.ReadString(); break; } case 16: { ArchiveType = (global::Keyapis.TelemetryControl.V1.CollectorParams.Types.ArchiveType) input.ReadEnum(); break; } case 24: { SignType = (global::Keyapis.TelemetryControl.V1.CollectorParams.Types.SignType) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the CollectorParams message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов измерений /// public enum SignType { /// /// Значение не указано /// [pbr::OriginalName("SIGN_TYPE_UNKNOWN")] Unknown = 0, /// /// Абсолютный показатель /// [pbr::OriginalName("ABSOLUTE_DS")] AbsoluteDs = 1, /// /// Абсолютный расход ресурса /// [pbr::OriginalName("ABSOLUTE_RC")] AbsoluteRc = 2, /// /// Интервальный показатель состояния /// [pbr::OriginalName("INTERVAL_DS")] IntervalDs = 3, /// /// Интервальный расход ресурса /// [pbr::OriginalName("INTERVAL_RC")] IntervalRc = 4, /// /// Текущее состояние /// [pbr::OriginalName("CURRENT_DS")] CurrentDs = 5, /// /// Текущее состояние ресурса /// [pbr::OriginalName("CURRENT_RS")] CurrentRs = 6, /// /// Объём /// [pbr::OriginalName("VOLUME")] Volume = 7, /// /// Параметр конфигурации /// [pbr::OriginalName("PARAMETER")] Parameter = 8, /// /// Флаг состояния /// [pbr::OriginalName("FLAG")] Flag = 9, } /// /// Справочник типа архивности показаний. /// Используется для указания за какой период произошло измерение /// public enum ArchiveType { /// /// Значение не указано /// [pbr::OriginalName("ARCHIVE_TYPE_UNKNOWN")] Unknown = 0, /// /// Текущие показания /// [pbr::OriginalName("CURRENT")] Current = 1, /// /// За 30 мин /// [pbr::OriginalName("HALFHOUR")] Halfhour = 2, /// /// За час /// [pbr::OriginalName("HOUR")] Hour = 3, /// /// За сутки /// [pbr::OriginalName("DAY")] Day = 4, /// /// За месяц /// [pbr::OriginalName("MONTH")] Month = 5, /// /// За год /// [pbr::OriginalName("YEAR")] Year = 6, } } #endregion } /// /// Сигнал на старт сбора показаний Enviro по всем домам, на указанную дату. /// Очередь key.telemetry_control.eic_all_fias_start_task /// public sealed partial class EICAllFiasStartTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EICAllFiasStartTask()); 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.TelemetryControl.V1.KeyapisTelemetryControlEventsV1Reflection.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 EICAllFiasStartTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EICAllFiasStartTask(EICAllFiasStartTask other) : this() { collectorParams_ = other.collectorParams_ != null ? other.collectorParams_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EICAllFiasStartTask Clone() { return new EICAllFiasStartTask(this); } /// Field number for the "collector_params" field. public const int CollectorParamsFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.CollectorParams collectorParams_; /// /// Параметры сбора показаний /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.CollectorParams CollectorParams { get { return collectorParams_; } set { collectorParams_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EICAllFiasStartTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EICAllFiasStartTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(CollectorParams, other.CollectorParams)) 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 (collectorParams_ != null) hash ^= CollectorParams.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 (collectorParams_ != null) { output.WriteRawTag(10); output.WriteMessage(CollectorParams); } 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 (collectorParams_ != null) { output.WriteRawTag(10); output.WriteMessage(CollectorParams); } 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 (collectorParams_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CollectorParams); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EICAllFiasStartTask other) { if (other == null) { return; } if (other.collectorParams_ != null) { if (collectorParams_ == null) { CollectorParams = new global::Keyapis.TelemetryControl.V1.CollectorParams(); } CollectorParams.MergeFrom(other.CollectorParams); } _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: { if (collectorParams_ == null) { CollectorParams = new global::Keyapis.TelemetryControl.V1.CollectorParams(); } input.ReadMessage(CollectorParams); 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: { if (collectorParams_ == null) { CollectorParams = new global::Keyapis.TelemetryControl.V1.CollectorParams(); } input.ReadMessage(CollectorParams); break; } } } } #endif } #endregion } #endregion Designer generated code