//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/telemetry_metric/v1/keyapis_telemetry_metric_measurement_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.TelemetryMetric.V1 {
/// Holder for reflection information generated from keyapis/telemetry_metric/v1/keyapis_telemetry_metric_measurement_v1.proto
public static partial class KeyapisTelemetryMetricMeasurementV1Reflection {
#region Descriptor
/// File descriptor for keyapis/telemetry_metric/v1/keyapis_telemetry_metric_measurement_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisTelemetryMetricMeasurementV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CklrZXlhcGlzL3RlbGVtZXRyeV9tZXRyaWMvdjEva2V5YXBpc190ZWxlbWV0",
"cnlfbWV0cmljX21lYXN1cmVtZW50X3YxLnByb3RvEhtrZXlhcGlzLnRlbGVt",
"ZXRyeV9tZXRyaWMudjEaHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8a",
"H2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aHmdvb2dsZS9wcm90",
"b2J1Zi93cmFwcGVycy5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFt",
"cC5wcm90byKrAQoZR2V0TWVhc3VyZW1lbnRMaXN0UmVxdWVzdBI+CgZmaWx0",
"ZXIYASABKAsyLi5rZXlhcGlzLnRlbGVtZXRyeV9tZXRyaWMudjEuTWVhc3Vy",
"ZW1lbnRGaWx0ZXISQAoGcGFnaW5nGAIgASgLMi4ua2V5YXBpcy50ZWxlbWV0",
"cnlfbWV0cmljLnYxLk1lYXN1cmVtZW50UGFnaW5nSABCDAoKcGFnaW5hdGlv",
"biK0AQoiR2V0TWVhc3VyZW1lbnRDb252ZXJ0ZWRMaXN0UmVxdWVzdBI+CgZm",
"aWx0ZXIYASABKAsyLi5rZXlhcGlzLnRlbGVtZXRyeV9tZXRyaWMudjEuTWVh",
"c3VyZW1lbnRGaWx0ZXISQAoGcGFnaW5nGAIgASgLMi4ua2V5YXBpcy50ZWxl",
"bWV0cnlfbWV0cmljLnYxLk1lYXN1cmVtZW50UGFnaW5nSABCDAoKcGFnaW5h",
"dGlvbiJeChpHZXRNZWFzdXJlbWVudExpc3RSZXNwb25zZRI4CgRkYXRhGAEg",
"ASgLMigua2V5YXBpcy50ZWxlbWV0cnlfbWV0cmljLnYxLk1lYXN1cmVtZW50",
"SABCBgoEdHlwZSJnCiNHZXRNZWFzdXJlbWVudENvbnZlcnRlZExpc3RSZXNw",
"b25zZRI4CgRkYXRhGAEgASgLMigua2V5YXBpcy50ZWxlbWV0cnlfbWV0cmlj",
"LnYxLk1lYXN1cmVtZW50SABCBgoEdHlwZSKmAwoRTWVhc3VyZW1lbnRGaWx0",
"ZXISEAoIZmlhc19pZHMYASADKAkSEgoKZGV2aWNlX2lkcxgCIAMoBRIVCg1p",
"bmRpY2F0b3JfaWRzGAMgAygFEjMKD2JlZ2luX3N5bmNlZF9hdBgEIAEoCzIa",
"Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASMQoNZW5kX3N5bmNlZF9hdBgF",
"IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASFQoNZGV2aWNlX21v",
"ZGVscxgGIAMoCRJJCgxkZXZpY2VfdHlwZXMYByADKA4yMy5rZXlhcGlzLnRl",
"bGVtZXRyeV9tZXRyaWMudjEuTWVhc3VyZW1lbnQuRGV2aWNlVHlwZRJJCgxt",
"ZXRyaWNfdHlwZXMYCCADKA4yMy5rZXlhcGlzLnRlbGVtZXRyeV9tZXRyaWMu",
"djEuTWVhc3VyZW1lbnQuTWV0cmljVHlwZRI/Chtpc19ib3JkZXJfbWVhc3Vy",
"ZW1lbnRzX29ubHkYCSABKAsyGi5nb29nbGUucHJvdG9idWYuQm9vbFZhbHVl",
"IlwKGkdldE1lYXN1cmVtZW50Q291bnRSZXF1ZXN0Ej4KBmZpbHRlchgBIAEo",
"CzIuLmtleWFwaXMudGVsZW1ldHJ5X21ldHJpYy52MS5NZWFzdXJlbWVudEZp",
"bHRlciJlCiNHZXRNZWFzdXJlbWVudENvbnZlcnRlZENvdW50UmVxdWVzdBI+",
"CgZmaWx0ZXIYASABKAsyLi5rZXlhcGlzLnRlbGVtZXRyeV9tZXRyaWMudjEu",
"TWVhc3VyZW1lbnRGaWx0ZXIiNQobR2V0TWVhc3VyZW1lbnRDb3VudFJlc3Bv",
"bnNlEg4KBGRhdGEYASABKAVIAEIGCgR0eXBlIj4KJEdldE1lYXN1cmVtZW50",
"Q29udmVydGVkQ291bnRSZXNwb25zZRIOCgRkYXRhGAEgASgFSABCBgoEdHlw",
"ZSLmAgoRTWVhc3VyZW1lbnRQYWdpbmcSUQoNb3JkZXJfYnlfdHlwZRgBIAEo",
"DjI6LmtleWFwaXMudGVsZW1ldHJ5X21ldHJpYy52MS5NZWFzdXJlbWVudFBh",
"Z2luZy5PcmRlckJ5VHlwZRJUCg5kaXJlY3Rpb25fdHlwZRgCIAEoDjI8Lmtl",
"eWFwaXMudGVsZW1ldHJ5X21ldHJpYy52MS5NZWFzdXJlbWVudFBhZ2luZy5E",
"aXJlY3Rpb25UeXBlEg0KBWxpbWl0GAMgASgFEg4KBm9mZnNldBgEIAEoBSJJ",
"CgtPcmRlckJ5VHlwZRIZChVPUkRFUl9CWV9UWVBFX1VOS05PV04QABIQCgxJ",
"TkRJQ0FUT1JfSUQQARINCglTWU5DRURfQVQQAiI+Cg1EaXJlY3Rpb25UeXBl",
"EhoKFkRJUkVDVElPTl9UWVBFX1VOS05PV04QABIICgRERVNDEAESBwoDQVND",
"EAIiVQoWUG9zdE1lYXN1cmVtZW50UmVxdWVzdBI7CgRkYXRhGAEgASgLMigu",
"a2V5YXBpcy50ZWxlbWV0cnlfbWV0cmljLnYxLk1lYXN1cmVtZW50QgPgQQIi",
"GQoXUG9zdE1lYXN1cmVtZW50UmVzcG9uc2UiXwogUG9zdE1lYXN1cmVtZW50",
"SGFsZkR1cGxleFJlcXVlc3QSOwoEZGF0YRgBIAEoCzIoLmtleWFwaXMudGVs",
"ZW1ldHJ5X21ldHJpYy52MS5NZWFzdXJlbWVudEID4EECIiMKIVBvc3RNZWFz",
"dXJlbWVudEhhbGZEdXBsZXhSZXNwb25zZSKpCQoLTWVhc3VyZW1lbnQSGQoM",
"aW5kaWNhdG9yX2lkGAEgASgFQgPgQQISEgoFdmFsdWUYAiABKAJCA+BBAhIt",
"CglzeW5jZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w",
"Ei0KB2ZpYXNfaWQYBCABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFs",
"dWUSLgoJZGV2aWNlX2lkGAUgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMy",
"VmFsdWUSNQoQZGV2aWNlX3BhcmVudF9pZBgGIAEoCzIbLmdvb2dsZS5wcm90",
"b2J1Zi5JbnQzMlZhbHVlEjIKDGRldmljZV9tb2RlbBgHIAEoCzIcLmdvb2ds",
"ZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRJICgtkZXZpY2VfdHlwZRgIIAEoDjIz",
"LmtleWFwaXMudGVsZW1ldHJ5X21ldHJpYy52MS5NZWFzdXJlbWVudC5EZXZp",
"Y2VUeXBlEkgKC21ldHJpY190eXBlGAkgASgOMjMua2V5YXBpcy50ZWxlbWV0",
"cnlfbWV0cmljLnYxLk1lYXN1cmVtZW50Lk1ldHJpY1R5cGUSMwoKY2hhbmdl",
"ZF9hdBgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxIS",
"Cgp1dGNfb2Zmc2V0GAsgASgFEkQKCXVuaXRfdHlwZRgMIAEoDjIxLmtleWFw",
"aXMudGVsZW1ldHJ5X21ldHJpYy52MS5NZWFzdXJlbWVudC5Vbml0VHlwZSLQ",
"AQoKRGV2aWNlVHlwZRIXChNERVZJQ0VfVFlQRV9VTktOT1dOEAASBwoDSFVC",
"EAESGgoWUFVMU0VfQ09VTlRFUl9SRUNPUkRFUhACEh0KGVBVTFNFX0NPVU5U",
"RVJfUkVDT1JERVJfTFIQAxITCg9NRVRFUklOR19ERVZJQ0UQBBIXChNJTlRF",
"UkZBQ0VfQ09OVkVSVEVSEAUSDQoJTV9CVVNfSFVCEAYSGwoXQ09NTVVOSUNB",
"VElPTl9NT0RVTEVfTFIQBxILCgdCQVNFX0xSEAgiaAoKTWV0cmljVHlwZRIX",
"ChNNRVRSSUNfVFlQRV9VTktOT1dOEAASDQoJSE9UX1dBVEVSEAESDgoKQ09M",
"RF9XQVRFUhACEggKBEhFQVQQAxIHCgNHQVMQBBIPCgtFTEVDVFJJQ0lUWRAF",
"IpECCghVbml0VHlwZRIVChFVTklUX1RZUEVfVU5LTk9XThAAEgsKB1BFUkNF",
"TlQQARIFCgFDEAISBgoCV1QQAxIICgRHS0FMEAQSCQoFVkFMVUUQBRIHCgNL",
"V0gQBhIKCgZLR19DTTIQBxILCgdLR0ZfQ00yEAgSBgoCTTMQCRIICgRNM19I",
"EAoSBwoDTVBBEAsSBgoCTVMQDBILCgdCT09MRUFOEA0SBQoBVBAOEgcKA1Rf",
"SBAPEgUKAUgQEBISCg5OT05fTUVBU1VSQUJMRRAREgcKA0lNUBASEgUKAUoQ",
"ExIGCgJLShAUEgYKAkdKEBUSBwoDV1RIEBYSBwoDS1dUEBcSBwoDTUlOEBgS",
"BQoBUxAZMqQJChJNZWFzdXJlbWVudFNlcnZpY2USqgEKD1Bvc3RNZWFzdXJl",
"bWVudBIzLmtleWFwaXMudGVsZW1ldHJ5X21ldHJpYy52MS5Qb3N0TWVhc3Vy",
"ZW1lbnRSZXF1ZXN0GjQua2V5YXBpcy50ZWxlbWV0cnlfbWV0cmljLnYxLlBv",
"c3RNZWFzdXJlbWVudFJlc3BvbnNlIiyC0+STAiYiJC90ZWxlbWV0cnlfbWV0",
"cmljL2FwaS92MS9tZWFzdXJlbWVudBKeAQoZUG9zdE1lYXN1cmVtZW50SGFs",
"ZkR1cGxleBI9LmtleWFwaXMudGVsZW1ldHJ5X21ldHJpYy52MS5Qb3N0TWVh",
"c3VyZW1lbnRIYWxmRHVwbGV4UmVxdWVzdBo+LmtleWFwaXMudGVsZW1ldHJ5",
"X21ldHJpYy52MS5Qb3N0TWVhc3VyZW1lbnRIYWxmRHVwbGV4UmVzcG9uc2Ui",
"ACgBEroBChJHZXRNZWFzdXJlbWVudExpc3QSNi5rZXlhcGlzLnRlbGVtZXRy",
"eV9tZXRyaWMudjEuR2V0TWVhc3VyZW1lbnRMaXN0UmVxdWVzdBo3LmtleWFw",
"aXMudGVsZW1ldHJ5X21ldHJpYy52MS5HZXRNZWFzdXJlbWVudExpc3RSZXNw",
"b25zZSIxgtPkkwIrEikvdGVsZW1ldHJ5X21ldHJpYy9hcGkvdjEvbWVhc3Vy",
"ZW1lbnQvbGlzdDABErwBChNHZXRNZWFzdXJlbWVudENvdW50Ejcua2V5YXBp",
"cy50ZWxlbWV0cnlfbWV0cmljLnYxLkdldE1lYXN1cmVtZW50Q291bnRSZXF1",
"ZXN0Gjgua2V5YXBpcy50ZWxlbWV0cnlfbWV0cmljLnYxLkdldE1lYXN1cmVt",
"ZW50Q291bnRSZXNwb25zZSIygtPkkwIsEiovdGVsZW1ldHJ5X21ldHJpYy9h",
"cGkvdjEvbWVhc3VyZW1lbnQvY291bnQS3wEKG0dldE1lYXN1cmVtZW50Q29u",
"dmVydGVkTGlzdBI/LmtleWFwaXMudGVsZW1ldHJ5X21ldHJpYy52MS5HZXRN",
"ZWFzdXJlbWVudENvbnZlcnRlZExpc3RSZXF1ZXN0GkAua2V5YXBpcy50ZWxl",
"bWV0cnlfbWV0cmljLnYxLkdldE1lYXN1cmVtZW50Q29udmVydGVkTGlzdFJl",
"c3BvbnNlIjuC0+STAjUSMy90ZWxlbWV0cnlfbWV0cmljL2FwaS92MS9tZWFz",
"dXJlbWVudC9jb252ZXJ0ZWQvbGlzdDABEuEBChxHZXRNZWFzdXJlbWVudENv",
"bnZlcnRlZENvdW50EkAua2V5YXBpcy50ZWxlbWV0cnlfbWV0cmljLnYxLkdl",
"dE1lYXN1cmVtZW50Q29udmVydGVkQ291bnRSZXF1ZXN0GkEua2V5YXBpcy50",
"ZWxlbWV0cnlfbWV0cmljLnYxLkdldE1lYXN1cmVtZW50Q29udmVydGVkQ291",
"bnRSZXNwb25zZSI8gtPkkwI2EjQvdGVsZW1ldHJ5X21ldHJpYy9hcGkvdjEv",
"bWVhc3VyZW1lbnQvY29udmVydGVkL2NvdW50QtwBCh5ydS5rZXlhcGlzLnRl",
"bGVtZXRyeV9tZXRyaWMudjFCHUtleWFwaXNUZWxlbWV0cnlNZXRyaWNWMVBy",
"b3RvSANQAFocL2tleWFwaXNfdGVsZW1ldHJ5X21ldHJpY192MdgBAfgBAaIC",
"GUtFWUFQSVNURUxFTUVUUllNRVRSSUNZVjGqAhpLZXlhcGlzLlRlbGVtZXRy",
"eU1ldHJpYy5WMcoCGktleWFwaXNcVGVsZW1ldHJ5TWV0cmljXFYx6gIcS2V5",
"YXBpczo6VGVsZW1ldHJ5TWV0cmljOjpWMWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.GetMeasurementListRequest), global::Keyapis.TelemetryMetric.V1.GetMeasurementListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedListRequest), global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.GetMeasurementListResponse), global::Keyapis.TelemetryMetric.V1.GetMeasurementListResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedListResponse), global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedListResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.MeasurementFilter), global::Keyapis.TelemetryMetric.V1.MeasurementFilter.Parser, new[]{ "FiasIds", "DeviceIds", "IndicatorIds", "BeginSyncedAt", "EndSyncedAt", "DeviceModels", "DeviceTypes", "MetricTypes", "IsBorderMeasurementsOnly" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.GetMeasurementCountRequest), global::Keyapis.TelemetryMetric.V1.GetMeasurementCountRequest.Parser, new[]{ "Filter" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedCountRequest), global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedCountRequest.Parser, new[]{ "Filter" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.GetMeasurementCountResponse), global::Keyapis.TelemetryMetric.V1.GetMeasurementCountResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedCountResponse), global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedCountResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.MeasurementPaging), global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.OrderByType), typeof(global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.DirectionType) }, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.PostMeasurementRequest), global::Keyapis.TelemetryMetric.V1.PostMeasurementRequest.Parser, new[]{ "Data" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.PostMeasurementResponse), global::Keyapis.TelemetryMetric.V1.PostMeasurementResponse.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.PostMeasurementHalfDuplexRequest), global::Keyapis.TelemetryMetric.V1.PostMeasurementHalfDuplexRequest.Parser, new[]{ "Data" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.PostMeasurementHalfDuplexResponse), global::Keyapis.TelemetryMetric.V1.PostMeasurementHalfDuplexResponse.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryMetric.V1.Measurement), global::Keyapis.TelemetryMetric.V1.Measurement.Parser, new[]{ "IndicatorId", "Value", "SyncedAt", "FiasId", "DeviceId", "DeviceParentId", "DeviceModel", "DeviceType", "MetricType", "ChangedAt", "UtcOffset", "UnitType" }, null, new[]{ typeof(global::Keyapis.TelemetryMetric.V1.Measurement.Types.DeviceType), typeof(global::Keyapis.TelemetryMetric.V1.Measurement.Types.MetricType), typeof(global::Keyapis.TelemetryMetric.V1.Measurement.Types.UnitType) }, null, null)
}));
}
#endregion
}
#region Messages
///
/// Запрос получения списка измерений
///
public sealed partial class GetMeasurementListRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMeasurementListRequest());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.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 GetMeasurementListRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementListRequest(GetMeasurementListRequest other) : this() {
filter_ = other.filter_ != null ? other.filter_.Clone() : null;
switch (other.PaginationCase) {
case PaginationOneofCase.Paging:
Paging = other.Paging.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementListRequest Clone() {
return new GetMeasurementListRequest(this);
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 1;
private global::Keyapis.TelemetryMetric.V1.MeasurementFilter filter_;
///
/// Параметры фильтрации измерений
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.MeasurementFilter Filter {
get { return filter_; }
set {
filter_ = value;
}
}
/// Field number for the "paging" field.
public const int PagingFieldNumber = 2;
///
/// Параметры пагинации по измерениям
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.MeasurementPaging Paging {
get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.TelemetryMetric.V1.MeasurementPaging) pagination_ : null; }
set {
pagination_ = value;
paginationCase_ = value == null ? PaginationOneofCase.None : PaginationOneofCase.Paging;
}
}
private object pagination_;
/// Enum of possible cases for the "pagination" oneof.
public enum PaginationOneofCase {
None = 0,
Paging = 2,
}
private PaginationOneofCase paginationCase_ = PaginationOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PaginationOneofCase PaginationCase {
get { return paginationCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPagination() {
paginationCase_ = PaginationOneofCase.None;
pagination_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetMeasurementListRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetMeasurementListRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Filter, other.Filter)) return false;
if (!object.Equals(Paging, other.Paging)) return false;
if (PaginationCase != other.PaginationCase) 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 (filter_ != null) hash ^= Filter.GetHashCode();
if (paginationCase_ == PaginationOneofCase.Paging) hash ^= Paging.GetHashCode();
hash ^= (int) paginationCase_;
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 (filter_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Filter);
}
if (paginationCase_ == PaginationOneofCase.Paging) {
output.WriteRawTag(18);
output.WriteMessage(Paging);
}
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 (filter_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Filter);
}
if (paginationCase_ == PaginationOneofCase.Paging) {
output.WriteRawTag(18);
output.WriteMessage(Paging);
}
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 (filter_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter);
}
if (paginationCase_ == PaginationOneofCase.Paging) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Paging);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetMeasurementListRequest other) {
if (other == null) {
return;
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.TelemetryMetric.V1.MeasurementFilter();
}
Filter.MergeFrom(other.Filter);
}
switch (other.PaginationCase) {
case PaginationOneofCase.Paging:
if (Paging == null) {
Paging = new global::Keyapis.TelemetryMetric.V1.MeasurementPaging();
}
Paging.MergeFrom(other.Paging);
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: {
if (filter_ == null) {
Filter = new global::Keyapis.TelemetryMetric.V1.MeasurementFilter();
}
input.ReadMessage(Filter);
break;
}
case 18: {
global::Keyapis.TelemetryMetric.V1.MeasurementPaging subBuilder = new global::Keyapis.TelemetryMetric.V1.MeasurementPaging();
if (paginationCase_ == PaginationOneofCase.Paging) {
subBuilder.MergeFrom(Paging);
}
input.ReadMessage(subBuilder);
Paging = 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: {
if (filter_ == null) {
Filter = new global::Keyapis.TelemetryMetric.V1.MeasurementFilter();
}
input.ReadMessage(Filter);
break;
}
case 18: {
global::Keyapis.TelemetryMetric.V1.MeasurementPaging subBuilder = new global::Keyapis.TelemetryMetric.V1.MeasurementPaging();
if (paginationCase_ == PaginationOneofCase.Paging) {
subBuilder.MergeFrom(Paging);
}
input.ReadMessage(subBuilder);
Paging = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Запрос получения списка преобразованных измерений
///
public sealed partial class GetMeasurementConvertedListRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMeasurementConvertedListRequest());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.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 GetMeasurementConvertedListRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementConvertedListRequest(GetMeasurementConvertedListRequest other) : this() {
filter_ = other.filter_ != null ? other.filter_.Clone() : null;
switch (other.PaginationCase) {
case PaginationOneofCase.Paging:
Paging = other.Paging.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementConvertedListRequest Clone() {
return new GetMeasurementConvertedListRequest(this);
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 1;
private global::Keyapis.TelemetryMetric.V1.MeasurementFilter filter_;
///
/// Параметры фильтрации измерений
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.MeasurementFilter Filter {
get { return filter_; }
set {
filter_ = value;
}
}
/// Field number for the "paging" field.
public const int PagingFieldNumber = 2;
///
/// Параметры пагинации по измерениям
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.MeasurementPaging Paging {
get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.TelemetryMetric.V1.MeasurementPaging) pagination_ : null; }
set {
pagination_ = value;
paginationCase_ = value == null ? PaginationOneofCase.None : PaginationOneofCase.Paging;
}
}
private object pagination_;
/// Enum of possible cases for the "pagination" oneof.
public enum PaginationOneofCase {
None = 0,
Paging = 2,
}
private PaginationOneofCase paginationCase_ = PaginationOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PaginationOneofCase PaginationCase {
get { return paginationCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPagination() {
paginationCase_ = PaginationOneofCase.None;
pagination_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetMeasurementConvertedListRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetMeasurementConvertedListRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Filter, other.Filter)) return false;
if (!object.Equals(Paging, other.Paging)) return false;
if (PaginationCase != other.PaginationCase) 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 (filter_ != null) hash ^= Filter.GetHashCode();
if (paginationCase_ == PaginationOneofCase.Paging) hash ^= Paging.GetHashCode();
hash ^= (int) paginationCase_;
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 (filter_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Filter);
}
if (paginationCase_ == PaginationOneofCase.Paging) {
output.WriteRawTag(18);
output.WriteMessage(Paging);
}
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 (filter_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Filter);
}
if (paginationCase_ == PaginationOneofCase.Paging) {
output.WriteRawTag(18);
output.WriteMessage(Paging);
}
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 (filter_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter);
}
if (paginationCase_ == PaginationOneofCase.Paging) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Paging);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetMeasurementConvertedListRequest other) {
if (other == null) {
return;
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.TelemetryMetric.V1.MeasurementFilter();
}
Filter.MergeFrom(other.Filter);
}
switch (other.PaginationCase) {
case PaginationOneofCase.Paging:
if (Paging == null) {
Paging = new global::Keyapis.TelemetryMetric.V1.MeasurementPaging();
}
Paging.MergeFrom(other.Paging);
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: {
if (filter_ == null) {
Filter = new global::Keyapis.TelemetryMetric.V1.MeasurementFilter();
}
input.ReadMessage(Filter);
break;
}
case 18: {
global::Keyapis.TelemetryMetric.V1.MeasurementPaging subBuilder = new global::Keyapis.TelemetryMetric.V1.MeasurementPaging();
if (paginationCase_ == PaginationOneofCase.Paging) {
subBuilder.MergeFrom(Paging);
}
input.ReadMessage(subBuilder);
Paging = 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: {
if (filter_ == null) {
Filter = new global::Keyapis.TelemetryMetric.V1.MeasurementFilter();
}
input.ReadMessage(Filter);
break;
}
case 18: {
global::Keyapis.TelemetryMetric.V1.MeasurementPaging subBuilder = new global::Keyapis.TelemetryMetric.V1.MeasurementPaging();
if (paginationCase_ == PaginationOneofCase.Paging) {
subBuilder.MergeFrom(Paging);
}
input.ReadMessage(subBuilder);
Paging = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения списка измерений
///
public sealed partial class GetMeasurementListResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMeasurementListResponse());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.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 GetMeasurementListResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementListResponse(GetMeasurementListResponse 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 GetMeasurementListResponse Clone() {
return new GetMeasurementListResponse(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::Keyapis.TelemetryMetric.V1.Measurement Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryMetric.V1.Measurement) 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 GetMeasurementListResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetMeasurementListResponse 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(GetMeasurementListResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.TelemetryMetric.V1.Measurement();
}
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::Keyapis.TelemetryMetric.V1.Measurement subBuilder = new global::Keyapis.TelemetryMetric.V1.Measurement();
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::Keyapis.TelemetryMetric.V1.Measurement subBuilder = new global::Keyapis.TelemetryMetric.V1.Measurement();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения списка преобразованных измерений
///
public sealed partial class GetMeasurementConvertedListResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMeasurementConvertedListResponse());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.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 GetMeasurementConvertedListResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementConvertedListResponse(GetMeasurementConvertedListResponse 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 GetMeasurementConvertedListResponse Clone() {
return new GetMeasurementConvertedListResponse(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::Keyapis.TelemetryMetric.V1.Measurement Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryMetric.V1.Measurement) 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 GetMeasurementConvertedListResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetMeasurementConvertedListResponse 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(GetMeasurementConvertedListResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.TelemetryMetric.V1.Measurement();
}
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::Keyapis.TelemetryMetric.V1.Measurement subBuilder = new global::Keyapis.TelemetryMetric.V1.Measurement();
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::Keyapis.TelemetryMetric.V1.Measurement subBuilder = new global::Keyapis.TelemetryMetric.V1.Measurement();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Фильтр измерений.
/// При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ.
/// При передаче нескольких разных параметров фильтра они работают в выборке через И
///
public sealed partial class MeasurementFilter : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MeasurementFilter());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.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 MeasurementFilter() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MeasurementFilter(MeasurementFilter other) : this() {
fiasIds_ = other.fiasIds_.Clone();
deviceIds_ = other.deviceIds_.Clone();
indicatorIds_ = other.indicatorIds_.Clone();
beginSyncedAt_ = other.beginSyncedAt_ != null ? other.beginSyncedAt_.Clone() : null;
endSyncedAt_ = other.endSyncedAt_ != null ? other.endSyncedAt_.Clone() : null;
deviceModels_ = other.deviceModels_.Clone();
deviceTypes_ = other.deviceTypes_.Clone();
metricTypes_ = other.metricTypes_.Clone();
IsBorderMeasurementsOnly = other.IsBorderMeasurementsOnly;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MeasurementFilter Clone() {
return new MeasurementFilter(this);
}
/// Field number for the "fias_ids" field.
public const int FiasIdsFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_fiasIds_codec
= pb::FieldCodec.ForString(10);
private readonly pbc::RepeatedField fiasIds_ = new pbc::RepeatedField();
///
/// По ФИАСам
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField FiasIds {
get { return fiasIds_; }
}
/// Field number for the "device_ids" field.
public const int DeviceIdsFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_deviceIds_codec
= pb::FieldCodec.ForInt32(18);
private readonly pbc::RepeatedField deviceIds_ = new pbc::RepeatedField();
///
/// По идентификаторам
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField DeviceIds {
get { return deviceIds_; }
}
/// Field number for the "indicator_ids" field.
public const int IndicatorIdsFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_indicatorIds_codec
= pb::FieldCodec.ForInt32(26);
private readonly pbc::RepeatedField indicatorIds_ = new pbc::RepeatedField();
///
/// По идентификаторам индикаторов
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField IndicatorIds {
get { return indicatorIds_; }
}
/// Field number for the "begin_synced_at" field.
public const int BeginSyncedAtFieldNumber = 4;
private global::Google.Protobuf.WellKnownTypes.Timestamp beginSyncedAt_;
///
/// От даты синхронизации включительно (>=)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp BeginSyncedAt {
get { return beginSyncedAt_; }
set {
beginSyncedAt_ = value;
}
}
/// Field number for the "end_synced_at" field.
public const int EndSyncedAtFieldNumber = 5;
private global::Google.Protobuf.WellKnownTypes.Timestamp endSyncedAt_;
///
/// До даты синхронизации (<)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp EndSyncedAt {
get { return endSyncedAt_; }
set {
endSyncedAt_ = value;
}
}
/// Field number for the "device_models" field.
public const int DeviceModelsFieldNumber = 6;
private static readonly pb::FieldCodec _repeated_deviceModels_codec
= pb::FieldCodec.ForString(50);
private readonly pbc::RepeatedField deviceModels_ = new pbc::RepeatedField();
///
/// По моделям устройств
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField DeviceModels {
get { return deviceModels_; }
}
/// Field number for the "device_types" field.
public const int DeviceTypesFieldNumber = 7;
private static readonly pb::FieldCodec _repeated_deviceTypes_codec
= pb::FieldCodec.ForEnum(58, x => (int) x, x => (global::Keyapis.TelemetryMetric.V1.Measurement.Types.DeviceType) x);
private readonly pbc::RepeatedField deviceTypes_ = new pbc::RepeatedField();
///
/// По типам устройств
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField DeviceTypes {
get { return deviceTypes_; }
}
/// Field number for the "metric_types" field.
public const int MetricTypesFieldNumber = 8;
private static readonly pb::FieldCodec _repeated_metricTypes_codec
= pb::FieldCodec.ForEnum(66, x => (int) x, x => (global::Keyapis.TelemetryMetric.V1.Measurement.Types.MetricType) x);
private readonly pbc::RepeatedField metricTypes_ = new pbc::RepeatedField();
///
/// По типам измерений
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField MetricTypes {
get { return metricTypes_; }
}
/// Field number for the "is_border_measurements_only" field.
public const int IsBorderMeasurementsOnlyFieldNumber = 9;
private static readonly pb::FieldCodec _single_isBorderMeasurementsOnly_codec = pb::FieldCodec.ForStructWrapper(74);
private bool? isBorderMeasurementsOnly_;
///
/// Ограничение результатов только пограничными значениями для периода.
/// Если border_measurements_only=null возвращаем измерения по условиям фильтра, уникальные по (indicator_id, synced_at).
/// Если border_measurements_only=falsе возвращаем измерения по условиям фильтра, уникальные по (indicator_id, synced_at).
/// Если заданы border_measurements_only=true, begin_synced_at, end_synced_at возвращаем два измерения ближайшие к границам периода.
/// Если заданы border_measurements_only=true, и не задана end_synced_at возвращаем одно измерение ближайшее к begin_synced_at.
/// Если заданы border_measurements_only=true, и не задана begin_synced_at возвращаем одно измерение ближайшее к end_synced_at.
/// Если заданы border_measurements_only=true и не заданы begin_synced_at и end_synced_at возвращаем ошибку валидации параметров
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool? IsBorderMeasurementsOnly {
get { return isBorderMeasurementsOnly_; }
set {
isBorderMeasurementsOnly_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as MeasurementFilter);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MeasurementFilter other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!fiasIds_.Equals(other.fiasIds_)) return false;
if(!deviceIds_.Equals(other.deviceIds_)) return false;
if(!indicatorIds_.Equals(other.indicatorIds_)) return false;
if (!object.Equals(BeginSyncedAt, other.BeginSyncedAt)) return false;
if (!object.Equals(EndSyncedAt, other.EndSyncedAt)) return false;
if(!deviceModels_.Equals(other.deviceModels_)) return false;
if(!deviceTypes_.Equals(other.deviceTypes_)) return false;
if(!metricTypes_.Equals(other.metricTypes_)) return false;
if (IsBorderMeasurementsOnly != other.IsBorderMeasurementsOnly) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= fiasIds_.GetHashCode();
hash ^= deviceIds_.GetHashCode();
hash ^= indicatorIds_.GetHashCode();
if (beginSyncedAt_ != null) hash ^= BeginSyncedAt.GetHashCode();
if (endSyncedAt_ != null) hash ^= EndSyncedAt.GetHashCode();
hash ^= deviceModels_.GetHashCode();
hash ^= deviceTypes_.GetHashCode();
hash ^= metricTypes_.GetHashCode();
if (isBorderMeasurementsOnly_ != null) hash ^= IsBorderMeasurementsOnly.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
fiasIds_.WriteTo(output, _repeated_fiasIds_codec);
deviceIds_.WriteTo(output, _repeated_deviceIds_codec);
indicatorIds_.WriteTo(output, _repeated_indicatorIds_codec);
if (beginSyncedAt_ != null) {
output.WriteRawTag(34);
output.WriteMessage(BeginSyncedAt);
}
if (endSyncedAt_ != null) {
output.WriteRawTag(42);
output.WriteMessage(EndSyncedAt);
}
deviceModels_.WriteTo(output, _repeated_deviceModels_codec);
deviceTypes_.WriteTo(output, _repeated_deviceTypes_codec);
metricTypes_.WriteTo(output, _repeated_metricTypes_codec);
if (isBorderMeasurementsOnly_ != null) {
_single_isBorderMeasurementsOnly_codec.WriteTagAndValue(output, IsBorderMeasurementsOnly);
}
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) {
fiasIds_.WriteTo(ref output, _repeated_fiasIds_codec);
deviceIds_.WriteTo(ref output, _repeated_deviceIds_codec);
indicatorIds_.WriteTo(ref output, _repeated_indicatorIds_codec);
if (beginSyncedAt_ != null) {
output.WriteRawTag(34);
output.WriteMessage(BeginSyncedAt);
}
if (endSyncedAt_ != null) {
output.WriteRawTag(42);
output.WriteMessage(EndSyncedAt);
}
deviceModels_.WriteTo(ref output, _repeated_deviceModels_codec);
deviceTypes_.WriteTo(ref output, _repeated_deviceTypes_codec);
metricTypes_.WriteTo(ref output, _repeated_metricTypes_codec);
if (isBorderMeasurementsOnly_ != null) {
_single_isBorderMeasurementsOnly_codec.WriteTagAndValue(ref output, IsBorderMeasurementsOnly);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += fiasIds_.CalculateSize(_repeated_fiasIds_codec);
size += deviceIds_.CalculateSize(_repeated_deviceIds_codec);
size += indicatorIds_.CalculateSize(_repeated_indicatorIds_codec);
if (beginSyncedAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BeginSyncedAt);
}
if (endSyncedAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndSyncedAt);
}
size += deviceModels_.CalculateSize(_repeated_deviceModels_codec);
size += deviceTypes_.CalculateSize(_repeated_deviceTypes_codec);
size += metricTypes_.CalculateSize(_repeated_metricTypes_codec);
if (isBorderMeasurementsOnly_ != null) {
size += _single_isBorderMeasurementsOnly_codec.CalculateSizeWithTag(IsBorderMeasurementsOnly);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MeasurementFilter other) {
if (other == null) {
return;
}
fiasIds_.Add(other.fiasIds_);
deviceIds_.Add(other.deviceIds_);
indicatorIds_.Add(other.indicatorIds_);
if (other.beginSyncedAt_ != null) {
if (beginSyncedAt_ == null) {
BeginSyncedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
BeginSyncedAt.MergeFrom(other.BeginSyncedAt);
}
if (other.endSyncedAt_ != null) {
if (endSyncedAt_ == null) {
EndSyncedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
EndSyncedAt.MergeFrom(other.EndSyncedAt);
}
deviceModels_.Add(other.deviceModels_);
deviceTypes_.Add(other.deviceTypes_);
metricTypes_.Add(other.metricTypes_);
if (other.isBorderMeasurementsOnly_ != null) {
if (isBorderMeasurementsOnly_ == null || other.IsBorderMeasurementsOnly != false) {
IsBorderMeasurementsOnly = other.IsBorderMeasurementsOnly;
}
}
_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: {
fiasIds_.AddEntriesFrom(input, _repeated_fiasIds_codec);
break;
}
case 18:
case 16: {
deviceIds_.AddEntriesFrom(input, _repeated_deviceIds_codec);
break;
}
case 26:
case 24: {
indicatorIds_.AddEntriesFrom(input, _repeated_indicatorIds_codec);
break;
}
case 34: {
if (beginSyncedAt_ == null) {
BeginSyncedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(BeginSyncedAt);
break;
}
case 42: {
if (endSyncedAt_ == null) {
EndSyncedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(EndSyncedAt);
break;
}
case 50: {
deviceModels_.AddEntriesFrom(input, _repeated_deviceModels_codec);
break;
}
case 58:
case 56: {
deviceTypes_.AddEntriesFrom(input, _repeated_deviceTypes_codec);
break;
}
case 66:
case 64: {
metricTypes_.AddEntriesFrom(input, _repeated_metricTypes_codec);
break;
}
case 74: {
bool? value = _single_isBorderMeasurementsOnly_codec.Read(input);
if (isBorderMeasurementsOnly_ == null || value != false) {
IsBorderMeasurementsOnly = value;
}
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
fiasIds_.AddEntriesFrom(ref input, _repeated_fiasIds_codec);
break;
}
case 18:
case 16: {
deviceIds_.AddEntriesFrom(ref input, _repeated_deviceIds_codec);
break;
}
case 26:
case 24: {
indicatorIds_.AddEntriesFrom(ref input, _repeated_indicatorIds_codec);
break;
}
case 34: {
if (beginSyncedAt_ == null) {
BeginSyncedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(BeginSyncedAt);
break;
}
case 42: {
if (endSyncedAt_ == null) {
EndSyncedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(EndSyncedAt);
break;
}
case 50: {
deviceModels_.AddEntriesFrom(ref input, _repeated_deviceModels_codec);
break;
}
case 58:
case 56: {
deviceTypes_.AddEntriesFrom(ref input, _repeated_deviceTypes_codec);
break;
}
case 66:
case 64: {
metricTypes_.AddEntriesFrom(ref input, _repeated_metricTypes_codec);
break;
}
case 74: {
bool? value = _single_isBorderMeasurementsOnly_codec.Read(ref input);
if (isBorderMeasurementsOnly_ == null || value != false) {
IsBorderMeasurementsOnly = value;
}
break;
}
}
}
}
#endif
}
///
/// Запрос получения количества измерений
///
public sealed partial class GetMeasurementCountRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMeasurementCountRequest());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.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 GetMeasurementCountRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementCountRequest(GetMeasurementCountRequest other) : this() {
filter_ = other.filter_ != null ? other.filter_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementCountRequest Clone() {
return new GetMeasurementCountRequest(this);
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 1;
private global::Keyapis.TelemetryMetric.V1.MeasurementFilter filter_;
///
/// Параметры фильтрации измерений
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.MeasurementFilter Filter {
get { return filter_; }
set {
filter_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetMeasurementCountRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetMeasurementCountRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Filter, other.Filter)) 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 (filter_ != null) hash ^= Filter.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 (filter_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Filter);
}
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 (filter_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Filter);
}
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 (filter_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetMeasurementCountRequest other) {
if (other == null) {
return;
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.TelemetryMetric.V1.MeasurementFilter();
}
Filter.MergeFrom(other.Filter);
}
_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 (filter_ == null) {
Filter = new global::Keyapis.TelemetryMetric.V1.MeasurementFilter();
}
input.ReadMessage(Filter);
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 (filter_ == null) {
Filter = new global::Keyapis.TelemetryMetric.V1.MeasurementFilter();
}
input.ReadMessage(Filter);
break;
}
}
}
}
#endif
}
///
/// Запрос получения количества преобразованных измерений
///
public sealed partial class GetMeasurementConvertedCountRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMeasurementConvertedCountRequest());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.Descriptor.MessageTypes[6]; }
}
[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 GetMeasurementConvertedCountRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementConvertedCountRequest(GetMeasurementConvertedCountRequest other) : this() {
filter_ = other.filter_ != null ? other.filter_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementConvertedCountRequest Clone() {
return new GetMeasurementConvertedCountRequest(this);
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 1;
private global::Keyapis.TelemetryMetric.V1.MeasurementFilter filter_;
///
/// Параметры фильтрации измерений
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.MeasurementFilter Filter {
get { return filter_; }
set {
filter_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetMeasurementConvertedCountRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetMeasurementConvertedCountRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Filter, other.Filter)) 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 (filter_ != null) hash ^= Filter.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 (filter_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Filter);
}
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 (filter_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Filter);
}
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 (filter_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetMeasurementConvertedCountRequest other) {
if (other == null) {
return;
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.TelemetryMetric.V1.MeasurementFilter();
}
Filter.MergeFrom(other.Filter);
}
_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 (filter_ == null) {
Filter = new global::Keyapis.TelemetryMetric.V1.MeasurementFilter();
}
input.ReadMessage(Filter);
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 (filter_ == null) {
Filter = new global::Keyapis.TelemetryMetric.V1.MeasurementFilter();
}
input.ReadMessage(Filter);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения количества измерений
///
public sealed partial class GetMeasurementCountResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMeasurementCountResponse());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.Descriptor.MessageTypes[7]; }
}
[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 GetMeasurementCountResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementCountResponse(GetMeasurementCountResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementCountResponse Clone() {
return new GetMeasurementCountResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
///
/// Всего измерений
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Data {
get { return HasData ? (int) type_ : 0; }
set {
type_ = value;
typeCase_ = TypeOneofCase.Data;
}
}
/// Gets whether the "data" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasData {
get { return typeCase_ == TypeOneofCase.Data; }
}
/// Clears the value of the oneof if it's currently set to "data"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearData() {
if (HasData) {
ClearType();
}
}
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 GetMeasurementCountResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetMeasurementCountResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (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 (HasData) 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 (HasData) {
output.WriteRawTag(8);
output.WriteInt32(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 (HasData) {
output.WriteRawTag(8);
output.WriteInt32(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 (HasData) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetMeasurementCountResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = 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 8: {
Data = 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: {
Data = input.ReadInt32();
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения количества преобразованных измерений
///
public sealed partial class GetMeasurementConvertedCountResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMeasurementConvertedCountResponse());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.Descriptor.MessageTypes[8]; }
}
[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 GetMeasurementConvertedCountResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementConvertedCountResponse(GetMeasurementConvertedCountResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetMeasurementConvertedCountResponse Clone() {
return new GetMeasurementConvertedCountResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
///
/// Всего измерений
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Data {
get { return HasData ? (int) type_ : 0; }
set {
type_ = value;
typeCase_ = TypeOneofCase.Data;
}
}
/// Gets whether the "data" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasData {
get { return typeCase_ == TypeOneofCase.Data; }
}
/// Clears the value of the oneof if it's currently set to "data"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearData() {
if (HasData) {
ClearType();
}
}
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 GetMeasurementConvertedCountResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetMeasurementConvertedCountResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (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 (HasData) 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 (HasData) {
output.WriteRawTag(8);
output.WriteInt32(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 (HasData) {
output.WriteRawTag(8);
output.WriteInt32(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 (HasData) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetMeasurementConvertedCountResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = 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 8: {
Data = 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: {
Data = input.ReadInt32();
break;
}
}
}
}
#endif
}
///
/// Параметры пагинации измерений
///
public sealed partial class MeasurementPaging : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MeasurementPaging());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.Descriptor.MessageTypes[9]; }
}
[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 MeasurementPaging() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MeasurementPaging(MeasurementPaging other) : this() {
orderByType_ = other.orderByType_;
directionType_ = other.directionType_;
limit_ = other.limit_;
offset_ = other.offset_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MeasurementPaging Clone() {
return new MeasurementPaging(this);
}
/// Field number for the "order_by_type" field.
public const int OrderByTypeFieldNumber = 1;
private global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.OrderByType orderByType_ = global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.OrderByType.Unknown;
///
/// Тип значения сортировки.
/// По умолчанию: SYNCED_AT
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.OrderByType OrderByType {
get { return orderByType_; }
set {
orderByType_ = value;
}
}
/// Field number for the "direction_type" field.
public const int DirectionTypeFieldNumber = 2;
private global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.DirectionType directionType_ = global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.DirectionType.Unknown;
///
/// Тип направления сортировки.
/// По умолчанию: DESC
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.DirectionType DirectionType {
get { return directionType_; }
set {
directionType_ = value;
}
}
/// Field number for the "limit" field.
public const int LimitFieldNumber = 3;
private int limit_;
///
/// Количество записей на страницу.
/// Минимальное значение: 1.
/// Максимальное значение: 100.
/// По умолчанию: 20.
/// Если значение 0 (не передано), то выставляем значение по умолчанию
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Limit {
get { return limit_; }
set {
limit_ = value;
}
}
/// Field number for the "offset" field.
public const int OffsetFieldNumber = 4;
private int offset_;
///
/// Сдвиг.
/// По умолчанию: 0
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Offset {
get { return offset_; }
set {
offset_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as MeasurementPaging);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MeasurementPaging other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (OrderByType != other.OrderByType) return false;
if (DirectionType != other.DirectionType) return false;
if (Limit != other.Limit) return false;
if (Offset != other.Offset) 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 (OrderByType != global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode();
if (DirectionType != global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.DirectionType.Unknown) hash ^= DirectionType.GetHashCode();
if (Limit != 0) hash ^= Limit.GetHashCode();
if (Offset != 0) hash ^= Offset.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 (OrderByType != global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.OrderByType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) OrderByType);
}
if (DirectionType != global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.DirectionType.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) DirectionType);
}
if (Limit != 0) {
output.WriteRawTag(24);
output.WriteInt32(Limit);
}
if (Offset != 0) {
output.WriteRawTag(32);
output.WriteInt32(Offset);
}
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 (OrderByType != global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.OrderByType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) OrderByType);
}
if (DirectionType != global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.DirectionType.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) DirectionType);
}
if (Limit != 0) {
output.WriteRawTag(24);
output.WriteInt32(Limit);
}
if (Offset != 0) {
output.WriteRawTag(32);
output.WriteInt32(Offset);
}
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 (OrderByType != global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.OrderByType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType);
}
if (DirectionType != global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.DirectionType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DirectionType);
}
if (Limit != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit);
}
if (Offset != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Offset);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MeasurementPaging other) {
if (other == null) {
return;
}
if (other.OrderByType != global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.OrderByType.Unknown) {
OrderByType = other.OrderByType;
}
if (other.DirectionType != global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.DirectionType.Unknown) {
DirectionType = other.DirectionType;
}
if (other.Limit != 0) {
Limit = other.Limit;
}
if (other.Offset != 0) {
Offset = other.Offset;
}
_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: {
OrderByType = (global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.OrderByType) input.ReadEnum();
break;
}
case 16: {
DirectionType = (global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.DirectionType) input.ReadEnum();
break;
}
case 24: {
Limit = input.ReadInt32();
break;
}
case 32: {
Offset = 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: {
OrderByType = (global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.OrderByType) input.ReadEnum();
break;
}
case 16: {
DirectionType = (global::Keyapis.TelemetryMetric.V1.MeasurementPaging.Types.DirectionType) input.ReadEnum();
break;
}
case 24: {
Limit = input.ReadInt32();
break;
}
case 32: {
Offset = input.ReadInt32();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the MeasurementPaging message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Справочник типов значений сортировки
///
public enum OrderByType {
///
/// Значение не указано
///
[pbr::OriginalName("ORDER_BY_TYPE_UNKNOWN")] Unknown = 0,
///
/// По идентификатору индикатора
///
[pbr::OriginalName("INDICATOR_ID")] IndicatorId = 1,
///
/// По дате synced_at
///
[pbr::OriginalName("SYNCED_AT")] SyncedAt = 2,
}
///
/// Справочник типов направлений сортировки
///
public enum DirectionType {
///
/// Значение не указано
///
[pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0,
///
/// От большего к меньшему
///
[pbr::OriginalName("DESC")] Desc = 1,
///
/// От меньшего к большему
///
[pbr::OriginalName("ASC")] Asc = 2,
}
}
#endregion
}
///
/// Запрос сохранения измерения
///
public sealed partial class PostMeasurementRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostMeasurementRequest());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.Descriptor.MessageTypes[10]; }
}
[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 PostMeasurementRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostMeasurementRequest(PostMeasurementRequest other) : this() {
data_ = other.data_ != null ? other.data_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostMeasurementRequest Clone() {
return new PostMeasurementRequest(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
private global::Keyapis.TelemetryMetric.V1.Measurement data_;
///
/// Измерение
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.Measurement Data {
get { return data_; }
set {
data_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostMeasurementRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostMeasurementRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Data, other.Data)) 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 (data_ != null) hash ^= Data.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 (data_ != null) {
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 (data_ != null) {
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 (data_ != null) {
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(PostMeasurementRequest other) {
if (other == null) {
return;
}
if (other.data_ != null) {
if (data_ == null) {
Data = new global::Keyapis.TelemetryMetric.V1.Measurement();
}
Data.MergeFrom(other.Data);
}
_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 (data_ == null) {
Data = new global::Keyapis.TelemetryMetric.V1.Measurement();
}
input.ReadMessage(Data);
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 (data_ == null) {
Data = new global::Keyapis.TelemetryMetric.V1.Measurement();
}
input.ReadMessage(Data);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос сохранения измерения
///
public sealed partial class PostMeasurementResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostMeasurementResponse());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.Descriptor.MessageTypes[11]; }
}
[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 PostMeasurementResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostMeasurementResponse(PostMeasurementResponse other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostMeasurementResponse Clone() {
return new PostMeasurementResponse(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostMeasurementResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostMeasurementResponse 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(PostMeasurementResponse 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 PostMeasurementHalfDuplexRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostMeasurementHalfDuplexRequest());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.Descriptor.MessageTypes[12]; }
}
[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 PostMeasurementHalfDuplexRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostMeasurementHalfDuplexRequest(PostMeasurementHalfDuplexRequest other) : this() {
data_ = other.data_ != null ? other.data_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostMeasurementHalfDuplexRequest Clone() {
return new PostMeasurementHalfDuplexRequest(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
private global::Keyapis.TelemetryMetric.V1.Measurement data_;
///
/// Измерение
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.Measurement Data {
get { return data_; }
set {
data_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostMeasurementHalfDuplexRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostMeasurementHalfDuplexRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Data, other.Data)) 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 (data_ != null) hash ^= Data.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 (data_ != null) {
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 (data_ != null) {
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 (data_ != null) {
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(PostMeasurementHalfDuplexRequest other) {
if (other == null) {
return;
}
if (other.data_ != null) {
if (data_ == null) {
Data = new global::Keyapis.TelemetryMetric.V1.Measurement();
}
Data.MergeFrom(other.Data);
}
_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 (data_ == null) {
Data = new global::Keyapis.TelemetryMetric.V1.Measurement();
}
input.ReadMessage(Data);
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 (data_ == null) {
Data = new global::Keyapis.TelemetryMetric.V1.Measurement();
}
input.ReadMessage(Data);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос сохранения потока измерений
///
public sealed partial class PostMeasurementHalfDuplexResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostMeasurementHalfDuplexResponse());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.Descriptor.MessageTypes[13]; }
}
[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 PostMeasurementHalfDuplexResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostMeasurementHalfDuplexResponse(PostMeasurementHalfDuplexResponse other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostMeasurementHalfDuplexResponse Clone() {
return new PostMeasurementHalfDuplexResponse(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostMeasurementHalfDuplexResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostMeasurementHalfDuplexResponse 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(PostMeasurementHalfDuplexResponse 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.telemetry_consumer.measurement_stream_request.v1
///
public sealed partial class Measurement : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Measurement());
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.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.Descriptor.MessageTypes[14]; }
}
[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 Measurement() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Measurement(Measurement other) : this() {
indicatorId_ = other.indicatorId_;
value_ = other.value_;
syncedAt_ = other.syncedAt_ != null ? other.syncedAt_.Clone() : null;
FiasId = other.FiasId;
DeviceId = other.DeviceId;
DeviceParentId = other.DeviceParentId;
DeviceModel = other.DeviceModel;
deviceType_ = other.deviceType_;
metricType_ = other.metricType_;
changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null;
utcOffset_ = other.utcOffset_;
unitType_ = other.unitType_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Measurement Clone() {
return new Measurement(this);
}
/// Field number for the "indicator_id" field.
public const int IndicatorIdFieldNumber = 1;
private int indicatorId_;
///
/// Идентификатор
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int IndicatorId {
get { return indicatorId_; }
set {
indicatorId_ = value;
}
}
/// Field number for the "value" field.
public const int ValueFieldNumber = 2;
private float value_;
///
/// Значение
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Value {
get { return value_; }
set {
value_ = value;
}
}
/// Field number for the "synced_at" field.
public const int SyncedAtFieldNumber = 3;
private global::Google.Protobuf.WellKnownTypes.Timestamp syncedAt_;
///
/// Временная метка сбора счётчиком.
/// Если не передано берётся серверное время
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp SyncedAt {
get { return syncedAt_; }
set {
syncedAt_ = value;
}
}
/// Field number for the "fias_id" field.
public const int FiasIdFieldNumber = 4;
private static readonly pb::FieldCodec _single_fiasId_codec = pb::FieldCodec.ForClassWrapper(34);
private string fiasId_;
///
/// ФИАС
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string FiasId {
get { return fiasId_; }
set {
fiasId_ = value;
}
}
/// Field number for the "device_id" field.
public const int DeviceIdFieldNumber = 5;
private static readonly pb::FieldCodec _single_deviceId_codec = pb::FieldCodec.ForStructWrapper(42);
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 "device_parent_id" field.
public const int DeviceParentIdFieldNumber = 6;
private static readonly pb::FieldCodec _single_deviceParentId_codec = pb::FieldCodec.ForStructWrapper(50);
private int? deviceParentId_;
///
/// Идентификатор родительского устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int? DeviceParentId {
get { return deviceParentId_; }
set {
deviceParentId_ = value;
}
}
/// Field number for the "device_model" field.
public const int DeviceModelFieldNumber = 7;
private static readonly pb::FieldCodec _single_deviceModel_codec = pb::FieldCodec.ForClassWrapper(58);
private string deviceModel_;
///
/// Модель устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string DeviceModel {
get { return deviceModel_; }
set {
deviceModel_ = value;
}
}
/// Field number for the "device_type" field.
public const int DeviceTypeFieldNumber = 8;
private global::Keyapis.TelemetryMetric.V1.Measurement.Types.DeviceType deviceType_ = global::Keyapis.TelemetryMetric.V1.Measurement.Types.DeviceType.Unknown;
///
/// Тип устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.Measurement.Types.DeviceType DeviceType {
get { return deviceType_; }
set {
deviceType_ = value;
}
}
/// Field number for the "metric_type" field.
public const int MetricTypeFieldNumber = 9;
private global::Keyapis.TelemetryMetric.V1.Measurement.Types.MetricType metricType_ = global::Keyapis.TelemetryMetric.V1.Measurement.Types.MetricType.Unknown;
///
/// Тип энергоресурса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.Measurement.Types.MetricType MetricType {
get { return metricType_; }
set {
metricType_ = value;
}
}
/// Field number for the "changed_at" field.
public const int ChangedAtFieldNumber = 10;
private global::Google.Protobuf.WellKnownTypes.Timestamp changedAt_;
///
/// Дата последнего изменения.
/// Заполняется и обновляется сервером.
/// Заполняется при создании и изменении.
/// Является версией объекта
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp ChangedAt {
get { return changedAt_; }
set {
changedAt_ = value;
}
}
/// Field number for the "utc_offset" field.
public const int UtcOffsetFieldNumber = 11;
private int utcOffset_;
///
/// Сдвиг таймзоны относительно UTC для даты synced_at
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int UtcOffset {
get { return utcOffset_; }
set {
utcOffset_ = value;
}
}
/// Field number for the "unit_type" field.
public const int UnitTypeFieldNumber = 12;
private global::Keyapis.TelemetryMetric.V1.Measurement.Types.UnitType unitType_ = global::Keyapis.TelemetryMetric.V1.Measurement.Types.UnitType.Unknown;
///
/// Тип единицы измерения, в которой представлено, получаемое измерение
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.TelemetryMetric.V1.Measurement.Types.UnitType UnitType {
get { return unitType_; }
set {
unitType_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Measurement);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Measurement other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (IndicatorId != other.IndicatorId) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Value, other.Value)) return false;
if (!object.Equals(SyncedAt, other.SyncedAt)) return false;
if (FiasId != other.FiasId) return false;
if (DeviceId != other.DeviceId) return false;
if (DeviceParentId != other.DeviceParentId) return false;
if (DeviceModel != other.DeviceModel) return false;
if (DeviceType != other.DeviceType) return false;
if (MetricType != other.MetricType) return false;
if (!object.Equals(ChangedAt, other.ChangedAt)) return false;
if (UtcOffset != other.UtcOffset) return false;
if (UnitType != other.UnitType) 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 (IndicatorId != 0) hash ^= IndicatorId.GetHashCode();
if (Value != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value);
if (syncedAt_ != null) hash ^= SyncedAt.GetHashCode();
if (fiasId_ != null) hash ^= FiasId.GetHashCode();
if (deviceId_ != null) hash ^= DeviceId.GetHashCode();
if (deviceParentId_ != null) hash ^= DeviceParentId.GetHashCode();
if (deviceModel_ != null) hash ^= DeviceModel.GetHashCode();
if (DeviceType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.DeviceType.Unknown) hash ^= DeviceType.GetHashCode();
if (MetricType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.MetricType.Unknown) hash ^= MetricType.GetHashCode();
if (changedAt_ != null) hash ^= ChangedAt.GetHashCode();
if (UtcOffset != 0) hash ^= UtcOffset.GetHashCode();
if (UnitType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.UnitType.Unknown) hash ^= UnitType.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 (IndicatorId != 0) {
output.WriteRawTag(8);
output.WriteInt32(IndicatorId);
}
if (Value != 0F) {
output.WriteRawTag(21);
output.WriteFloat(Value);
}
if (syncedAt_ != null) {
output.WriteRawTag(26);
output.WriteMessage(SyncedAt);
}
if (fiasId_ != null) {
_single_fiasId_codec.WriteTagAndValue(output, FiasId);
}
if (deviceId_ != null) {
_single_deviceId_codec.WriteTagAndValue(output, DeviceId);
}
if (deviceParentId_ != null) {
_single_deviceParentId_codec.WriteTagAndValue(output, DeviceParentId);
}
if (deviceModel_ != null) {
_single_deviceModel_codec.WriteTagAndValue(output, DeviceModel);
}
if (DeviceType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.DeviceType.Unknown) {
output.WriteRawTag(64);
output.WriteEnum((int) DeviceType);
}
if (MetricType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.MetricType.Unknown) {
output.WriteRawTag(72);
output.WriteEnum((int) MetricType);
}
if (changedAt_ != null) {
output.WriteRawTag(82);
output.WriteMessage(ChangedAt);
}
if (UtcOffset != 0) {
output.WriteRawTag(88);
output.WriteInt32(UtcOffset);
}
if (UnitType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.UnitType.Unknown) {
output.WriteRawTag(96);
output.WriteEnum((int) UnitType);
}
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 (IndicatorId != 0) {
output.WriteRawTag(8);
output.WriteInt32(IndicatorId);
}
if (Value != 0F) {
output.WriteRawTag(21);
output.WriteFloat(Value);
}
if (syncedAt_ != null) {
output.WriteRawTag(26);
output.WriteMessage(SyncedAt);
}
if (fiasId_ != null) {
_single_fiasId_codec.WriteTagAndValue(ref output, FiasId);
}
if (deviceId_ != null) {
_single_deviceId_codec.WriteTagAndValue(ref output, DeviceId);
}
if (deviceParentId_ != null) {
_single_deviceParentId_codec.WriteTagAndValue(ref output, DeviceParentId);
}
if (deviceModel_ != null) {
_single_deviceModel_codec.WriteTagAndValue(ref output, DeviceModel);
}
if (DeviceType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.DeviceType.Unknown) {
output.WriteRawTag(64);
output.WriteEnum((int) DeviceType);
}
if (MetricType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.MetricType.Unknown) {
output.WriteRawTag(72);
output.WriteEnum((int) MetricType);
}
if (changedAt_ != null) {
output.WriteRawTag(82);
output.WriteMessage(ChangedAt);
}
if (UtcOffset != 0) {
output.WriteRawTag(88);
output.WriteInt32(UtcOffset);
}
if (UnitType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.UnitType.Unknown) {
output.WriteRawTag(96);
output.WriteEnum((int) UnitType);
}
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 (IndicatorId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(IndicatorId);
}
if (Value != 0F) {
size += 1 + 4;
}
if (syncedAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(SyncedAt);
}
if (fiasId_ != null) {
size += _single_fiasId_codec.CalculateSizeWithTag(FiasId);
}
if (deviceId_ != null) {
size += _single_deviceId_codec.CalculateSizeWithTag(DeviceId);
}
if (deviceParentId_ != null) {
size += _single_deviceParentId_codec.CalculateSizeWithTag(DeviceParentId);
}
if (deviceModel_ != null) {
size += _single_deviceModel_codec.CalculateSizeWithTag(DeviceModel);
}
if (DeviceType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.DeviceType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeviceType);
}
if (MetricType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.MetricType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MetricType);
}
if (changedAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt);
}
if (UtcOffset != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(UtcOffset);
}
if (UnitType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.UnitType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) UnitType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Measurement other) {
if (other == null) {
return;
}
if (other.IndicatorId != 0) {
IndicatorId = other.IndicatorId;
}
if (other.Value != 0F) {
Value = other.Value;
}
if (other.syncedAt_ != null) {
if (syncedAt_ == null) {
SyncedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
SyncedAt.MergeFrom(other.SyncedAt);
}
if (other.fiasId_ != null) {
if (fiasId_ == null || other.FiasId != "") {
FiasId = other.FiasId;
}
}
if (other.deviceId_ != null) {
if (deviceId_ == null || other.DeviceId != 0) {
DeviceId = other.DeviceId;
}
}
if (other.deviceParentId_ != null) {
if (deviceParentId_ == null || other.DeviceParentId != 0) {
DeviceParentId = other.DeviceParentId;
}
}
if (other.deviceModel_ != null) {
if (deviceModel_ == null || other.DeviceModel != "") {
DeviceModel = other.DeviceModel;
}
}
if (other.DeviceType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.DeviceType.Unknown) {
DeviceType = other.DeviceType;
}
if (other.MetricType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.MetricType.Unknown) {
MetricType = other.MetricType;
}
if (other.changedAt_ != null) {
if (changedAt_ == null) {
ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
ChangedAt.MergeFrom(other.ChangedAt);
}
if (other.UtcOffset != 0) {
UtcOffset = other.UtcOffset;
}
if (other.UnitType != global::Keyapis.TelemetryMetric.V1.Measurement.Types.UnitType.Unknown) {
UnitType = other.UnitType;
}
_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: {
IndicatorId = input.ReadInt32();
break;
}
case 21: {
Value = input.ReadFloat();
break;
}
case 26: {
if (syncedAt_ == null) {
SyncedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(SyncedAt);
break;
}
case 34: {
string value = _single_fiasId_codec.Read(input);
if (fiasId_ == null || value != "") {
FiasId = value;
}
break;
}
case 42: {
int? value = _single_deviceId_codec.Read(input);
if (deviceId_ == null || value != 0) {
DeviceId = value;
}
break;
}
case 50: {
int? value = _single_deviceParentId_codec.Read(input);
if (deviceParentId_ == null || value != 0) {
DeviceParentId = value;
}
break;
}
case 58: {
string value = _single_deviceModel_codec.Read(input);
if (deviceModel_ == null || value != "") {
DeviceModel = value;
}
break;
}
case 64: {
DeviceType = (global::Keyapis.TelemetryMetric.V1.Measurement.Types.DeviceType) input.ReadEnum();
break;
}
case 72: {
MetricType = (global::Keyapis.TelemetryMetric.V1.Measurement.Types.MetricType) input.ReadEnum();
break;
}
case 82: {
if (changedAt_ == null) {
ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(ChangedAt);
break;
}
case 88: {
UtcOffset = input.ReadInt32();
break;
}
case 96: {
UnitType = (global::Keyapis.TelemetryMetric.V1.Measurement.Types.UnitType) 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 8: {
IndicatorId = input.ReadInt32();
break;
}
case 21: {
Value = input.ReadFloat();
break;
}
case 26: {
if (syncedAt_ == null) {
SyncedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(SyncedAt);
break;
}
case 34: {
string value = _single_fiasId_codec.Read(ref input);
if (fiasId_ == null || value != "") {
FiasId = value;
}
break;
}
case 42: {
int? value = _single_deviceId_codec.Read(ref input);
if (deviceId_ == null || value != 0) {
DeviceId = value;
}
break;
}
case 50: {
int? value = _single_deviceParentId_codec.Read(ref input);
if (deviceParentId_ == null || value != 0) {
DeviceParentId = value;
}
break;
}
case 58: {
string value = _single_deviceModel_codec.Read(ref input);
if (deviceModel_ == null || value != "") {
DeviceModel = value;
}
break;
}
case 64: {
DeviceType = (global::Keyapis.TelemetryMetric.V1.Measurement.Types.DeviceType) input.ReadEnum();
break;
}
case 72: {
MetricType = (global::Keyapis.TelemetryMetric.V1.Measurement.Types.MetricType) input.ReadEnum();
break;
}
case 82: {
if (changedAt_ == null) {
ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(ChangedAt);
break;
}
case 88: {
UtcOffset = input.ReadInt32();
break;
}
case 96: {
UnitType = (global::Keyapis.TelemetryMetric.V1.Measurement.Types.UnitType) input.ReadEnum();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Measurement message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Справочник типов устройств
///
public enum DeviceType {
///
/// Значение не указано
///
[pbr::OriginalName("DEVICE_TYPE_UNKNOWN")] Unknown = 0,
///
/// Коммуникационный модуль
///
[pbr::OriginalName("HUB")] Hub = 1,
///
/// Счетчик импульсов - регистратор
///
[pbr::OriginalName("PULSE_COUNTER_RECORDER")] PulseCounterRecorder = 2,
///
/// Счетчик импульсов - регистратор LoRaWAN
///
[pbr::OriginalName("PULSE_COUNTER_RECORDER_LR")] PulseCounterRecorderLr = 3,
///
/// Прибор учета расхода коммунальных услуг
///
[pbr::OriginalName("METERING_DEVICE")] MeteringDevice = 4,
///
/// Конвертер интерфейсов
///
[pbr::OriginalName("INTERFACE_CONVERTER")] InterfaceConverter = 5,
///
/// M-BUS концентратор
///
[pbr::OriginalName("M_BUS_HUB")] MBusHub = 6,
///
/// Модуль связи LoRaWAN
///
[pbr::OriginalName("COMMUNICATION_MODULE_LR")] CommunicationModuleLr = 7,
///
/// Базовая станция LoRaWAN
///
[pbr::OriginalName("BASE_LR")] BaseLr = 8,
}
///
/// Справочние типов энергоресурсов
///
public enum MetricType {
///
/// Значение не указано
///
[pbr::OriginalName("METRIC_TYPE_UNKNOWN")] Unknown = 0,
///
/// Горячая вода
///
[pbr::OriginalName("HOT_WATER")] HotWater = 1,
///
/// Холодная вода
///
[pbr::OriginalName("COLD_WATER")] ColdWater = 2,
///
/// Теплоэнергия
///
[pbr::OriginalName("HEAT")] Heat = 3,
///
/// Газ
///
[pbr::OriginalName("GAS")] Gas = 4,
///
/// Электроэнергия
///
[pbr::OriginalName("ELECTRICITY")] Electricity = 5,
}
///
/// Справочник типов единиц измерений
///
public enum UnitType {
///
/// Значение не указано
///
[pbr::OriginalName("UNIT_TYPE_UNKNOWN")] Unknown = 0,
///
/// Процент
///
[pbr::OriginalName("PERCENT")] Percent = 1,
///
/// Градус по Цельсию
///
[pbr::OriginalName("C")] C = 2,
///
/// Ватт
///
[pbr::OriginalName("WT")] Wt = 3,
///
/// Гигакалория
///
[pbr::OriginalName("GKAL")] Gkal = 4,
///
/// Количество
///
[pbr::OriginalName("VALUE")] Value = 5,
///
/// Киловaтт-час
///
[pbr::OriginalName("KWH")] Kwh = 6,
///
/// Килограмм на квадратный сантиметр
///
[pbr::OriginalName("KG_CM2")] KgCm2 = 7,
///
/// Килограмм-сила на квадратный сантиметр
///
[pbr::OriginalName("KGF_CM2")] KgfCm2 = 8,
///
/// Кубический метр
///
[pbr::OriginalName("M3")] M3 = 9,
///
/// Кубический метр в час
///
[pbr::OriginalName("M3_H")] M3H = 10,
///
/// Мегапаскаль
///
[pbr::OriginalName("MPA")] Mpa = 11,
///
/// Миллисекунда
///
[pbr::OriginalName("MS")] Ms = 12,
///
/// Флаг состояния
///
[pbr::OriginalName("BOOLEAN")] Boolean = 13,
///
/// Тонна
///
[pbr::OriginalName("T")] T = 14,
///
/// Тонна в час
///
[pbr::OriginalName("T_H")] TH = 15,
///
/// Час
///
[pbr::OriginalName("H")] H = 16,
///
/// Безразмерная величина
///
[pbr::OriginalName("NON_MEASURABLE")] NonMeasurable = 17,
///
/// Импульс
///
[pbr::OriginalName("IMP")] Imp = 18,
///
/// Джоуль
///
[pbr::OriginalName("J")] J = 19,
///
/// Килоджоуль
///
[pbr::OriginalName("KJ")] Kj = 20,
///
/// Гигаджоуль
///
[pbr::OriginalName("GJ")] Gj = 21,
///
/// Ватт-час
///
[pbr::OriginalName("WTH")] Wth = 22,
///
/// Киловатт
///
[pbr::OriginalName("KWT")] Kwt = 23,
///
/// Минута
///
[pbr::OriginalName("MIN")] Min = 24,
///
/// Секунда
///
[pbr::OriginalName("S")] S = 25,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code