// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: integration/integration.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.Integration { /// Holder for reflection information generated from integration/integration.proto public static partial class IntegrationReflection { #region Descriptor /// File descriptor for integration/integration.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static IntegrationReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Ch1pbnRlZ3JhdGlvbi9pbnRlZ3JhdGlvbi5wcm90bxILaW50ZWdyYXRpb24a", "E2NvbW1vbi9jb21tb24ucHJvdG8aC2d3L2d3LnByb3RvGh9nb29nbGUvcHJv", "dG9idWYvdGltZXN0YW1wLnByb3RvGhxnb29nbGUvcHJvdG9idWYvc3RydWN0", "LnByb3RvItUCCgpEZXZpY2VJbmZvEhEKCXRlbmFudF9pZBgBIAEoCRITCgt0", "ZW5hbnRfbmFtZRgCIAEoCRIWCg5hcHBsaWNhdGlvbl9pZBgDIAEoCRIYChBh", "cHBsaWNhdGlvbl9uYW1lGAQgASgJEhkKEWRldmljZV9wcm9maWxlX2lkGAUg", "ASgJEhsKE2RldmljZV9wcm9maWxlX25hbWUYBiABKAkSEwoLZGV2aWNlX25h", "bWUYByABKAkSDwoHZGV2X2V1aRgIIAEoCRIxChRkZXZpY2VfY2xhc3NfZW5h", "YmxlZBgKIAEoDjITLmNvbW1vbi5EZXZpY2VDbGFzcxIvCgR0YWdzGAkgAygL", "MiEuaW50ZWdyYXRpb24uRGV2aWNlSW5mby5UYWdzRW50cnkaKwoJVGFnc0Vu", "dHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEicwoRVXBsaW5r", "UmVsYXlSeEluZm8SDwoHZGV2X2V1aRgBIAEoCRIRCglmcmVxdWVuY3kYAiAB", "KA0SCgoCZHIYAyABKA0SCwoDc25yGAQgASgFEgwKBHJzc2kYBSABKAUSEwoL", "d29yX2NoYW5uZWwYBiABKA0ikAMKC1VwbGlua0V2ZW50EhgKEGRlZHVwbGlj", "YXRpb25faWQYASABKAkSKAoEdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1", "Zi5UaW1lc3RhbXASLAoLZGV2aWNlX2luZm8YAyABKAsyFy5pbnRlZ3JhdGlv", "bi5EZXZpY2VJbmZvEhAKCGRldl9hZGRyGAQgASgJEgsKA2FkchgFIAEoCBIK", "CgJkchgGIAEoDRINCgVmX2NudBgHIAEoDRIOCgZmX3BvcnQYCCABKA0SEQoJ", "Y29uZmlybWVkGAkgASgIEgwKBGRhdGEYCiABKAwSJwoGb2JqZWN0GAsgASgL", "MhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBIhCgdyeF9pbmZvGAwgAygLMhAu", "Z3cuVXBsaW5rUnhJbmZvEiEKB3R4X2luZm8YDSABKAsyEC5ndy5VcGxpbmtU", "eEluZm8SNQoNcmVsYXlfcnhfaW5mbxgOIAEoCzIeLmludGVncmF0aW9uLlVw", "bGlua1JlbGF5UnhJbmZvIsYBCglKb2luRXZlbnQSGAoQZGVkdXBsaWNhdGlv", "bl9pZBgBIAEoCRIoCgR0aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRp", "bWVzdGFtcBIsCgtkZXZpY2VfaW5mbxgDIAEoCzIXLmludGVncmF0aW9uLkRl", "dmljZUluZm8SEAoIZGV2X2FkZHIYBCABKAkSNQoNcmVsYXlfcnhfaW5mbxgF", "IAEoCzIeLmludGVncmF0aW9uLlVwbGlua1JlbGF5UnhJbmZvIr0BCghBY2tF", "dmVudBIYChBkZWR1cGxpY2F0aW9uX2lkGAEgASgJEigKBHRpbWUYAiABKAsy", "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiwKC2RldmljZV9pbmZvGAMg", "ASgLMhcuaW50ZWdyYXRpb24uRGV2aWNlSW5mbxIVCg1xdWV1ZV9pdGVtX2lk", "GAQgASgJEhQKDGFja25vd2xlZGdlZBgFIAEoCBISCgpmX2NudF9kb3duGAYg", "ASgNIt0BCgpUeEFja0V2ZW50EhMKC2Rvd25saW5rX2lkGAEgASgNEigKBHRp", "bWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiwKC2Rldmlj", "ZV9pbmZvGAMgASgLMhcuaW50ZWdyYXRpb24uRGV2aWNlSW5mbxIVCg1xdWV1", "ZV9pdGVtX2lkGAQgASgJEhIKCmZfY250X2Rvd24YBSABKA0SEgoKZ2F0ZXdh", "eV9pZBgGIAEoCRIjCgd0eF9pbmZvGAcgASgLMhIuZ3cuRG93bmxpbmtUeElu", "Zm8ipgIKCExvZ0V2ZW50EigKBHRpbWUYASABKAsyGi5nb29nbGUucHJvdG9i", "dWYuVGltZXN0YW1wEiwKC2RldmljZV9pbmZvGAIgASgLMhcuaW50ZWdyYXRp", "b24uRGV2aWNlSW5mbxIkCgVsZXZlbBgDIAEoDjIVLmludGVncmF0aW9uLkxv", "Z0xldmVsEiIKBGNvZGUYBCABKA4yFC5pbnRlZ3JhdGlvbi5Mb2dDb2RlEhMK", "C2Rlc2NyaXB0aW9uGAUgASgJEjMKB2NvbnRleHQYBiADKAsyIi5pbnRlZ3Jh", "dGlvbi5Mb2dFdmVudC5Db250ZXh0RW50cnkaLgoMQ29udGV4dEVudHJ5EgsK", "A2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEi6AEKC1N0YXR1c0V2ZW50", "EhgKEGRlZHVwbGljYXRpb25faWQYASABKAkSKAoEdGltZRgCIAEoCzIaLmdv", "b2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLAoLZGV2aWNlX2luZm8YAyABKAsy", "Fy5pbnRlZ3JhdGlvbi5EZXZpY2VJbmZvEg4KBm1hcmdpbhgFIAEoBRIdChVl", "eHRlcm5hbF9wb3dlcl9zb3VyY2UYBiABKAgSIQoZYmF0dGVyeV9sZXZlbF91", "bmF2YWlsYWJsZRgHIAEoCBIVCg1iYXR0ZXJ5X2xldmVsGAggASgCIqUBCg1M", "b2NhdGlvbkV2ZW50EhgKEGRlZHVwbGljYXRpb25faWQYASABKAkSKAoEdGlt", "ZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLAoLZGV2aWNl", "X2luZm8YAyABKAsyFy5pbnRlZ3JhdGlvbi5EZXZpY2VJbmZvEiIKCGxvY2F0", "aW9uGAQgASgLMhAuY29tbW9uLkxvY2F0aW9uItsBChBJbnRlZ3JhdGlvbkV2", "ZW50EhgKEGRlZHVwbGljYXRpb25faWQYASABKAkSKAoEdGltZRgCIAEoCzIa", "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLAoLZGV2aWNlX2luZm8YAyAB", "KAsyFy5pbnRlZ3JhdGlvbi5EZXZpY2VJbmZvEhgKEGludGVncmF0aW9uX25h", "bWUYBCABKAkSEgoKZXZlbnRfdHlwZRgFIAEoCRInCgZvYmplY3QYBiABKAsy", "Fy5nb29nbGUucHJvdG9idWYuU3RydWN0IogBCg9Eb3dubGlua0NvbW1hbmQS", "CgoCaWQYASABKAkSDwoHZGV2X2V1aRgCIAEoCRIRCgljb25maXJtZWQYAyAB", "KAgSDgoGZl9wb3J0GAQgASgNEgwKBGRhdGEYBSABKAwSJwoGb2JqZWN0GAYg", "ASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdCosCghMb2dMZXZlbBIICgRJ", "TkZPEAASCwoHV0FSTklORxABEgkKBUVSUk9SEAIq2gEKB0xvZ0NvZGUSCwoH", "VU5LTk9XThAAEhkKFURPV05MSU5LX1BBWUxPQURfU0laRRABEhAKDFVQTElO", "S19DT0RFQxACEhIKDkRPV05MSU5LX0NPREVDEAMSCAoET1RBQRAEEhYKElVQ", "TElOS19GX0NOVF9SRVNFVBAFEg4KClVQTElOS19NSUMQBhIfChtVUExJTktf", "Rl9DTlRfUkVUUkFOU01JU1NJT04QBxIUChBET1dOTElOS19HQVRFV0FZEAgS", "GAoUUkVMQVlfTkVXX0VORF9ERVZJQ0UQCUKBAQodaW8uY2hpcnBzdGFjay5h", "cGkuaW50ZWdyYXRpb25CEEludGVncmF0aW9uUHJvdG9QAVozZ2l0aHViLmNv", "bS9icm9jYWFyL2NoaXJwc3RhY2svYXBpL2dvL3Y0L2ludGVncmF0aW9uqgIW", "Q2hpcnBzdGFjay5JbnRlZ3JhdGlvbmIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Integration.LogLevel), typeof(global::Chirpstack.Integration.LogCode), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.DeviceInfo), global::Chirpstack.Integration.DeviceInfo.Parser, new[]{ "TenantId", "TenantName", "ApplicationId", "ApplicationName", "DeviceProfileId", "DeviceProfileName", "DeviceName", "DevEui", "DeviceClassEnabled", "Tags" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.UplinkRelayRxInfo), global::Chirpstack.Integration.UplinkRelayRxInfo.Parser, new[]{ "DevEui", "Frequency", "Dr", "Snr", "Rssi", "WorChannel" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.UplinkEvent), global::Chirpstack.Integration.UplinkEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "DevAddr", "Adr", "Dr", "FCnt", "FPort", "Confirmed", "Data", "Object", "RxInfo", "TxInfo", "RelayRxInfo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.JoinEvent), global::Chirpstack.Integration.JoinEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "DevAddr", "RelayRxInfo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.AckEvent), global::Chirpstack.Integration.AckEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "QueueItemId", "Acknowledged", "FCntDown" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.TxAckEvent), global::Chirpstack.Integration.TxAckEvent.Parser, new[]{ "DownlinkId", "Time", "DeviceInfo", "QueueItemId", "FCntDown", "GatewayId", "TxInfo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.LogEvent), global::Chirpstack.Integration.LogEvent.Parser, new[]{ "Time", "DeviceInfo", "Level", "Code", "Description", "Context" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.StatusEvent), global::Chirpstack.Integration.StatusEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "Margin", "ExternalPowerSource", "BatteryLevelUnavailable", "BatteryLevel" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.LocationEvent), global::Chirpstack.Integration.LocationEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "Location" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.IntegrationEvent), global::Chirpstack.Integration.IntegrationEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "IntegrationName", "EventType", "Object" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.DownlinkCommand), global::Chirpstack.Integration.DownlinkCommand.Parser, new[]{ "Id", "DevEui", "Confirmed", "FPort", "Data", "Object" }, null, null, null, null) })); } #endregion } #region Enums public enum LogLevel { /// /// Info. /// [pbr::OriginalName("INFO")] Info = 0, /// /// Warning. /// [pbr::OriginalName("WARNING")] Warning = 1, /// /// Error. /// [pbr::OriginalName("ERROR")] Error = 2, } public enum LogCode { /// /// Unknown type. /// [pbr::OriginalName("UNKNOWN")] Unknown = 0, /// /// Error related to the downlink payload size. /// Usually seen when the payload exceeded the maximum allowed payload size. /// [pbr::OriginalName("DOWNLINK_PAYLOAD_SIZE")] DownlinkPayloadSize = 1, /// /// Uplink codec error. /// [pbr::OriginalName("UPLINK_CODEC")] UplinkCodec = 2, /// /// Downlink codec error. /// [pbr::OriginalName("DOWNLINK_CODEC")] DownlinkCodec = 3, /// /// OTAA error. /// [pbr::OriginalName("OTAA")] Otaa = 4, /// /// Uplink frame-counter was reset. /// [pbr::OriginalName("UPLINK_F_CNT_RESET")] UplinkFCntReset = 5, /// /// Uplink MIC error. /// [pbr::OriginalName("UPLINK_MIC")] UplinkMic = 6, /// /// Uplink frame-counter retransmission. /// [pbr::OriginalName("UPLINK_F_CNT_RETRANSMISSION")] UplinkFCntRetransmission = 7, /// /// Downlink gateway error. /// [pbr::OriginalName("DOWNLINK_GATEWAY")] DownlinkGateway = 8, /// /// Relay new end-device. /// [pbr::OriginalName("RELAY_NEW_END_DEVICE")] RelayNewEndDevice = 9, } #endregion #region Messages /// /// Device information. /// public sealed partial class DeviceInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceInfo()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Chirpstack.Integration.IntegrationReflection.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 DeviceInfo() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceInfo(DeviceInfo other) : this() { tenantId_ = other.tenantId_; tenantName_ = other.tenantName_; applicationId_ = other.applicationId_; applicationName_ = other.applicationName_; deviceProfileId_ = other.deviceProfileId_; deviceProfileName_ = other.deviceProfileName_; deviceName_ = other.deviceName_; devEui_ = other.devEui_; deviceClassEnabled_ = other.deviceClassEnabled_; tags_ = other.tags_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceInfo Clone() { return new DeviceInfo(this); } /// Field number for the "tenant_id" field. public const int TenantIdFieldNumber = 1; private string tenantId_ = ""; /// /// Tenant ID (UUID). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TenantId { get { return tenantId_; } set { tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "tenant_name" field. public const int TenantNameFieldNumber = 2; private string tenantName_ = ""; /// /// Tenant name. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TenantName { get { return tenantName_; } set { tenantName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "application_id" field. public const int ApplicationIdFieldNumber = 3; private string applicationId_ = ""; /// /// Application ID (UUID). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ApplicationId { get { return applicationId_; } set { applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "application_name" field. public const int ApplicationNameFieldNumber = 4; private string applicationName_ = ""; /// /// Application name. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ApplicationName { get { return applicationName_; } set { applicationName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_profile_id" field. public const int DeviceProfileIdFieldNumber = 5; private string deviceProfileId_ = ""; /// /// Device-profile ID (UUID). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeviceProfileId { get { return deviceProfileId_; } set { deviceProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_profile_name" field. public const int DeviceProfileNameFieldNumber = 6; private string deviceProfileName_ = ""; /// /// Device-profile name. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeviceProfileName { get { return deviceProfileName_; } set { deviceProfileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_name" field. public const int DeviceNameFieldNumber = 7; private string deviceName_ = ""; /// /// Device name. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeviceName { get { return deviceName_; } set { deviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "dev_eui" field. public const int DevEuiFieldNumber = 8; private string devEui_ = ""; /// /// Device EUI. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DevEui { get { return devEui_; } set { devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_class_enabled" field. public const int DeviceClassEnabledFieldNumber = 10; private global::Chirpstack.Common.DeviceClass deviceClassEnabled_ = global::Chirpstack.Common.DeviceClass.ClassA; /// /// Device class. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Common.DeviceClass DeviceClassEnabled { get { return deviceClassEnabled_; } set { deviceClassEnabled_ = value; } } /// Field number for the "tags" field. public const int TagsFieldNumber = 9; private static readonly pbc::MapField.Codec _map_tags_codec = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 74); private readonly pbc::MapField tags_ = new pbc::MapField(); /// /// Device-profile and device tags. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Tags { get { return tags_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (TenantId != other.TenantId) return false; if (TenantName != other.TenantName) return false; if (ApplicationId != other.ApplicationId) return false; if (ApplicationName != other.ApplicationName) return false; if (DeviceProfileId != other.DeviceProfileId) return false; if (DeviceProfileName != other.DeviceProfileName) return false; if (DeviceName != other.DeviceName) return false; if (DevEui != other.DevEui) return false; if (DeviceClassEnabled != other.DeviceClassEnabled) return false; if (!Tags.Equals(other.Tags)) 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 (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); if (TenantName.Length != 0) hash ^= TenantName.GetHashCode(); if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); if (DeviceProfileId.Length != 0) hash ^= DeviceProfileId.GetHashCode(); if (DeviceProfileName.Length != 0) hash ^= DeviceProfileName.GetHashCode(); if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); if (DeviceClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) hash ^= DeviceClassEnabled.GetHashCode(); hash ^= Tags.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 (TenantId.Length != 0) { output.WriteRawTag(10); output.WriteString(TenantId); } if (TenantName.Length != 0) { output.WriteRawTag(18); output.WriteString(TenantName); } if (ApplicationId.Length != 0) { output.WriteRawTag(26); output.WriteString(ApplicationId); } if (ApplicationName.Length != 0) { output.WriteRawTag(34); output.WriteString(ApplicationName); } if (DeviceProfileId.Length != 0) { output.WriteRawTag(42); output.WriteString(DeviceProfileId); } if (DeviceProfileName.Length != 0) { output.WriteRawTag(50); output.WriteString(DeviceProfileName); } if (DeviceName.Length != 0) { output.WriteRawTag(58); output.WriteString(DeviceName); } if (DevEui.Length != 0) { output.WriteRawTag(66); output.WriteString(DevEui); } tags_.WriteTo(output, _map_tags_codec); if (DeviceClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) { output.WriteRawTag(80); output.WriteEnum((int) DeviceClassEnabled); } 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 (TenantId.Length != 0) { output.WriteRawTag(10); output.WriteString(TenantId); } if (TenantName.Length != 0) { output.WriteRawTag(18); output.WriteString(TenantName); } if (ApplicationId.Length != 0) { output.WriteRawTag(26); output.WriteString(ApplicationId); } if (ApplicationName.Length != 0) { output.WriteRawTag(34); output.WriteString(ApplicationName); } if (DeviceProfileId.Length != 0) { output.WriteRawTag(42); output.WriteString(DeviceProfileId); } if (DeviceProfileName.Length != 0) { output.WriteRawTag(50); output.WriteString(DeviceProfileName); } if (DeviceName.Length != 0) { output.WriteRawTag(58); output.WriteString(DeviceName); } if (DevEui.Length != 0) { output.WriteRawTag(66); output.WriteString(DevEui); } tags_.WriteTo(ref output, _map_tags_codec); if (DeviceClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) { output.WriteRawTag(80); output.WriteEnum((int) DeviceClassEnabled); } 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 (TenantId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); } if (TenantName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantName); } if (ApplicationId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); } if (ApplicationName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationName); } if (DeviceProfileId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileId); } if (DeviceProfileName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileName); } if (DeviceName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); } if (DevEui.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); } if (DeviceClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeviceClassEnabled); } size += tags_.CalculateSize(_map_tags_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceInfo other) { if (other == null) { return; } if (other.TenantId.Length != 0) { TenantId = other.TenantId; } if (other.TenantName.Length != 0) { TenantName = other.TenantName; } if (other.ApplicationId.Length != 0) { ApplicationId = other.ApplicationId; } if (other.ApplicationName.Length != 0) { ApplicationName = other.ApplicationName; } if (other.DeviceProfileId.Length != 0) { DeviceProfileId = other.DeviceProfileId; } if (other.DeviceProfileName.Length != 0) { DeviceProfileName = other.DeviceProfileName; } if (other.DeviceName.Length != 0) { DeviceName = other.DeviceName; } if (other.DevEui.Length != 0) { DevEui = other.DevEui; } if (other.DeviceClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) { DeviceClassEnabled = other.DeviceClassEnabled; } tags_.Add(other.tags_); _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: { TenantId = input.ReadString(); break; } case 18: { TenantName = input.ReadString(); break; } case 26: { ApplicationId = input.ReadString(); break; } case 34: { ApplicationName = input.ReadString(); break; } case 42: { DeviceProfileId = input.ReadString(); break; } case 50: { DeviceProfileName = input.ReadString(); break; } case 58: { DeviceName = input.ReadString(); break; } case 66: { DevEui = input.ReadString(); break; } case 74: { tags_.AddEntriesFrom(input, _map_tags_codec); break; } case 80: { DeviceClassEnabled = (global::Chirpstack.Common.DeviceClass) 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: { TenantId = input.ReadString(); break; } case 18: { TenantName = input.ReadString(); break; } case 26: { ApplicationId = input.ReadString(); break; } case 34: { ApplicationName = input.ReadString(); break; } case 42: { DeviceProfileId = input.ReadString(); break; } case 50: { DeviceProfileName = input.ReadString(); break; } case 58: { DeviceName = input.ReadString(); break; } case 66: { DevEui = input.ReadString(); break; } case 74: { tags_.AddEntriesFrom(ref input, _map_tags_codec); break; } case 80: { DeviceClassEnabled = (global::Chirpstack.Common.DeviceClass) input.ReadEnum(); break; } } } } #endif } /// /// Uplink relay RX information. /// public sealed partial class UplinkRelayRxInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkRelayRxInfo()); 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.Integration.IntegrationReflection.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 UplinkRelayRxInfo() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UplinkRelayRxInfo(UplinkRelayRxInfo other) : this() { devEui_ = other.devEui_; frequency_ = other.frequency_; dr_ = other.dr_; snr_ = other.snr_; rssi_ = other.rssi_; worChannel_ = other.worChannel_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UplinkRelayRxInfo Clone() { return new UplinkRelayRxInfo(this); } /// Field number for the "dev_eui" field. public const int DevEuiFieldNumber = 1; private string devEui_ = ""; /// /// Relay DevEUI. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DevEui { get { return devEui_; } set { devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "frequency" field. public const int FrequencyFieldNumber = 2; private uint frequency_; /// /// Frequency. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Frequency { get { return frequency_; } set { frequency_ = value; } } /// Field number for the "dr" field. public const int DrFieldNumber = 3; private uint dr_; /// /// Data-rate. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Dr { get { return dr_; } set { dr_ = value; } } /// Field number for the "snr" field. public const int SnrFieldNumber = 4; private int snr_; /// /// SNR. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Snr { get { return snr_; } set { snr_ = value; } } /// Field number for the "rssi" field. public const int RssiFieldNumber = 5; private int rssi_; /// /// RSSI. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Rssi { get { return rssi_; } set { rssi_ = value; } } /// Field number for the "wor_channel" field. public const int WorChannelFieldNumber = 6; private uint worChannel_; /// /// WOR channel. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint WorChannel { get { return worChannel_; } set { worChannel_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UplinkRelayRxInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UplinkRelayRxInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (DevEui != other.DevEui) return false; if (Frequency != other.Frequency) return false; if (Dr != other.Dr) return false; if (Snr != other.Snr) return false; if (Rssi != other.Rssi) return false; if (WorChannel != other.WorChannel) 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 (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); if (Frequency != 0) hash ^= Frequency.GetHashCode(); if (Dr != 0) hash ^= Dr.GetHashCode(); if (Snr != 0) hash ^= Snr.GetHashCode(); if (Rssi != 0) hash ^= Rssi.GetHashCode(); if (WorChannel != 0) hash ^= WorChannel.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 (DevEui.Length != 0) { output.WriteRawTag(10); output.WriteString(DevEui); } if (Frequency != 0) { output.WriteRawTag(16); output.WriteUInt32(Frequency); } if (Dr != 0) { output.WriteRawTag(24); output.WriteUInt32(Dr); } if (Snr != 0) { output.WriteRawTag(32); output.WriteInt32(Snr); } if (Rssi != 0) { output.WriteRawTag(40); output.WriteInt32(Rssi); } if (WorChannel != 0) { output.WriteRawTag(48); output.WriteUInt32(WorChannel); } 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 (DevEui.Length != 0) { output.WriteRawTag(10); output.WriteString(DevEui); } if (Frequency != 0) { output.WriteRawTag(16); output.WriteUInt32(Frequency); } if (Dr != 0) { output.WriteRawTag(24); output.WriteUInt32(Dr); } if (Snr != 0) { output.WriteRawTag(32); output.WriteInt32(Snr); } if (Rssi != 0) { output.WriteRawTag(40); output.WriteInt32(Rssi); } if (WorChannel != 0) { output.WriteRawTag(48); output.WriteUInt32(WorChannel); } 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 (DevEui.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); } if (Frequency != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); } if (Dr != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Dr); } if (Snr != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Snr); } if (Rssi != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rssi); } if (WorChannel != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorChannel); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UplinkRelayRxInfo other) { if (other == null) { return; } if (other.DevEui.Length != 0) { DevEui = other.DevEui; } if (other.Frequency != 0) { Frequency = other.Frequency; } if (other.Dr != 0) { Dr = other.Dr; } if (other.Snr != 0) { Snr = other.Snr; } if (other.Rssi != 0) { Rssi = other.Rssi; } if (other.WorChannel != 0) { WorChannel = other.WorChannel; } _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: { DevEui = input.ReadString(); break; } case 16: { Frequency = input.ReadUInt32(); break; } case 24: { Dr = input.ReadUInt32(); break; } case 32: { Snr = input.ReadInt32(); break; } case 40: { Rssi = input.ReadInt32(); break; } case 48: { WorChannel = input.ReadUInt32(); 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: { DevEui = input.ReadString(); break; } case 16: { Frequency = input.ReadUInt32(); break; } case 24: { Dr = input.ReadUInt32(); break; } case 32: { Snr = input.ReadInt32(); break; } case 40: { Rssi = input.ReadInt32(); break; } case 48: { WorChannel = input.ReadUInt32(); break; } } } } #endif } /// /// UplinkEvent is the message sent when an uplink payload has been received. /// public sealed partial class UplinkEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkEvent()); 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.Integration.IntegrationReflection.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 UplinkEvent() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UplinkEvent(UplinkEvent other) : this() { deduplicationId_ = other.deduplicationId_; time_ = other.time_ != null ? other.time_.Clone() : null; deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; devAddr_ = other.devAddr_; adr_ = other.adr_; dr_ = other.dr_; fCnt_ = other.fCnt_; fPort_ = other.fPort_; confirmed_ = other.confirmed_; data_ = other.data_; object_ = other.object_ != null ? other.object_.Clone() : null; rxInfo_ = other.rxInfo_.Clone(); txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; relayRxInfo_ = other.relayRxInfo_ != null ? other.relayRxInfo_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UplinkEvent Clone() { return new UplinkEvent(this); } /// Field number for the "deduplication_id" field. public const int DeduplicationIdFieldNumber = 1; private string deduplicationId_ = ""; /// /// Deduplication ID (UUID). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeduplicationId { get { return deduplicationId_; } set { deduplicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "time" field. public const int TimeFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Timestamp time_; /// /// Timestamp. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp Time { get { return time_; } set { time_ = value; } } /// Field number for the "device_info" field. public const int DeviceInfoFieldNumber = 3; private global::Chirpstack.Integration.DeviceInfo deviceInfo_; /// /// Device information. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Integration.DeviceInfo DeviceInfo { get { return deviceInfo_; } set { deviceInfo_ = value; } } /// Field number for the "dev_addr" field. public const int DevAddrFieldNumber = 4; private string devAddr_ = ""; /// /// Device address. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DevAddr { get { return devAddr_; } set { devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "adr" field. public const int AdrFieldNumber = 5; private bool adr_; /// /// Device has ADR bit set. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Adr { get { return adr_; } set { adr_ = value; } } /// Field number for the "dr" field. public const int DrFieldNumber = 6; private uint dr_; /// /// Data-rate. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Dr { get { return dr_; } set { dr_ = value; } } /// Field number for the "f_cnt" field. public const int FCntFieldNumber = 7; private uint fCnt_; /// /// Frame counter. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FCnt { get { return fCnt_; } set { fCnt_ = value; } } /// Field number for the "f_port" field. public const int FPortFieldNumber = 8; private uint fPort_; /// /// Frame port. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FPort { get { return fPort_; } set { fPort_ = value; } } /// Field number for the "confirmed" field. public const int ConfirmedFieldNumber = 9; private bool confirmed_; /// /// Uplink was of type confirmed. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Confirmed { get { return confirmed_; } set { confirmed_ = value; } } /// Field number for the "data" field. public const int DataFieldNumber = 10; private pb::ByteString data_ = pb::ByteString.Empty; /// /// FRMPayload data. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString Data { get { return data_; } set { data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "object" field. public const int ObjectFieldNumber = 11; private global::Google.Protobuf.WellKnownTypes.Struct object_; /// /// Note that this is only set when a codec is configured in the Device /// Profile. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Struct Object { get { return object_; } set { object_ = value; } } /// Field number for the "rx_info" field. public const int RxInfoFieldNumber = 12; private static readonly pb::FieldCodec _repeated_rxInfo_codec = pb::FieldCodec.ForMessage(98, global::Chirpstack.Gateway.UplinkRxInfo.Parser); private readonly pbc::RepeatedField rxInfo_ = new pbc::RepeatedField(); /// /// Receiving gateway RX info. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RxInfo { get { return rxInfo_; } } /// Field number for the "tx_info" field. public const int TxInfoFieldNumber = 13; private global::Chirpstack.Gateway.UplinkTxInfo txInfo_; /// /// TX info. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Gateway.UplinkTxInfo TxInfo { get { return txInfo_; } set { txInfo_ = value; } } /// Field number for the "relay_rx_info" field. public const int RelayRxInfoFieldNumber = 14; private global::Chirpstack.Integration.UplinkRelayRxInfo relayRxInfo_; /// /// Relay info. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Integration.UplinkRelayRxInfo RelayRxInfo { get { return relayRxInfo_; } set { relayRxInfo_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UplinkEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UplinkEvent other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (DeduplicationId != other.DeduplicationId) return false; if (!object.Equals(Time, other.Time)) return false; if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; if (DevAddr != other.DevAddr) return false; if (Adr != other.Adr) return false; if (Dr != other.Dr) return false; if (FCnt != other.FCnt) return false; if (FPort != other.FPort) return false; if (Confirmed != other.Confirmed) return false; if (Data != other.Data) return false; if (!object.Equals(Object, other.Object)) return false; if(!rxInfo_.Equals(other.rxInfo_)) return false; if (!object.Equals(TxInfo, other.TxInfo)) return false; if (!object.Equals(RelayRxInfo, other.RelayRxInfo)) 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 (DeduplicationId.Length != 0) hash ^= DeduplicationId.GetHashCode(); if (time_ != null) hash ^= Time.GetHashCode(); if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); if (Adr != false) hash ^= Adr.GetHashCode(); if (Dr != 0) hash ^= Dr.GetHashCode(); if (FCnt != 0) hash ^= FCnt.GetHashCode(); if (FPort != 0) hash ^= FPort.GetHashCode(); if (Confirmed != false) hash ^= Confirmed.GetHashCode(); if (Data.Length != 0) hash ^= Data.GetHashCode(); if (object_ != null) hash ^= Object.GetHashCode(); hash ^= rxInfo_.GetHashCode(); if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); if (relayRxInfo_ != null) hash ^= RelayRxInfo.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 (DeduplicationId.Length != 0) { output.WriteRawTag(10); output.WriteString(DeduplicationId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (DevAddr.Length != 0) { output.WriteRawTag(34); output.WriteString(DevAddr); } if (Adr != false) { output.WriteRawTag(40); output.WriteBool(Adr); } if (Dr != 0) { output.WriteRawTag(48); output.WriteUInt32(Dr); } if (FCnt != 0) { output.WriteRawTag(56); output.WriteUInt32(FCnt); } if (FPort != 0) { output.WriteRawTag(64); output.WriteUInt32(FPort); } if (Confirmed != false) { output.WriteRawTag(72); output.WriteBool(Confirmed); } if (Data.Length != 0) { output.WriteRawTag(82); output.WriteBytes(Data); } if (object_ != null) { output.WriteRawTag(90); output.WriteMessage(Object); } rxInfo_.WriteTo(output, _repeated_rxInfo_codec); if (txInfo_ != null) { output.WriteRawTag(106); output.WriteMessage(TxInfo); } if (relayRxInfo_ != null) { output.WriteRawTag(114); output.WriteMessage(RelayRxInfo); } 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 (DeduplicationId.Length != 0) { output.WriteRawTag(10); output.WriteString(DeduplicationId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (DevAddr.Length != 0) { output.WriteRawTag(34); output.WriteString(DevAddr); } if (Adr != false) { output.WriteRawTag(40); output.WriteBool(Adr); } if (Dr != 0) { output.WriteRawTag(48); output.WriteUInt32(Dr); } if (FCnt != 0) { output.WriteRawTag(56); output.WriteUInt32(FCnt); } if (FPort != 0) { output.WriteRawTag(64); output.WriteUInt32(FPort); } if (Confirmed != false) { output.WriteRawTag(72); output.WriteBool(Confirmed); } if (Data.Length != 0) { output.WriteRawTag(82); output.WriteBytes(Data); } if (object_ != null) { output.WriteRawTag(90); output.WriteMessage(Object); } rxInfo_.WriteTo(ref output, _repeated_rxInfo_codec); if (txInfo_ != null) { output.WriteRawTag(106); output.WriteMessage(TxInfo); } if (relayRxInfo_ != null) { output.WriteRawTag(114); output.WriteMessage(RelayRxInfo); } 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 (DeduplicationId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeduplicationId); } if (time_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); } if (deviceInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); } if (DevAddr.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DevAddr); } if (Adr != false) { size += 1 + 1; } if (Dr != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Dr); } if (FCnt != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); } if (FPort != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FPort); } if (Confirmed != false) { size += 1 + 1; } if (Data.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); } if (object_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Object); } size += rxInfo_.CalculateSize(_repeated_rxInfo_codec); if (txInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); } if (relayRxInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(RelayRxInfo); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UplinkEvent other) { if (other == null) { return; } if (other.DeduplicationId.Length != 0) { DeduplicationId = other.DeduplicationId; } if (other.time_ != null) { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } Time.MergeFrom(other.Time); } if (other.deviceInfo_ != null) { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } DeviceInfo.MergeFrom(other.DeviceInfo); } if (other.DevAddr.Length != 0) { DevAddr = other.DevAddr; } if (other.Adr != false) { Adr = other.Adr; } if (other.Dr != 0) { Dr = other.Dr; } if (other.FCnt != 0) { FCnt = other.FCnt; } if (other.FPort != 0) { FPort = other.FPort; } if (other.Confirmed != false) { Confirmed = other.Confirmed; } if (other.Data.Length != 0) { Data = other.Data; } if (other.object_ != null) { if (object_ == null) { Object = new global::Google.Protobuf.WellKnownTypes.Struct(); } Object.MergeFrom(other.Object); } rxInfo_.Add(other.rxInfo_); if (other.txInfo_ != null) { if (txInfo_ == null) { TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); } TxInfo.MergeFrom(other.TxInfo); } if (other.relayRxInfo_ != null) { if (relayRxInfo_ == null) { RelayRxInfo = new global::Chirpstack.Integration.UplinkRelayRxInfo(); } RelayRxInfo.MergeFrom(other.RelayRxInfo); } _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: { DeduplicationId = input.ReadString(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 34: { DevAddr = input.ReadString(); break; } case 40: { Adr = input.ReadBool(); break; } case 48: { Dr = input.ReadUInt32(); break; } case 56: { FCnt = input.ReadUInt32(); break; } case 64: { FPort = input.ReadUInt32(); break; } case 72: { Confirmed = input.ReadBool(); break; } case 82: { Data = input.ReadBytes(); break; } case 90: { if (object_ == null) { Object = new global::Google.Protobuf.WellKnownTypes.Struct(); } input.ReadMessage(Object); break; } case 98: { rxInfo_.AddEntriesFrom(input, _repeated_rxInfo_codec); break; } case 106: { if (txInfo_ == null) { TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); } input.ReadMessage(TxInfo); break; } case 114: { if (relayRxInfo_ == null) { RelayRxInfo = new global::Chirpstack.Integration.UplinkRelayRxInfo(); } input.ReadMessage(RelayRxInfo); 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: { DeduplicationId = input.ReadString(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 34: { DevAddr = input.ReadString(); break; } case 40: { Adr = input.ReadBool(); break; } case 48: { Dr = input.ReadUInt32(); break; } case 56: { FCnt = input.ReadUInt32(); break; } case 64: { FPort = input.ReadUInt32(); break; } case 72: { Confirmed = input.ReadBool(); break; } case 82: { Data = input.ReadBytes(); break; } case 90: { if (object_ == null) { Object = new global::Google.Protobuf.WellKnownTypes.Struct(); } input.ReadMessage(Object); break; } case 98: { rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); break; } case 106: { if (txInfo_ == null) { TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); } input.ReadMessage(TxInfo); break; } case 114: { if (relayRxInfo_ == null) { RelayRxInfo = new global::Chirpstack.Integration.UplinkRelayRxInfo(); } input.ReadMessage(RelayRxInfo); break; } } } } #endif } /// /// JoinEvent is the message sent when a device joined the network. /// Note: this event is sent at the first uplink after OTAA. /// public sealed partial class JoinEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JoinEvent()); 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.Integration.IntegrationReflection.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 JoinEvent() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public JoinEvent(JoinEvent other) : this() { deduplicationId_ = other.deduplicationId_; time_ = other.time_ != null ? other.time_.Clone() : null; deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; devAddr_ = other.devAddr_; relayRxInfo_ = other.relayRxInfo_ != null ? other.relayRxInfo_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public JoinEvent Clone() { return new JoinEvent(this); } /// Field number for the "deduplication_id" field. public const int DeduplicationIdFieldNumber = 1; private string deduplicationId_ = ""; /// /// Deduplication ID (UUID). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeduplicationId { get { return deduplicationId_; } set { deduplicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "time" field. public const int TimeFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Timestamp time_; /// /// Timestamp. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp Time { get { return time_; } set { time_ = value; } } /// Field number for the "device_info" field. public const int DeviceInfoFieldNumber = 3; private global::Chirpstack.Integration.DeviceInfo deviceInfo_; /// /// Device info. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Integration.DeviceInfo DeviceInfo { get { return deviceInfo_; } set { deviceInfo_ = value; } } /// Field number for the "dev_addr" field. public const int DevAddrFieldNumber = 4; private string devAddr_ = ""; /// /// Device address. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DevAddr { get { return devAddr_; } set { devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "relay_rx_info" field. public const int RelayRxInfoFieldNumber = 5; private global::Chirpstack.Integration.UplinkRelayRxInfo relayRxInfo_; /// /// Relay info. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Integration.UplinkRelayRxInfo RelayRxInfo { get { return relayRxInfo_; } set { relayRxInfo_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as JoinEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(JoinEvent other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (DeduplicationId != other.DeduplicationId) return false; if (!object.Equals(Time, other.Time)) return false; if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; if (DevAddr != other.DevAddr) return false; if (!object.Equals(RelayRxInfo, other.RelayRxInfo)) 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 (DeduplicationId.Length != 0) hash ^= DeduplicationId.GetHashCode(); if (time_ != null) hash ^= Time.GetHashCode(); if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); if (relayRxInfo_ != null) hash ^= RelayRxInfo.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 (DeduplicationId.Length != 0) { output.WriteRawTag(10); output.WriteString(DeduplicationId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (DevAddr.Length != 0) { output.WriteRawTag(34); output.WriteString(DevAddr); } if (relayRxInfo_ != null) { output.WriteRawTag(42); output.WriteMessage(RelayRxInfo); } 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 (DeduplicationId.Length != 0) { output.WriteRawTag(10); output.WriteString(DeduplicationId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (DevAddr.Length != 0) { output.WriteRawTag(34); output.WriteString(DevAddr); } if (relayRxInfo_ != null) { output.WriteRawTag(42); output.WriteMessage(RelayRxInfo); } 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 (DeduplicationId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeduplicationId); } if (time_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); } if (deviceInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); } if (DevAddr.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DevAddr); } if (relayRxInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(RelayRxInfo); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(JoinEvent other) { if (other == null) { return; } if (other.DeduplicationId.Length != 0) { DeduplicationId = other.DeduplicationId; } if (other.time_ != null) { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } Time.MergeFrom(other.Time); } if (other.deviceInfo_ != null) { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } DeviceInfo.MergeFrom(other.DeviceInfo); } if (other.DevAddr.Length != 0) { DevAddr = other.DevAddr; } if (other.relayRxInfo_ != null) { if (relayRxInfo_ == null) { RelayRxInfo = new global::Chirpstack.Integration.UplinkRelayRxInfo(); } RelayRxInfo.MergeFrom(other.RelayRxInfo); } _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: { DeduplicationId = input.ReadString(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 34: { DevAddr = input.ReadString(); break; } case 42: { if (relayRxInfo_ == null) { RelayRxInfo = new global::Chirpstack.Integration.UplinkRelayRxInfo(); } input.ReadMessage(RelayRxInfo); 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: { DeduplicationId = input.ReadString(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 34: { DevAddr = input.ReadString(); break; } case 42: { if (relayRxInfo_ == null) { RelayRxInfo = new global::Chirpstack.Integration.UplinkRelayRxInfo(); } input.ReadMessage(RelayRxInfo); break; } } } } #endif } /// /// AckEvent is the message sent when a confirmation on a confirmed downlink /// has been received -or- when the downlink timed out. /// public sealed partial class AckEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AckEvent()); 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.Integration.IntegrationReflection.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 AckEvent() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AckEvent(AckEvent other) : this() { deduplicationId_ = other.deduplicationId_; time_ = other.time_ != null ? other.time_.Clone() : null; deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; queueItemId_ = other.queueItemId_; acknowledged_ = other.acknowledged_; fCntDown_ = other.fCntDown_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AckEvent Clone() { return new AckEvent(this); } /// Field number for the "deduplication_id" field. public const int DeduplicationIdFieldNumber = 1; private string deduplicationId_ = ""; /// /// Deduplication ID (UUID). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeduplicationId { get { return deduplicationId_; } set { deduplicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "time" field. public const int TimeFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Timestamp time_; /// /// Timestamp. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp Time { get { return time_; } set { time_ = value; } } /// Field number for the "device_info" field. public const int DeviceInfoFieldNumber = 3; private global::Chirpstack.Integration.DeviceInfo deviceInfo_; /// /// Device info. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Integration.DeviceInfo DeviceInfo { get { return deviceInfo_; } set { deviceInfo_ = value; } } /// Field number for the "queue_item_id" field. public const int QueueItemIdFieldNumber = 4; private string queueItemId_ = ""; /// /// Downlink queue item ID (UUID). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string QueueItemId { get { return queueItemId_; } set { queueItemId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "acknowledged" field. public const int AcknowledgedFieldNumber = 5; private bool acknowledged_; /// /// Frame was acknowledged. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Acknowledged { get { return acknowledged_; } set { acknowledged_ = value; } } /// Field number for the "f_cnt_down" field. public const int FCntDownFieldNumber = 6; private uint fCntDown_; /// /// Downlink frame counter to which the acknowledgement relates. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FCntDown { get { return fCntDown_; } set { fCntDown_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AckEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AckEvent other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (DeduplicationId != other.DeduplicationId) return false; if (!object.Equals(Time, other.Time)) return false; if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; if (QueueItemId != other.QueueItemId) return false; if (Acknowledged != other.Acknowledged) return false; if (FCntDown != other.FCntDown) 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 (DeduplicationId.Length != 0) hash ^= DeduplicationId.GetHashCode(); if (time_ != null) hash ^= Time.GetHashCode(); if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); if (QueueItemId.Length != 0) hash ^= QueueItemId.GetHashCode(); if (Acknowledged != false) hash ^= Acknowledged.GetHashCode(); if (FCntDown != 0) hash ^= FCntDown.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 (DeduplicationId.Length != 0) { output.WriteRawTag(10); output.WriteString(DeduplicationId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (QueueItemId.Length != 0) { output.WriteRawTag(34); output.WriteString(QueueItemId); } if (Acknowledged != false) { output.WriteRawTag(40); output.WriteBool(Acknowledged); } if (FCntDown != 0) { output.WriteRawTag(48); output.WriteUInt32(FCntDown); } 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 (DeduplicationId.Length != 0) { output.WriteRawTag(10); output.WriteString(DeduplicationId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (QueueItemId.Length != 0) { output.WriteRawTag(34); output.WriteString(QueueItemId); } if (Acknowledged != false) { output.WriteRawTag(40); output.WriteBool(Acknowledged); } if (FCntDown != 0) { output.WriteRawTag(48); output.WriteUInt32(FCntDown); } 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 (DeduplicationId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeduplicationId); } if (time_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); } if (deviceInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); } if (QueueItemId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(QueueItemId); } if (Acknowledged != false) { size += 1 + 1; } if (FCntDown != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCntDown); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AckEvent other) { if (other == null) { return; } if (other.DeduplicationId.Length != 0) { DeduplicationId = other.DeduplicationId; } if (other.time_ != null) { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } Time.MergeFrom(other.Time); } if (other.deviceInfo_ != null) { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } DeviceInfo.MergeFrom(other.DeviceInfo); } if (other.QueueItemId.Length != 0) { QueueItemId = other.QueueItemId; } if (other.Acknowledged != false) { Acknowledged = other.Acknowledged; } if (other.FCntDown != 0) { FCntDown = other.FCntDown; } _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: { DeduplicationId = input.ReadString(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 34: { QueueItemId = input.ReadString(); break; } case 40: { Acknowledged = input.ReadBool(); break; } case 48: { FCntDown = input.ReadUInt32(); 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: { DeduplicationId = input.ReadString(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 34: { QueueItemId = input.ReadString(); break; } case 40: { Acknowledged = input.ReadBool(); break; } case 48: { FCntDown = input.ReadUInt32(); break; } } } } #endif } /// /// TxAckEvent is the message sent when a downlink was acknowledged by the /// gateway for transmission. As a downlink can be scheduled in the future, this /// event does not confirm that the message has already been transmitted. /// public sealed partial class TxAckEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TxAckEvent()); 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.Integration.IntegrationReflection.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 TxAckEvent() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TxAckEvent(TxAckEvent other) : this() { downlinkId_ = other.downlinkId_; time_ = other.time_ != null ? other.time_.Clone() : null; deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; queueItemId_ = other.queueItemId_; fCntDown_ = other.fCntDown_; gatewayId_ = other.gatewayId_; txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TxAckEvent Clone() { return new TxAckEvent(this); } /// Field number for the "downlink_id" field. public const int DownlinkIdFieldNumber = 1; private uint downlinkId_; /// /// Downlink ID. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint DownlinkId { get { return downlinkId_; } set { downlinkId_ = value; } } /// Field number for the "time" field. public const int TimeFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Timestamp time_; /// /// Timestamp. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp Time { get { return time_; } set { time_ = value; } } /// Field number for the "device_info" field. public const int DeviceInfoFieldNumber = 3; private global::Chirpstack.Integration.DeviceInfo deviceInfo_; /// /// Device info. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Integration.DeviceInfo DeviceInfo { get { return deviceInfo_; } set { deviceInfo_ = value; } } /// Field number for the "queue_item_id" field. public const int QueueItemIdFieldNumber = 4; private string queueItemId_ = ""; /// /// Downlink queue item ID (UUID). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string QueueItemId { get { return queueItemId_; } set { queueItemId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "f_cnt_down" field. public const int FCntDownFieldNumber = 5; private uint fCntDown_; /// /// Downlink frame-counter. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FCntDown { get { return fCntDown_; } set { fCntDown_ = value; } } /// Field number for the "gateway_id" field. public const int GatewayIdFieldNumber = 6; private string gatewayId_ = ""; /// /// Gateway ID. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string GatewayId { get { return gatewayId_; } set { gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "tx_info" field. public const int TxInfoFieldNumber = 7; private global::Chirpstack.Gateway.DownlinkTxInfo txInfo_; /// /// TX info. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Gateway.DownlinkTxInfo TxInfo { get { return txInfo_; } set { txInfo_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TxAckEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TxAckEvent other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (DownlinkId != other.DownlinkId) return false; if (!object.Equals(Time, other.Time)) return false; if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; if (QueueItemId != other.QueueItemId) return false; if (FCntDown != other.FCntDown) return false; if (GatewayId != other.GatewayId) return false; if (!object.Equals(TxInfo, other.TxInfo)) 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 (DownlinkId != 0) hash ^= DownlinkId.GetHashCode(); if (time_ != null) hash ^= Time.GetHashCode(); if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); if (QueueItemId.Length != 0) hash ^= QueueItemId.GetHashCode(); if (FCntDown != 0) hash ^= FCntDown.GetHashCode(); if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); if (txInfo_ != null) hash ^= TxInfo.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 (DownlinkId != 0) { output.WriteRawTag(8); output.WriteUInt32(DownlinkId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (QueueItemId.Length != 0) { output.WriteRawTag(34); output.WriteString(QueueItemId); } if (FCntDown != 0) { output.WriteRawTag(40); output.WriteUInt32(FCntDown); } if (GatewayId.Length != 0) { output.WriteRawTag(50); output.WriteString(GatewayId); } if (txInfo_ != null) { output.WriteRawTag(58); output.WriteMessage(TxInfo); } 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 (DownlinkId != 0) { output.WriteRawTag(8); output.WriteUInt32(DownlinkId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (QueueItemId.Length != 0) { output.WriteRawTag(34); output.WriteString(QueueItemId); } if (FCntDown != 0) { output.WriteRawTag(40); output.WriteUInt32(FCntDown); } if (GatewayId.Length != 0) { output.WriteRawTag(50); output.WriteString(GatewayId); } if (txInfo_ != null) { output.WriteRawTag(58); output.WriteMessage(TxInfo); } 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 (DownlinkId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DownlinkId); } if (time_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); } if (deviceInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); } if (QueueItemId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(QueueItemId); } if (FCntDown != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCntDown); } if (GatewayId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); } if (txInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TxAckEvent other) { if (other == null) { return; } if (other.DownlinkId != 0) { DownlinkId = other.DownlinkId; } if (other.time_ != null) { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } Time.MergeFrom(other.Time); } if (other.deviceInfo_ != null) { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } DeviceInfo.MergeFrom(other.DeviceInfo); } if (other.QueueItemId.Length != 0) { QueueItemId = other.QueueItemId; } if (other.FCntDown != 0) { FCntDown = other.FCntDown; } if (other.GatewayId.Length != 0) { GatewayId = other.GatewayId; } if (other.txInfo_ != null) { if (txInfo_ == null) { TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); } TxInfo.MergeFrom(other.TxInfo); } _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: { DownlinkId = input.ReadUInt32(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 34: { QueueItemId = input.ReadString(); break; } case 40: { FCntDown = input.ReadUInt32(); break; } case 50: { GatewayId = input.ReadString(); break; } case 58: { if (txInfo_ == null) { TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); } input.ReadMessage(TxInfo); 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: { DownlinkId = input.ReadUInt32(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 34: { QueueItemId = input.ReadString(); break; } case 40: { FCntDown = input.ReadUInt32(); break; } case 50: { GatewayId = input.ReadString(); break; } case 58: { if (txInfo_ == null) { TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); } input.ReadMessage(TxInfo); break; } } } } #endif } /// /// LogEvent is the message sent when a device-related log was sent. /// public sealed partial class LogEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogEvent()); 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.Integration.IntegrationReflection.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 LogEvent() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LogEvent(LogEvent other) : this() { time_ = other.time_ != null ? other.time_.Clone() : null; deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; level_ = other.level_; code_ = other.code_; description_ = other.description_; context_ = other.context_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LogEvent Clone() { return new LogEvent(this); } /// Field number for the "time" field. public const int TimeFieldNumber = 1; private global::Google.Protobuf.WellKnownTypes.Timestamp time_; /// /// Timestamp. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp Time { get { return time_; } set { time_ = value; } } /// Field number for the "device_info" field. public const int DeviceInfoFieldNumber = 2; private global::Chirpstack.Integration.DeviceInfo deviceInfo_; /// /// Device info. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Integration.DeviceInfo DeviceInfo { get { return deviceInfo_; } set { deviceInfo_ = value; } } /// Field number for the "level" field. public const int LevelFieldNumber = 3; private global::Chirpstack.Integration.LogLevel level_ = global::Chirpstack.Integration.LogLevel.Info; /// /// Log level. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Integration.LogLevel Level { get { return level_; } set { level_ = value; } } /// Field number for the "code" field. public const int CodeFieldNumber = 4; private global::Chirpstack.Integration.LogCode code_ = global::Chirpstack.Integration.LogCode.Unknown; /// /// Log code. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Integration.LogCode Code { get { return code_; } set { code_ = value; } } /// Field number for the "description" field. public const int DescriptionFieldNumber = 5; private string description_ = ""; /// /// Description message. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Description { get { return description_; } set { description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "context" field. public const int ContextFieldNumber = 6; private static readonly pbc::MapField.Codec _map_context_codec = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 50); private readonly pbc::MapField context_ = new pbc::MapField(); /// /// Context map. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Context { get { return context_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LogEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LogEvent other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Time, other.Time)) return false; if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; if (Level != other.Level) return false; if (Code != other.Code) return false; if (Description != other.Description) return false; if (!Context.Equals(other.Context)) 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 (time_ != null) hash ^= Time.GetHashCode(); if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); if (Level != global::Chirpstack.Integration.LogLevel.Info) hash ^= Level.GetHashCode(); if (Code != global::Chirpstack.Integration.LogCode.Unknown) hash ^= Code.GetHashCode(); if (Description.Length != 0) hash ^= Description.GetHashCode(); hash ^= Context.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 (time_ != null) { output.WriteRawTag(10); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(18); output.WriteMessage(DeviceInfo); } if (Level != global::Chirpstack.Integration.LogLevel.Info) { output.WriteRawTag(24); output.WriteEnum((int) Level); } if (Code != global::Chirpstack.Integration.LogCode.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) Code); } if (Description.Length != 0) { output.WriteRawTag(42); output.WriteString(Description); } context_.WriteTo(output, _map_context_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 (time_ != null) { output.WriteRawTag(10); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(18); output.WriteMessage(DeviceInfo); } if (Level != global::Chirpstack.Integration.LogLevel.Info) { output.WriteRawTag(24); output.WriteEnum((int) Level); } if (Code != global::Chirpstack.Integration.LogCode.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) Code); } if (Description.Length != 0) { output.WriteRawTag(42); output.WriteString(Description); } context_.WriteTo(ref output, _map_context_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 (time_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); } if (deviceInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); } if (Level != global::Chirpstack.Integration.LogLevel.Info) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Level); } if (Code != global::Chirpstack.Integration.LogCode.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); } if (Description.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); } size += context_.CalculateSize(_map_context_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(LogEvent other) { if (other == null) { return; } if (other.time_ != null) { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } Time.MergeFrom(other.Time); } if (other.deviceInfo_ != null) { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } DeviceInfo.MergeFrom(other.DeviceInfo); } if (other.Level != global::Chirpstack.Integration.LogLevel.Info) { Level = other.Level; } if (other.Code != global::Chirpstack.Integration.LogCode.Unknown) { Code = other.Code; } if (other.Description.Length != 0) { Description = other.Description; } context_.Add(other.context_); _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 (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 18: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 24: { Level = (global::Chirpstack.Integration.LogLevel) input.ReadEnum(); break; } case 32: { Code = (global::Chirpstack.Integration.LogCode) input.ReadEnum(); break; } case 42: { Description = input.ReadString(); break; } case 50: { context_.AddEntriesFrom(input, _map_context_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: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 18: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 24: { Level = (global::Chirpstack.Integration.LogLevel) input.ReadEnum(); break; } case 32: { Code = (global::Chirpstack.Integration.LogCode) input.ReadEnum(); break; } case 42: { Description = input.ReadString(); break; } case 50: { context_.AddEntriesFrom(ref input, _map_context_codec); break; } } } } #endif } /// /// StatusEvent is the message sent when a device-status mac-command was sent /// by the device. /// public sealed partial class StatusEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StatusEvent()); 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.Integration.IntegrationReflection.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 StatusEvent() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StatusEvent(StatusEvent other) : this() { deduplicationId_ = other.deduplicationId_; time_ = other.time_ != null ? other.time_.Clone() : null; deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; margin_ = other.margin_; externalPowerSource_ = other.externalPowerSource_; batteryLevelUnavailable_ = other.batteryLevelUnavailable_; batteryLevel_ = other.batteryLevel_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StatusEvent Clone() { return new StatusEvent(this); } /// Field number for the "deduplication_id" field. public const int DeduplicationIdFieldNumber = 1; private string deduplicationId_ = ""; /// /// Deduplication ID (UUID). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeduplicationId { get { return deduplicationId_; } set { deduplicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "time" field. public const int TimeFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Timestamp time_; /// /// Timestamp. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp Time { get { return time_; } set { time_ = value; } } /// Field number for the "device_info" field. public const int DeviceInfoFieldNumber = 3; private global::Chirpstack.Integration.DeviceInfo deviceInfo_; /// /// Device info. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Integration.DeviceInfo DeviceInfo { get { return deviceInfo_; } set { deviceInfo_ = value; } } /// Field number for the "margin" field. public const int MarginFieldNumber = 5; private int margin_; /// /// The demodulation signal-to-noise ratio in dB for the last successfully /// received device-status request by the Network Server. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Margin { get { return margin_; } set { margin_ = value; } } /// Field number for the "external_power_source" field. public const int ExternalPowerSourceFieldNumber = 6; private bool externalPowerSource_; /// /// Device is connected to an external power source. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool ExternalPowerSource { get { return externalPowerSource_; } set { externalPowerSource_ = value; } } /// Field number for the "battery_level_unavailable" field. public const int BatteryLevelUnavailableFieldNumber = 7; private bool batteryLevelUnavailable_; /// /// Battery level is not available. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool BatteryLevelUnavailable { get { return batteryLevelUnavailable_; } set { batteryLevelUnavailable_ = value; } } /// Field number for the "battery_level" field. public const int BatteryLevelFieldNumber = 8; private float batteryLevel_; /// /// Battery level. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float BatteryLevel { get { return batteryLevel_; } set { batteryLevel_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as StatusEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(StatusEvent other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (DeduplicationId != other.DeduplicationId) return false; if (!object.Equals(Time, other.Time)) return false; if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; if (Margin != other.Margin) return false; if (ExternalPowerSource != other.ExternalPowerSource) return false; if (BatteryLevelUnavailable != other.BatteryLevelUnavailable) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(BatteryLevel, other.BatteryLevel)) 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 (DeduplicationId.Length != 0) hash ^= DeduplicationId.GetHashCode(); if (time_ != null) hash ^= Time.GetHashCode(); if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); if (Margin != 0) hash ^= Margin.GetHashCode(); if (ExternalPowerSource != false) hash ^= ExternalPowerSource.GetHashCode(); if (BatteryLevelUnavailable != false) hash ^= BatteryLevelUnavailable.GetHashCode(); if (BatteryLevel != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BatteryLevel); 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 (DeduplicationId.Length != 0) { output.WriteRawTag(10); output.WriteString(DeduplicationId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (Margin != 0) { output.WriteRawTag(40); output.WriteInt32(Margin); } if (ExternalPowerSource != false) { output.WriteRawTag(48); output.WriteBool(ExternalPowerSource); } if (BatteryLevelUnavailable != false) { output.WriteRawTag(56); output.WriteBool(BatteryLevelUnavailable); } if (BatteryLevel != 0F) { output.WriteRawTag(69); output.WriteFloat(BatteryLevel); } 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 (DeduplicationId.Length != 0) { output.WriteRawTag(10); output.WriteString(DeduplicationId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (Margin != 0) { output.WriteRawTag(40); output.WriteInt32(Margin); } if (ExternalPowerSource != false) { output.WriteRawTag(48); output.WriteBool(ExternalPowerSource); } if (BatteryLevelUnavailable != false) { output.WriteRawTag(56); output.WriteBool(BatteryLevelUnavailable); } if (BatteryLevel != 0F) { output.WriteRawTag(69); output.WriteFloat(BatteryLevel); } 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 (DeduplicationId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeduplicationId); } if (time_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); } if (deviceInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); } if (Margin != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Margin); } if (ExternalPowerSource != false) { size += 1 + 1; } if (BatteryLevelUnavailable != false) { size += 1 + 1; } if (BatteryLevel != 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(StatusEvent other) { if (other == null) { return; } if (other.DeduplicationId.Length != 0) { DeduplicationId = other.DeduplicationId; } if (other.time_ != null) { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } Time.MergeFrom(other.Time); } if (other.deviceInfo_ != null) { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } DeviceInfo.MergeFrom(other.DeviceInfo); } if (other.Margin != 0) { Margin = other.Margin; } if (other.ExternalPowerSource != false) { ExternalPowerSource = other.ExternalPowerSource; } if (other.BatteryLevelUnavailable != false) { BatteryLevelUnavailable = other.BatteryLevelUnavailable; } if (other.BatteryLevel != 0F) { BatteryLevel = other.BatteryLevel; } _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: { DeduplicationId = input.ReadString(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 40: { Margin = input.ReadInt32(); break; } case 48: { ExternalPowerSource = input.ReadBool(); break; } case 56: { BatteryLevelUnavailable = input.ReadBool(); break; } case 69: { BatteryLevel = 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 10: { DeduplicationId = input.ReadString(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 40: { Margin = input.ReadInt32(); break; } case 48: { ExternalPowerSource = input.ReadBool(); break; } case 56: { BatteryLevelUnavailable = input.ReadBool(); break; } case 69: { BatteryLevel = input.ReadFloat(); break; } } } } #endif } /// /// LocationEvent is the message sent when a geolocation resolve was returned. /// public sealed partial class LocationEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationEvent()); 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.Integration.IntegrationReflection.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 LocationEvent() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LocationEvent(LocationEvent other) : this() { deduplicationId_ = other.deduplicationId_; time_ = other.time_ != null ? other.time_.Clone() : null; deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; location_ = other.location_ != null ? other.location_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LocationEvent Clone() { return new LocationEvent(this); } /// Field number for the "deduplication_id" field. public const int DeduplicationIdFieldNumber = 1; private string deduplicationId_ = ""; /// /// Deduplication ID (UUID). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeduplicationId { get { return deduplicationId_; } set { deduplicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "time" field. public const int TimeFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Timestamp time_; /// /// Timestamp. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp Time { get { return time_; } set { time_ = value; } } /// Field number for the "device_info" field. public const int DeviceInfoFieldNumber = 3; private global::Chirpstack.Integration.DeviceInfo deviceInfo_; /// /// Device info. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Integration.DeviceInfo DeviceInfo { get { return deviceInfo_; } set { deviceInfo_ = value; } } /// Field number for the "location" field. public const int LocationFieldNumber = 4; private global::Chirpstack.Common.Location location_; /// /// Location. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Common.Location Location { get { return location_; } set { location_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LocationEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LocationEvent other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (DeduplicationId != other.DeduplicationId) return false; if (!object.Equals(Time, other.Time)) return false; if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; if (!object.Equals(Location, other.Location)) 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 (DeduplicationId.Length != 0) hash ^= DeduplicationId.GetHashCode(); if (time_ != null) hash ^= Time.GetHashCode(); if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); if (location_ != null) hash ^= Location.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 (DeduplicationId.Length != 0) { output.WriteRawTag(10); output.WriteString(DeduplicationId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (location_ != null) { output.WriteRawTag(34); output.WriteMessage(Location); } 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 (DeduplicationId.Length != 0) { output.WriteRawTag(10); output.WriteString(DeduplicationId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (location_ != null) { output.WriteRawTag(34); output.WriteMessage(Location); } 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 (DeduplicationId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeduplicationId); } if (time_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); } if (deviceInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); } if (location_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(LocationEvent other) { if (other == null) { return; } if (other.DeduplicationId.Length != 0) { DeduplicationId = other.DeduplicationId; } if (other.time_ != null) { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } Time.MergeFrom(other.Time); } if (other.deviceInfo_ != null) { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } DeviceInfo.MergeFrom(other.DeviceInfo); } if (other.location_ != null) { if (location_ == null) { Location = new global::Chirpstack.Common.Location(); } Location.MergeFrom(other.Location); } _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: { DeduplicationId = input.ReadString(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 34: { if (location_ == null) { Location = new global::Chirpstack.Common.Location(); } input.ReadMessage(Location); 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: { DeduplicationId = input.ReadString(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 34: { if (location_ == null) { Location = new global::Chirpstack.Common.Location(); } input.ReadMessage(Location); break; } } } } #endif } /// /// IntegrationEvent is the message that can be sent by an integration. /// It allows for sending events which are provided by an external integration /// which are "not native" to ChirpStack. /// public sealed partial class IntegrationEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IntegrationEvent()); 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.Integration.IntegrationReflection.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 IntegrationEvent() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IntegrationEvent(IntegrationEvent other) : this() { deduplicationId_ = other.deduplicationId_; time_ = other.time_ != null ? other.time_.Clone() : null; deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; integrationName_ = other.integrationName_; eventType_ = other.eventType_; object_ = other.object_ != null ? other.object_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IntegrationEvent Clone() { return new IntegrationEvent(this); } /// Field number for the "deduplication_id" field. public const int DeduplicationIdFieldNumber = 1; private string deduplicationId_ = ""; /// /// Deduplication ID (UUID). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeduplicationId { get { return deduplicationId_; } set { deduplicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "time" field. public const int TimeFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Timestamp time_; /// /// Timestamp. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp Time { get { return time_; } set { time_ = value; } } /// Field number for the "device_info" field. public const int DeviceInfoFieldNumber = 3; private global::Chirpstack.Integration.DeviceInfo deviceInfo_; /// /// Device info. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Chirpstack.Integration.DeviceInfo DeviceInfo { get { return deviceInfo_; } set { deviceInfo_ = value; } } /// Field number for the "integration_name" field. public const int IntegrationNameFieldNumber = 4; private string integrationName_ = ""; /// /// Integration name. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string IntegrationName { get { return integrationName_; } set { integrationName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "event_type" field. public const int EventTypeFieldNumber = 5; private string eventType_ = ""; /// /// Event type. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string EventType { get { return eventType_; } set { eventType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "object" field. public const int ObjectFieldNumber = 6; private global::Google.Protobuf.WellKnownTypes.Struct object_; /// /// Struct containing the event object. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Struct Object { get { return object_; } set { object_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as IntegrationEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(IntegrationEvent other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (DeduplicationId != other.DeduplicationId) return false; if (!object.Equals(Time, other.Time)) return false; if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; if (IntegrationName != other.IntegrationName) return false; if (EventType != other.EventType) return false; if (!object.Equals(Object, other.Object)) 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 (DeduplicationId.Length != 0) hash ^= DeduplicationId.GetHashCode(); if (time_ != null) hash ^= Time.GetHashCode(); if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); if (IntegrationName.Length != 0) hash ^= IntegrationName.GetHashCode(); if (EventType.Length != 0) hash ^= EventType.GetHashCode(); if (object_ != null) hash ^= Object.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 (DeduplicationId.Length != 0) { output.WriteRawTag(10); output.WriteString(DeduplicationId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (IntegrationName.Length != 0) { output.WriteRawTag(34); output.WriteString(IntegrationName); } if (EventType.Length != 0) { output.WriteRawTag(42); output.WriteString(EventType); } if (object_ != null) { output.WriteRawTag(50); output.WriteMessage(Object); } 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 (DeduplicationId.Length != 0) { output.WriteRawTag(10); output.WriteString(DeduplicationId); } if (time_ != null) { output.WriteRawTag(18); output.WriteMessage(Time); } if (deviceInfo_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInfo); } if (IntegrationName.Length != 0) { output.WriteRawTag(34); output.WriteString(IntegrationName); } if (EventType.Length != 0) { output.WriteRawTag(42); output.WriteString(EventType); } if (object_ != null) { output.WriteRawTag(50); output.WriteMessage(Object); } 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 (DeduplicationId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeduplicationId); } if (time_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); } if (deviceInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); } if (IntegrationName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(IntegrationName); } if (EventType.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(EventType); } if (object_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Object); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(IntegrationEvent other) { if (other == null) { return; } if (other.DeduplicationId.Length != 0) { DeduplicationId = other.DeduplicationId; } if (other.time_ != null) { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } Time.MergeFrom(other.Time); } if (other.deviceInfo_ != null) { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } DeviceInfo.MergeFrom(other.DeviceInfo); } if (other.IntegrationName.Length != 0) { IntegrationName = other.IntegrationName; } if (other.EventType.Length != 0) { EventType = other.EventType; } if (other.object_ != null) { if (object_ == null) { Object = new global::Google.Protobuf.WellKnownTypes.Struct(); } Object.MergeFrom(other.Object); } _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: { DeduplicationId = input.ReadString(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 34: { IntegrationName = input.ReadString(); break; } case 42: { EventType = input.ReadString(); break; } case 50: { if (object_ == null) { Object = new global::Google.Protobuf.WellKnownTypes.Struct(); } input.ReadMessage(Object); 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: { DeduplicationId = input.ReadString(); break; } case 18: { if (time_ == null) { Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Time); break; } case 26: { if (deviceInfo_ == null) { DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); } input.ReadMessage(DeviceInfo); break; } case 34: { IntegrationName = input.ReadString(); break; } case 42: { EventType = input.ReadString(); break; } case 50: { if (object_ == null) { Object = new global::Google.Protobuf.WellKnownTypes.Struct(); } input.ReadMessage(Object); break; } } } } #endif } /// /// DownlinkCommand is the command to enqueue a downlink payload for the given /// device. /// public sealed partial class DownlinkCommand : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkCommand()); 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.Integration.IntegrationReflection.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 DownlinkCommand() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DownlinkCommand(DownlinkCommand other) : this() { id_ = other.id_; devEui_ = other.devEui_; confirmed_ = other.confirmed_; fPort_ = other.fPort_; data_ = other.data_; object_ = other.object_ != null ? other.object_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DownlinkCommand Clone() { return new DownlinkCommand(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private string id_ = ""; /// /// ID (UUID). /// If left blank, a random UUID will be generated. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { get { return id_; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "dev_eui" field. public const int DevEuiFieldNumber = 2; private string devEui_ = ""; /// /// Device EUI (EUI64). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DevEui { get { return devEui_; } set { devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "confirmed" field. public const int ConfirmedFieldNumber = 3; private bool confirmed_; /// /// Confirmed. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Confirmed { get { return confirmed_; } set { confirmed_ = value; } } /// Field number for the "f_port" field. public const int FPortFieldNumber = 4; private uint fPort_; /// /// FPort (must be > 0). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FPort { get { return fPort_; } set { fPort_ = value; } } /// Field number for the "data" field. public const int DataFieldNumber = 5; private pb::ByteString data_ = pb::ByteString.Empty; /// /// Data. /// Or use the json_object field when a codec has been configured. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString Data { get { return data_; } set { data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "object" field. public const int ObjectFieldNumber = 6; private global::Google.Protobuf.WellKnownTypes.Struct object_; /// /// Only use this when a codec has been configured that can encode this /// object to bytes. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Struct Object { get { return object_; } set { object_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DownlinkCommand); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DownlinkCommand other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (DevEui != other.DevEui) return false; if (Confirmed != other.Confirmed) return false; if (FPort != other.FPort) return false; if (Data != other.Data) return false; if (!object.Equals(Object, other.Object)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); if (Confirmed != false) hash ^= Confirmed.GetHashCode(); if (FPort != 0) hash ^= FPort.GetHashCode(); if (Data.Length != 0) hash ^= Data.GetHashCode(); if (object_ != null) hash ^= Object.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (DevEui.Length != 0) { output.WriteRawTag(18); output.WriteString(DevEui); } if (Confirmed != false) { output.WriteRawTag(24); output.WriteBool(Confirmed); } if (FPort != 0) { output.WriteRawTag(32); output.WriteUInt32(FPort); } if (Data.Length != 0) { output.WriteRawTag(42); output.WriteBytes(Data); } if (object_ != null) { output.WriteRawTag(50); output.WriteMessage(Object); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (DevEui.Length != 0) { output.WriteRawTag(18); output.WriteString(DevEui); } if (Confirmed != false) { output.WriteRawTag(24); output.WriteBool(Confirmed); } if (FPort != 0) { output.WriteRawTag(32); output.WriteUInt32(FPort); } if (Data.Length != 0) { output.WriteRawTag(42); output.WriteBytes(Data); } if (object_ != null) { output.WriteRawTag(50); output.WriteMessage(Object); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } if (DevEui.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); } if (Confirmed != false) { size += 1 + 1; } if (FPort != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FPort); } if (Data.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); } if (object_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Object); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DownlinkCommand other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.DevEui.Length != 0) { DevEui = other.DevEui; } if (other.Confirmed != false) { Confirmed = other.Confirmed; } if (other.FPort != 0) { FPort = other.FPort; } if (other.Data.Length != 0) { Data = other.Data; } if (other.object_ != null) { if (object_ == null) { Object = new global::Google.Protobuf.WellKnownTypes.Struct(); } Object.MergeFrom(other.Object); } _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: { Id = input.ReadString(); break; } case 18: { DevEui = input.ReadString(); break; } case 24: { Confirmed = input.ReadBool(); break; } case 32: { FPort = input.ReadUInt32(); break; } case 42: { Data = input.ReadBytes(); break; } case 50: { if (object_ == null) { Object = new global::Google.Protobuf.WellKnownTypes.Struct(); } input.ReadMessage(Object); 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: { Id = input.ReadString(); break; } case 18: { DevEui = input.ReadString(); break; } case 24: { Confirmed = input.ReadBool(); break; } case 32: { FPort = input.ReadUInt32(); break; } case 42: { Data = input.ReadBytes(); break; } case 50: { if (object_ == null) { Object = new global::Google.Protobuf.WellKnownTypes.Struct(); } input.ReadMessage(Object); break; } } } } #endif } #endregion } #endregion Designer generated code