// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: common/common.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 Chirpstack.Common { /// Holder for reflection information generated from common/common.proto public static partial class CommonReflection { #region Descriptor /// File descriptor for common/common.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static CommonReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChNjb21tb24vY29tbW9uLnByb3RvEgZjb21tb24aH2dvb2dsZS9wcm90b2J1", "Zi90aW1lc3RhbXAucHJvdG8iewoITG9jYXRpb24SEAoIbGF0aXR1ZGUYASAB", "KAESEQoJbG9uZ2l0dWRlGAIgASgBEhAKCGFsdGl0dWRlGAMgASgBEiYKBnNv", "dXJjZRgEIAEoDjIWLmNvbW1vbi5Mb2NhdGlvblNvdXJjZRIQCghhY2N1cmFj", "eRgFIAEoAiIxCgtLZXlFbnZlbG9wZRIRCglrZWtfbGFiZWwYASABKAkSDwoH", "YWVzX2tleRgCIAEoDCKRAQoGTWV0cmljEgwKBG5hbWUYASABKAkSLgoKdGlt", "ZXN0YW1wcxgCIAMoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASJwoI", "ZGF0YXNldHMYAyADKAsyFS5jb21tb24uTWV0cmljRGF0YXNldBIgCgRraW5k", "GAQgASgOMhIuY29tbW9uLk1ldHJpY0tpbmQiLAoNTWV0cmljRGF0YXNldBIN", "CgVsYWJlbBgBIAEoCRIMCgRkYXRhGAIgAygCKiwKCk1vZHVsYXRpb24SCAoE", "TE9SQRAAEgcKA0ZTSxABEgsKB0xSX0ZIU1MQAiqqAQoGUmVnaW9uEgkKBUVV", "ODY4EAASCQoFVVM5MTUQAhIJCgVDTjc3ORADEgkKBUVVNDMzEAQSCQoFQVU5", "MTUQBRIJCgVDTjQ3MBAGEgkKBUFTOTIzEAcSCwoHQVM5MjNfMhAMEgsKB0FT", "OTIzXzMQDRILCgdBUzkyM180EA4SCQoFS1I5MjAQCBIJCgVJTjg2NRAJEgkK", "BVJVODY0EAoSCwoHSVNNMjQwMBALKrMBCgVNVHlwZRIQCgxKT0lOX1JFUVVF", "U1QQABIPCgtKT0lOX0FDQ0VQVBABEhcKE1VOQ09ORklSTUVEX0RBVEFfVVAQ", "AhIZChVVTkNPTkZJUk1FRF9EQVRBX0RPV04QAxIVChFDT05GSVJNRURfREFU", "QV9VUBAEEhcKE0NPTkZJUk1FRF9EQVRBX0RPV04QBRISCg5SRUpPSU5fUkVR", "VUVTVBAGEg8KC1BST1BSSUVUQVJZEAcqfgoKTWFjVmVyc2lvbhIRCg1MT1JB", "V0FOXzFfMF8wEAASEQoNTE9SQVdBTl8xXzBfMRABEhEKDUxPUkFXQU5fMV8w", "XzIQAhIRCg1MT1JBV0FOXzFfMF8zEAMSEQoNTE9SQVdBTl8xXzBfNBAEEhEK", "DUxPUkFXQU5fMV8xXzAQBSplChFSZWdQYXJhbXNSZXZpc2lvbhIFCgFBEAAS", "BQoBQhABEg8KC1JQMDAyXzFfMF8wEAISDwoLUlAwMDJfMV8wXzEQAxIPCgtS", "UDAwMl8xXzBfMhAEEg8KC1JQMDAyXzFfMF8zEAUqjgEKDkxvY2F0aW9uU291", "cmNlEgsKB1VOS05PV04QABIHCgNHUFMQARIKCgZDT05GSUcQAhIVChFHRU9f", "UkVTT0xWRVJfVERPQRADEhUKEUdFT19SRVNPTFZFUl9SU1NJEAQSFQoRR0VP", "X1JFU09MVkVSX0dOU1MQBRIVChFHRU9fUkVTT0xWRVJfV0lGSRAGKisKC0Fn", "Z3JlZ2F0aW9uEggKBEhPVVIQABIHCgNEQVkQARIJCgVNT05USBACKjIKCk1l", "dHJpY0tpbmQSCwoHQ09VTlRFUhAAEgwKCEFCU09MVVRFEAESCQoFR0FVR0UQ", "Aio0CgtEZXZpY2VDbGFzcxILCgdDTEFTU19BEAASCwoHQ0xBU1NfQhABEgsK", "B0NMQVNTX0MQAkJpChFpby5jaGlycHN0YWNrLmFwaUILQ29tbW9uUHJvdG9Q", "AVoxZ2l0aHViLmNvbS9jaGlycHN0YWNrL2NoaXJwc3RhY2svYXBpL2dvL3Y0", "L2NvbW1vbqoCEUNoaXJwc3RhY2suQ29tbW9uYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Common.Modulation), typeof(global::Chirpstack.Common.Region), typeof(global::Chirpstack.Common.MType), typeof(global::Chirpstack.Common.MacVersion), typeof(global::Chirpstack.Common.RegParamsRevision), typeof(global::Chirpstack.Common.LocationSource), typeof(global::Chirpstack.Common.Aggregation), typeof(global::Chirpstack.Common.MetricKind), typeof(global::Chirpstack.Common.DeviceClass), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.Location), global::Chirpstack.Common.Location.Parser, new[]{ "Latitude", "Longitude", "Altitude", "Source", "Accuracy" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.KeyEnvelope), global::Chirpstack.Common.KeyEnvelope.Parser, new[]{ "KekLabel", "AesKey" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.Metric), global::Chirpstack.Common.Metric.Parser, new[]{ "Name", "Timestamps", "Datasets", "Kind" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.MetricDataset), global::Chirpstack.Common.MetricDataset.Parser, new[]{ "Label", "Data" }, null, null, null, null) })); } #endregion } #region Enums public enum Modulation { /// /// LoRa /// [pbr::OriginalName("LORA")] Lora = 0, /// /// FSK /// [pbr::OriginalName("FSK")] Fsk = 1, /// /// LR-FHSS /// [pbr::OriginalName("LR_FHSS")] LrFhss = 2, } public enum Region { /// /// EU868 /// [pbr::OriginalName("EU868")] Eu868 = 0, /// /// US915 /// [pbr::OriginalName("US915")] Us915 = 2, /// /// CN779 /// [pbr::OriginalName("CN779")] Cn779 = 3, /// /// EU433 /// [pbr::OriginalName("EU433")] Eu433 = 4, /// /// AU915 /// [pbr::OriginalName("AU915")] Au915 = 5, /// /// CN470 /// [pbr::OriginalName("CN470")] Cn470 = 6, /// /// AS923 /// [pbr::OriginalName("AS923")] As923 = 7, /// /// AS923 with -1.80 MHz frequency offset /// [pbr::OriginalName("AS923_2")] As9232 = 12, /// /// AS923 with -6.60 MHz frequency offset /// [pbr::OriginalName("AS923_3")] As9233 = 13, /// /// (AS923 with -5.90 MHz frequency offset). /// [pbr::OriginalName("AS923_4")] As9234 = 14, /// /// KR920 /// [pbr::OriginalName("KR920")] Kr920 = 8, /// /// IN865 /// [pbr::OriginalName("IN865")] In865 = 9, /// /// RU864 /// [pbr::OriginalName("RU864")] Ru864 = 10, /// /// ISM2400 (LoRaWAN 2.4 GHz) /// [pbr::OriginalName("ISM2400")] Ism2400 = 11, } public enum MType { /// /// JoinRequest. /// [pbr::OriginalName("JOIN_REQUEST")] JoinRequest = 0, /// /// JoinAccept. /// [pbr::OriginalName("JOIN_ACCEPT")] JoinAccept = 1, /// /// UnconfirmedDataUp. /// [pbr::OriginalName("UNCONFIRMED_DATA_UP")] UnconfirmedDataUp = 2, /// /// UnconfirmedDataDown. /// [pbr::OriginalName("UNCONFIRMED_DATA_DOWN")] UnconfirmedDataDown = 3, /// /// ConfirmedDataUp. /// [pbr::OriginalName("CONFIRMED_DATA_UP")] ConfirmedDataUp = 4, /// /// ConfirmedDataDown. /// [pbr::OriginalName("CONFIRMED_DATA_DOWN")] ConfirmedDataDown = 5, /// /// RejoinRequest. /// [pbr::OriginalName("REJOIN_REQUEST")] RejoinRequest = 6, /// /// Proprietary. /// [pbr::OriginalName("PROPRIETARY")] Proprietary = 7, } public enum MacVersion { [pbr::OriginalName("LORAWAN_1_0_0")] Lorawan100 = 0, [pbr::OriginalName("LORAWAN_1_0_1")] Lorawan101 = 1, [pbr::OriginalName("LORAWAN_1_0_2")] Lorawan102 = 2, [pbr::OriginalName("LORAWAN_1_0_3")] Lorawan103 = 3, [pbr::OriginalName("LORAWAN_1_0_4")] Lorawan104 = 4, [pbr::OriginalName("LORAWAN_1_1_0")] Lorawan110 = 5, } public enum RegParamsRevision { [pbr::OriginalName("A")] A = 0, [pbr::OriginalName("B")] B = 1, [pbr::OriginalName("RP002_1_0_0")] Rp002100 = 2, [pbr::OriginalName("RP002_1_0_1")] Rp002101 = 3, [pbr::OriginalName("RP002_1_0_2")] Rp002102 = 4, [pbr::OriginalName("RP002_1_0_3")] Rp002103 = 5, } public enum LocationSource { /// /// Unknown. /// [pbr::OriginalName("UNKNOWN")] Unknown = 0, /// /// GPS. /// [pbr::OriginalName("GPS")] Gps = 1, /// /// Manually configured. /// [pbr::OriginalName("CONFIG")] Config = 2, /// /// Geo resolver (TDOA). /// [pbr::OriginalName("GEO_RESOLVER_TDOA")] GeoResolverTdoa = 3, /// /// Geo resolver (RSSI). /// [pbr::OriginalName("GEO_RESOLVER_RSSI")] GeoResolverRssi = 4, /// /// Geo resolver (GNSS). /// [pbr::OriginalName("GEO_RESOLVER_GNSS")] GeoResolverGnss = 5, /// /// Geo resolver (WIFI). /// [pbr::OriginalName("GEO_RESOLVER_WIFI")] GeoResolverWifi = 6, } public enum Aggregation { /// /// Hour. /// [pbr::OriginalName("HOUR")] Hour = 0, /// /// Day. /// [pbr::OriginalName("DAY")] Day = 1, /// /// Month. /// [pbr::OriginalName("MONTH")] Month = 2, } public enum MetricKind { /// /// Incrementing counters that never decrease (these are not reset on each /// reading). /// [pbr::OriginalName("COUNTER")] Counter = 0, /// /// Counters that do get reset upon reading. /// [pbr::OriginalName("ABSOLUTE")] Absolute = 1, /// /// E.g. a temperature value. /// [pbr::OriginalName("GAUGE")] Gauge = 2, } public enum DeviceClass { /// /// Class-A. /// [pbr::OriginalName("CLASS_A")] ClassA = 0, /// /// Class-B. /// [pbr::OriginalName("CLASS_B")] ClassB = 1, /// /// Class-C. /// [pbr::OriginalName("CLASS_C")] ClassC = 2, } #endregion #region Messages public sealed partial class Location : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Location()); 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::Chirpstack.Common.CommonReflection.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 Location() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Location(Location other) : this() { latitude_ = other.latitude_; longitude_ = other.longitude_; altitude_ = other.altitude_; source_ = other.source_; accuracy_ = other.accuracy_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Location Clone() { return new Location(this); } /// Field number for the "latitude" field. public const int LatitudeFieldNumber = 1; private double latitude_; /// /// Latitude. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double Latitude { get { return latitude_; } set { latitude_ = value; } } /// Field number for the "longitude" field. public const int LongitudeFieldNumber = 2; private double longitude_; /// /// Longitude. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double Longitude { get { return longitude_; } set { longitude_ = value; } } /// Field number for the "altitude" field. public const int AltitudeFieldNumber = 3; private double altitude_; /// /// Altitude. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double Altitude { get { return altitude_; } set { altitude_ = value; } } /// Field number for the "source" field. public const int SourceFieldNumber = 4; private global::Chirpstack.Common.LocationSource source_ = global::Chirpstack.Common.LocationSource.Unknown; /// /// Location source. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Common.LocationSource Source { get { return source_; } set { source_ = value; } } /// Field number for the "accuracy" field. public const int AccuracyFieldNumber = 5; private float accuracy_; /// /// Accuracy. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Accuracy { get { return accuracy_; } set { accuracy_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Location); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Location other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latitude, other.Latitude)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Longitude, other.Longitude)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Altitude, other.Altitude)) return false; if (Source != other.Source) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Accuracy, other.Accuracy)) 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 (Latitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude); if (Longitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude); if (Altitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Altitude); if (Source != global::Chirpstack.Common.LocationSource.Unknown) hash ^= Source.GetHashCode(); if (Accuracy != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Accuracy); 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 (Latitude != 0D) { output.WriteRawTag(9); output.WriteDouble(Latitude); } if (Longitude != 0D) { output.WriteRawTag(17); output.WriteDouble(Longitude); } if (Altitude != 0D) { output.WriteRawTag(25); output.WriteDouble(Altitude); } if (Source != global::Chirpstack.Common.LocationSource.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) Source); } if (Accuracy != 0F) { output.WriteRawTag(45); output.WriteFloat(Accuracy); } 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 (Latitude != 0D) { output.WriteRawTag(9); output.WriteDouble(Latitude); } if (Longitude != 0D) { output.WriteRawTag(17); output.WriteDouble(Longitude); } if (Altitude != 0D) { output.WriteRawTag(25); output.WriteDouble(Altitude); } if (Source != global::Chirpstack.Common.LocationSource.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) Source); } if (Accuracy != 0F) { output.WriteRawTag(45); output.WriteFloat(Accuracy); } 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 (Latitude != 0D) { size += 1 + 8; } if (Longitude != 0D) { size += 1 + 8; } if (Altitude != 0D) { size += 1 + 8; } if (Source != global::Chirpstack.Common.LocationSource.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); } if (Accuracy != 0F) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Location other) { if (other == null) { return; } if (other.Latitude != 0D) { Latitude = other.Latitude; } if (other.Longitude != 0D) { Longitude = other.Longitude; } if (other.Altitude != 0D) { Altitude = other.Altitude; } if (other.Source != global::Chirpstack.Common.LocationSource.Unknown) { Source = other.Source; } if (other.Accuracy != 0F) { Accuracy = other.Accuracy; } _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 9: { Latitude = input.ReadDouble(); break; } case 17: { Longitude = input.ReadDouble(); break; } case 25: { Altitude = input.ReadDouble(); break; } case 32: { Source = (global::Chirpstack.Common.LocationSource) input.ReadEnum(); break; } case 45: { Accuracy = input.ReadFloat(); 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 9: { Latitude = input.ReadDouble(); break; } case 17: { Longitude = input.ReadDouble(); break; } case 25: { Altitude = input.ReadDouble(); break; } case 32: { Source = (global::Chirpstack.Common.LocationSource) input.ReadEnum(); break; } case 45: { Accuracy = input.ReadFloat(); break; } } } } #endif } public sealed partial class KeyEnvelope : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyEnvelope()); 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::Chirpstack.Common.CommonReflection.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 KeyEnvelope() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public KeyEnvelope(KeyEnvelope other) : this() { kekLabel_ = other.kekLabel_; aesKey_ = other.aesKey_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public KeyEnvelope Clone() { return new KeyEnvelope(this); } /// Field number for the "kek_label" field. public const int KekLabelFieldNumber = 1; private string kekLabel_ = ""; /// /// KEK label. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string KekLabel { get { return kekLabel_; } set { kekLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "aes_key" field. public const int AesKeyFieldNumber = 2; private pb::ByteString aesKey_ = pb::ByteString.Empty; /// /// AES key (when the kek_label is set, this value must first be decrypted). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString AesKey { get { return aesKey_; } set { aesKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as KeyEnvelope); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(KeyEnvelope other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (KekLabel != other.KekLabel) return false; if (AesKey != other.AesKey) 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 (KekLabel.Length != 0) hash ^= KekLabel.GetHashCode(); if (AesKey.Length != 0) hash ^= AesKey.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 (KekLabel.Length != 0) { output.WriteRawTag(10); output.WriteString(KekLabel); } if (AesKey.Length != 0) { output.WriteRawTag(18); output.WriteBytes(AesKey); } 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 (KekLabel.Length != 0) { output.WriteRawTag(10); output.WriteString(KekLabel); } if (AesKey.Length != 0) { output.WriteRawTag(18); output.WriteBytes(AesKey); } 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 (KekLabel.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(KekLabel); } if (AesKey.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(AesKey); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(KeyEnvelope other) { if (other == null) { return; } if (other.KekLabel.Length != 0) { KekLabel = other.KekLabel; } if (other.AesKey.Length != 0) { AesKey = other.AesKey; } _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: { KekLabel = input.ReadString(); break; } case 18: { AesKey = input.ReadBytes(); 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: { KekLabel = input.ReadString(); break; } case 18: { AesKey = input.ReadBytes(); break; } } } } #endif } public sealed partial class Metric : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Metric()); 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::Chirpstack.Common.CommonReflection.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 Metric() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Metric(Metric other) : this() { name_ = other.name_; timestamps_ = other.timestamps_.Clone(); datasets_ = other.datasets_.Clone(); kind_ = other.kind_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Metric Clone() { return new Metric(this); } /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; /// /// Name. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "timestamps" field. public const int TimestampsFieldNumber = 2; private static readonly pb::FieldCodec _repeated_timestamps_codec = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser); private readonly pbc::RepeatedField timestamps_ = new pbc::RepeatedField(); /// /// Timestamps. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Timestamps { get { return timestamps_; } } /// Field number for the "datasets" field. public const int DatasetsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_datasets_codec = pb::FieldCodec.ForMessage(26, global::Chirpstack.Common.MetricDataset.Parser); private readonly pbc::RepeatedField datasets_ = new pbc::RepeatedField(); /// /// Datasets. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Datasets { get { return datasets_; } } /// Field number for the "kind" field. public const int KindFieldNumber = 4; private global::Chirpstack.Common.MetricKind kind_ = global::Chirpstack.Common.MetricKind.Counter; /// /// Kind. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Common.MetricKind Kind { get { return kind_; } set { kind_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Metric); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Metric other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Name != other.Name) return false; if(!timestamps_.Equals(other.timestamps_)) return false; if(!datasets_.Equals(other.datasets_)) return false; if (Kind != other.Kind) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); hash ^= timestamps_.GetHashCode(); hash ^= datasets_.GetHashCode(); if (Kind != global::Chirpstack.Common.MetricKind.Counter) hash ^= Kind.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 (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } timestamps_.WriteTo(output, _repeated_timestamps_codec); datasets_.WriteTo(output, _repeated_datasets_codec); if (Kind != global::Chirpstack.Common.MetricKind.Counter) { output.WriteRawTag(32); output.WriteEnum((int) Kind); } 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 (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } timestamps_.WriteTo(ref output, _repeated_timestamps_codec); datasets_.WriteTo(ref output, _repeated_datasets_codec); if (Kind != global::Chirpstack.Common.MetricKind.Counter) { output.WriteRawTag(32); output.WriteEnum((int) Kind); } 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 (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } size += timestamps_.CalculateSize(_repeated_timestamps_codec); size += datasets_.CalculateSize(_repeated_datasets_codec); if (Kind != global::Chirpstack.Common.MetricKind.Counter) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Metric other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } timestamps_.Add(other.timestamps_); datasets_.Add(other.datasets_); if (other.Kind != global::Chirpstack.Common.MetricKind.Counter) { Kind = other.Kind; } _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: { Name = input.ReadString(); break; } case 18: { timestamps_.AddEntriesFrom(input, _repeated_timestamps_codec); break; } case 26: { datasets_.AddEntriesFrom(input, _repeated_datasets_codec); break; } case 32: { Kind = (global::Chirpstack.Common.MetricKind) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Name = input.ReadString(); break; } case 18: { timestamps_.AddEntriesFrom(ref input, _repeated_timestamps_codec); break; } case 26: { datasets_.AddEntriesFrom(ref input, _repeated_datasets_codec); break; } case 32: { Kind = (global::Chirpstack.Common.MetricKind) input.ReadEnum(); break; } } } } #endif } public sealed partial class MetricDataset : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetricDataset()); 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::Chirpstack.Common.CommonReflection.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 MetricDataset() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MetricDataset(MetricDataset other) : this() { label_ = other.label_; data_ = other.data_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MetricDataset Clone() { return new MetricDataset(this); } /// Field number for the "label" field. public const int LabelFieldNumber = 1; private string label_ = ""; /// /// Label. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Label { get { return label_; } set { label_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "data" field. public const int DataFieldNumber = 2; private static readonly pb::FieldCodec _repeated_data_codec = pb::FieldCodec.ForFloat(18); private readonly pbc::RepeatedField data_ = new pbc::RepeatedField(); /// /// Data. /// Each value index corresponds with the same timestamp index of the Metric. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Data { get { return data_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MetricDataset); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MetricDataset other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Label != other.Label) return false; if(!data_.Equals(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 (Label.Length != 0) hash ^= Label.GetHashCode(); 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 (Label.Length != 0) { output.WriteRawTag(10); output.WriteString(Label); } data_.WriteTo(output, _repeated_data_codec); 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 (Label.Length != 0) { output.WriteRawTag(10); output.WriteString(Label); } data_.WriteTo(ref output, _repeated_data_codec); 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 (Label.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Label); } size += data_.CalculateSize(_repeated_data_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MetricDataset other) { if (other == null) { return; } if (other.Label.Length != 0) { Label = other.Label; } data_.Add(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: { Label = input.ReadString(); break; } case 18: case 21: { data_.AddEntriesFrom(input, _repeated_data_codec); 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: { Label = input.ReadString(); break; } case 18: case 21: { data_.AddEntriesFrom(ref input, _repeated_data_codec); break; } } } } #endif } #endregion } #endregion Designer generated code