From 154c4cde384a18185edc8a1cc2791a16f0789cee Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Thu, 9 Feb 2023 15:29:40 +0000 Subject: [PATCH] Commit generated C# API code. --- api/csharp/Chirpstack/api/Application.cs | 17979 ++++++++++++++++ api/csharp/Chirpstack/api/ApplicationGrpc.cs | 3534 +++ api/csharp/Chirpstack/api/Device.cs | 9583 ++++++++ api/csharp/Chirpstack/api/DeviceGrpc.cs | 1516 ++ api/csharp/Chirpstack/api/DeviceProfile.cs | 4543 ++++ .../Chirpstack/api/DeviceProfileGrpc.cs | 558 + .../Chirpstack/api/DeviceProfileTemplate.cs | 3609 ++++ .../api/DeviceProfileTemplateGrpc.cs | 484 + api/csharp/Chirpstack/api/FrameLog.cs | 1067 + api/csharp/Chirpstack/api/Gateway.cs | 4227 ++++ api/csharp/Chirpstack/api/GatewayGrpc.cs | 632 + api/csharp/Chirpstack/api/Internal.cs | 8018 +++++++ api/csharp/Chirpstack/api/InternalGrpc.cs | 1149 + api/csharp/Chirpstack/api/MulticastGroup.cs | 5270 +++++ .../Chirpstack/api/MulticastGroupGrpc.cs | 994 + api/csharp/Chirpstack/api/RequestLog.cs | 310 + api/csharp/Chirpstack/api/Tenant.cs | 5413 +++++ api/csharp/Chirpstack/api/TenantGrpc.cs | 855 + api/csharp/Chirpstack/api/User.cs | 3198 +++ api/csharp/Chirpstack/api/UserGrpc.cs | 558 + api/csharp/Chirpstack/common/Common.cs | 1365 ++ .../Chirpstack/google/api/Annotations.cs | 52 + api/csharp/Chirpstack/google/api/Http.cs | 1411 ++ api/csharp/Chirpstack/gw/Gw.cs | 12325 +++++++++++ .../Chirpstack/integration/Integration.cs | 4617 ++++ api/csharp/Chirpstack/meta/Meta.cs | 968 + 26 files changed, 94235 insertions(+) create mode 100644 api/csharp/Chirpstack/api/Application.cs create mode 100644 api/csharp/Chirpstack/api/ApplicationGrpc.cs create mode 100644 api/csharp/Chirpstack/api/Device.cs create mode 100644 api/csharp/Chirpstack/api/DeviceGrpc.cs create mode 100644 api/csharp/Chirpstack/api/DeviceProfile.cs create mode 100644 api/csharp/Chirpstack/api/DeviceProfileGrpc.cs create mode 100644 api/csharp/Chirpstack/api/DeviceProfileTemplate.cs create mode 100644 api/csharp/Chirpstack/api/DeviceProfileTemplateGrpc.cs create mode 100644 api/csharp/Chirpstack/api/FrameLog.cs create mode 100644 api/csharp/Chirpstack/api/Gateway.cs create mode 100644 api/csharp/Chirpstack/api/GatewayGrpc.cs create mode 100644 api/csharp/Chirpstack/api/Internal.cs create mode 100644 api/csharp/Chirpstack/api/InternalGrpc.cs create mode 100644 api/csharp/Chirpstack/api/MulticastGroup.cs create mode 100644 api/csharp/Chirpstack/api/MulticastGroupGrpc.cs create mode 100644 api/csharp/Chirpstack/api/RequestLog.cs create mode 100644 api/csharp/Chirpstack/api/Tenant.cs create mode 100644 api/csharp/Chirpstack/api/TenantGrpc.cs create mode 100644 api/csharp/Chirpstack/api/User.cs create mode 100644 api/csharp/Chirpstack/api/UserGrpc.cs create mode 100644 api/csharp/Chirpstack/common/Common.cs create mode 100644 api/csharp/Chirpstack/google/api/Annotations.cs create mode 100644 api/csharp/Chirpstack/google/api/Http.cs create mode 100644 api/csharp/Chirpstack/gw/Gw.cs create mode 100644 api/csharp/Chirpstack/integration/Integration.cs create mode 100644 api/csharp/Chirpstack/meta/Meta.cs diff --git a/api/csharp/Chirpstack/api/Application.cs b/api/csharp/Chirpstack/api/Application.cs new file mode 100644 index 00000000..2b388bc7 --- /dev/null +++ b/api/csharp/Chirpstack/api/Application.cs @@ -0,0 +1,17979 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/application.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.Api { + + /// Holder for reflection information generated from api/application.proto + public static partial class ApplicationReflection { + + #region Descriptor + /// File descriptor for api/application.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ApplicationReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVhcGkvYXBwbGljYXRpb24ucHJvdG8SA2FwaRocZ29vZ2xlL2FwaS9hbm5v", + "dGF0aW9ucy5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90", + "bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvIk8KC0FwcGxpY2F0aW9u", + "EgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyAB", + "KAkSEQoJdGVuYW50X2lkGAQgASgJIqQBChNBcHBsaWNhdGlvbkxpc3RJdGVt", + "EgoKAmlkGAEgASgJEi4KCmNyZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJv", + "dG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wEgwKBG5hbWUYBCABKAkSEwoLZGVzY3JpcHRp", + "b24YBSABKAkiQQoYQ3JlYXRlQXBwbGljYXRpb25SZXF1ZXN0EiUKC2FwcGxp", + "Y2F0aW9uGAEgASgLMhAuYXBpLkFwcGxpY2F0aW9uIicKGUNyZWF0ZUFwcGxp", + "Y2F0aW9uUmVzcG9uc2USCgoCaWQYASABKAkiIwoVR2V0QXBwbGljYXRpb25S", + "ZXF1ZXN0EgoKAmlkGAEgASgJIrkBChZHZXRBcHBsaWNhdGlvblJlc3BvbnNl", + "EiUKC2FwcGxpY2F0aW9uGAEgASgLMhAuYXBpLkFwcGxpY2F0aW9uEi4KCmNy", + "ZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4K", + "CnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "EhgKEG1lYXN1cmVtZW50X2tleXMYBCADKAkiQQoYVXBkYXRlQXBwbGljYXRp", + "b25SZXF1ZXN0EiUKC2FwcGxpY2F0aW9uGAEgASgLMhAuYXBpLkFwcGxpY2F0", + "aW9uIiYKGERlbGV0ZUFwcGxpY2F0aW9uUmVxdWVzdBIKCgJpZBgBIAEoCSJb", + "ChdMaXN0QXBwbGljYXRpb25zUmVxdWVzdBINCgVsaW1pdBgBIAEoDRIOCgZv", + "ZmZzZXQYAiABKA0SDgoGc2VhcmNoGAMgASgJEhEKCXRlbmFudF9pZBgEIAEo", + "CSJZChhMaXN0QXBwbGljYXRpb25zUmVzcG9uc2USEwoLdG90YWxfY291bnQY", + "ASABKA0SKAoGcmVzdWx0GAIgAygLMhguYXBpLkFwcGxpY2F0aW9uTGlzdEl0", + "ZW0iMQoXTGlzdEludGVncmF0aW9uc1JlcXVlc3QSFgoOYXBwbGljYXRpb25f", + "aWQYASABKAkiOQoTSW50ZWdyYXRpb25MaXN0SXRlbRIiCgRraW5kGAEgASgO", + "MhQuYXBpLkludGVncmF0aW9uS2luZCJZChhMaXN0SW50ZWdyYXRpb25zUmVz", + "cG9uc2USEwoLdG90YWxfY291bnQYASABKA0SKAoGcmVzdWx0GAIgAygLMhgu", + "YXBpLkludGVncmF0aW9uTGlzdEl0ZW0iygEKD0h0dHBJbnRlZ3JhdGlvbhIW", + "Cg5hcHBsaWNhdGlvbl9pZBgBIAEoCRIyCgdoZWFkZXJzGAIgAygLMiEuYXBp", + "Lkh0dHBJbnRlZ3JhdGlvbi5IZWFkZXJzRW50cnkSHwoIZW5jb2RpbmcYAyAB", + "KA4yDS5hcGkuRW5jb2RpbmcSGgoSZXZlbnRfZW5kcG9pbnRfdXJsGAQgASgJ", + "Gi4KDEhlYWRlcnNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6", + "AjgBIkkKHENyZWF0ZUh0dHBJbnRlZ3JhdGlvblJlcXVlc3QSKQoLaW50ZWdy", + "YXRpb24YASABKAsyFC5hcGkuSHR0cEludGVncmF0aW9uIjMKGUdldEh0dHBJ", + "bnRlZ3JhdGlvblJlcXVlc3QSFgoOYXBwbGljYXRpb25faWQYASABKAkiRwoa", + "R2V0SHR0cEludGVncmF0aW9uUmVzcG9uc2USKQoLaW50ZWdyYXRpb24YASAB", + "KAsyFC5hcGkuSHR0cEludGVncmF0aW9uIkkKHFVwZGF0ZUh0dHBJbnRlZ3Jh", + "dGlvblJlcXVlc3QSKQoLaW50ZWdyYXRpb24YASABKAsyFC5hcGkuSHR0cElu", + "dGVncmF0aW9uIjYKHERlbGV0ZUh0dHBJbnRlZ3JhdGlvblJlcXVlc3QSFgoO", + "YXBwbGljYXRpb25faWQYASABKAkilQIKE0luZmx1eERiSW50ZWdyYXRpb24S", + "FgoOYXBwbGljYXRpb25faWQYASABKAkSEAoIZW5kcG9pbnQYAiABKAkSCgoC", + "ZGIYAyABKAkSEAoIdXNlcm5hbWUYBCABKAkSEAoIcGFzc3dvcmQYBSABKAkS", + "HQoVcmV0ZW50aW9uX3BvbGljeV9uYW1lGAYgASgJEikKCXByZWNpc2lvbhgH", + "IAEoDjIWLmFwaS5JbmZsdXhEYlByZWNpc2lvbhIlCgd2ZXJzaW9uGAggASgO", + "MhQuYXBpLkluZmx1eERiVmVyc2lvbhINCgV0b2tlbhgJIAEoCRIUCgxvcmdh", + "bml6YXRpb24YCiABKAkSDgoGYnVja2V0GAsgASgJIlEKIENyZWF0ZUluZmx1", + "eERiSW50ZWdyYXRpb25SZXF1ZXN0Ei0KC2ludGVncmF0aW9uGAEgASgLMhgu", + "YXBpLkluZmx1eERiSW50ZWdyYXRpb24iNwodR2V0SW5mbHV4RGJJbnRlZ3Jh", + "dGlvblJlcXVlc3QSFgoOYXBwbGljYXRpb25faWQYASABKAkiTwoeR2V0SW5m", + "bHV4RGJJbnRlZ3JhdGlvblJlc3BvbnNlEi0KC2ludGVncmF0aW9uGAEgASgL", + "MhguYXBpLkluZmx1eERiSW50ZWdyYXRpb24iUQogVXBkYXRlSW5mbHV4RGJJ", + "bnRlZ3JhdGlvblJlcXVlc3QSLQoLaW50ZWdyYXRpb24YASABKAsyGC5hcGku", + "SW5mbHV4RGJJbnRlZ3JhdGlvbiI6CiBEZWxldGVJbmZsdXhEYkludGVncmF0", + "aW9uUmVxdWVzdBIWCg5hcHBsaWNhdGlvbl9pZBgBIAEoCSJAChZUaGluZ3NC", + "b2FyZEludGVncmF0aW9uEhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJEg4KBnNl", + "cnZlchgCIAEoCSJXCiNDcmVhdGVUaGluZ3NCb2FyZEludGVncmF0aW9uUmVx", + "dWVzdBIwCgtpbnRlZ3JhdGlvbhgBIAEoCzIbLmFwaS5UaGluZ3NCb2FyZElu", + "dGVncmF0aW9uIjoKIEdldFRoaW5nc0JvYXJkSW50ZWdyYXRpb25SZXF1ZXN0", + "EhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJIlUKIUdldFRoaW5nc0JvYXJkSW50", + "ZWdyYXRpb25SZXNwb25zZRIwCgtpbnRlZ3JhdGlvbhgBIAEoCzIbLmFwaS5U", + "aGluZ3NCb2FyZEludGVncmF0aW9uIlcKI1VwZGF0ZVRoaW5nc0JvYXJkSW50", + "ZWdyYXRpb25SZXF1ZXN0EjAKC2ludGVncmF0aW9uGAEgASgLMhsuYXBpLlRo", + "aW5nc0JvYXJkSW50ZWdyYXRpb24iPQojRGVsZXRlVGhpbmdzQm9hcmRJbnRl", + "Z3JhdGlvblJlcXVlc3QSFgoOYXBwbGljYXRpb25faWQYASABKAkiQAoUTXlE", + "ZXZpY2VzSW50ZWdyYXRpb24SFgoOYXBwbGljYXRpb25faWQYASABKAkSEAoI", + "ZW5kcG9pbnQYAiABKAkiUwohQ3JlYXRlTXlEZXZpY2VzSW50ZWdyYXRpb25S", + "ZXF1ZXN0Ei4KC2ludGVncmF0aW9uGAEgASgLMhkuYXBpLk15RGV2aWNlc0lu", + "dGVncmF0aW9uIjgKHkdldE15RGV2aWNlc0ludGVncmF0aW9uUmVxdWVzdBIW", + "Cg5hcHBsaWNhdGlvbl9pZBgBIAEoCSJRCh9HZXRNeURldmljZXNJbnRlZ3Jh", + "dGlvblJlc3BvbnNlEi4KC2ludGVncmF0aW9uGAEgASgLMhkuYXBpLk15RGV2", + "aWNlc0ludGVncmF0aW9uIlMKIVVwZGF0ZU15RGV2aWNlc0ludGVncmF0aW9u", + "UmVxdWVzdBIuCgtpbnRlZ3JhdGlvbhgBIAEoCzIZLmFwaS5NeURldmljZXNJ", + "bnRlZ3JhdGlvbiI7CiFEZWxldGVNeURldmljZXNJbnRlZ3JhdGlvblJlcXVl", + "c3QSFgoOYXBwbGljYXRpb25faWQYASABKAkiegoUTG9yYUNsb3VkSW50ZWdy", + "YXRpb24SFgoOYXBwbGljYXRpb25faWQYASABKAkSSgoabW9kZW1fZ2VvbG9j", + "YXRpb25fc2VydmljZXMYAiABKAsyJi5hcGkuTG9yYUNsb3VkTW9kZW1HZW9s", + "b2NhdGlvblNlcnZpY2VzIsADCiFMb3JhQ2xvdWRNb2RlbUdlb2xvY2F0aW9u", + "U2VydmljZXMSDQoFdG9rZW4YASABKAkSFQoNbW9kZW1fZW5hYmxlZBgCIAEo", + "CBISCgptb2RlbV9wb3J0GAMgASgNEhEKCWduc3NfcG9ydBgEIAEoDRIYChBn", + "bnNzX3VzZV9yeF90aW1lGAUgASgIEhEKCXBhcnNlX3RsdhgGIAEoCBIeChZn", + "ZW9sb2NhdGlvbl9idWZmZXJfdHRsGAcgASgNEiMKG2dlb2xvY2F0aW9uX21p", + "bl9idWZmZXJfc2l6ZRgIIAEoDRIYChBnZW9sb2NhdGlvbl90ZG9hGAkgASgI", + "EhgKEGdlb2xvY2F0aW9uX3Jzc2kYCiABKAgSGAoQZ2VvbG9jYXRpb25fZ25z", + "cxgLIAEoCBImCh5nZW9sb2NhdGlvbl9nbnNzX3BheWxvYWRfZmllbGQYDCAB", + "KAkSJAocZ2VvbG9jYXRpb25fZ25zc191c2VfcnhfdGltZRgNIAEoCBIYChBn", + "ZW9sb2NhdGlvbl93aWZpGA4gASgIEiYKHmdlb2xvY2F0aW9uX3dpZmlfcGF5", + "bG9hZF9maWVsZBgPIAEoCSJTCiFDcmVhdGVMb3JhQ2xvdWRJbnRlZ3JhdGlv", + "blJlcXVlc3QSLgoLaW50ZWdyYXRpb24YASABKAsyGS5hcGkuTG9yYUNsb3Vk", + "SW50ZWdyYXRpb24iOAoeR2V0TG9yYUNsb3VkSW50ZWdyYXRpb25SZXF1ZXN0", + "EhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJIlEKH0dldExvcmFDbG91ZEludGVn", + "cmF0aW9uUmVzcG9uc2USLgoLaW50ZWdyYXRpb24YASABKAsyGS5hcGkuTG9y", + "YUNsb3VkSW50ZWdyYXRpb24iUwohVXBkYXRlTG9yYUNsb3VkSW50ZWdyYXRp", + "b25SZXF1ZXN0Ei4KC2ludGVncmF0aW9uGAEgASgLMhkuYXBpLkxvcmFDbG91", + "ZEludGVncmF0aW9uIjsKIURlbGV0ZUxvcmFDbG91ZEludGVncmF0aW9uUmVx", + "dWVzdBIWCg5hcHBsaWNhdGlvbl9pZBgBIAEoCSKRAQoUR2NwUHViU3ViSW50", + "ZWdyYXRpb24SFgoOYXBwbGljYXRpb25faWQYASABKAkSHwoIZW5jb2RpbmcY", + "AiABKA4yDS5hcGkuRW5jb2RpbmcSGAoQY3JlZGVudGlhbHNfZmlsZRgDIAEo", + "CRISCgpwcm9qZWN0X2lkGAQgASgJEhIKCnRvcGljX25hbWUYBSABKAkiUwoh", + "Q3JlYXRlR2NwUHViU3ViSW50ZWdyYXRpb25SZXF1ZXN0Ei4KC2ludGVncmF0", + "aW9uGAEgASgLMhkuYXBpLkdjcFB1YlN1YkludGVncmF0aW9uIjgKHkdldEdj", + "cFB1YlN1YkludGVncmF0aW9uUmVxdWVzdBIWCg5hcHBsaWNhdGlvbl9pZBgB", + "IAEoCSJRCh9HZXRHY3BQdWJTdWJJbnRlZ3JhdGlvblJlc3BvbnNlEi4KC2lu", + "dGVncmF0aW9uGAEgASgLMhkuYXBpLkdjcFB1YlN1YkludGVncmF0aW9uIlMK", + "IVVwZGF0ZUdjcFB1YlN1YkludGVncmF0aW9uUmVxdWVzdBIuCgtpbnRlZ3Jh", + "dGlvbhgBIAEoCzIZLmFwaS5HY3BQdWJTdWJJbnRlZ3JhdGlvbiI7CiFEZWxl", + "dGVHY3BQdWJTdWJJbnRlZ3JhdGlvblJlcXVlc3QSFgoOYXBwbGljYXRpb25f", + "aWQYASABKAkioQEKEUF3c1Nuc0ludGVncmF0aW9uEhYKDmFwcGxpY2F0aW9u", + "X2lkGAEgASgJEh8KCGVuY29kaW5nGAIgASgOMg0uYXBpLkVuY29kaW5nEg4K", + "BnJlZ2lvbhgDIAEoCRIVCg1hY2Nlc3Nfa2V5X2lkGAQgASgJEhkKEXNlY3Jl", + "dF9hY2Nlc3Nfa2V5GAUgASgJEhEKCXRvcGljX2FybhgGIAEoCSJNCh5DcmVh", + "dGVBd3NTbnNJbnRlZ3JhdGlvblJlcXVlc3QSKwoLaW50ZWdyYXRpb24YASAB", + "KAsyFi5hcGkuQXdzU25zSW50ZWdyYXRpb24iNQobR2V0QXdzU25zSW50ZWdy", + "YXRpb25SZXF1ZXN0EhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJIksKHEdldEF3", + "c1Nuc0ludGVncmF0aW9uUmVzcG9uc2USKwoLaW50ZWdyYXRpb24YASABKAsy", + "Fi5hcGkuQXdzU25zSW50ZWdyYXRpb24iTQoeVXBkYXRlQXdzU25zSW50ZWdy", + "YXRpb25SZXF1ZXN0EisKC2ludGVncmF0aW9uGAEgASgLMhYuYXBpLkF3c1Nu", + "c0ludGVncmF0aW9uIjgKHkRlbGV0ZUF3c1Nuc0ludGVncmF0aW9uUmVxdWVz", + "dBIWCg5hcHBsaWNhdGlvbl9pZBgBIAEoCSKGAQoaQXp1cmVTZXJ2aWNlQnVz", + "SW50ZWdyYXRpb24SFgoOYXBwbGljYXRpb25faWQYASABKAkSHwoIZW5jb2Rp", + "bmcYAiABKA4yDS5hcGkuRW5jb2RpbmcSGQoRY29ubmVjdGlvbl9zdHJpbmcY", + "AyABKAkSFAoMcHVibGlzaF9uYW1lGAQgASgJIl8KJ0NyZWF0ZUF6dXJlU2Vy", + "dmljZUJ1c0ludGVncmF0aW9uUmVxdWVzdBI0CgtpbnRlZ3JhdGlvbhgBIAEo", + "CzIfLmFwaS5BenVyZVNlcnZpY2VCdXNJbnRlZ3JhdGlvbiI+CiRHZXRBenVy", + "ZVNlcnZpY2VCdXNJbnRlZ3JhdGlvblJlcXVlc3QSFgoOYXBwbGljYXRpb25f", + "aWQYASABKAkiXQolR2V0QXp1cmVTZXJ2aWNlQnVzSW50ZWdyYXRpb25SZXNw", + "b25zZRI0CgtpbnRlZ3JhdGlvbhgBIAEoCzIfLmFwaS5BenVyZVNlcnZpY2VC", + "dXNJbnRlZ3JhdGlvbiJfCidVcGRhdGVBenVyZVNlcnZpY2VCdXNJbnRlZ3Jh", + "dGlvblJlcXVlc3QSNAoLaW50ZWdyYXRpb24YASABKAsyHy5hcGkuQXp1cmVT", + "ZXJ2aWNlQnVzSW50ZWdyYXRpb24iQQonRGVsZXRlQXp1cmVTZXJ2aWNlQnVz", + "SW50ZWdyYXRpb25SZXF1ZXN0EhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJIk8K", + "FlBpbG90VGhpbmdzSW50ZWdyYXRpb24SFgoOYXBwbGljYXRpb25faWQYASAB", + "KAkSDgoGc2VydmVyGAIgASgJEg0KBXRva2VuGAMgASgJIlcKI0NyZWF0ZVBp", + "bG90VGhpbmdzSW50ZWdyYXRpb25SZXF1ZXN0EjAKC2ludGVncmF0aW9uGAEg", + "ASgLMhsuYXBpLlBpbG90VGhpbmdzSW50ZWdyYXRpb24iOgogR2V0UGlsb3RU", + "aGluZ3NJbnRlZ3JhdGlvblJlcXVlc3QSFgoOYXBwbGljYXRpb25faWQYASAB", + "KAkiVQohR2V0UGlsb3RUaGluZ3NJbnRlZ3JhdGlvblJlc3BvbnNlEjAKC2lu", + "dGVncmF0aW9uGAEgASgLMhsuYXBpLlBpbG90VGhpbmdzSW50ZWdyYXRpb24i", + "VwojVXBkYXRlUGlsb3RUaGluZ3NJbnRlZ3JhdGlvblJlcXVlc3QSMAoLaW50", + "ZWdyYXRpb24YASABKAsyGy5hcGkuUGlsb3RUaGluZ3NJbnRlZ3JhdGlvbiI9", + "CiNEZWxldGVQaWxvdFRoaW5nc0ludGVncmF0aW9uUmVxdWVzdBIWCg5hcHBs", + "aWNhdGlvbl9pZBgBIAEoCSJOChBJZnR0dEludGVncmF0aW9uEhYKDmFwcGxp", + "Y2F0aW9uX2lkGAEgASgJEgsKA2tleRgCIAEoCRIVCg11cGxpbmtfdmFsdWVz", + "GAMgAygJIksKHUNyZWF0ZUlmdHR0SW50ZWdyYXRpb25SZXF1ZXN0EioKC2lu", + "dGVncmF0aW9uGAEgASgLMhUuYXBpLklmdHR0SW50ZWdyYXRpb24iNAoaR2V0", + "SWZ0dHRJbnRlZ3JhdGlvblJlcXVlc3QSFgoOYXBwbGljYXRpb25faWQYASAB", + "KAkiSQobR2V0SWZ0dHRJbnRlZ3JhdGlvblJlc3BvbnNlEioKC2ludGVncmF0", + "aW9uGAEgASgLMhUuYXBpLklmdHR0SW50ZWdyYXRpb24iSwodVXBkYXRlSWZ0", + "dHRJbnRlZ3JhdGlvblJlcXVlc3QSKgoLaW50ZWdyYXRpb24YASABKAsyFS5h", + "cGkuSWZ0dHRJbnRlZ3JhdGlvbiI3Ch1EZWxldGVJZnR0dEludGVncmF0aW9u", + "UmVxdWVzdBIWCg5hcHBsaWNhdGlvbl9pZBgBIAEoCSJJCi9HZW5lcmF0ZU1x", + "dHRJbnRlZ3JhdGlvbkNsaWVudENlcnRpZmljYXRlUmVxdWVzdBIWCg5hcHBs", + "aWNhdGlvbl9pZBgBIAEoCSKWAQowR2VuZXJhdGVNcXR0SW50ZWdyYXRpb25D", + "bGllbnRDZXJ0aWZpY2F0ZVJlc3BvbnNlEhAKCHRsc19jZXJ0GAEgASgJEg8K", + "B3Rsc19rZXkYAiABKAkSDwoHY2FfY2VydBgDIAEoCRIuCgpleHBpcmVzX2F0", + "GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCoiCghFbmNvZGlu", + "ZxIICgRKU09OEAASDAoIUFJPVE9CVUYQASq/AQoPSW50ZWdyYXRpb25LaW5k", + "EggKBEhUVFAQABINCglJTkZMVVhfREIQARIQCgxUSElOR1NfQk9BUkQQAhIO", + "CgpNWV9ERVZJQ0VTEAMSDgoKTE9SQV9DTE9VRBAEEg8KC0dDUF9QVUJfU1VC", + "EAUSCwoHQVdTX1NOUxAGEhUKEUFaVVJFX1NFUlZJQ0VfQlVTEAcSEAoMUElM", + "T1RfVEhJTkdTEAgSDwoLTVFUVF9HTE9CQUwQCRIJCgVJRlRUVBAKKj8KEUlu", + "Zmx1eERiUHJlY2lzaW9uEgYKAk5TEAASBQoBVRABEgYKAk1TEAISBQoBUxAD", + "EgUKAU0QBBIFCgFIEAUqMQoPSW5mbHV4RGJWZXJzaW9uEg4KCklORkxVWERC", + "XzEQABIOCgpJTkZMVVhEQl8yEAEyuDwKEkFwcGxpY2F0aW9uU2VydmljZRJl", + "CgZDcmVhdGUSHS5hcGkuQ3JlYXRlQXBwbGljYXRpb25SZXF1ZXN0Gh4uYXBp", + "LkNyZWF0ZUFwcGxpY2F0aW9uUmVzcG9uc2UiHILT5JMCFiIRL2FwaS9hcHBs", + "aWNhdGlvbnM6ASoSXgoDR2V0EhouYXBpLkdldEFwcGxpY2F0aW9uUmVxdWVz", + "dBobLmFwaS5HZXRBcHBsaWNhdGlvblJlc3BvbnNlIh6C0+STAhgSFi9hcGkv", + "YXBwbGljYXRpb25zL3tpZH0SbgoGVXBkYXRlEh0uYXBpLlVwZGF0ZUFwcGxp", + "Y2F0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSItgtPkkwIn", + "GiIvYXBpL2FwcGxpY2F0aW9ucy97YXBwbGljYXRpb24uaWR9OgEqEl8KBkRl", + "bGV0ZRIdLmFwaS5EZWxldGVBcHBsaWNhdGlvblJlcXVlc3QaFi5nb29nbGUu", + "cHJvdG9idWYuRW1wdHkiHoLT5JMCGCoWL2FwaS9hcHBsaWNhdGlvbnMve2lk", + "fRJeCgRMaXN0EhwuYXBpLkxpc3RBcHBsaWNhdGlvbnNSZXF1ZXN0Gh0uYXBp", + "Lkxpc3RBcHBsaWNhdGlvbnNSZXNwb25zZSIZgtPkkwITEhEvYXBpL2FwcGxp", + "Y2F0aW9ucxKIAQoQTGlzdEludGVncmF0aW9ucxIcLmFwaS5MaXN0SW50ZWdy", + "YXRpb25zUmVxdWVzdBodLmFwaS5MaXN0SW50ZWdyYXRpb25zUmVzcG9uc2Ui", + "N4LT5JMCMRIvL2FwaS9hcHBsaWNhdGlvbnMve2FwcGxpY2F0aW9uX2lkfS9p", + "bnRlZ3JhdGlvbnMSnwEKFUNyZWF0ZUh0dHBJbnRlZ3JhdGlvbhIhLmFwaS5D", + "cmVhdGVIdHRwSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVm", + "LkVtcHR5IkuC0+STAkUiQC9hcGkvYXBwbGljYXRpb25zL3tpbnRlZ3JhdGlv", + "bi5hcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2h0dHA6ASoSkwEKEkdl", + "dEh0dHBJbnRlZ3JhdGlvbhIeLmFwaS5HZXRIdHRwSW50ZWdyYXRpb25SZXF1", + "ZXN0Gh8uYXBpLkdldEh0dHBJbnRlZ3JhdGlvblJlc3BvbnNlIjyC0+STAjYS", + "NC9hcGkvYXBwbGljYXRpb25zL3thcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRp", + "b25zL2h0dHASnwEKFVVwZGF0ZUh0dHBJbnRlZ3JhdGlvbhIhLmFwaS5VcGRh", + "dGVIdHRwSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5IkuC0+STAkUaQC9hcGkvYXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5h", + "cHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2h0dHA6ASoSkAEKFURlbGV0", + "ZUh0dHBJbnRlZ3JhdGlvbhIhLmFwaS5EZWxldGVIdHRwSW50ZWdyYXRpb25S", + "ZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IjyC0+STAjYqNC9hcGkv", + "YXBwbGljYXRpb25zL3thcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2h0", + "dHASqwEKGUNyZWF0ZUluZmx1eERiSW50ZWdyYXRpb24SJS5hcGkuQ3JlYXRl", + "SW5mbHV4RGJJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYu", + "RW1wdHkiT4LT5JMCSSJEL2FwaS9hcHBsaWNhdGlvbnMve2ludGVncmF0aW9u", + "LmFwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvaW5mbHV4ZGI6ASoSowEK", + "FkdldEluZmx1eERiSW50ZWdyYXRpb24SIi5hcGkuR2V0SW5mbHV4RGJJbnRl", + "Z3JhdGlvblJlcXVlc3QaIy5hcGkuR2V0SW5mbHV4RGJJbnRlZ3JhdGlvblJl", + "c3BvbnNlIkCC0+STAjoSOC9hcGkvYXBwbGljYXRpb25zL3thcHBsaWNhdGlv", + "bl9pZH0vaW50ZWdyYXRpb25zL2luZmx1eGRiEqsBChlVcGRhdGVJbmZsdXhE", + "YkludGVncmF0aW9uEiUuYXBpLlVwZGF0ZUluZmx1eERiSW50ZWdyYXRpb25S", + "ZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Ik+C0+STAkkaRC9hcGkv", + "YXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBsaWNhdGlvbl9pZH0vaW50", + "ZWdyYXRpb25zL2luZmx1eGRiOgEqEpwBChlEZWxldGVJbmZsdXhEYkludGVn", + "cmF0aW9uEiUuYXBpLkRlbGV0ZUluZmx1eERiSW50ZWdyYXRpb25SZXF1ZXN0", + "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IkCC0+STAjoqOC9hcGkvYXBwbGlj", + "YXRpb25zL3thcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2luZmx1eGRi", + "ErQBChxDcmVhdGVUaGluZ3NCb2FyZEludGVncmF0aW9uEiguYXBpLkNyZWF0", + "ZVRoaW5nc0JvYXJkSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3Rv", + "YnVmLkVtcHR5IlKC0+STAkwiRy9hcGkvYXBwbGljYXRpb25zL3tpbnRlZ3Jh", + "dGlvbi5hcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL3RoaW5nc2JvYXJk", + "OgEqEq8BChlHZXRUaGluZ3NCb2FyZEludGVncmF0aW9uEiUuYXBpLkdldFRo", + "aW5nc0JvYXJkSW50ZWdyYXRpb25SZXF1ZXN0GiYuYXBpLkdldFRoaW5nc0Jv", + "YXJkSW50ZWdyYXRpb25SZXNwb25zZSJDgtPkkwI9EjsvYXBpL2FwcGxpY2F0", + "aW9ucy97YXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy90aGluZ3Nib2Fy", + "ZBK0AQocVXBkYXRlVGhpbmdzQm9hcmRJbnRlZ3JhdGlvbhIoLmFwaS5VcGRh", + "dGVUaGluZ3NCb2FyZEludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSJSgtPkkwJMGkcvYXBpL2FwcGxpY2F0aW9ucy97aW50ZWdy", + "YXRpb24uYXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy90aGluZ3Nib2Fy", + "ZDoBKhKlAQocRGVsZXRlVGhpbmdzQm9hcmRJbnRlZ3JhdGlvbhIoLmFwaS5E", + "ZWxldGVUaGluZ3NCb2FyZEludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5w", + "cm90b2J1Zi5FbXB0eSJDgtPkkwI9KjsvYXBpL2FwcGxpY2F0aW9ucy97YXBw", + "bGljYXRpb25faWR9L2ludGVncmF0aW9ucy90aGluZ3Nib2FyZBKuAQoaQ3Jl", + "YXRlTXlEZXZpY2VzSW50ZWdyYXRpb24SJi5hcGkuQ3JlYXRlTXlEZXZpY2Vz", + "SW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IlCC", + "0+STAkoiRS9hcGkvYXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBsaWNh", + "dGlvbl9pZH0vaW50ZWdyYXRpb25zL215ZGV2aWNlczoBKhKnAQoXR2V0TXlE", + "ZXZpY2VzSW50ZWdyYXRpb24SIy5hcGkuR2V0TXlEZXZpY2VzSW50ZWdyYXRp", + "b25SZXF1ZXN0GiQuYXBpLkdldE15RGV2aWNlc0ludGVncmF0aW9uUmVzcG9u", + "c2UiQYLT5JMCOxI5L2FwaS9hcHBsaWNhdGlvbnMve2FwcGxpY2F0aW9uX2lk", + "fS9pbnRlZ3JhdGlvbnMvbXlkZXZpY2VzEq4BChpVcGRhdGVNeURldmljZXNJ", + "bnRlZ3JhdGlvbhImLmFwaS5VcGRhdGVNeURldmljZXNJbnRlZ3JhdGlvblJl", + "cXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiUILT5JMCShpFL2FwaS9h", + "cHBsaWNhdGlvbnMve2ludGVncmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRl", + "Z3JhdGlvbnMvbXlkZXZpY2VzOgEqEp8BChpEZWxldGVNeURldmljZXNJbnRl", + "Z3JhdGlvbhImLmFwaS5EZWxldGVNeURldmljZXNJbnRlZ3JhdGlvblJlcXVl", + "c3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiQYLT5JMCOyo5L2FwaS9hcHBs", + "aWNhdGlvbnMve2FwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvbXlkZXZp", + "Y2VzEq4BChpDcmVhdGVMb3JhQ2xvdWRJbnRlZ3JhdGlvbhImLmFwaS5DcmVh", + "dGVMb3JhQ2xvdWRJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9i", + "dWYuRW1wdHkiUILT5JMCSiJFL2FwaS9hcHBsaWNhdGlvbnMve2ludGVncmF0", + "aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvbG9yYWNsb3VkOgEq", + "EqcBChdHZXRMb3JhQ2xvdWRJbnRlZ3JhdGlvbhIjLmFwaS5HZXRMb3JhQ2xv", + "dWRJbnRlZ3JhdGlvblJlcXVlc3QaJC5hcGkuR2V0TG9yYUNsb3VkSW50ZWdy", + "YXRpb25SZXNwb25zZSJBgtPkkwI7EjkvYXBpL2FwcGxpY2F0aW9ucy97YXBw", + "bGljYXRpb25faWR9L2ludGVncmF0aW9ucy9sb3JhY2xvdWQSrgEKGlVwZGF0", + "ZUxvcmFDbG91ZEludGVncmF0aW9uEiYuYXBpLlVwZGF0ZUxvcmFDbG91ZElu", + "dGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJQgtPk", + "kwJKGkUvYXBpL2FwcGxpY2F0aW9ucy97aW50ZWdyYXRpb24uYXBwbGljYXRp", + "b25faWR9L2ludGVncmF0aW9ucy9sb3JhY2xvdWQ6ASoSnwEKGkRlbGV0ZUxv", + "cmFDbG91ZEludGVncmF0aW9uEiYuYXBpLkRlbGV0ZUxvcmFDbG91ZEludGVn", + "cmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJBgtPkkwI7", + "KjkvYXBpL2FwcGxpY2F0aW9ucy97YXBwbGljYXRpb25faWR9L2ludGVncmF0", + "aW9ucy9sb3JhY2xvdWQSsAEKGkNyZWF0ZUdjcFB1YlN1YkludGVncmF0aW9u", + "EiYuYXBpLkNyZWF0ZUdjcFB1YlN1YkludGVncmF0aW9uUmVxdWVzdBoWLmdv", + "b2dsZS5wcm90b2J1Zi5FbXB0eSJSgtPkkwJMIkcvYXBpL2FwcGxpY2F0aW9u", + "cy97aW50ZWdyYXRpb24uYXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9n", + "Y3AtcHViLXN1YjoBKhKpAQoXR2V0R2NwUHViU3ViSW50ZWdyYXRpb24SIy5h", + "cGkuR2V0R2NwUHViU3ViSW50ZWdyYXRpb25SZXF1ZXN0GiQuYXBpLkdldEdj", + "cFB1YlN1YkludGVncmF0aW9uUmVzcG9uc2UiQ4LT5JMCPRI7L2FwaS9hcHBs", + "aWNhdGlvbnMve2FwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvZ2NwLXB1", + "Yi1zdWISsAEKGlVwZGF0ZUdjcFB1YlN1YkludGVncmF0aW9uEiYuYXBpLlVw", + "ZGF0ZUdjcFB1YlN1YkludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSJSgtPkkwJMGkcvYXBpL2FwcGxpY2F0aW9ucy97aW50ZWdy", + "YXRpb24uYXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9nY3AtcHViLXN1", + "YjoBKhKhAQoaRGVsZXRlR2NwUHViU3ViSW50ZWdyYXRpb24SJi5hcGkuRGVs", + "ZXRlR2NwUHViU3ViSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3Rv", + "YnVmLkVtcHR5IkOC0+STAj0qOy9hcGkvYXBwbGljYXRpb25zL3thcHBsaWNh", + "dGlvbl9pZH0vaW50ZWdyYXRpb25zL2djcC1wdWItc3ViEqYBChdDcmVhdGVB", + "d3NTbnNJbnRlZ3JhdGlvbhIjLmFwaS5DcmVhdGVBd3NTbnNJbnRlZ3JhdGlv", + "blJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiToLT5JMCSCJDL2Fw", + "aS9hcHBsaWNhdGlvbnMve2ludGVncmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9p", + "bnRlZ3JhdGlvbnMvYXdzLXNuczoBKhKcAQoUR2V0QXdzU25zSW50ZWdyYXRp", + "b24SIC5hcGkuR2V0QXdzU25zSW50ZWdyYXRpb25SZXF1ZXN0GiEuYXBpLkdl", + "dEF3c1Nuc0ludGVncmF0aW9uUmVzcG9uc2UiP4LT5JMCORI3L2FwaS9hcHBs", + "aWNhdGlvbnMve2FwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvYXdzLXNu", + "cxKmAQoXVXBkYXRlQXdzU25zSW50ZWdyYXRpb24SIy5hcGkuVXBkYXRlQXdz", + "U25zSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", + "Ik6C0+STAkgaQy9hcGkvYXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBs", + "aWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2F3cy1zbnM6ASoSlwEKF0RlbGV0", + "ZUF3c1Nuc0ludGVncmF0aW9uEiMuYXBpLkRlbGV0ZUF3c1Nuc0ludGVncmF0", + "aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSI/gtPkkwI5Kjcv", + "YXBpL2FwcGxpY2F0aW9ucy97YXBwbGljYXRpb25faWR9L2ludGVncmF0aW9u", + "cy9hd3Mtc25zEsIBCiBDcmVhdGVBenVyZVNlcnZpY2VCdXNJbnRlZ3JhdGlv", + "bhIsLmFwaS5DcmVhdGVBenVyZVNlcnZpY2VCdXNJbnRlZ3JhdGlvblJlcXVl", + "c3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiWILT5JMCUiJNL2FwaS9hcHBs", + "aWNhdGlvbnMve2ludGVncmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRlZ3Jh", + "dGlvbnMvYXp1cmUtc2VydmljZS1idXM6ASoSwQEKHUdldEF6dXJlU2Vydmlj", + "ZUJ1c0ludGVncmF0aW9uEikuYXBpLkdldEF6dXJlU2VydmljZUJ1c0ludGVn", + "cmF0aW9uUmVxdWVzdBoqLmFwaS5HZXRBenVyZVNlcnZpY2VCdXNJbnRlZ3Jh", + "dGlvblJlc3BvbnNlIkmC0+STAkMSQS9hcGkvYXBwbGljYXRpb25zL3thcHBs", + "aWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2F6dXJlLXNlcnZpY2UtYnVzEsIB", + "CiBVcGRhdGVBenVyZVNlcnZpY2VCdXNJbnRlZ3JhdGlvbhIsLmFwaS5VcGRh", + "dGVBenVyZVNlcnZpY2VCdXNJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29nbGUu", + "cHJvdG9idWYuRW1wdHkiWILT5JMCUhpNL2FwaS9hcHBsaWNhdGlvbnMve2lu", + "dGVncmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvYXp1cmUt", + "c2VydmljZS1idXM6ASoSswEKIERlbGV0ZUF6dXJlU2VydmljZUJ1c0ludGVn", + "cmF0aW9uEiwuYXBpLkRlbGV0ZUF6dXJlU2VydmljZUJ1c0ludGVncmF0aW9u", + "UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJJgtPkkwJDKkEvYXBp", + "L2FwcGxpY2F0aW9ucy97YXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9h", + "enVyZS1zZXJ2aWNlLWJ1cxK1AQocQ3JlYXRlUGlsb3RUaGluZ3NJbnRlZ3Jh", + "dGlvbhIoLmFwaS5DcmVhdGVQaWxvdFRoaW5nc0ludGVncmF0aW9uUmVxdWVz", + "dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJTgtPkkwJNIkgvYXBpL2FwcGxp", + "Y2F0aW9ucy97aW50ZWdyYXRpb24uYXBwbGljYXRpb25faWR9L2ludGVncmF0", + "aW9ucy9waWxvdC10aGluZ3M6ASoSsAEKGUdldFBpbG90VGhpbmdzSW50ZWdy", + "YXRpb24SJS5hcGkuR2V0UGlsb3RUaGluZ3NJbnRlZ3JhdGlvblJlcXVlc3Qa", + "Ji5hcGkuR2V0UGlsb3RUaGluZ3NJbnRlZ3JhdGlvblJlc3BvbnNlIkSC0+ST", + "Aj4SPC9hcGkvYXBwbGljYXRpb25zL3thcHBsaWNhdGlvbl9pZH0vaW50ZWdy", + "YXRpb25zL3BpbG90LXRoaW5ncxK1AQocVXBkYXRlUGlsb3RUaGluZ3NJbnRl", + "Z3JhdGlvbhIoLmFwaS5VcGRhdGVQaWxvdFRoaW5nc0ludGVncmF0aW9uUmVx", + "dWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJTgtPkkwJNGkgvYXBpL2Fw", + "cGxpY2F0aW9ucy97aW50ZWdyYXRpb24uYXBwbGljYXRpb25faWR9L2ludGVn", + "cmF0aW9ucy9waWxvdC10aGluZ3M6ASoSpgEKHERlbGV0ZVBpbG90VGhpbmdz", + "SW50ZWdyYXRpb24SKC5hcGkuRGVsZXRlUGlsb3RUaGluZ3NJbnRlZ3JhdGlv", + "blJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiRILT5JMCPio8L2Fw", + "aS9hcHBsaWNhdGlvbnMve2FwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMv", + "cGlsb3QtdGhpbmdzEqIBChZDcmVhdGVJZnR0dEludGVncmF0aW9uEiIuYXBp", + "LkNyZWF0ZUlmdHR0SW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3Rv", + "YnVmLkVtcHR5IkyC0+STAkYiQS9hcGkvYXBwbGljYXRpb25zL3tpbnRlZ3Jh", + "dGlvbi5hcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2lmdHR0OgEqEpcB", + "ChNHZXRJZnR0dEludGVncmF0aW9uEh8uYXBpLkdldElmdHR0SW50ZWdyYXRp", + "b25SZXF1ZXN0GiAuYXBpLkdldElmdHR0SW50ZWdyYXRpb25SZXNwb25zZSI9", + "gtPkkwI3EjUvYXBpL2FwcGxpY2F0aW9ucy97YXBwbGljYXRpb25faWR9L2lu", + "dGVncmF0aW9ucy9pZnR0dBKiAQoWVXBkYXRlSWZ0dHRJbnRlZ3JhdGlvbhIi", + "LmFwaS5VcGRhdGVJZnR0dEludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5w", + "cm90b2J1Zi5FbXB0eSJMgtPkkwJGGkEvYXBpL2FwcGxpY2F0aW9ucy97aW50", + "ZWdyYXRpb24uYXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9pZnR0dDoB", + "KhKTAQoWRGVsZXRlSWZ0dHRJbnRlZ3JhdGlvbhIiLmFwaS5EZWxldGVJZnR0", + "dEludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSI9", + "gtPkkwI3KjUvYXBpL2FwcGxpY2F0aW9ucy97YXBwbGljYXRpb25faWR9L2lu", + "dGVncmF0aW9ucy9pZnR0dBLhAQooR2VuZXJhdGVNcXR0SW50ZWdyYXRpb25D", + "bGllbnRDZXJ0aWZpY2F0ZRI0LmFwaS5HZW5lcmF0ZU1xdHRJbnRlZ3JhdGlv", + "bkNsaWVudENlcnRpZmljYXRlUmVxdWVzdBo1LmFwaS5HZW5lcmF0ZU1xdHRJ", + "bnRlZ3JhdGlvbkNsaWVudENlcnRpZmljYXRlUmVzcG9uc2UiSILT5JMCQiJA", + "L2FwaS9hcHBsaWNhdGlvbnMve2FwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlv", + "bnMvbXF0dC9jZXJ0aWZpY2F0ZUJoChFpby5jaGlycHN0YWNrLmFwaUIQQXBw", + "bGljYXRpb25Qcm90b1ABWi5naXRodWIuY29tL2NoaXJwc3RhY2svY2hpcnBz", + "dGFjay9hcGkvZ28vdjQvYXBpqgIOQ2hpcnBzdGFjay5BcGliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Api.Encoding), typeof(global::Chirpstack.Api.IntegrationKind), typeof(global::Chirpstack.Api.InfluxDbPrecision), typeof(global::Chirpstack.Api.InfluxDbVersion), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.Application), global::Chirpstack.Api.Application.Parser, new[]{ "Id", "Name", "Description", "TenantId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ApplicationListItem), global::Chirpstack.Api.ApplicationListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Name", "Description" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateApplicationRequest), global::Chirpstack.Api.CreateApplicationRequest.Parser, new[]{ "Application" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateApplicationResponse), global::Chirpstack.Api.CreateApplicationResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetApplicationRequest), global::Chirpstack.Api.GetApplicationRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetApplicationResponse), global::Chirpstack.Api.GetApplicationResponse.Parser, new[]{ "Application", "CreatedAt", "UpdatedAt", "MeasurementKeys" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateApplicationRequest), global::Chirpstack.Api.UpdateApplicationRequest.Parser, new[]{ "Application" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteApplicationRequest), global::Chirpstack.Api.DeleteApplicationRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListApplicationsRequest), global::Chirpstack.Api.ListApplicationsRequest.Parser, new[]{ "Limit", "Offset", "Search", "TenantId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListApplicationsResponse), global::Chirpstack.Api.ListApplicationsResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListIntegrationsRequest), global::Chirpstack.Api.ListIntegrationsRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.IntegrationListItem), global::Chirpstack.Api.IntegrationListItem.Parser, new[]{ "Kind" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListIntegrationsResponse), global::Chirpstack.Api.ListIntegrationsResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.HttpIntegration), global::Chirpstack.Api.HttpIntegration.Parser, new[]{ "ApplicationId", "Headers", "Encoding", "EventEndpointUrl" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateHttpIntegrationRequest), global::Chirpstack.Api.CreateHttpIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetHttpIntegrationRequest), global::Chirpstack.Api.GetHttpIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetHttpIntegrationResponse), global::Chirpstack.Api.GetHttpIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateHttpIntegrationRequest), global::Chirpstack.Api.UpdateHttpIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteHttpIntegrationRequest), global::Chirpstack.Api.DeleteHttpIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.InfluxDbIntegration), global::Chirpstack.Api.InfluxDbIntegration.Parser, new[]{ "ApplicationId", "Endpoint", "Db", "Username", "Password", "RetentionPolicyName", "Precision", "Version", "Token", "Organization", "Bucket" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateInfluxDbIntegrationRequest), global::Chirpstack.Api.CreateInfluxDbIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetInfluxDbIntegrationRequest), global::Chirpstack.Api.GetInfluxDbIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetInfluxDbIntegrationResponse), global::Chirpstack.Api.GetInfluxDbIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest), global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest), global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ThingsBoardIntegration), global::Chirpstack.Api.ThingsBoardIntegration.Parser, new[]{ "ApplicationId", "Server" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateThingsBoardIntegrationRequest), global::Chirpstack.Api.CreateThingsBoardIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetThingsBoardIntegrationRequest), global::Chirpstack.Api.GetThingsBoardIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetThingsBoardIntegrationResponse), global::Chirpstack.Api.GetThingsBoardIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest), global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest), global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.MyDevicesIntegration), global::Chirpstack.Api.MyDevicesIntegration.Parser, new[]{ "ApplicationId", "Endpoint" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateMyDevicesIntegrationRequest), global::Chirpstack.Api.CreateMyDevicesIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetMyDevicesIntegrationRequest), global::Chirpstack.Api.GetMyDevicesIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetMyDevicesIntegrationResponse), global::Chirpstack.Api.GetMyDevicesIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest), global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest), global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.LoraCloudIntegration), global::Chirpstack.Api.LoraCloudIntegration.Parser, new[]{ "ApplicationId", "ModemGeolocationServices" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.LoraCloudModemGeolocationServices), global::Chirpstack.Api.LoraCloudModemGeolocationServices.Parser, new[]{ "Token", "ModemEnabled", "ModemPort", "GnssPort", "GnssUseRxTime", "ParseTlv", "GeolocationBufferTtl", "GeolocationMinBufferSize", "GeolocationTdoa", "GeolocationRssi", "GeolocationGnss", "GeolocationGnssPayloadField", "GeolocationGnssUseRxTime", "GeolocationWifi", "GeolocationWifiPayloadField" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateLoraCloudIntegrationRequest), global::Chirpstack.Api.CreateLoraCloudIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetLoraCloudIntegrationRequest), global::Chirpstack.Api.GetLoraCloudIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetLoraCloudIntegrationResponse), global::Chirpstack.Api.GetLoraCloudIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest), global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest), global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GcpPubSubIntegration), global::Chirpstack.Api.GcpPubSubIntegration.Parser, new[]{ "ApplicationId", "Encoding", "CredentialsFile", "ProjectId", "TopicName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest), global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGcpPubSubIntegrationRequest), global::Chirpstack.Api.GetGcpPubSubIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGcpPubSubIntegrationResponse), global::Chirpstack.Api.GetGcpPubSubIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest), global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest), global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AwsSnsIntegration), global::Chirpstack.Api.AwsSnsIntegration.Parser, new[]{ "ApplicationId", "Encoding", "Region", "AccessKeyId", "SecretAccessKey", "TopicArn" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateAwsSnsIntegrationRequest), global::Chirpstack.Api.CreateAwsSnsIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetAwsSnsIntegrationRequest), global::Chirpstack.Api.GetAwsSnsIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetAwsSnsIntegrationResponse), global::Chirpstack.Api.GetAwsSnsIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest), global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest), global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AzureServiceBusIntegration), global::Chirpstack.Api.AzureServiceBusIntegration.Parser, new[]{ "ApplicationId", "Encoding", "ConnectionString", "PublishName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest), global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest), global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetAzureServiceBusIntegrationResponse), global::Chirpstack.Api.GetAzureServiceBusIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest), global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest), global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.PilotThingsIntegration), global::Chirpstack.Api.PilotThingsIntegration.Parser, new[]{ "ApplicationId", "Server", "Token" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreatePilotThingsIntegrationRequest), global::Chirpstack.Api.CreatePilotThingsIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetPilotThingsIntegrationRequest), global::Chirpstack.Api.GetPilotThingsIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetPilotThingsIntegrationResponse), global::Chirpstack.Api.GetPilotThingsIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest), global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeletePilotThingsIntegrationRequest), global::Chirpstack.Api.DeletePilotThingsIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.IftttIntegration), global::Chirpstack.Api.IftttIntegration.Parser, new[]{ "ApplicationId", "Key", "UplinkValues" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateIftttIntegrationRequest), global::Chirpstack.Api.CreateIftttIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetIftttIntegrationRequest), global::Chirpstack.Api.GetIftttIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetIftttIntegrationResponse), global::Chirpstack.Api.GetIftttIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateIftttIntegrationRequest), global::Chirpstack.Api.UpdateIftttIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteIftttIntegrationRequest), global::Chirpstack.Api.DeleteIftttIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest), global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateResponse), global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateResponse.Parser, new[]{ "TlsCert", "TlsKey", "CaCert", "ExpiresAt" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum Encoding { + [pbr::OriginalName("JSON")] Json = 0, + [pbr::OriginalName("PROTOBUF")] Protobuf = 1, + } + + public enum IntegrationKind { + [pbr::OriginalName("HTTP")] Http = 0, + [pbr::OriginalName("INFLUX_DB")] InfluxDb = 1, + [pbr::OriginalName("THINGS_BOARD")] ThingsBoard = 2, + [pbr::OriginalName("MY_DEVICES")] MyDevices = 3, + [pbr::OriginalName("LORA_CLOUD")] LoraCloud = 4, + [pbr::OriginalName("GCP_PUB_SUB")] GcpPubSub = 5, + [pbr::OriginalName("AWS_SNS")] AwsSns = 6, + [pbr::OriginalName("AZURE_SERVICE_BUS")] AzureServiceBus = 7, + [pbr::OriginalName("PILOT_THINGS")] PilotThings = 8, + [pbr::OriginalName("MQTT_GLOBAL")] MqttGlobal = 9, + [pbr::OriginalName("IFTTT")] Ifttt = 10, + } + + public enum InfluxDbPrecision { + [pbr::OriginalName("NS")] Ns = 0, + [pbr::OriginalName("U")] U = 1, + [pbr::OriginalName("MS")] Ms = 2, + [pbr::OriginalName("S")] S = 3, + [pbr::OriginalName("M")] M = 4, + [pbr::OriginalName("H")] H = 5, + } + + public enum InfluxDbVersion { + [pbr::OriginalName("INFLUXDB_1")] Influxdb1 = 0, + [pbr::OriginalName("INFLUXDB_2")] Influxdb2 = 1, + } + + #endregion + + #region Messages + public sealed partial class Application : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Application()); + 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.Api.ApplicationReflection.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 Application() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Application(Application other) : this() { + id_ = other.id_; + name_ = other.name_; + description_ = other.description_; + tenantId_ = other.tenantId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Application Clone() { + return new Application(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Application ID (UUID). + /// Note: on create this will be automatically 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 "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Application name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// Application description. + /// + [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 "tenant_id" field. + public const int TenantIdFieldNumber = 4; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Application); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Application other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (TenantId != other.TenantId) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (TenantId.Length != 0) hash ^= TenantId.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 (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (TenantId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantId); + } + 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 (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (TenantId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantId); + } + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (TenantId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Application other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + _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: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + TenantId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + TenantId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ApplicationListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApplicationListItem()); + 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.Api.ApplicationReflection.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 ApplicationListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApplicationListItem(ApplicationListItem other) : this() { + id_ = other.id_; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + name_ = other.name_; + description_ = other.description_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApplicationListItem Clone() { + return new ApplicationListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Application ID (UUID). + /// + [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 "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + /// + /// Application name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 5; + private string description_ = ""; + /// + /// Application description. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ApplicationListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ApplicationListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (Name != other.Name) return false; + if (Description != other.Description) 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 (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + 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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + 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 (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ApplicationListItem other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + _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: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateApplicationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateApplicationRequest()); + 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.Api.ApplicationReflection.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 CreateApplicationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateApplicationRequest(CreateApplicationRequest other) : this() { + application_ = other.application_ != null ? other.application_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateApplicationRequest Clone() { + return new CreateApplicationRequest(this); + } + + /// Field number for the "application" field. + public const int ApplicationFieldNumber = 1; + private global::Chirpstack.Api.Application application_; + /// + /// Application object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Application Application { + get { return application_; } + set { + application_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateApplicationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateApplicationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Application, other.Application)) 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 (application_ != null) hash ^= Application.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 (application_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Application); + } + 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 (application_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Application); + } + 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 (application_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Application); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateApplicationRequest other) { + if (other == null) { + return; + } + if (other.application_ != null) { + if (application_ == null) { + Application = new global::Chirpstack.Api.Application(); + } + Application.MergeFrom(other.Application); + } + _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 (application_ == null) { + Application = new global::Chirpstack.Api.Application(); + } + input.ReadMessage(Application); + 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 (application_ == null) { + Application = new global::Chirpstack.Api.Application(); + } + input.ReadMessage(Application); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateApplicationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateApplicationResponse()); + 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.Api.ApplicationReflection.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 CreateApplicationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateApplicationResponse(CreateApplicationResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateApplicationResponse Clone() { + return new CreateApplicationResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Application ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateApplicationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateApplicationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateApplicationResponse other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetApplicationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetApplicationRequest()); + 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.Api.ApplicationReflection.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 GetApplicationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetApplicationRequest(GetApplicationRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetApplicationRequest Clone() { + return new GetApplicationRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Application ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetApplicationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetApplicationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetApplicationRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetApplicationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetApplicationResponse()); + 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.Api.ApplicationReflection.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 GetApplicationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetApplicationResponse(GetApplicationResponse other) : this() { + application_ = other.application_ != null ? other.application_.Clone() : null; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + measurementKeys_ = other.measurementKeys_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetApplicationResponse Clone() { + return new GetApplicationResponse(this); + } + + /// Field number for the "application" field. + public const int ApplicationFieldNumber = 1; + private global::Chirpstack.Api.Application application_; + /// + /// Application object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Application Application { + get { return application_; } + set { + application_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "measurement_keys" field. + public const int MeasurementKeysFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_measurementKeys_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField measurementKeys_ = new pbc::RepeatedField(); + /// + /// Measurement keys. + /// This contains the measurement keys from all the device-profiles that + /// are used by the devices under this application. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MeasurementKeys { + get { return measurementKeys_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetApplicationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetApplicationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Application, other.Application)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if(!measurementKeys_.Equals(other.measurementKeys_)) 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 (application_ != null) hash ^= Application.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + hash ^= measurementKeys_.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 (application_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Application); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + measurementKeys_.WriteTo(output, _repeated_measurementKeys_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 (application_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Application); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + measurementKeys_.WriteTo(ref output, _repeated_measurementKeys_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 (application_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Application); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + size += measurementKeys_.CalculateSize(_repeated_measurementKeys_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetApplicationResponse other) { + if (other == null) { + return; + } + if (other.application_ != null) { + if (application_ == null) { + Application = new global::Chirpstack.Api.Application(); + } + Application.MergeFrom(other.Application); + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + measurementKeys_.Add(other.measurementKeys_); + _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 (application_ == null) { + Application = new global::Chirpstack.Api.Application(); + } + input.ReadMessage(Application); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + measurementKeys_.AddEntriesFrom(input, _repeated_measurementKeys_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 (application_ == null) { + Application = new global::Chirpstack.Api.Application(); + } + input.ReadMessage(Application); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + measurementKeys_.AddEntriesFrom(ref input, _repeated_measurementKeys_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateApplicationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateApplicationRequest()); + 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.Api.ApplicationReflection.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 UpdateApplicationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateApplicationRequest(UpdateApplicationRequest other) : this() { + application_ = other.application_ != null ? other.application_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateApplicationRequest Clone() { + return new UpdateApplicationRequest(this); + } + + /// Field number for the "application" field. + public const int ApplicationFieldNumber = 1; + private global::Chirpstack.Api.Application application_; + /// + /// Application object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Application Application { + get { return application_; } + set { + application_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateApplicationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateApplicationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Application, other.Application)) 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 (application_ != null) hash ^= Application.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 (application_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Application); + } + 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 (application_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Application); + } + 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 (application_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Application); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateApplicationRequest other) { + if (other == null) { + return; + } + if (other.application_ != null) { + if (application_ == null) { + Application = new global::Chirpstack.Api.Application(); + } + Application.MergeFrom(other.Application); + } + _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 (application_ == null) { + Application = new global::Chirpstack.Api.Application(); + } + input.ReadMessage(Application); + 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 (application_ == null) { + Application = new global::Chirpstack.Api.Application(); + } + input.ReadMessage(Application); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteApplicationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteApplicationRequest()); + 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.Api.ApplicationReflection.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 DeleteApplicationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteApplicationRequest(DeleteApplicationRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteApplicationRequest Clone() { + return new DeleteApplicationRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Application ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteApplicationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteApplicationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteApplicationRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class ListApplicationsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListApplicationsRequest()); + 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.Api.ApplicationReflection.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 ListApplicationsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListApplicationsRequest(ListApplicationsRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + search_ = other.search_; + tenantId_ = other.tenantId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListApplicationsRequest Clone() { + return new ListApplicationsRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private uint limit_; + /// + /// Max number of applications to return in the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 2; + private uint offset_; + /// + /// Offset in the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + /// Field number for the "search" field. + public const int SearchFieldNumber = 3; + private string search_ = ""; + /// + /// If set, the given string will be used to search on name (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Search { + get { return search_; } + set { + search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tenant_id" field. + public const int TenantIdFieldNumber = 4; + private string tenantId_ = ""; + /// + /// Tenant ID to list the applications for. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TenantId { + get { return tenantId_; } + set { + tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListApplicationsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListApplicationsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Limit != other.Limit) return false; + if (Offset != other.Offset) return false; + if (Search != other.Search) return false; + if (TenantId != other.TenantId) 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 (Limit != 0) hash ^= Limit.GetHashCode(); + if (Offset != 0) hash ^= Offset.GetHashCode(); + if (Search.Length != 0) hash ^= Search.GetHashCode(); + if (TenantId.Length != 0) hash ^= TenantId.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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (TenantId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantId); + } + 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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (TenantId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantId); + } + 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 (Limit != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); + } + if (Offset != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); + } + if (Search.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); + } + if (TenantId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListApplicationsRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0) { + Limit = other.Limit; + } + if (other.Offset != 0) { + Offset = other.Offset; + } + if (other.Search.Length != 0) { + Search = other.Search; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + _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: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + case 34: { + TenantId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + case 34: { + TenantId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListApplicationsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListApplicationsResponse()); + 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.Api.ApplicationReflection.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 ListApplicationsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListApplicationsResponse(ListApplicationsResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListApplicationsResponse Clone() { + return new ListApplicationsResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of applications. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.ApplicationListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListApplicationsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListApplicationsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListApplicationsResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListIntegrationsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListIntegrationsRequest()); + 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.Api.ApplicationReflection.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 ListIntegrationsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListIntegrationsRequest(ListIntegrationsRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListIntegrationsRequest Clone() { + return new ListIntegrationsRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListIntegrationsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListIntegrationsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListIntegrationsRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class IntegrationListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IntegrationListItem()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IntegrationListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IntegrationListItem(IntegrationListItem other) : this() { + kind_ = other.kind_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IntegrationListItem Clone() { + return new IntegrationListItem(this); + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 1; + private global::Chirpstack.Api.IntegrationKind kind_ = global::Chirpstack.Api.IntegrationKind.Http; + /// + /// Integration kind. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.IntegrationKind Kind { + get { return kind_; } + set { + kind_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as IntegrationListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(IntegrationListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Kind != other.Kind) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Kind != global::Chirpstack.Api.IntegrationKind.Http) hash ^= Kind.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Kind != global::Chirpstack.Api.IntegrationKind.Http) { + output.WriteRawTag(8); + output.WriteEnum((int) Kind); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Kind != global::Chirpstack.Api.IntegrationKind.Http) { + output.WriteRawTag(8); + output.WriteEnum((int) Kind); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Kind != global::Chirpstack.Api.IntegrationKind.Http) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(IntegrationListItem other) { + if (other == null) { + return; + } + if (other.Kind != global::Chirpstack.Api.IntegrationKind.Http) { + Kind = other.Kind; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Kind = (global::Chirpstack.Api.IntegrationKind) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Kind = (global::Chirpstack.Api.IntegrationKind) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListIntegrationsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListIntegrationsResponse()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListIntegrationsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListIntegrationsResponse(ListIntegrationsResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListIntegrationsResponse Clone() { + return new ListIntegrationsResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of integrations available within the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.IntegrationListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Integrations within result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListIntegrationsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListIntegrationsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListIntegrationsResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class HttpIntegration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HttpIntegration()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HttpIntegration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HttpIntegration(HttpIntegration other) : this() { + applicationId_ = other.applicationId_; + headers_ = other.headers_.Clone(); + encoding_ = other.encoding_; + eventEndpointUrl_ = other.eventEndpointUrl_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HttpIntegration Clone() { + return new HttpIntegration(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private string applicationId_ = ""; + /// + /// Application ID (UUIO). + /// + [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 "headers" field. + public const int HeadersFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_headers_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField headers_ = new pbc::MapField(); + /// + /// HTTP headers to set when making requests. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Headers { + get { return headers_; } + } + + /// Field number for the "encoding" field. + public const int EncodingFieldNumber = 3; + private global::Chirpstack.Api.Encoding encoding_ = global::Chirpstack.Api.Encoding.Json; + /// + /// Payload encoding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Encoding Encoding { + get { return encoding_; } + set { + encoding_ = value; + } + } + + /// Field number for the "event_endpoint_url" field. + public const int EventEndpointUrlFieldNumber = 4; + private string eventEndpointUrl_ = ""; + /// + /// Event endpoint URL. + /// The HTTP integration will POST all events to this enpoint. The request + /// will contain a query parameters "event" containing the type of the + /// event. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EventEndpointUrl { + get { return eventEndpointUrl_; } + set { + eventEndpointUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HttpIntegration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HttpIntegration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) return false; + if (!Headers.Equals(other.Headers)) return false; + if (Encoding != other.Encoding) return false; + if (EventEndpointUrl != other.EventEndpointUrl) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + hash ^= Headers.GetHashCode(); + if (Encoding != global::Chirpstack.Api.Encoding.Json) hash ^= Encoding.GetHashCode(); + if (EventEndpointUrl.Length != 0) hash ^= EventEndpointUrl.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + headers_.WriteTo(output, _map_headers_codec); + if (Encoding != global::Chirpstack.Api.Encoding.Json) { + output.WriteRawTag(24); + output.WriteEnum((int) Encoding); + } + if (EventEndpointUrl.Length != 0) { + output.WriteRawTag(34); + output.WriteString(EventEndpointUrl); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + headers_.WriteTo(ref output, _map_headers_codec); + if (Encoding != global::Chirpstack.Api.Encoding.Json) { + output.WriteRawTag(24); + output.WriteEnum((int) Encoding); + } + if (EventEndpointUrl.Length != 0) { + output.WriteRawTag(34); + output.WriteString(EventEndpointUrl); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + size += headers_.CalculateSize(_map_headers_codec); + if (Encoding != global::Chirpstack.Api.Encoding.Json) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Encoding); + } + if (EventEndpointUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EventEndpointUrl); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HttpIntegration other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + headers_.Add(other.headers_); + if (other.Encoding != global::Chirpstack.Api.Encoding.Json) { + Encoding = other.Encoding; + } + if (other.EventEndpointUrl.Length != 0) { + EventEndpointUrl = other.EventEndpointUrl; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + headers_.AddEntriesFrom(input, _map_headers_codec); + break; + } + case 24: { + Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); + break; + } + case 34: { + EventEndpointUrl = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + headers_.AddEntriesFrom(ref input, _map_headers_codec); + break; + } + case 24: { + Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); + break; + } + case 34: { + EventEndpointUrl = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateHttpIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateHttpIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateHttpIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateHttpIntegrationRequest(CreateHttpIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateHttpIntegrationRequest Clone() { + return new CreateHttpIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.HttpIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.HttpIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateHttpIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateHttpIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateHttpIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.HttpIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.HttpIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.HttpIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetHttpIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetHttpIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[15]; } + } + + [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 GetHttpIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetHttpIntegrationRequest(GetHttpIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetHttpIntegrationRequest Clone() { + return new GetHttpIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private string applicationId_ = ""; + /// + /// Application ID (UUIO). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApplicationId { + get { return applicationId_; } + set { + applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetHttpIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetHttpIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetHttpIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetHttpIntegrationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetHttpIntegrationResponse()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[16]; } + } + + [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 GetHttpIntegrationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetHttpIntegrationResponse(GetHttpIntegrationResponse other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetHttpIntegrationResponse Clone() { + return new GetHttpIntegrationResponse(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.HttpIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.HttpIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetHttpIntegrationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetHttpIntegrationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetHttpIntegrationResponse other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.HttpIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.HttpIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.HttpIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateHttpIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateHttpIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[17]; } + } + + [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 UpdateHttpIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateHttpIntegrationRequest(UpdateHttpIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateHttpIntegrationRequest Clone() { + return new UpdateHttpIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.HttpIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.HttpIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateHttpIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateHttpIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateHttpIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.HttpIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.HttpIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.HttpIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteHttpIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteHttpIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[18]; } + } + + [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 DeleteHttpIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteHttpIntegrationRequest(DeleteHttpIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteHttpIntegrationRequest Clone() { + return new DeleteHttpIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private string applicationId_ = ""; + /// + /// Application ID (UUIO). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApplicationId { + get { return applicationId_; } + set { + applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteHttpIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteHttpIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteHttpIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class InfluxDbIntegration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InfluxDbIntegration()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[19]; } + } + + [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 InfluxDbIntegration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfluxDbIntegration(InfluxDbIntegration other) : this() { + applicationId_ = other.applicationId_; + endpoint_ = other.endpoint_; + db_ = other.db_; + username_ = other.username_; + password_ = other.password_; + retentionPolicyName_ = other.retentionPolicyName_; + precision_ = other.precision_; + version_ = other.version_; + token_ = other.token_; + organization_ = other.organization_; + bucket_ = other.bucket_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfluxDbIntegration Clone() { + return new InfluxDbIntegration(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private string applicationId_ = ""; + /// + /// Application ID (UUIO). + /// + [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 "endpoint" field. + public const int EndpointFieldNumber = 2; + private string endpoint_ = ""; + /// + /// InfluxDb API write endpoint (e.g. http://localhost:8086/write). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Endpoint { + get { return endpoint_; } + set { + endpoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "db" field. + public const int DbFieldNumber = 3; + private string db_ = ""; + /// + /// InfluxDb database name. (InfluxDb v1) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Db { + get { return db_; } + set { + db_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "username" field. + public const int UsernameFieldNumber = 4; + private string username_ = ""; + /// + /// InfluxDb username. (InfluxDb v1) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Username { + get { return username_; } + set { + username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "password" field. + public const int PasswordFieldNumber = 5; + private string password_ = ""; + /// + /// InfluxDb password. (InfluxDb v1) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Password { + get { return password_; } + set { + password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "retention_policy_name" field. + public const int RetentionPolicyNameFieldNumber = 6; + private string retentionPolicyName_ = ""; + /// + /// InfluxDb retention policy name. (InfluxDb v1) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RetentionPolicyName { + get { return retentionPolicyName_; } + set { + retentionPolicyName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "precision" field. + public const int PrecisionFieldNumber = 7; + private global::Chirpstack.Api.InfluxDbPrecision precision_ = global::Chirpstack.Api.InfluxDbPrecision.Ns; + /// + /// InfluxDb timestamp precision (InfluxDb v1). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.InfluxDbPrecision Precision { + get { return precision_; } + set { + precision_ = value; + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 8; + private global::Chirpstack.Api.InfluxDbVersion version_ = global::Chirpstack.Api.InfluxDbVersion.Influxdb1; + /// + /// InfluxDb version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.InfluxDbVersion Version { + get { return version_; } + set { + version_ = value; + } + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 9; + private string token_ = ""; + /// + /// Token. (InfluxDb v2) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Token { + get { return token_; } + set { + token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "organization" field. + public const int OrganizationFieldNumber = 10; + private string organization_ = ""; + /// + /// Organization. (InfluxDb v2) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Organization { + get { return organization_; } + set { + organization_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bucket" field. + public const int BucketFieldNumber = 11; + private string bucket_ = ""; + /// + /// Bucket. (InfluxDb v2) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Bucket { + get { return bucket_; } + set { + bucket_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InfluxDbIntegration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InfluxDbIntegration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) return false; + if (Endpoint != other.Endpoint) return false; + if (Db != other.Db) return false; + if (Username != other.Username) return false; + if (Password != other.Password) return false; + if (RetentionPolicyName != other.RetentionPolicyName) return false; + if (Precision != other.Precision) return false; + if (Version != other.Version) return false; + if (Token != other.Token) return false; + if (Organization != other.Organization) return false; + if (Bucket != other.Bucket) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + if (Endpoint.Length != 0) hash ^= Endpoint.GetHashCode(); + if (Db.Length != 0) hash ^= Db.GetHashCode(); + if (Username.Length != 0) hash ^= Username.GetHashCode(); + if (Password.Length != 0) hash ^= Password.GetHashCode(); + if (RetentionPolicyName.Length != 0) hash ^= RetentionPolicyName.GetHashCode(); + if (Precision != global::Chirpstack.Api.InfluxDbPrecision.Ns) hash ^= Precision.GetHashCode(); + if (Version != global::Chirpstack.Api.InfluxDbVersion.Influxdb1) hash ^= Version.GetHashCode(); + if (Token.Length != 0) hash ^= Token.GetHashCode(); + if (Organization.Length != 0) hash ^= Organization.GetHashCode(); + if (Bucket.Length != 0) hash ^= Bucket.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Endpoint.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Endpoint); + } + if (Db.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Db); + } + if (Username.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Username); + } + if (Password.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Password); + } + if (RetentionPolicyName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(RetentionPolicyName); + } + if (Precision != global::Chirpstack.Api.InfluxDbPrecision.Ns) { + output.WriteRawTag(56); + output.WriteEnum((int) Precision); + } + if (Version != global::Chirpstack.Api.InfluxDbVersion.Influxdb1) { + output.WriteRawTag(64); + output.WriteEnum((int) Version); + } + if (Token.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Token); + } + if (Organization.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Organization); + } + if (Bucket.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Bucket); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Endpoint.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Endpoint); + } + if (Db.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Db); + } + if (Username.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Username); + } + if (Password.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Password); + } + if (RetentionPolicyName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(RetentionPolicyName); + } + if (Precision != global::Chirpstack.Api.InfluxDbPrecision.Ns) { + output.WriteRawTag(56); + output.WriteEnum((int) Precision); + } + if (Version != global::Chirpstack.Api.InfluxDbVersion.Influxdb1) { + output.WriteRawTag(64); + output.WriteEnum((int) Version); + } + if (Token.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Token); + } + if (Organization.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Organization); + } + if (Bucket.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Bucket); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (Endpoint.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Endpoint); + } + if (Db.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Db); + } + if (Username.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); + } + if (Password.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); + } + if (RetentionPolicyName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RetentionPolicyName); + } + if (Precision != global::Chirpstack.Api.InfluxDbPrecision.Ns) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Precision); + } + if (Version != global::Chirpstack.Api.InfluxDbVersion.Influxdb1) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Version); + } + if (Token.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); + } + if (Organization.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Organization); + } + if (Bucket.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Bucket); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InfluxDbIntegration other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + if (other.Endpoint.Length != 0) { + Endpoint = other.Endpoint; + } + if (other.Db.Length != 0) { + Db = other.Db; + } + if (other.Username.Length != 0) { + Username = other.Username; + } + if (other.Password.Length != 0) { + Password = other.Password; + } + if (other.RetentionPolicyName.Length != 0) { + RetentionPolicyName = other.RetentionPolicyName; + } + if (other.Precision != global::Chirpstack.Api.InfluxDbPrecision.Ns) { + Precision = other.Precision; + } + if (other.Version != global::Chirpstack.Api.InfluxDbVersion.Influxdb1) { + Version = other.Version; + } + if (other.Token.Length != 0) { + Token = other.Token; + } + if (other.Organization.Length != 0) { + Organization = other.Organization; + } + if (other.Bucket.Length != 0) { + Bucket = other.Bucket; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + Endpoint = input.ReadString(); + break; + } + case 26: { + Db = input.ReadString(); + break; + } + case 34: { + Username = input.ReadString(); + break; + } + case 42: { + Password = input.ReadString(); + break; + } + case 50: { + RetentionPolicyName = input.ReadString(); + break; + } + case 56: { + Precision = (global::Chirpstack.Api.InfluxDbPrecision) input.ReadEnum(); + break; + } + case 64: { + Version = (global::Chirpstack.Api.InfluxDbVersion) input.ReadEnum(); + break; + } + case 74: { + Token = input.ReadString(); + break; + } + case 82: { + Organization = input.ReadString(); + break; + } + case 90: { + Bucket = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + Endpoint = input.ReadString(); + break; + } + case 26: { + Db = input.ReadString(); + break; + } + case 34: { + Username = input.ReadString(); + break; + } + case 42: { + Password = input.ReadString(); + break; + } + case 50: { + RetentionPolicyName = input.ReadString(); + break; + } + case 56: { + Precision = (global::Chirpstack.Api.InfluxDbPrecision) input.ReadEnum(); + break; + } + case 64: { + Version = (global::Chirpstack.Api.InfluxDbVersion) input.ReadEnum(); + break; + } + case 74: { + Token = input.ReadString(); + break; + } + case 82: { + Organization = input.ReadString(); + break; + } + case 90: { + Bucket = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateInfluxDbIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateInfluxDbIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[20]; } + } + + [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 CreateInfluxDbIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateInfluxDbIntegrationRequest(CreateInfluxDbIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateInfluxDbIntegrationRequest Clone() { + return new CreateInfluxDbIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.InfluxDbIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.InfluxDbIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateInfluxDbIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateInfluxDbIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateInfluxDbIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.InfluxDbIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.InfluxDbIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.InfluxDbIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetInfluxDbIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInfluxDbIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[21]; } + } + + [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 GetInfluxDbIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetInfluxDbIntegrationRequest(GetInfluxDbIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetInfluxDbIntegrationRequest Clone() { + return new GetInfluxDbIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private string applicationId_ = ""; + /// + /// Application ID (UUIO). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApplicationId { + get { return applicationId_; } + set { + applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetInfluxDbIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetInfluxDbIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetInfluxDbIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetInfluxDbIntegrationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInfluxDbIntegrationResponse()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[22]; } + } + + [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 GetInfluxDbIntegrationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetInfluxDbIntegrationResponse(GetInfluxDbIntegrationResponse other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetInfluxDbIntegrationResponse Clone() { + return new GetInfluxDbIntegrationResponse(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.InfluxDbIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.InfluxDbIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetInfluxDbIntegrationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetInfluxDbIntegrationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetInfluxDbIntegrationResponse other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.InfluxDbIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.InfluxDbIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.InfluxDbIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateInfluxDbIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateInfluxDbIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[23]; } + } + + [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 UpdateInfluxDbIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateInfluxDbIntegrationRequest(UpdateInfluxDbIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateInfluxDbIntegrationRequest Clone() { + return new UpdateInfluxDbIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.InfluxDbIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.InfluxDbIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateInfluxDbIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateInfluxDbIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateInfluxDbIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.InfluxDbIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.InfluxDbIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.InfluxDbIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteInfluxDbIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteInfluxDbIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[24]; } + } + + [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 DeleteInfluxDbIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteInfluxDbIntegrationRequest(DeleteInfluxDbIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteInfluxDbIntegrationRequest Clone() { + return new DeleteInfluxDbIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private string applicationId_ = ""; + /// + /// Application ID (UUIO). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApplicationId { + get { return applicationId_; } + set { + applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteInfluxDbIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteInfluxDbIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteInfluxDbIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ThingsBoardIntegration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ThingsBoardIntegration()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[25]; } + } + + [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 ThingsBoardIntegration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ThingsBoardIntegration(ThingsBoardIntegration other) : this() { + applicationId_ = other.applicationId_; + server_ = other.server_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ThingsBoardIntegration Clone() { + return new ThingsBoardIntegration(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private string applicationId_ = ""; + /// + /// Application ID (UUIO). + /// + [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 "server" field. + public const int ServerFieldNumber = 2; + private string server_ = ""; + /// + /// ThingsBoard server endpoint, e.g. https://example.com + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Server { + get { return server_; } + set { + server_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ThingsBoardIntegration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ThingsBoardIntegration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) return false; + if (Server != other.Server) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + if (Server.Length != 0) hash ^= Server.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Server.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Server); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Server.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Server); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (Server.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Server); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ThingsBoardIntegration other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + if (other.Server.Length != 0) { + Server = other.Server; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + Server = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + Server = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateThingsBoardIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateThingsBoardIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[26]; } + } + + [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 CreateThingsBoardIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateThingsBoardIntegrationRequest(CreateThingsBoardIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateThingsBoardIntegrationRequest Clone() { + return new CreateThingsBoardIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.ThingsBoardIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.ThingsBoardIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateThingsBoardIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateThingsBoardIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateThingsBoardIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetThingsBoardIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetThingsBoardIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[27]; } + } + + [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 GetThingsBoardIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetThingsBoardIntegrationRequest(GetThingsBoardIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetThingsBoardIntegrationRequest Clone() { + return new GetThingsBoardIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private string applicationId_ = ""; + /// + /// Application ID (UUIO). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApplicationId { + get { return applicationId_; } + set { + applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetThingsBoardIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetThingsBoardIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetThingsBoardIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetThingsBoardIntegrationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetThingsBoardIntegrationResponse()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[28]; } + } + + [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 GetThingsBoardIntegrationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetThingsBoardIntegrationResponse(GetThingsBoardIntegrationResponse other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetThingsBoardIntegrationResponse Clone() { + return new GetThingsBoardIntegrationResponse(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.ThingsBoardIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.ThingsBoardIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetThingsBoardIntegrationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetThingsBoardIntegrationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetThingsBoardIntegrationResponse other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateThingsBoardIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateThingsBoardIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[29]; } + } + + [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 UpdateThingsBoardIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateThingsBoardIntegrationRequest(UpdateThingsBoardIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateThingsBoardIntegrationRequest Clone() { + return new UpdateThingsBoardIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.ThingsBoardIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.ThingsBoardIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateThingsBoardIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateThingsBoardIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateThingsBoardIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteThingsBoardIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteThingsBoardIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[30]; } + } + + [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 DeleteThingsBoardIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteThingsBoardIntegrationRequest(DeleteThingsBoardIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteThingsBoardIntegrationRequest Clone() { + return new DeleteThingsBoardIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private string applicationId_ = ""; + /// + /// Application ID (UUIO). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApplicationId { + get { return applicationId_; } + set { + applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteThingsBoardIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteThingsBoardIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteThingsBoardIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class MyDevicesIntegration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MyDevicesIntegration()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[31]; } + } + + [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 MyDevicesIntegration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MyDevicesIntegration(MyDevicesIntegration other) : this() { + applicationId_ = other.applicationId_; + endpoint_ = other.endpoint_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MyDevicesIntegration Clone() { + return new MyDevicesIntegration(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private string applicationId_ = ""; + /// + /// Application ID (UUIO). + /// + [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 "endpoint" field. + public const int EndpointFieldNumber = 2; + private string endpoint_ = ""; + /// + /// myDevices API endpoint. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Endpoint { + get { return endpoint_; } + set { + endpoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MyDevicesIntegration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MyDevicesIntegration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) return false; + if (Endpoint != other.Endpoint) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + if (Endpoint.Length != 0) hash ^= Endpoint.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Endpoint.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Endpoint); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Endpoint.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Endpoint); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (Endpoint.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Endpoint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MyDevicesIntegration other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + if (other.Endpoint.Length != 0) { + Endpoint = other.Endpoint; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + Endpoint = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + Endpoint = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateMyDevicesIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMyDevicesIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[32]; } + } + + [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 CreateMyDevicesIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateMyDevicesIntegrationRequest(CreateMyDevicesIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateMyDevicesIntegrationRequest Clone() { + return new CreateMyDevicesIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.MyDevicesIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.MyDevicesIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateMyDevicesIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateMyDevicesIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateMyDevicesIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.MyDevicesIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.MyDevicesIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.MyDevicesIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetMyDevicesIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMyDevicesIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[33]; } + } + + [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 GetMyDevicesIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMyDevicesIntegrationRequest(GetMyDevicesIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMyDevicesIntegrationRequest Clone() { + return new GetMyDevicesIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private string applicationId_ = ""; + /// + /// Application ID (UUIO). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApplicationId { + get { return applicationId_; } + set { + applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetMyDevicesIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMyDevicesIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetMyDevicesIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetMyDevicesIntegrationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMyDevicesIntegrationResponse()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[34]; } + } + + [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 GetMyDevicesIntegrationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMyDevicesIntegrationResponse(GetMyDevicesIntegrationResponse other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMyDevicesIntegrationResponse Clone() { + return new GetMyDevicesIntegrationResponse(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.MyDevicesIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.MyDevicesIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetMyDevicesIntegrationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMyDevicesIntegrationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetMyDevicesIntegrationResponse other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.MyDevicesIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.MyDevicesIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.MyDevicesIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateMyDevicesIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateMyDevicesIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[35]; } + } + + [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 UpdateMyDevicesIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateMyDevicesIntegrationRequest(UpdateMyDevicesIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateMyDevicesIntegrationRequest Clone() { + return new UpdateMyDevicesIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.MyDevicesIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.MyDevicesIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateMyDevicesIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateMyDevicesIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateMyDevicesIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.MyDevicesIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.MyDevicesIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.MyDevicesIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteMyDevicesIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteMyDevicesIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[36]; } + } + + [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 DeleteMyDevicesIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteMyDevicesIntegrationRequest(DeleteMyDevicesIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteMyDevicesIntegrationRequest Clone() { + return new DeleteMyDevicesIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private string applicationId_ = ""; + /// + /// Application ID (UUIO). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApplicationId { + get { return applicationId_; } + set { + applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteMyDevicesIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteMyDevicesIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteMyDevicesIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class LoraCloudIntegration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoraCloudIntegration()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[37]; } + } + + [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 LoraCloudIntegration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoraCloudIntegration(LoraCloudIntegration other) : this() { + applicationId_ = other.applicationId_; + modemGeolocationServices_ = other.modemGeolocationServices_ != null ? other.modemGeolocationServices_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoraCloudIntegration Clone() { + return new LoraCloudIntegration(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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 "modem_geolocation_services" field. + public const int ModemGeolocationServicesFieldNumber = 2; + private global::Chirpstack.Api.LoraCloudModemGeolocationServices modemGeolocationServices_; + /// + /// Modem & Geolocation Services configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.LoraCloudModemGeolocationServices ModemGeolocationServices { + get { return modemGeolocationServices_; } + set { + modemGeolocationServices_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LoraCloudIntegration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LoraCloudIntegration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) return false; + if (!object.Equals(ModemGeolocationServices, other.ModemGeolocationServices)) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + if (modemGeolocationServices_ != null) hash ^= ModemGeolocationServices.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (modemGeolocationServices_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ModemGeolocationServices); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (modemGeolocationServices_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ModemGeolocationServices); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (modemGeolocationServices_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModemGeolocationServices); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LoraCloudIntegration other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + if (other.modemGeolocationServices_ != null) { + if (modemGeolocationServices_ == null) { + ModemGeolocationServices = new global::Chirpstack.Api.LoraCloudModemGeolocationServices(); + } + ModemGeolocationServices.MergeFrom(other.ModemGeolocationServices); + } + _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: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + if (modemGeolocationServices_ == null) { + ModemGeolocationServices = new global::Chirpstack.Api.LoraCloudModemGeolocationServices(); + } + input.ReadMessage(ModemGeolocationServices); + 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: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + if (modemGeolocationServices_ == null) { + ModemGeolocationServices = new global::Chirpstack.Api.LoraCloudModemGeolocationServices(); + } + input.ReadMessage(ModemGeolocationServices); + break; + } + } + } + } + #endif + + } + + public sealed partial class LoraCloudModemGeolocationServices : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoraCloudModemGeolocationServices()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[38]; } + } + + [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 LoraCloudModemGeolocationServices() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoraCloudModemGeolocationServices(LoraCloudModemGeolocationServices other) : this() { + token_ = other.token_; + modemEnabled_ = other.modemEnabled_; + modemPort_ = other.modemPort_; + gnssPort_ = other.gnssPort_; + gnssUseRxTime_ = other.gnssUseRxTime_; + parseTlv_ = other.parseTlv_; + geolocationBufferTtl_ = other.geolocationBufferTtl_; + geolocationMinBufferSize_ = other.geolocationMinBufferSize_; + geolocationTdoa_ = other.geolocationTdoa_; + geolocationRssi_ = other.geolocationRssi_; + geolocationGnss_ = other.geolocationGnss_; + geolocationGnssPayloadField_ = other.geolocationGnssPayloadField_; + geolocationGnssUseRxTime_ = other.geolocationGnssUseRxTime_; + geolocationWifi_ = other.geolocationWifi_; + geolocationWifiPayloadField_ = other.geolocationWifiPayloadField_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoraCloudModemGeolocationServices Clone() { + return new LoraCloudModemGeolocationServices(this); + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 1; + private string token_ = ""; + /// + /// API token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Token { + get { return token_; } + set { + token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "modem_enabled" field. + public const int ModemEnabledFieldNumber = 2; + private bool modemEnabled_; + /// + /// Device implements Modem / Modem-E stack. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ModemEnabled { + get { return modemEnabled_; } + set { + modemEnabled_ = value; + } + } + + /// Field number for the "modem_port" field. + public const int ModemPortFieldNumber = 3; + private uint modemPort_; + /// + /// Modem port (fPort). + /// ChirpStack will only forward the FrmPayload to the MGS if the port + /// is equal to the configured value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ModemPort { + get { return modemPort_; } + set { + modemPort_ = value; + } + } + + /// Field number for the "gnss_port" field. + public const int GnssPortFieldNumber = 4; + private uint gnssPort_; + /// + /// GNSS port (fPort). + /// ChirpStack will forward the FrmPayload to MGS as GNSS payload if the + /// port is equal to the configured value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GnssPort { + get { return gnssPort_; } + set { + gnssPort_ = value; + } + } + + /// Field number for the "gnss_use_rx_time" field. + public const int GnssUseRxTimeFieldNumber = 5; + private bool gnssUseRxTime_; + /// + /// Use rx time for GNSS resolving. + /// In case this is set to true, the MGS resolver will use the RX time of the + /// network instead of the timestamp included in the LR1110 payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool GnssUseRxTime { + get { return gnssUseRxTime_; } + set { + gnssUseRxTime_ = value; + } + } + + /// Field number for the "parse_tlv" field. + public const int ParseTlvFieldNumber = 6; + private bool parseTlv_; + /// + /// Parse TLV records. + /// If enabled, stream records (expected in TLV format) are scanned for GNSS + /// data (0x06 or 0x07). If found, ChirpStack will make an additional + /// geolocation call to the MGS API for resolving the location of the detected + /// payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ParseTlv { + get { return parseTlv_; } + set { + parseTlv_ = value; + } + } + + /// Field number for the "geolocation_buffer_ttl" field. + public const int GeolocationBufferTtlFieldNumber = 7; + private uint geolocationBufferTtl_; + /// + /// Geolocation buffer TTL (in seconds). + /// If > 0, uplink RX meta-data will be stored in a buffer so that + /// the meta-data of multiple uplinks can be used for geolocation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GeolocationBufferTtl { + get { return geolocationBufferTtl_; } + set { + geolocationBufferTtl_ = value; + } + } + + /// Field number for the "geolocation_min_buffer_size" field. + public const int GeolocationMinBufferSizeFieldNumber = 8; + private uint geolocationMinBufferSize_; + /// + /// Geolocation minimum buffer size. + /// If > 0, geolocation will only be performed when the buffer has + /// at least the given size. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GeolocationMinBufferSize { + get { return geolocationMinBufferSize_; } + set { + geolocationMinBufferSize_ = value; + } + } + + /// Field number for the "geolocation_tdoa" field. + public const int GeolocationTdoaFieldNumber = 9; + private bool geolocationTdoa_; + /// + /// TDOA based geolocation is enabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool GeolocationTdoa { + get { return geolocationTdoa_; } + set { + geolocationTdoa_ = value; + } + } + + /// Field number for the "geolocation_rssi" field. + public const int GeolocationRssiFieldNumber = 10; + private bool geolocationRssi_; + /// + /// RSSI based geolocation is enabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool GeolocationRssi { + get { return geolocationRssi_; } + set { + geolocationRssi_ = value; + } + } + + /// Field number for the "geolocation_gnss" field. + public const int GeolocationGnssFieldNumber = 11; + private bool geolocationGnss_; + /// + /// GNSS based geolocation is enabled (LR1110). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool GeolocationGnss { + get { return geolocationGnss_; } + set { + geolocationGnss_ = value; + } + } + + /// Field number for the "geolocation_gnss_payload_field" field. + public const int GeolocationGnssPayloadFieldFieldNumber = 12; + private string geolocationGnssPayloadField_ = ""; + /// + /// GNSS payload field. + /// This holds the name of the field in the decoded payload object which + /// contains the GNSS payload bytes (as HEX string). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GeolocationGnssPayloadField { + get { return geolocationGnssPayloadField_; } + set { + geolocationGnssPayloadField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "geolocation_gnss_use_rx_time" field. + public const int GeolocationGnssUseRxTimeFieldNumber = 13; + private bool geolocationGnssUseRxTime_; + /// + /// GNSS use RX time. + /// In case this is set to true, the resolver will use the RX time of the + /// network instead of the timestamp included in the LR1110 payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool GeolocationGnssUseRxTime { + get { return geolocationGnssUseRxTime_; } + set { + geolocationGnssUseRxTime_ = value; + } + } + + /// Field number for the "geolocation_wifi" field. + public const int GeolocationWifiFieldNumber = 14; + private bool geolocationWifi_; + /// + /// Wifi based geolocation is enabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool GeolocationWifi { + get { return geolocationWifi_; } + set { + geolocationWifi_ = value; + } + } + + /// Field number for the "geolocation_wifi_payload_field" field. + public const int GeolocationWifiPayloadFieldFieldNumber = 15; + private string geolocationWifiPayloadField_ = ""; + /// + /// Wifi payload field. + /// This holds the name of the field in the decoded payload object which + /// contains an array of objects with the following fields: + /// * macAddress - e.g. 01:23:45:67:89:ab + /// * signalStrength - e.g. -51 (optional) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GeolocationWifiPayloadField { + get { return geolocationWifiPayloadField_; } + set { + geolocationWifiPayloadField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LoraCloudModemGeolocationServices); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LoraCloudModemGeolocationServices other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Token != other.Token) return false; + if (ModemEnabled != other.ModemEnabled) return false; + if (ModemPort != other.ModemPort) return false; + if (GnssPort != other.GnssPort) return false; + if (GnssUseRxTime != other.GnssUseRxTime) return false; + if (ParseTlv != other.ParseTlv) return false; + if (GeolocationBufferTtl != other.GeolocationBufferTtl) return false; + if (GeolocationMinBufferSize != other.GeolocationMinBufferSize) return false; + if (GeolocationTdoa != other.GeolocationTdoa) return false; + if (GeolocationRssi != other.GeolocationRssi) return false; + if (GeolocationGnss != other.GeolocationGnss) return false; + if (GeolocationGnssPayloadField != other.GeolocationGnssPayloadField) return false; + if (GeolocationGnssUseRxTime != other.GeolocationGnssUseRxTime) return false; + if (GeolocationWifi != other.GeolocationWifi) return false; + if (GeolocationWifiPayloadField != other.GeolocationWifiPayloadField) 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 (Token.Length != 0) hash ^= Token.GetHashCode(); + if (ModemEnabled != false) hash ^= ModemEnabled.GetHashCode(); + if (ModemPort != 0) hash ^= ModemPort.GetHashCode(); + if (GnssPort != 0) hash ^= GnssPort.GetHashCode(); + if (GnssUseRxTime != false) hash ^= GnssUseRxTime.GetHashCode(); + if (ParseTlv != false) hash ^= ParseTlv.GetHashCode(); + if (GeolocationBufferTtl != 0) hash ^= GeolocationBufferTtl.GetHashCode(); + if (GeolocationMinBufferSize != 0) hash ^= GeolocationMinBufferSize.GetHashCode(); + if (GeolocationTdoa != false) hash ^= GeolocationTdoa.GetHashCode(); + if (GeolocationRssi != false) hash ^= GeolocationRssi.GetHashCode(); + if (GeolocationGnss != false) hash ^= GeolocationGnss.GetHashCode(); + if (GeolocationGnssPayloadField.Length != 0) hash ^= GeolocationGnssPayloadField.GetHashCode(); + if (GeolocationGnssUseRxTime != false) hash ^= GeolocationGnssUseRxTime.GetHashCode(); + if (GeolocationWifi != false) hash ^= GeolocationWifi.GetHashCode(); + if (GeolocationWifiPayloadField.Length != 0) hash ^= GeolocationWifiPayloadField.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 (Token.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Token); + } + if (ModemEnabled != false) { + output.WriteRawTag(16); + output.WriteBool(ModemEnabled); + } + if (ModemPort != 0) { + output.WriteRawTag(24); + output.WriteUInt32(ModemPort); + } + if (GnssPort != 0) { + output.WriteRawTag(32); + output.WriteUInt32(GnssPort); + } + if (GnssUseRxTime != false) { + output.WriteRawTag(40); + output.WriteBool(GnssUseRxTime); + } + if (ParseTlv != false) { + output.WriteRawTag(48); + output.WriteBool(ParseTlv); + } + if (GeolocationBufferTtl != 0) { + output.WriteRawTag(56); + output.WriteUInt32(GeolocationBufferTtl); + } + if (GeolocationMinBufferSize != 0) { + output.WriteRawTag(64); + output.WriteUInt32(GeolocationMinBufferSize); + } + if (GeolocationTdoa != false) { + output.WriteRawTag(72); + output.WriteBool(GeolocationTdoa); + } + if (GeolocationRssi != false) { + output.WriteRawTag(80); + output.WriteBool(GeolocationRssi); + } + if (GeolocationGnss != false) { + output.WriteRawTag(88); + output.WriteBool(GeolocationGnss); + } + if (GeolocationGnssPayloadField.Length != 0) { + output.WriteRawTag(98); + output.WriteString(GeolocationGnssPayloadField); + } + if (GeolocationGnssUseRxTime != false) { + output.WriteRawTag(104); + output.WriteBool(GeolocationGnssUseRxTime); + } + if (GeolocationWifi != false) { + output.WriteRawTag(112); + output.WriteBool(GeolocationWifi); + } + if (GeolocationWifiPayloadField.Length != 0) { + output.WriteRawTag(122); + output.WriteString(GeolocationWifiPayloadField); + } + 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 (Token.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Token); + } + if (ModemEnabled != false) { + output.WriteRawTag(16); + output.WriteBool(ModemEnabled); + } + if (ModemPort != 0) { + output.WriteRawTag(24); + output.WriteUInt32(ModemPort); + } + if (GnssPort != 0) { + output.WriteRawTag(32); + output.WriteUInt32(GnssPort); + } + if (GnssUseRxTime != false) { + output.WriteRawTag(40); + output.WriteBool(GnssUseRxTime); + } + if (ParseTlv != false) { + output.WriteRawTag(48); + output.WriteBool(ParseTlv); + } + if (GeolocationBufferTtl != 0) { + output.WriteRawTag(56); + output.WriteUInt32(GeolocationBufferTtl); + } + if (GeolocationMinBufferSize != 0) { + output.WriteRawTag(64); + output.WriteUInt32(GeolocationMinBufferSize); + } + if (GeolocationTdoa != false) { + output.WriteRawTag(72); + output.WriteBool(GeolocationTdoa); + } + if (GeolocationRssi != false) { + output.WriteRawTag(80); + output.WriteBool(GeolocationRssi); + } + if (GeolocationGnss != false) { + output.WriteRawTag(88); + output.WriteBool(GeolocationGnss); + } + if (GeolocationGnssPayloadField.Length != 0) { + output.WriteRawTag(98); + output.WriteString(GeolocationGnssPayloadField); + } + if (GeolocationGnssUseRxTime != false) { + output.WriteRawTag(104); + output.WriteBool(GeolocationGnssUseRxTime); + } + if (GeolocationWifi != false) { + output.WriteRawTag(112); + output.WriteBool(GeolocationWifi); + } + if (GeolocationWifiPayloadField.Length != 0) { + output.WriteRawTag(122); + output.WriteString(GeolocationWifiPayloadField); + } + 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 (Token.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); + } + if (ModemEnabled != false) { + size += 1 + 1; + } + if (ModemPort != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ModemPort); + } + if (GnssPort != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GnssPort); + } + if (GnssUseRxTime != false) { + size += 1 + 1; + } + if (ParseTlv != false) { + size += 1 + 1; + } + if (GeolocationBufferTtl != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GeolocationBufferTtl); + } + if (GeolocationMinBufferSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GeolocationMinBufferSize); + } + if (GeolocationTdoa != false) { + size += 1 + 1; + } + if (GeolocationRssi != false) { + size += 1 + 1; + } + if (GeolocationGnss != false) { + size += 1 + 1; + } + if (GeolocationGnssPayloadField.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GeolocationGnssPayloadField); + } + if (GeolocationGnssUseRxTime != false) { + size += 1 + 1; + } + if (GeolocationWifi != false) { + size += 1 + 1; + } + if (GeolocationWifiPayloadField.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GeolocationWifiPayloadField); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LoraCloudModemGeolocationServices other) { + if (other == null) { + return; + } + if (other.Token.Length != 0) { + Token = other.Token; + } + if (other.ModemEnabled != false) { + ModemEnabled = other.ModemEnabled; + } + if (other.ModemPort != 0) { + ModemPort = other.ModemPort; + } + if (other.GnssPort != 0) { + GnssPort = other.GnssPort; + } + if (other.GnssUseRxTime != false) { + GnssUseRxTime = other.GnssUseRxTime; + } + if (other.ParseTlv != false) { + ParseTlv = other.ParseTlv; + } + if (other.GeolocationBufferTtl != 0) { + GeolocationBufferTtl = other.GeolocationBufferTtl; + } + if (other.GeolocationMinBufferSize != 0) { + GeolocationMinBufferSize = other.GeolocationMinBufferSize; + } + if (other.GeolocationTdoa != false) { + GeolocationTdoa = other.GeolocationTdoa; + } + if (other.GeolocationRssi != false) { + GeolocationRssi = other.GeolocationRssi; + } + if (other.GeolocationGnss != false) { + GeolocationGnss = other.GeolocationGnss; + } + if (other.GeolocationGnssPayloadField.Length != 0) { + GeolocationGnssPayloadField = other.GeolocationGnssPayloadField; + } + if (other.GeolocationGnssUseRxTime != false) { + GeolocationGnssUseRxTime = other.GeolocationGnssUseRxTime; + } + if (other.GeolocationWifi != false) { + GeolocationWifi = other.GeolocationWifi; + } + if (other.GeolocationWifiPayloadField.Length != 0) { + GeolocationWifiPayloadField = other.GeolocationWifiPayloadField; + } + _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: { + Token = input.ReadString(); + break; + } + case 16: { + ModemEnabled = input.ReadBool(); + break; + } + case 24: { + ModemPort = input.ReadUInt32(); + break; + } + case 32: { + GnssPort = input.ReadUInt32(); + break; + } + case 40: { + GnssUseRxTime = input.ReadBool(); + break; + } + case 48: { + ParseTlv = input.ReadBool(); + break; + } + case 56: { + GeolocationBufferTtl = input.ReadUInt32(); + break; + } + case 64: { + GeolocationMinBufferSize = input.ReadUInt32(); + break; + } + case 72: { + GeolocationTdoa = input.ReadBool(); + break; + } + case 80: { + GeolocationRssi = input.ReadBool(); + break; + } + case 88: { + GeolocationGnss = input.ReadBool(); + break; + } + case 98: { + GeolocationGnssPayloadField = input.ReadString(); + break; + } + case 104: { + GeolocationGnssUseRxTime = input.ReadBool(); + break; + } + case 112: { + GeolocationWifi = input.ReadBool(); + break; + } + case 122: { + GeolocationWifiPayloadField = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Token = input.ReadString(); + break; + } + case 16: { + ModemEnabled = input.ReadBool(); + break; + } + case 24: { + ModemPort = input.ReadUInt32(); + break; + } + case 32: { + GnssPort = input.ReadUInt32(); + break; + } + case 40: { + GnssUseRxTime = input.ReadBool(); + break; + } + case 48: { + ParseTlv = input.ReadBool(); + break; + } + case 56: { + GeolocationBufferTtl = input.ReadUInt32(); + break; + } + case 64: { + GeolocationMinBufferSize = input.ReadUInt32(); + break; + } + case 72: { + GeolocationTdoa = input.ReadBool(); + break; + } + case 80: { + GeolocationRssi = input.ReadBool(); + break; + } + case 88: { + GeolocationGnss = input.ReadBool(); + break; + } + case 98: { + GeolocationGnssPayloadField = input.ReadString(); + break; + } + case 104: { + GeolocationGnssUseRxTime = input.ReadBool(); + break; + } + case 112: { + GeolocationWifi = input.ReadBool(); + break; + } + case 122: { + GeolocationWifiPayloadField = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateLoraCloudIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateLoraCloudIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[39]; } + } + + [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 CreateLoraCloudIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateLoraCloudIntegrationRequest(CreateLoraCloudIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateLoraCloudIntegrationRequest Clone() { + return new CreateLoraCloudIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.LoraCloudIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.LoraCloudIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateLoraCloudIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateLoraCloudIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateLoraCloudIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.LoraCloudIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.LoraCloudIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.LoraCloudIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetLoraCloudIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLoraCloudIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[40]; } + } + + [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 GetLoraCloudIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetLoraCloudIntegrationRequest(GetLoraCloudIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetLoraCloudIntegrationRequest Clone() { + return new GetLoraCloudIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetLoraCloudIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetLoraCloudIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetLoraCloudIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetLoraCloudIntegrationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLoraCloudIntegrationResponse()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[41]; } + } + + [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 GetLoraCloudIntegrationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetLoraCloudIntegrationResponse(GetLoraCloudIntegrationResponse other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetLoraCloudIntegrationResponse Clone() { + return new GetLoraCloudIntegrationResponse(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.LoraCloudIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.LoraCloudIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetLoraCloudIntegrationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetLoraCloudIntegrationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetLoraCloudIntegrationResponse other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.LoraCloudIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.LoraCloudIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.LoraCloudIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateLoraCloudIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateLoraCloudIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[42]; } + } + + [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 UpdateLoraCloudIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateLoraCloudIntegrationRequest(UpdateLoraCloudIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateLoraCloudIntegrationRequest Clone() { + return new UpdateLoraCloudIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.LoraCloudIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.LoraCloudIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateLoraCloudIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateLoraCloudIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateLoraCloudIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.LoraCloudIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.LoraCloudIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.LoraCloudIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteLoraCloudIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteLoraCloudIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[43]; } + } + + [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 DeleteLoraCloudIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteLoraCloudIntegrationRequest(DeleteLoraCloudIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteLoraCloudIntegrationRequest Clone() { + return new DeleteLoraCloudIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteLoraCloudIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteLoraCloudIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteLoraCloudIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GcpPubSubIntegration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GcpPubSubIntegration()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[44]; } + } + + [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 GcpPubSubIntegration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GcpPubSubIntegration(GcpPubSubIntegration other) : this() { + applicationId_ = other.applicationId_; + encoding_ = other.encoding_; + credentialsFile_ = other.credentialsFile_; + projectId_ = other.projectId_; + topicName_ = other.topicName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GcpPubSubIntegration Clone() { + return new GcpPubSubIntegration(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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 "encoding" field. + public const int EncodingFieldNumber = 2; + private global::Chirpstack.Api.Encoding encoding_ = global::Chirpstack.Api.Encoding.Json; + /// + /// Encoding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Encoding Encoding { + get { return encoding_; } + set { + encoding_ = value; + } + } + + /// Field number for the "credentials_file" field. + public const int CredentialsFileFieldNumber = 3; + private string credentialsFile_ = ""; + /// + /// Credentials file. + /// This IAM service-account credentials file (JSON) must have the following Pub/Sub roles: + /// * Pub/Sub Publisher + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CredentialsFile { + get { return credentialsFile_; } + set { + credentialsFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "project_id" field. + public const int ProjectIdFieldNumber = 4; + private string projectId_ = ""; + /// + /// Project ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ProjectId { + get { return projectId_; } + set { + projectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "topic_name" field. + public const int TopicNameFieldNumber = 5; + private string topicName_ = ""; + /// + /// Topic name. + /// This is the name of the Pub/Sub topic. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TopicName { + get { return topicName_; } + set { + topicName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GcpPubSubIntegration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GcpPubSubIntegration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) return false; + if (Encoding != other.Encoding) return false; + if (CredentialsFile != other.CredentialsFile) return false; + if (ProjectId != other.ProjectId) return false; + if (TopicName != other.TopicName) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + if (Encoding != global::Chirpstack.Api.Encoding.Json) hash ^= Encoding.GetHashCode(); + if (CredentialsFile.Length != 0) hash ^= CredentialsFile.GetHashCode(); + if (ProjectId.Length != 0) hash ^= ProjectId.GetHashCode(); + if (TopicName.Length != 0) hash ^= TopicName.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Encoding != global::Chirpstack.Api.Encoding.Json) { + output.WriteRawTag(16); + output.WriteEnum((int) Encoding); + } + if (CredentialsFile.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CredentialsFile); + } + if (ProjectId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ProjectId); + } + if (TopicName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(TopicName); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Encoding != global::Chirpstack.Api.Encoding.Json) { + output.WriteRawTag(16); + output.WriteEnum((int) Encoding); + } + if (CredentialsFile.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CredentialsFile); + } + if (ProjectId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ProjectId); + } + if (TopicName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(TopicName); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (Encoding != global::Chirpstack.Api.Encoding.Json) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Encoding); + } + if (CredentialsFile.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CredentialsFile); + } + if (ProjectId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ProjectId); + } + if (TopicName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TopicName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GcpPubSubIntegration other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + if (other.Encoding != global::Chirpstack.Api.Encoding.Json) { + Encoding = other.Encoding; + } + if (other.CredentialsFile.Length != 0) { + CredentialsFile = other.CredentialsFile; + } + if (other.ProjectId.Length != 0) { + ProjectId = other.ProjectId; + } + if (other.TopicName.Length != 0) { + TopicName = other.TopicName; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + case 16: { + Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); + break; + } + case 26: { + CredentialsFile = input.ReadString(); + break; + } + case 34: { + ProjectId = input.ReadString(); + break; + } + case 42: { + TopicName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + case 16: { + Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); + break; + } + case 26: { + CredentialsFile = input.ReadString(); + break; + } + case 34: { + ProjectId = input.ReadString(); + break; + } + case 42: { + TopicName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateGcpPubSubIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateGcpPubSubIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[45]; } + } + + [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 CreateGcpPubSubIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateGcpPubSubIntegrationRequest(CreateGcpPubSubIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateGcpPubSubIntegrationRequest Clone() { + return new CreateGcpPubSubIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.GcpPubSubIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.GcpPubSubIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateGcpPubSubIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateGcpPubSubIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateGcpPubSubIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGcpPubSubIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGcpPubSubIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[46]; } + } + + [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 GetGcpPubSubIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGcpPubSubIntegrationRequest(GetGcpPubSubIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGcpPubSubIntegrationRequest Clone() { + return new GetGcpPubSubIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGcpPubSubIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGcpPubSubIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGcpPubSubIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGcpPubSubIntegrationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGcpPubSubIntegrationResponse()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[47]; } + } + + [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 GetGcpPubSubIntegrationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGcpPubSubIntegrationResponse(GetGcpPubSubIntegrationResponse other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGcpPubSubIntegrationResponse Clone() { + return new GetGcpPubSubIntegrationResponse(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.GcpPubSubIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.GcpPubSubIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGcpPubSubIntegrationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGcpPubSubIntegrationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGcpPubSubIntegrationResponse other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateGcpPubSubIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateGcpPubSubIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[48]; } + } + + [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 UpdateGcpPubSubIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateGcpPubSubIntegrationRequest(UpdateGcpPubSubIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateGcpPubSubIntegrationRequest Clone() { + return new UpdateGcpPubSubIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.GcpPubSubIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.GcpPubSubIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateGcpPubSubIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateGcpPubSubIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateGcpPubSubIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteGcpPubSubIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteGcpPubSubIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[49]; } + } + + [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 DeleteGcpPubSubIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteGcpPubSubIntegrationRequest(DeleteGcpPubSubIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteGcpPubSubIntegrationRequest Clone() { + return new DeleteGcpPubSubIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteGcpPubSubIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteGcpPubSubIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteGcpPubSubIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AwsSnsIntegration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AwsSnsIntegration()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[50]; } + } + + [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 AwsSnsIntegration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AwsSnsIntegration(AwsSnsIntegration other) : this() { + applicationId_ = other.applicationId_; + encoding_ = other.encoding_; + region_ = other.region_; + accessKeyId_ = other.accessKeyId_; + secretAccessKey_ = other.secretAccessKey_; + topicArn_ = other.topicArn_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AwsSnsIntegration Clone() { + return new AwsSnsIntegration(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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 "encoding" field. + public const int EncodingFieldNumber = 2; + private global::Chirpstack.Api.Encoding encoding_ = global::Chirpstack.Api.Encoding.Json; + /// + /// Encoding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Encoding Encoding { + get { return encoding_; } + set { + encoding_ = value; + } + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 3; + private string region_ = ""; + /// + /// AWS region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Region { + get { return region_; } + set { + region_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "access_key_id" field. + public const int AccessKeyIdFieldNumber = 4; + private string accessKeyId_ = ""; + /// + /// AWS Access Key ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AccessKeyId { + get { return accessKeyId_; } + set { + accessKeyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "secret_access_key" field. + public const int SecretAccessKeyFieldNumber = 5; + private string secretAccessKey_ = ""; + /// + /// AWS Secret Access Key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SecretAccessKey { + get { return secretAccessKey_; } + set { + secretAccessKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "topic_arn" field. + public const int TopicArnFieldNumber = 6; + private string topicArn_ = ""; + /// + /// Topic ARN. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TopicArn { + get { return topicArn_; } + set { + topicArn_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AwsSnsIntegration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AwsSnsIntegration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) return false; + if (Encoding != other.Encoding) return false; + if (Region != other.Region) return false; + if (AccessKeyId != other.AccessKeyId) return false; + if (SecretAccessKey != other.SecretAccessKey) return false; + if (TopicArn != other.TopicArn) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + if (Encoding != global::Chirpstack.Api.Encoding.Json) hash ^= Encoding.GetHashCode(); + if (Region.Length != 0) hash ^= Region.GetHashCode(); + if (AccessKeyId.Length != 0) hash ^= AccessKeyId.GetHashCode(); + if (SecretAccessKey.Length != 0) hash ^= SecretAccessKey.GetHashCode(); + if (TopicArn.Length != 0) hash ^= TopicArn.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Encoding != global::Chirpstack.Api.Encoding.Json) { + output.WriteRawTag(16); + output.WriteEnum((int) Encoding); + } + if (Region.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Region); + } + if (AccessKeyId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AccessKeyId); + } + if (SecretAccessKey.Length != 0) { + output.WriteRawTag(42); + output.WriteString(SecretAccessKey); + } + if (TopicArn.Length != 0) { + output.WriteRawTag(50); + output.WriteString(TopicArn); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Encoding != global::Chirpstack.Api.Encoding.Json) { + output.WriteRawTag(16); + output.WriteEnum((int) Encoding); + } + if (Region.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Region); + } + if (AccessKeyId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AccessKeyId); + } + if (SecretAccessKey.Length != 0) { + output.WriteRawTag(42); + output.WriteString(SecretAccessKey); + } + if (TopicArn.Length != 0) { + output.WriteRawTag(50); + output.WriteString(TopicArn); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (Encoding != global::Chirpstack.Api.Encoding.Json) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Encoding); + } + if (Region.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); + } + if (AccessKeyId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessKeyId); + } + if (SecretAccessKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SecretAccessKey); + } + if (TopicArn.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TopicArn); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AwsSnsIntegration other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + if (other.Encoding != global::Chirpstack.Api.Encoding.Json) { + Encoding = other.Encoding; + } + if (other.Region.Length != 0) { + Region = other.Region; + } + if (other.AccessKeyId.Length != 0) { + AccessKeyId = other.AccessKeyId; + } + if (other.SecretAccessKey.Length != 0) { + SecretAccessKey = other.SecretAccessKey; + } + if (other.TopicArn.Length != 0) { + TopicArn = other.TopicArn; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + case 16: { + Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); + break; + } + case 26: { + Region = input.ReadString(); + break; + } + case 34: { + AccessKeyId = input.ReadString(); + break; + } + case 42: { + SecretAccessKey = input.ReadString(); + break; + } + case 50: { + TopicArn = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + case 16: { + Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); + break; + } + case 26: { + Region = input.ReadString(); + break; + } + case 34: { + AccessKeyId = input.ReadString(); + break; + } + case 42: { + SecretAccessKey = input.ReadString(); + break; + } + case 50: { + TopicArn = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateAwsSnsIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAwsSnsIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[51]; } + } + + [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 CreateAwsSnsIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAwsSnsIntegrationRequest(CreateAwsSnsIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAwsSnsIntegrationRequest Clone() { + return new CreateAwsSnsIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.AwsSnsIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.AwsSnsIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateAwsSnsIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateAwsSnsIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateAwsSnsIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.AwsSnsIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.AwsSnsIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.AwsSnsIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetAwsSnsIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAwsSnsIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[52]; } + } + + [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 GetAwsSnsIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAwsSnsIntegrationRequest(GetAwsSnsIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAwsSnsIntegrationRequest Clone() { + return new GetAwsSnsIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetAwsSnsIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetAwsSnsIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetAwsSnsIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetAwsSnsIntegrationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAwsSnsIntegrationResponse()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[53]; } + } + + [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 GetAwsSnsIntegrationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAwsSnsIntegrationResponse(GetAwsSnsIntegrationResponse other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAwsSnsIntegrationResponse Clone() { + return new GetAwsSnsIntegrationResponse(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.AwsSnsIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.AwsSnsIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetAwsSnsIntegrationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetAwsSnsIntegrationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetAwsSnsIntegrationResponse other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.AwsSnsIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.AwsSnsIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.AwsSnsIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateAwsSnsIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateAwsSnsIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[54]; } + } + + [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 UpdateAwsSnsIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAwsSnsIntegrationRequest(UpdateAwsSnsIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAwsSnsIntegrationRequest Clone() { + return new UpdateAwsSnsIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.AwsSnsIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.AwsSnsIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateAwsSnsIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateAwsSnsIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateAwsSnsIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.AwsSnsIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.AwsSnsIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.AwsSnsIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteAwsSnsIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteAwsSnsIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[55]; } + } + + [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 DeleteAwsSnsIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteAwsSnsIntegrationRequest(DeleteAwsSnsIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteAwsSnsIntegrationRequest Clone() { + return new DeleteAwsSnsIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteAwsSnsIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteAwsSnsIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteAwsSnsIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AzureServiceBusIntegration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AzureServiceBusIntegration()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[56]; } + } + + [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 AzureServiceBusIntegration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AzureServiceBusIntegration(AzureServiceBusIntegration other) : this() { + applicationId_ = other.applicationId_; + encoding_ = other.encoding_; + connectionString_ = other.connectionString_; + publishName_ = other.publishName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AzureServiceBusIntegration Clone() { + return new AzureServiceBusIntegration(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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 "encoding" field. + public const int EncodingFieldNumber = 2; + private global::Chirpstack.Api.Encoding encoding_ = global::Chirpstack.Api.Encoding.Json; + /// + /// Encoding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Encoding Encoding { + get { return encoding_; } + set { + encoding_ = value; + } + } + + /// Field number for the "connection_string" field. + public const int ConnectionStringFieldNumber = 3; + private string connectionString_ = ""; + /// + /// Connection string. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConnectionString { + get { return connectionString_; } + set { + connectionString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "publish_name" field. + public const int PublishNameFieldNumber = 4; + private string publishName_ = ""; + /// + /// Publish name. + /// This is the name of the topic or queue. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PublishName { + get { return publishName_; } + set { + publishName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AzureServiceBusIntegration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AzureServiceBusIntegration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) return false; + if (Encoding != other.Encoding) return false; + if (ConnectionString != other.ConnectionString) return false; + if (PublishName != other.PublishName) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + if (Encoding != global::Chirpstack.Api.Encoding.Json) hash ^= Encoding.GetHashCode(); + if (ConnectionString.Length != 0) hash ^= ConnectionString.GetHashCode(); + if (PublishName.Length != 0) hash ^= PublishName.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Encoding != global::Chirpstack.Api.Encoding.Json) { + output.WriteRawTag(16); + output.WriteEnum((int) Encoding); + } + if (ConnectionString.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConnectionString); + } + if (PublishName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(PublishName); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Encoding != global::Chirpstack.Api.Encoding.Json) { + output.WriteRawTag(16); + output.WriteEnum((int) Encoding); + } + if (ConnectionString.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConnectionString); + } + if (PublishName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(PublishName); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (Encoding != global::Chirpstack.Api.Encoding.Json) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Encoding); + } + if (ConnectionString.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConnectionString); + } + if (PublishName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PublishName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AzureServiceBusIntegration other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + if (other.Encoding != global::Chirpstack.Api.Encoding.Json) { + Encoding = other.Encoding; + } + if (other.ConnectionString.Length != 0) { + ConnectionString = other.ConnectionString; + } + if (other.PublishName.Length != 0) { + PublishName = other.PublishName; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + case 16: { + Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); + break; + } + case 26: { + ConnectionString = input.ReadString(); + break; + } + case 34: { + PublishName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + case 16: { + Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); + break; + } + case 26: { + ConnectionString = input.ReadString(); + break; + } + case 34: { + PublishName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateAzureServiceBusIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAzureServiceBusIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[57]; } + } + + [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 CreateAzureServiceBusIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAzureServiceBusIntegrationRequest(CreateAzureServiceBusIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAzureServiceBusIntegrationRequest Clone() { + return new CreateAzureServiceBusIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.AzureServiceBusIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.AzureServiceBusIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateAzureServiceBusIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateAzureServiceBusIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateAzureServiceBusIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetAzureServiceBusIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAzureServiceBusIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[58]; } + } + + [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 GetAzureServiceBusIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAzureServiceBusIntegrationRequest(GetAzureServiceBusIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAzureServiceBusIntegrationRequest Clone() { + return new GetAzureServiceBusIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetAzureServiceBusIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetAzureServiceBusIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetAzureServiceBusIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetAzureServiceBusIntegrationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAzureServiceBusIntegrationResponse()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[59]; } + } + + [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 GetAzureServiceBusIntegrationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAzureServiceBusIntegrationResponse(GetAzureServiceBusIntegrationResponse other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAzureServiceBusIntegrationResponse Clone() { + return new GetAzureServiceBusIntegrationResponse(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.AzureServiceBusIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.AzureServiceBusIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetAzureServiceBusIntegrationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetAzureServiceBusIntegrationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetAzureServiceBusIntegrationResponse other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateAzureServiceBusIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateAzureServiceBusIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[60]; } + } + + [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 UpdateAzureServiceBusIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAzureServiceBusIntegrationRequest(UpdateAzureServiceBusIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAzureServiceBusIntegrationRequest Clone() { + return new UpdateAzureServiceBusIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.AzureServiceBusIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.AzureServiceBusIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateAzureServiceBusIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateAzureServiceBusIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateAzureServiceBusIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteAzureServiceBusIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteAzureServiceBusIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[61]; } + } + + [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 DeleteAzureServiceBusIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteAzureServiceBusIntegrationRequest(DeleteAzureServiceBusIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteAzureServiceBusIntegrationRequest Clone() { + return new DeleteAzureServiceBusIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteAzureServiceBusIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteAzureServiceBusIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteAzureServiceBusIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class PilotThingsIntegration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PilotThingsIntegration()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[62]; } + } + + [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 PilotThingsIntegration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PilotThingsIntegration(PilotThingsIntegration other) : this() { + applicationId_ = other.applicationId_; + server_ = other.server_; + token_ = other.token_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PilotThingsIntegration Clone() { + return new PilotThingsIntegration(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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 "server" field. + public const int ServerFieldNumber = 2; + private string server_ = ""; + /// + /// Server URL. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Server { + get { return server_; } + set { + server_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 3; + private string token_ = ""; + /// + /// Authentication token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Token { + get { return token_; } + set { + token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PilotThingsIntegration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PilotThingsIntegration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) return false; + if (Server != other.Server) return false; + if (Token != other.Token) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + if (Server.Length != 0) hash ^= Server.GetHashCode(); + if (Token.Length != 0) hash ^= Token.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Server.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Server); + } + if (Token.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Token); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Server.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Server); + } + if (Token.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Token); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (Server.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Server); + } + if (Token.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PilotThingsIntegration other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + if (other.Server.Length != 0) { + Server = other.Server; + } + if (other.Token.Length != 0) { + Token = other.Token; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + Server = input.ReadString(); + break; + } + case 26: { + Token = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + Server = input.ReadString(); + break; + } + case 26: { + Token = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreatePilotThingsIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreatePilotThingsIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[63]; } + } + + [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 CreatePilotThingsIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreatePilotThingsIntegrationRequest(CreatePilotThingsIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreatePilotThingsIntegrationRequest Clone() { + return new CreatePilotThingsIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.PilotThingsIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.PilotThingsIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreatePilotThingsIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreatePilotThingsIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreatePilotThingsIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.PilotThingsIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.PilotThingsIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.PilotThingsIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetPilotThingsIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPilotThingsIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[64]; } + } + + [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 GetPilotThingsIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPilotThingsIntegrationRequest(GetPilotThingsIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPilotThingsIntegrationRequest Clone() { + return new GetPilotThingsIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetPilotThingsIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetPilotThingsIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetPilotThingsIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetPilotThingsIntegrationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPilotThingsIntegrationResponse()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[65]; } + } + + [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 GetPilotThingsIntegrationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPilotThingsIntegrationResponse(GetPilotThingsIntegrationResponse other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPilotThingsIntegrationResponse Clone() { + return new GetPilotThingsIntegrationResponse(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.PilotThingsIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.PilotThingsIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetPilotThingsIntegrationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetPilotThingsIntegrationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetPilotThingsIntegrationResponse other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.PilotThingsIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.PilotThingsIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.PilotThingsIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdatePilotThingsIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdatePilotThingsIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[66]; } + } + + [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 UpdatePilotThingsIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdatePilotThingsIntegrationRequest(UpdatePilotThingsIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdatePilotThingsIntegrationRequest Clone() { + return new UpdatePilotThingsIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.PilotThingsIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.PilotThingsIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdatePilotThingsIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdatePilotThingsIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdatePilotThingsIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.PilotThingsIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.PilotThingsIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.PilotThingsIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeletePilotThingsIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeletePilotThingsIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[67]; } + } + + [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 DeletePilotThingsIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeletePilotThingsIntegrationRequest(DeletePilotThingsIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeletePilotThingsIntegrationRequest Clone() { + return new DeletePilotThingsIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeletePilotThingsIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeletePilotThingsIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeletePilotThingsIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class IftttIntegration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IftttIntegration()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[68]; } + } + + [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 IftttIntegration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IftttIntegration(IftttIntegration other) : this() { + applicationId_ = other.applicationId_; + key_ = other.key_; + uplinkValues_ = other.uplinkValues_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IftttIntegration Clone() { + return new IftttIntegration(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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 "key" field. + public const int KeyFieldNumber = 2; + private string key_ = ""; + /// + /// Key. + /// This key can be obtained from the IFTTT Webhooks documentation page. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Key { + get { return key_; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uplink_values" field. + public const int UplinkValuesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_uplinkValues_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField uplinkValues_ = new pbc::RepeatedField(); + /// + /// Values. + /// Up to 2 values can be forwarded to IFTTT. These values must map to the + /// decoded payload keys. For example: + /// { + /// "batteryLevel": 75.3, + /// "buttons": [{"pressed": false}, {"pressed": true}] + /// } + /// You would specify the following fields: + /// uplink_values = ["batteryLevel", "buttons_0_pressed"] + /// + /// Note: The first value is always used for the DevEUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UplinkValues { + get { return uplinkValues_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as IftttIntegration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(IftttIntegration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) return false; + if (Key != other.Key) return false; + if(!uplinkValues_.Equals(other.uplinkValues_)) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + if (Key.Length != 0) hash ^= Key.GetHashCode(); + hash ^= uplinkValues_.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Key.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Key); + } + uplinkValues_.WriteTo(output, _repeated_uplinkValues_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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + if (Key.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Key); + } + uplinkValues_.WriteTo(ref output, _repeated_uplinkValues_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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (Key.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); + } + size += uplinkValues_.CalculateSize(_repeated_uplinkValues_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(IftttIntegration other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + uplinkValues_.Add(other.uplinkValues_); + _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: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + Key = input.ReadString(); + break; + } + case 26: { + uplinkValues_.AddEntriesFrom(input, _repeated_uplinkValues_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: { + ApplicationId = input.ReadString(); + break; + } + case 18: { + Key = input.ReadString(); + break; + } + case 26: { + uplinkValues_.AddEntriesFrom(ref input, _repeated_uplinkValues_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateIftttIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateIftttIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[69]; } + } + + [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 CreateIftttIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateIftttIntegrationRequest(CreateIftttIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateIftttIntegrationRequest Clone() { + return new CreateIftttIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.IftttIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.IftttIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateIftttIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateIftttIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateIftttIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.IftttIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.IftttIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.IftttIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetIftttIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetIftttIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[70]; } + } + + [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 GetIftttIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetIftttIntegrationRequest(GetIftttIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetIftttIntegrationRequest Clone() { + return new GetIftttIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetIftttIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetIftttIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetIftttIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetIftttIntegrationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetIftttIntegrationResponse()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[71]; } + } + + [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 GetIftttIntegrationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetIftttIntegrationResponse(GetIftttIntegrationResponse other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetIftttIntegrationResponse Clone() { + return new GetIftttIntegrationResponse(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.IftttIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.IftttIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetIftttIntegrationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetIftttIntegrationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetIftttIntegrationResponse other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.IftttIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.IftttIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.IftttIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateIftttIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateIftttIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[72]; } + } + + [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 UpdateIftttIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateIftttIntegrationRequest(UpdateIftttIntegrationRequest other) : this() { + integration_ = other.integration_ != null ? other.integration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateIftttIntegrationRequest Clone() { + return new UpdateIftttIntegrationRequest(this); + } + + /// Field number for the "integration" field. + public const int IntegrationFieldNumber = 1; + private global::Chirpstack.Api.IftttIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.IftttIntegration Integration { + get { return integration_; } + set { + integration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateIftttIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateIftttIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Integration, other.Integration)) 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 (integration_ != null) hash ^= Integration.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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Integration); + } + 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 (integration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateIftttIntegrationRequest other) { + if (other == null) { + return; + } + if (other.integration_ != null) { + if (integration_ == null) { + Integration = new global::Chirpstack.Api.IftttIntegration(); + } + Integration.MergeFrom(other.Integration); + } + _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 (integration_ == null) { + Integration = new global::Chirpstack.Api.IftttIntegration(); + } + input.ReadMessage(Integration); + 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 (integration_ == null) { + Integration = new global::Chirpstack.Api.IftttIntegration(); + } + input.ReadMessage(Integration); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteIftttIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteIftttIntegrationRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[73]; } + } + + [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 DeleteIftttIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteIftttIntegrationRequest(DeleteIftttIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteIftttIntegrationRequest Clone() { + return new DeleteIftttIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteIftttIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteIftttIntegrationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteIftttIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GenerateMqttIntegrationClientCertificateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateMqttIntegrationClientCertificateRequest()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[74]; } + } + + [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 GenerateMqttIntegrationClientCertificateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateMqttIntegrationClientCertificateRequest(GenerateMqttIntegrationClientCertificateRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateMqttIntegrationClientCertificateRequest Clone() { + return new GenerateMqttIntegrationClientCertificateRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GenerateMqttIntegrationClientCertificateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GenerateMqttIntegrationClientCertificateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) 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 (ApplicationId.Length != 0) hash ^= ApplicationId.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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplicationId); + } + 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 (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GenerateMqttIntegrationClientCertificateRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GenerateMqttIntegrationClientCertificateResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateMqttIntegrationClientCertificateResponse()); + 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.Api.ApplicationReflection.Descriptor.MessageTypes[75]; } + } + + [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 GenerateMqttIntegrationClientCertificateResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateMqttIntegrationClientCertificateResponse(GenerateMqttIntegrationClientCertificateResponse other) : this() { + tlsCert_ = other.tlsCert_; + tlsKey_ = other.tlsKey_; + caCert_ = other.caCert_; + expiresAt_ = other.expiresAt_ != null ? other.expiresAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateMqttIntegrationClientCertificateResponse Clone() { + return new GenerateMqttIntegrationClientCertificateResponse(this); + } + + /// Field number for the "tls_cert" field. + public const int TlsCertFieldNumber = 1; + private string tlsCert_ = ""; + /// + /// TLS certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TlsCert { + get { return tlsCert_; } + set { + tlsCert_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tls_key" field. + public const int TlsKeyFieldNumber = 2; + private string tlsKey_ = ""; + /// + /// TLS key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TlsKey { + get { return tlsKey_; } + set { + tlsKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ca_cert" field. + public const int CaCertFieldNumber = 3; + private string caCert_ = ""; + /// + /// CA certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CaCert { + get { return caCert_; } + set { + caCert_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "expires_at" field. + public const int ExpiresAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp expiresAt_; + /// + /// Expires at defines the expiration date of the certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiresAt { + get { return expiresAt_; } + set { + expiresAt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GenerateMqttIntegrationClientCertificateResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GenerateMqttIntegrationClientCertificateResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TlsCert != other.TlsCert) return false; + if (TlsKey != other.TlsKey) return false; + if (CaCert != other.CaCert) return false; + if (!object.Equals(ExpiresAt, other.ExpiresAt)) 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 (TlsCert.Length != 0) hash ^= TlsCert.GetHashCode(); + if (TlsKey.Length != 0) hash ^= TlsKey.GetHashCode(); + if (CaCert.Length != 0) hash ^= CaCert.GetHashCode(); + if (expiresAt_ != null) hash ^= ExpiresAt.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 (TlsCert.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TlsCert); + } + if (TlsKey.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TlsKey); + } + if (CaCert.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CaCert); + } + if (expiresAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExpiresAt); + } + 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 (TlsCert.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TlsCert); + } + if (TlsKey.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TlsKey); + } + if (CaCert.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CaCert); + } + if (expiresAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExpiresAt); + } + 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 (TlsCert.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsCert); + } + if (TlsKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsKey); + } + if (CaCert.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CaCert); + } + if (expiresAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiresAt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GenerateMqttIntegrationClientCertificateResponse other) { + if (other == null) { + return; + } + if (other.TlsCert.Length != 0) { + TlsCert = other.TlsCert; + } + if (other.TlsKey.Length != 0) { + TlsKey = other.TlsKey; + } + if (other.CaCert.Length != 0) { + CaCert = other.CaCert; + } + if (other.expiresAt_ != null) { + if (expiresAt_ == null) { + ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpiresAt.MergeFrom(other.ExpiresAt); + } + _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: { + TlsCert = input.ReadString(); + break; + } + case 18: { + TlsKey = input.ReadString(); + break; + } + case 26: { + CaCert = input.ReadString(); + break; + } + case 34: { + if (expiresAt_ == null) { + ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiresAt); + 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: { + TlsCert = input.ReadString(); + break; + } + case 18: { + TlsKey = input.ReadString(); + break; + } + case 26: { + CaCert = input.ReadString(); + break; + } + case 34: { + if (expiresAt_ == null) { + ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiresAt); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/ApplicationGrpc.cs b/api/csharp/Chirpstack/api/ApplicationGrpc.cs new file mode 100644 index 00000000..7e6e9098 --- /dev/null +++ b/api/csharp/Chirpstack/api/ApplicationGrpc.cs @@ -0,0 +1,3534 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/application.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.Api { + /// + /// ApplicationService is the service providing API methods for managing applications. + /// + public static partial class ApplicationService + { + static readonly string __ServiceName = "api.ApplicationService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateApplicationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateApplicationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateApplicationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateApplicationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetApplicationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetApplicationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetApplicationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetApplicationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateApplicationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateApplicationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteApplicationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteApplicationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListApplicationsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListApplicationsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListApplicationsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListApplicationsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListIntegrationsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListIntegrationsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListIntegrationsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListIntegrationsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateHttpIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateHttpIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetHttpIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetHttpIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetHttpIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetHttpIntegrationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateHttpIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateHttpIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteHttpIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteHttpIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateInfluxDbIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateInfluxDbIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetInfluxDbIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetInfluxDbIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetInfluxDbIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetInfluxDbIntegrationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateInfluxDbIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteInfluxDbIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateThingsBoardIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateThingsBoardIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetThingsBoardIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetThingsBoardIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetThingsBoardIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetThingsBoardIntegrationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateThingsBoardIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteThingsBoardIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateMyDevicesIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateMyDevicesIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetMyDevicesIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetMyDevicesIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetMyDevicesIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetMyDevicesIntegrationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateMyDevicesIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteMyDevicesIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateLoraCloudIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateLoraCloudIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetLoraCloudIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetLoraCloudIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetLoraCloudIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetLoraCloudIntegrationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateLoraCloudIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteLoraCloudIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateGcpPubSubIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetGcpPubSubIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGcpPubSubIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetGcpPubSubIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGcpPubSubIntegrationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateGcpPubSubIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteGcpPubSubIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateAwsSnsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateAwsSnsIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetAwsSnsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetAwsSnsIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetAwsSnsIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetAwsSnsIntegrationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateAwsSnsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteAwsSnsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateAzureServiceBusIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetAzureServiceBusIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetAzureServiceBusIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetAzureServiceBusIntegrationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateAzureServiceBusIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteAzureServiceBusIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreatePilotThingsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreatePilotThingsIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetPilotThingsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetPilotThingsIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetPilotThingsIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetPilotThingsIntegrationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdatePilotThingsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeletePilotThingsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeletePilotThingsIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateIftttIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateIftttIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetIftttIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetIftttIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetIftttIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetIftttIntegrationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateIftttIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateIftttIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteIftttIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteIftttIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GenerateMqttIntegrationClientCertificateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GenerateMqttIntegrationClientCertificateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Create = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Create", + __Marshaller_api_CreateApplicationRequest, + __Marshaller_api_CreateApplicationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Get = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Get", + __Marshaller_api_GetApplicationRequest, + __Marshaller_api_GetApplicationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Update = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Update", + __Marshaller_api_UpdateApplicationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Delete = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Delete", + __Marshaller_api_DeleteApplicationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_List = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "List", + __Marshaller_api_ListApplicationsRequest, + __Marshaller_api_ListApplicationsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListIntegrations = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListIntegrations", + __Marshaller_api_ListIntegrationsRequest, + __Marshaller_api_ListIntegrationsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateHttpIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateHttpIntegration", + __Marshaller_api_CreateHttpIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetHttpIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetHttpIntegration", + __Marshaller_api_GetHttpIntegrationRequest, + __Marshaller_api_GetHttpIntegrationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateHttpIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateHttpIntegration", + __Marshaller_api_UpdateHttpIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteHttpIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteHttpIntegration", + __Marshaller_api_DeleteHttpIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateInfluxDbIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateInfluxDbIntegration", + __Marshaller_api_CreateInfluxDbIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetInfluxDbIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetInfluxDbIntegration", + __Marshaller_api_GetInfluxDbIntegrationRequest, + __Marshaller_api_GetInfluxDbIntegrationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateInfluxDbIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateInfluxDbIntegration", + __Marshaller_api_UpdateInfluxDbIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteInfluxDbIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteInfluxDbIntegration", + __Marshaller_api_DeleteInfluxDbIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateThingsBoardIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateThingsBoardIntegration", + __Marshaller_api_CreateThingsBoardIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetThingsBoardIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetThingsBoardIntegration", + __Marshaller_api_GetThingsBoardIntegrationRequest, + __Marshaller_api_GetThingsBoardIntegrationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateThingsBoardIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateThingsBoardIntegration", + __Marshaller_api_UpdateThingsBoardIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteThingsBoardIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteThingsBoardIntegration", + __Marshaller_api_DeleteThingsBoardIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateMyDevicesIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateMyDevicesIntegration", + __Marshaller_api_CreateMyDevicesIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetMyDevicesIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetMyDevicesIntegration", + __Marshaller_api_GetMyDevicesIntegrationRequest, + __Marshaller_api_GetMyDevicesIntegrationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateMyDevicesIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateMyDevicesIntegration", + __Marshaller_api_UpdateMyDevicesIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteMyDevicesIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteMyDevicesIntegration", + __Marshaller_api_DeleteMyDevicesIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateLoraCloudIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateLoraCloudIntegration", + __Marshaller_api_CreateLoraCloudIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetLoraCloudIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetLoraCloudIntegration", + __Marshaller_api_GetLoraCloudIntegrationRequest, + __Marshaller_api_GetLoraCloudIntegrationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateLoraCloudIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateLoraCloudIntegration", + __Marshaller_api_UpdateLoraCloudIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteLoraCloudIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteLoraCloudIntegration", + __Marshaller_api_DeleteLoraCloudIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateGcpPubSubIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateGcpPubSubIntegration", + __Marshaller_api_CreateGcpPubSubIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetGcpPubSubIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetGcpPubSubIntegration", + __Marshaller_api_GetGcpPubSubIntegrationRequest, + __Marshaller_api_GetGcpPubSubIntegrationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateGcpPubSubIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateGcpPubSubIntegration", + __Marshaller_api_UpdateGcpPubSubIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteGcpPubSubIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteGcpPubSubIntegration", + __Marshaller_api_DeleteGcpPubSubIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateAwsSnsIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateAwsSnsIntegration", + __Marshaller_api_CreateAwsSnsIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetAwsSnsIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetAwsSnsIntegration", + __Marshaller_api_GetAwsSnsIntegrationRequest, + __Marshaller_api_GetAwsSnsIntegrationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateAwsSnsIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateAwsSnsIntegration", + __Marshaller_api_UpdateAwsSnsIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteAwsSnsIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteAwsSnsIntegration", + __Marshaller_api_DeleteAwsSnsIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateAzureServiceBusIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateAzureServiceBusIntegration", + __Marshaller_api_CreateAzureServiceBusIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetAzureServiceBusIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetAzureServiceBusIntegration", + __Marshaller_api_GetAzureServiceBusIntegrationRequest, + __Marshaller_api_GetAzureServiceBusIntegrationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateAzureServiceBusIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateAzureServiceBusIntegration", + __Marshaller_api_UpdateAzureServiceBusIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteAzureServiceBusIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteAzureServiceBusIntegration", + __Marshaller_api_DeleteAzureServiceBusIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreatePilotThingsIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreatePilotThingsIntegration", + __Marshaller_api_CreatePilotThingsIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetPilotThingsIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetPilotThingsIntegration", + __Marshaller_api_GetPilotThingsIntegrationRequest, + __Marshaller_api_GetPilotThingsIntegrationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdatePilotThingsIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdatePilotThingsIntegration", + __Marshaller_api_UpdatePilotThingsIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeletePilotThingsIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeletePilotThingsIntegration", + __Marshaller_api_DeletePilotThingsIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateIftttIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateIftttIntegration", + __Marshaller_api_CreateIftttIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetIftttIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetIftttIntegration", + __Marshaller_api_GetIftttIntegrationRequest, + __Marshaller_api_GetIftttIntegrationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateIftttIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateIftttIntegration", + __Marshaller_api_UpdateIftttIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteIftttIntegration = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteIftttIntegration", + __Marshaller_api_DeleteIftttIntegrationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GenerateMqttIntegrationClientCertificate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GenerateMqttIntegrationClientCertificate", + __Marshaller_api_GenerateMqttIntegrationClientCertificateRequest, + __Marshaller_api_GenerateMqttIntegrationClientCertificateResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of ApplicationService + [grpc::BindServiceMethod(typeof(ApplicationService), "BindService")] + public abstract partial class ApplicationServiceBase + { + /// + /// Create creates the given application. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateApplicationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the application for the given ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetApplicationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update updates the given application. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateApplicationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete the application for the given ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteApplicationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the list of applications. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListApplicationsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List all configured integrations. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListIntegrations(global::Chirpstack.Api.ListIntegrationsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create HTTP integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateHttpIntegration(global::Chirpstack.Api.CreateHttpIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the configured HTTP integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetHttpIntegration(global::Chirpstack.Api.GetHttpIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update the HTTP integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateHttpIntegration(global::Chirpstack.Api.UpdateHttpIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete the HTTP integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteHttpIntegration(global::Chirpstack.Api.DeleteHttpIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create InfluxDb integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateInfluxDbIntegration(global::Chirpstack.Api.CreateInfluxDbIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get InfluxDb integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetInfluxDbIntegration(global::Chirpstack.Api.GetInfluxDbIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update InfluxDb integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateInfluxDbIntegration(global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete InfluxDb integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteInfluxDbIntegration(global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create ThingsBoard integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateThingsBoardIntegration(global::Chirpstack.Api.CreateThingsBoardIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get ThingsBoard integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetThingsBoardIntegration(global::Chirpstack.Api.GetThingsBoardIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update ThingsBoard integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateThingsBoardIntegration(global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete ThingsBoard integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteThingsBoardIntegration(global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create myDevices integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateMyDevicesIntegration(global::Chirpstack.Api.CreateMyDevicesIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get myDevices integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetMyDevicesIntegration(global::Chirpstack.Api.GetMyDevicesIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update myDevices integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateMyDevicesIntegration(global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete myDevices integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteMyDevicesIntegration(global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create LoRaCloud integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateLoraCloudIntegration(global::Chirpstack.Api.CreateLoraCloudIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get LoRaCloud integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetLoraCloudIntegration(global::Chirpstack.Api.GetLoraCloudIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update LoRaCloud integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateLoraCloudIntegration(global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete LoRaCloud integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteLoraCloudIntegration(global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create GCP Pub/Sub integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateGcpPubSubIntegration(global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get GCP Pub/Sub integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetGcpPubSubIntegration(global::Chirpstack.Api.GetGcpPubSubIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update GCP Pub/Sub integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateGcpPubSubIntegration(global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete GCP Pub/Sub integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteGcpPubSubIntegration(global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create AWS SNS integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateAwsSnsIntegration(global::Chirpstack.Api.CreateAwsSnsIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get AWS SNS integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetAwsSnsIntegration(global::Chirpstack.Api.GetAwsSnsIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update AWS SNS integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateAwsSnsIntegration(global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete AWS SNS integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteAwsSnsIntegration(global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create Azure Service-Bus integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateAzureServiceBusIntegration(global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get Azure Service-Bus integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetAzureServiceBusIntegration(global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update Azure Service-Bus integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateAzureServiceBusIntegration(global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete Azure Service-Bus integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteAzureServiceBusIntegration(global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create Pilot Things integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreatePilotThingsIntegration(global::Chirpstack.Api.CreatePilotThingsIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get Pilot Things integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetPilotThingsIntegration(global::Chirpstack.Api.GetPilotThingsIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update Pilot Things integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdatePilotThingsIntegration(global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete Pilot Things integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeletePilotThingsIntegration(global::Chirpstack.Api.DeletePilotThingsIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create IFTTT integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateIftttIntegration(global::Chirpstack.Api.CreateIftttIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get IFTTT integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetIftttIntegration(global::Chirpstack.Api.GetIftttIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update IFTTT integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateIftttIntegration(global::Chirpstack.Api.UpdateIftttIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete IFTTT integration. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteIftttIntegration(global::Chirpstack.Api.DeleteIftttIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Generates application ID specific client-certificate. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GenerateMqttIntegrationClientCertificate(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for ApplicationService + public partial class ApplicationServiceClient : grpc::ClientBase + { + /// Creates a new client for ApplicationService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public ApplicationServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for ApplicationService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public ApplicationServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected ApplicationServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected ApplicationServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Create creates the given application. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.CreateApplicationResponse Create(global::Chirpstack.Api.CreateApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create creates the given application. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.CreateApplicationResponse Create(global::Chirpstack.Api.CreateApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create creates the given application. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create creates the given application. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get the application for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetApplicationResponse Get(global::Chirpstack.Api.GetApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the application for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetApplicationResponse Get(global::Chirpstack.Api.GetApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get the application for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the application for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update updates the given application. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update updates the given application. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update updates the given application. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update updates the given application. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete the application for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the application for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete the application for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the application for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Get the list of applications. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListApplicationsResponse List(global::Chirpstack.Api.ListApplicationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the list of applications. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListApplicationsResponse List(global::Chirpstack.Api.ListApplicationsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// Get the list of applications. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListApplicationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the list of applications. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListApplicationsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// List all configured integrations. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListIntegrationsResponse ListIntegrations(global::Chirpstack.Api.ListIntegrationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListIntegrations(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// List all configured integrations. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListIntegrationsResponse ListIntegrations(global::Chirpstack.Api.ListIntegrationsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListIntegrations, null, options, request); + } + /// + /// List all configured integrations. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListIntegrationsAsync(global::Chirpstack.Api.ListIntegrationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListIntegrationsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// List all configured integrations. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListIntegrationsAsync(global::Chirpstack.Api.ListIntegrationsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListIntegrations, null, options, request); + } + /// + /// Create HTTP integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateHttpIntegration(global::Chirpstack.Api.CreateHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateHttpIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create HTTP integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateHttpIntegration(global::Chirpstack.Api.CreateHttpIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateHttpIntegration, null, options, request); + } + /// + /// Create HTTP integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateHttpIntegrationAsync(global::Chirpstack.Api.CreateHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateHttpIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create HTTP integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateHttpIntegrationAsync(global::Chirpstack.Api.CreateHttpIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateHttpIntegration, null, options, request); + } + /// + /// Get the configured HTTP integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetHttpIntegrationResponse GetHttpIntegration(global::Chirpstack.Api.GetHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetHttpIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the configured HTTP integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetHttpIntegrationResponse GetHttpIntegration(global::Chirpstack.Api.GetHttpIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetHttpIntegration, null, options, request); + } + /// + /// Get the configured HTTP integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetHttpIntegrationAsync(global::Chirpstack.Api.GetHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetHttpIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the configured HTTP integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetHttpIntegrationAsync(global::Chirpstack.Api.GetHttpIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetHttpIntegration, null, options, request); + } + /// + /// Update the HTTP integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateHttpIntegration(global::Chirpstack.Api.UpdateHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateHttpIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the HTTP integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateHttpIntegration(global::Chirpstack.Api.UpdateHttpIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateHttpIntegration, null, options, request); + } + /// + /// Update the HTTP integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateHttpIntegrationAsync(global::Chirpstack.Api.UpdateHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateHttpIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the HTTP integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateHttpIntegrationAsync(global::Chirpstack.Api.UpdateHttpIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateHttpIntegration, null, options, request); + } + /// + /// Delete the HTTP integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteHttpIntegration(global::Chirpstack.Api.DeleteHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteHttpIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the HTTP integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteHttpIntegration(global::Chirpstack.Api.DeleteHttpIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteHttpIntegration, null, options, request); + } + /// + /// Delete the HTTP integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteHttpIntegrationAsync(global::Chirpstack.Api.DeleteHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteHttpIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the HTTP integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteHttpIntegrationAsync(global::Chirpstack.Api.DeleteHttpIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteHttpIntegration, null, options, request); + } + /// + /// Create InfluxDb integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateInfluxDbIntegration(global::Chirpstack.Api.CreateInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateInfluxDbIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create InfluxDb integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateInfluxDbIntegration(global::Chirpstack.Api.CreateInfluxDbIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateInfluxDbIntegration, null, options, request); + } + /// + /// Create InfluxDb integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateInfluxDbIntegrationAsync(global::Chirpstack.Api.CreateInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateInfluxDbIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create InfluxDb integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateInfluxDbIntegrationAsync(global::Chirpstack.Api.CreateInfluxDbIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateInfluxDbIntegration, null, options, request); + } + /// + /// Get InfluxDb integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetInfluxDbIntegrationResponse GetInfluxDbIntegration(global::Chirpstack.Api.GetInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetInfluxDbIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get InfluxDb integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetInfluxDbIntegrationResponse GetInfluxDbIntegration(global::Chirpstack.Api.GetInfluxDbIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetInfluxDbIntegration, null, options, request); + } + /// + /// Get InfluxDb integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetInfluxDbIntegrationAsync(global::Chirpstack.Api.GetInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetInfluxDbIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get InfluxDb integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetInfluxDbIntegrationAsync(global::Chirpstack.Api.GetInfluxDbIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetInfluxDbIntegration, null, options, request); + } + /// + /// Update InfluxDb integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateInfluxDbIntegration(global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateInfluxDbIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update InfluxDb integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateInfluxDbIntegration(global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateInfluxDbIntegration, null, options, request); + } + /// + /// Update InfluxDb integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateInfluxDbIntegrationAsync(global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateInfluxDbIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update InfluxDb integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateInfluxDbIntegrationAsync(global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateInfluxDbIntegration, null, options, request); + } + /// + /// Delete InfluxDb integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteInfluxDbIntegration(global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteInfluxDbIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete InfluxDb integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteInfluxDbIntegration(global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteInfluxDbIntegration, null, options, request); + } + /// + /// Delete InfluxDb integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteInfluxDbIntegrationAsync(global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteInfluxDbIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete InfluxDb integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteInfluxDbIntegrationAsync(global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteInfluxDbIntegration, null, options, request); + } + /// + /// Create ThingsBoard integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateThingsBoardIntegration(global::Chirpstack.Api.CreateThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateThingsBoardIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create ThingsBoard integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateThingsBoardIntegration(global::Chirpstack.Api.CreateThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateThingsBoardIntegration, null, options, request); + } + /// + /// Create ThingsBoard integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateThingsBoardIntegrationAsync(global::Chirpstack.Api.CreateThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateThingsBoardIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create ThingsBoard integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateThingsBoardIntegrationAsync(global::Chirpstack.Api.CreateThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateThingsBoardIntegration, null, options, request); + } + /// + /// Get ThingsBoard integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetThingsBoardIntegrationResponse GetThingsBoardIntegration(global::Chirpstack.Api.GetThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetThingsBoardIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get ThingsBoard integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetThingsBoardIntegrationResponse GetThingsBoardIntegration(global::Chirpstack.Api.GetThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetThingsBoardIntegration, null, options, request); + } + /// + /// Get ThingsBoard integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetThingsBoardIntegrationAsync(global::Chirpstack.Api.GetThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetThingsBoardIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get ThingsBoard integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetThingsBoardIntegrationAsync(global::Chirpstack.Api.GetThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetThingsBoardIntegration, null, options, request); + } + /// + /// Update ThingsBoard integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateThingsBoardIntegration(global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateThingsBoardIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update ThingsBoard integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateThingsBoardIntegration(global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateThingsBoardIntegration, null, options, request); + } + /// + /// Update ThingsBoard integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateThingsBoardIntegrationAsync(global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateThingsBoardIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update ThingsBoard integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateThingsBoardIntegrationAsync(global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateThingsBoardIntegration, null, options, request); + } + /// + /// Delete ThingsBoard integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteThingsBoardIntegration(global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteThingsBoardIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete ThingsBoard integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteThingsBoardIntegration(global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteThingsBoardIntegration, null, options, request); + } + /// + /// Delete ThingsBoard integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteThingsBoardIntegrationAsync(global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteThingsBoardIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete ThingsBoard integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteThingsBoardIntegrationAsync(global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteThingsBoardIntegration, null, options, request); + } + /// + /// Create myDevices integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateMyDevicesIntegration(global::Chirpstack.Api.CreateMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateMyDevicesIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create myDevices integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateMyDevicesIntegration(global::Chirpstack.Api.CreateMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateMyDevicesIntegration, null, options, request); + } + /// + /// Create myDevices integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateMyDevicesIntegrationAsync(global::Chirpstack.Api.CreateMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateMyDevicesIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create myDevices integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateMyDevicesIntegrationAsync(global::Chirpstack.Api.CreateMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateMyDevicesIntegration, null, options, request); + } + /// + /// Get myDevices integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetMyDevicesIntegrationResponse GetMyDevicesIntegration(global::Chirpstack.Api.GetMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMyDevicesIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get myDevices integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetMyDevicesIntegrationResponse GetMyDevicesIntegration(global::Chirpstack.Api.GetMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetMyDevicesIntegration, null, options, request); + } + /// + /// Get myDevices integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetMyDevicesIntegrationAsync(global::Chirpstack.Api.GetMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMyDevicesIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get myDevices integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetMyDevicesIntegrationAsync(global::Chirpstack.Api.GetMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetMyDevicesIntegration, null, options, request); + } + /// + /// Update myDevices integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateMyDevicesIntegration(global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateMyDevicesIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update myDevices integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateMyDevicesIntegration(global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateMyDevicesIntegration, null, options, request); + } + /// + /// Update myDevices integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateMyDevicesIntegrationAsync(global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateMyDevicesIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update myDevices integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateMyDevicesIntegrationAsync(global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateMyDevicesIntegration, null, options, request); + } + /// + /// Delete myDevices integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteMyDevicesIntegration(global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteMyDevicesIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete myDevices integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteMyDevicesIntegration(global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteMyDevicesIntegration, null, options, request); + } + /// + /// Delete myDevices integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteMyDevicesIntegrationAsync(global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteMyDevicesIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete myDevices integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteMyDevicesIntegrationAsync(global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteMyDevicesIntegration, null, options, request); + } + /// + /// Create LoRaCloud integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateLoraCloudIntegration(global::Chirpstack.Api.CreateLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateLoraCloudIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create LoRaCloud integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateLoraCloudIntegration(global::Chirpstack.Api.CreateLoraCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateLoraCloudIntegration, null, options, request); + } + /// + /// Create LoRaCloud integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateLoraCloudIntegrationAsync(global::Chirpstack.Api.CreateLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateLoraCloudIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create LoRaCloud integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateLoraCloudIntegrationAsync(global::Chirpstack.Api.CreateLoraCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateLoraCloudIntegration, null, options, request); + } + /// + /// Get LoRaCloud integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetLoraCloudIntegrationResponse GetLoraCloudIntegration(global::Chirpstack.Api.GetLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetLoraCloudIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get LoRaCloud integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetLoraCloudIntegrationResponse GetLoraCloudIntegration(global::Chirpstack.Api.GetLoraCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetLoraCloudIntegration, null, options, request); + } + /// + /// Get LoRaCloud integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetLoraCloudIntegrationAsync(global::Chirpstack.Api.GetLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetLoraCloudIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get LoRaCloud integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetLoraCloudIntegrationAsync(global::Chirpstack.Api.GetLoraCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetLoraCloudIntegration, null, options, request); + } + /// + /// Update LoRaCloud integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateLoraCloudIntegration(global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateLoraCloudIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update LoRaCloud integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateLoraCloudIntegration(global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateLoraCloudIntegration, null, options, request); + } + /// + /// Update LoRaCloud integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateLoraCloudIntegrationAsync(global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateLoraCloudIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update LoRaCloud integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateLoraCloudIntegrationAsync(global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateLoraCloudIntegration, null, options, request); + } + /// + /// Delete LoRaCloud integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteLoraCloudIntegration(global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteLoraCloudIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete LoRaCloud integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteLoraCloudIntegration(global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteLoraCloudIntegration, null, options, request); + } + /// + /// Delete LoRaCloud integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteLoraCloudIntegrationAsync(global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteLoraCloudIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete LoRaCloud integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteLoraCloudIntegrationAsync(global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteLoraCloudIntegration, null, options, request); + } + /// + /// Create GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateGcpPubSubIntegration(global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateGcpPubSubIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateGcpPubSubIntegration(global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateGcpPubSubIntegration, null, options, request); + } + /// + /// Create GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateGcpPubSubIntegrationAsync(global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateGcpPubSubIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateGcpPubSubIntegrationAsync(global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateGcpPubSubIntegration, null, options, request); + } + /// + /// Get GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetGcpPubSubIntegrationResponse GetGcpPubSubIntegration(global::Chirpstack.Api.GetGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetGcpPubSubIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetGcpPubSubIntegrationResponse GetGcpPubSubIntegration(global::Chirpstack.Api.GetGcpPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetGcpPubSubIntegration, null, options, request); + } + /// + /// Get GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetGcpPubSubIntegrationAsync(global::Chirpstack.Api.GetGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetGcpPubSubIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetGcpPubSubIntegrationAsync(global::Chirpstack.Api.GetGcpPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetGcpPubSubIntegration, null, options, request); + } + /// + /// Update GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateGcpPubSubIntegration(global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateGcpPubSubIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateGcpPubSubIntegration(global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateGcpPubSubIntegration, null, options, request); + } + /// + /// Update GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateGcpPubSubIntegrationAsync(global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateGcpPubSubIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateGcpPubSubIntegrationAsync(global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateGcpPubSubIntegration, null, options, request); + } + /// + /// Delete GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteGcpPubSubIntegration(global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteGcpPubSubIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteGcpPubSubIntegration(global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteGcpPubSubIntegration, null, options, request); + } + /// + /// Delete GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteGcpPubSubIntegrationAsync(global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteGcpPubSubIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete GCP Pub/Sub integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteGcpPubSubIntegrationAsync(global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteGcpPubSubIntegration, null, options, request); + } + /// + /// Create AWS SNS integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateAwsSnsIntegration(global::Chirpstack.Api.CreateAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAwsSnsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create AWS SNS integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateAwsSnsIntegration(global::Chirpstack.Api.CreateAwsSnsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateAwsSnsIntegration, null, options, request); + } + /// + /// Create AWS SNS integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAwsSnsIntegrationAsync(global::Chirpstack.Api.CreateAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAwsSnsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create AWS SNS integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAwsSnsIntegrationAsync(global::Chirpstack.Api.CreateAwsSnsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateAwsSnsIntegration, null, options, request); + } + /// + /// Get AWS SNS integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetAwsSnsIntegrationResponse GetAwsSnsIntegration(global::Chirpstack.Api.GetAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAwsSnsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get AWS SNS integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetAwsSnsIntegrationResponse GetAwsSnsIntegration(global::Chirpstack.Api.GetAwsSnsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetAwsSnsIntegration, null, options, request); + } + /// + /// Get AWS SNS integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAwsSnsIntegrationAsync(global::Chirpstack.Api.GetAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAwsSnsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get AWS SNS integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAwsSnsIntegrationAsync(global::Chirpstack.Api.GetAwsSnsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetAwsSnsIntegration, null, options, request); + } + /// + /// Update AWS SNS integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateAwsSnsIntegration(global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAwsSnsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update AWS SNS integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateAwsSnsIntegration(global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateAwsSnsIntegration, null, options, request); + } + /// + /// Update AWS SNS integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAwsSnsIntegrationAsync(global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAwsSnsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update AWS SNS integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAwsSnsIntegrationAsync(global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateAwsSnsIntegration, null, options, request); + } + /// + /// Delete AWS SNS integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteAwsSnsIntegration(global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAwsSnsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete AWS SNS integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteAwsSnsIntegration(global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteAwsSnsIntegration, null, options, request); + } + /// + /// Delete AWS SNS integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAwsSnsIntegrationAsync(global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAwsSnsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete AWS SNS integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAwsSnsIntegrationAsync(global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteAwsSnsIntegration, null, options, request); + } + /// + /// Create Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateAzureServiceBusIntegration(global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAzureServiceBusIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateAzureServiceBusIntegration(global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateAzureServiceBusIntegration, null, options, request); + } + /// + /// Create Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAzureServiceBusIntegrationAsync(global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAzureServiceBusIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAzureServiceBusIntegrationAsync(global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateAzureServiceBusIntegration, null, options, request); + } + /// + /// Get Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetAzureServiceBusIntegrationResponse GetAzureServiceBusIntegration(global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAzureServiceBusIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetAzureServiceBusIntegrationResponse GetAzureServiceBusIntegration(global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetAzureServiceBusIntegration, null, options, request); + } + /// + /// Get Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAzureServiceBusIntegrationAsync(global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAzureServiceBusIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAzureServiceBusIntegrationAsync(global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetAzureServiceBusIntegration, null, options, request); + } + /// + /// Update Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateAzureServiceBusIntegration(global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAzureServiceBusIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateAzureServiceBusIntegration(global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateAzureServiceBusIntegration, null, options, request); + } + /// + /// Update Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAzureServiceBusIntegrationAsync(global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAzureServiceBusIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAzureServiceBusIntegrationAsync(global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateAzureServiceBusIntegration, null, options, request); + } + /// + /// Delete Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteAzureServiceBusIntegration(global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAzureServiceBusIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteAzureServiceBusIntegration(global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteAzureServiceBusIntegration, null, options, request); + } + /// + /// Delete Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAzureServiceBusIntegrationAsync(global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAzureServiceBusIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete Azure Service-Bus integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAzureServiceBusIntegrationAsync(global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteAzureServiceBusIntegration, null, options, request); + } + /// + /// Create Pilot Things integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreatePilotThingsIntegration(global::Chirpstack.Api.CreatePilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreatePilotThingsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create Pilot Things integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreatePilotThingsIntegration(global::Chirpstack.Api.CreatePilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreatePilotThingsIntegration, null, options, request); + } + /// + /// Create Pilot Things integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreatePilotThingsIntegrationAsync(global::Chirpstack.Api.CreatePilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreatePilotThingsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create Pilot Things integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreatePilotThingsIntegrationAsync(global::Chirpstack.Api.CreatePilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreatePilotThingsIntegration, null, options, request); + } + /// + /// Get Pilot Things integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetPilotThingsIntegrationResponse GetPilotThingsIntegration(global::Chirpstack.Api.GetPilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetPilotThingsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get Pilot Things integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetPilotThingsIntegrationResponse GetPilotThingsIntegration(global::Chirpstack.Api.GetPilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetPilotThingsIntegration, null, options, request); + } + /// + /// Get Pilot Things integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetPilotThingsIntegrationAsync(global::Chirpstack.Api.GetPilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetPilotThingsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get Pilot Things integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetPilotThingsIntegrationAsync(global::Chirpstack.Api.GetPilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetPilotThingsIntegration, null, options, request); + } + /// + /// Update Pilot Things integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdatePilotThingsIntegration(global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdatePilotThingsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update Pilot Things integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdatePilotThingsIntegration(global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdatePilotThingsIntegration, null, options, request); + } + /// + /// Update Pilot Things integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdatePilotThingsIntegrationAsync(global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdatePilotThingsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update Pilot Things integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdatePilotThingsIntegrationAsync(global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdatePilotThingsIntegration, null, options, request); + } + /// + /// Delete Pilot Things integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeletePilotThingsIntegration(global::Chirpstack.Api.DeletePilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeletePilotThingsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete Pilot Things integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeletePilotThingsIntegration(global::Chirpstack.Api.DeletePilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeletePilotThingsIntegration, null, options, request); + } + /// + /// Delete Pilot Things integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeletePilotThingsIntegrationAsync(global::Chirpstack.Api.DeletePilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeletePilotThingsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete Pilot Things integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeletePilotThingsIntegrationAsync(global::Chirpstack.Api.DeletePilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeletePilotThingsIntegration, null, options, request); + } + /// + /// Create IFTTT integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateIftttIntegration(global::Chirpstack.Api.CreateIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateIftttIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create IFTTT integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateIftttIntegration(global::Chirpstack.Api.CreateIftttIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateIftttIntegration, null, options, request); + } + /// + /// Create IFTTT integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateIftttIntegrationAsync(global::Chirpstack.Api.CreateIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateIftttIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create IFTTT integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateIftttIntegrationAsync(global::Chirpstack.Api.CreateIftttIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateIftttIntegration, null, options, request); + } + /// + /// Get IFTTT integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetIftttIntegrationResponse GetIftttIntegration(global::Chirpstack.Api.GetIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetIftttIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get IFTTT integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetIftttIntegrationResponse GetIftttIntegration(global::Chirpstack.Api.GetIftttIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetIftttIntegration, null, options, request); + } + /// + /// Get IFTTT integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetIftttIntegrationAsync(global::Chirpstack.Api.GetIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetIftttIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get IFTTT integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetIftttIntegrationAsync(global::Chirpstack.Api.GetIftttIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetIftttIntegration, null, options, request); + } + /// + /// Update IFTTT integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateIftttIntegration(global::Chirpstack.Api.UpdateIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateIftttIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update IFTTT integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateIftttIntegration(global::Chirpstack.Api.UpdateIftttIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateIftttIntegration, null, options, request); + } + /// + /// Update IFTTT integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateIftttIntegrationAsync(global::Chirpstack.Api.UpdateIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateIftttIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update IFTTT integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateIftttIntegrationAsync(global::Chirpstack.Api.UpdateIftttIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateIftttIntegration, null, options, request); + } + /// + /// Delete IFTTT integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteIftttIntegration(global::Chirpstack.Api.DeleteIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteIftttIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete IFTTT integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteIftttIntegration(global::Chirpstack.Api.DeleteIftttIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteIftttIntegration, null, options, request); + } + /// + /// Delete IFTTT integration. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteIftttIntegrationAsync(global::Chirpstack.Api.DeleteIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteIftttIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete IFTTT integration. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteIftttIntegrationAsync(global::Chirpstack.Api.DeleteIftttIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteIftttIntegration, null, options, request); + } + /// + /// Generates application ID specific client-certificate. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateResponse GenerateMqttIntegrationClientCertificate(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GenerateMqttIntegrationClientCertificate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Generates application ID specific client-certificate. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateResponse GenerateMqttIntegrationClientCertificate(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GenerateMqttIntegrationClientCertificate, null, options, request); + } + /// + /// Generates application ID specific client-certificate. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GenerateMqttIntegrationClientCertificateAsync(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GenerateMqttIntegrationClientCertificateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Generates application ID specific client-certificate. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GenerateMqttIntegrationClientCertificateAsync(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GenerateMqttIntegrationClientCertificate, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override ApplicationServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new ApplicationServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(ApplicationServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_Create, serviceImpl.Create) + .AddMethod(__Method_Get, serviceImpl.Get) + .AddMethod(__Method_Update, serviceImpl.Update) + .AddMethod(__Method_Delete, serviceImpl.Delete) + .AddMethod(__Method_List, serviceImpl.List) + .AddMethod(__Method_ListIntegrations, serviceImpl.ListIntegrations) + .AddMethod(__Method_CreateHttpIntegration, serviceImpl.CreateHttpIntegration) + .AddMethod(__Method_GetHttpIntegration, serviceImpl.GetHttpIntegration) + .AddMethod(__Method_UpdateHttpIntegration, serviceImpl.UpdateHttpIntegration) + .AddMethod(__Method_DeleteHttpIntegration, serviceImpl.DeleteHttpIntegration) + .AddMethod(__Method_CreateInfluxDbIntegration, serviceImpl.CreateInfluxDbIntegration) + .AddMethod(__Method_GetInfluxDbIntegration, serviceImpl.GetInfluxDbIntegration) + .AddMethod(__Method_UpdateInfluxDbIntegration, serviceImpl.UpdateInfluxDbIntegration) + .AddMethod(__Method_DeleteInfluxDbIntegration, serviceImpl.DeleteInfluxDbIntegration) + .AddMethod(__Method_CreateThingsBoardIntegration, serviceImpl.CreateThingsBoardIntegration) + .AddMethod(__Method_GetThingsBoardIntegration, serviceImpl.GetThingsBoardIntegration) + .AddMethod(__Method_UpdateThingsBoardIntegration, serviceImpl.UpdateThingsBoardIntegration) + .AddMethod(__Method_DeleteThingsBoardIntegration, serviceImpl.DeleteThingsBoardIntegration) + .AddMethod(__Method_CreateMyDevicesIntegration, serviceImpl.CreateMyDevicesIntegration) + .AddMethod(__Method_GetMyDevicesIntegration, serviceImpl.GetMyDevicesIntegration) + .AddMethod(__Method_UpdateMyDevicesIntegration, serviceImpl.UpdateMyDevicesIntegration) + .AddMethod(__Method_DeleteMyDevicesIntegration, serviceImpl.DeleteMyDevicesIntegration) + .AddMethod(__Method_CreateLoraCloudIntegration, serviceImpl.CreateLoraCloudIntegration) + .AddMethod(__Method_GetLoraCloudIntegration, serviceImpl.GetLoraCloudIntegration) + .AddMethod(__Method_UpdateLoraCloudIntegration, serviceImpl.UpdateLoraCloudIntegration) + .AddMethod(__Method_DeleteLoraCloudIntegration, serviceImpl.DeleteLoraCloudIntegration) + .AddMethod(__Method_CreateGcpPubSubIntegration, serviceImpl.CreateGcpPubSubIntegration) + .AddMethod(__Method_GetGcpPubSubIntegration, serviceImpl.GetGcpPubSubIntegration) + .AddMethod(__Method_UpdateGcpPubSubIntegration, serviceImpl.UpdateGcpPubSubIntegration) + .AddMethod(__Method_DeleteGcpPubSubIntegration, serviceImpl.DeleteGcpPubSubIntegration) + .AddMethod(__Method_CreateAwsSnsIntegration, serviceImpl.CreateAwsSnsIntegration) + .AddMethod(__Method_GetAwsSnsIntegration, serviceImpl.GetAwsSnsIntegration) + .AddMethod(__Method_UpdateAwsSnsIntegration, serviceImpl.UpdateAwsSnsIntegration) + .AddMethod(__Method_DeleteAwsSnsIntegration, serviceImpl.DeleteAwsSnsIntegration) + .AddMethod(__Method_CreateAzureServiceBusIntegration, serviceImpl.CreateAzureServiceBusIntegration) + .AddMethod(__Method_GetAzureServiceBusIntegration, serviceImpl.GetAzureServiceBusIntegration) + .AddMethod(__Method_UpdateAzureServiceBusIntegration, serviceImpl.UpdateAzureServiceBusIntegration) + .AddMethod(__Method_DeleteAzureServiceBusIntegration, serviceImpl.DeleteAzureServiceBusIntegration) + .AddMethod(__Method_CreatePilotThingsIntegration, serviceImpl.CreatePilotThingsIntegration) + .AddMethod(__Method_GetPilotThingsIntegration, serviceImpl.GetPilotThingsIntegration) + .AddMethod(__Method_UpdatePilotThingsIntegration, serviceImpl.UpdatePilotThingsIntegration) + .AddMethod(__Method_DeletePilotThingsIntegration, serviceImpl.DeletePilotThingsIntegration) + .AddMethod(__Method_CreateIftttIntegration, serviceImpl.CreateIftttIntegration) + .AddMethod(__Method_GetIftttIntegration, serviceImpl.GetIftttIntegration) + .AddMethod(__Method_UpdateIftttIntegration, serviceImpl.UpdateIftttIntegration) + .AddMethod(__Method_DeleteIftttIntegration, serviceImpl.DeleteIftttIntegration) + .AddMethod(__Method_GenerateMqttIntegrationClientCertificate, serviceImpl.GenerateMqttIntegrationClientCertificate).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, ApplicationServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); + serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); + serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); + serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); + serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); + serviceBinder.AddMethod(__Method_ListIntegrations, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListIntegrations)); + serviceBinder.AddMethod(__Method_CreateHttpIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateHttpIntegration)); + serviceBinder.AddMethod(__Method_GetHttpIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetHttpIntegration)); + serviceBinder.AddMethod(__Method_UpdateHttpIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateHttpIntegration)); + serviceBinder.AddMethod(__Method_DeleteHttpIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteHttpIntegration)); + serviceBinder.AddMethod(__Method_CreateInfluxDbIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateInfluxDbIntegration)); + serviceBinder.AddMethod(__Method_GetInfluxDbIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetInfluxDbIntegration)); + serviceBinder.AddMethod(__Method_UpdateInfluxDbIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateInfluxDbIntegration)); + serviceBinder.AddMethod(__Method_DeleteInfluxDbIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteInfluxDbIntegration)); + serviceBinder.AddMethod(__Method_CreateThingsBoardIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateThingsBoardIntegration)); + serviceBinder.AddMethod(__Method_GetThingsBoardIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetThingsBoardIntegration)); + serviceBinder.AddMethod(__Method_UpdateThingsBoardIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateThingsBoardIntegration)); + serviceBinder.AddMethod(__Method_DeleteThingsBoardIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteThingsBoardIntegration)); + serviceBinder.AddMethod(__Method_CreateMyDevicesIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateMyDevicesIntegration)); + serviceBinder.AddMethod(__Method_GetMyDevicesIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMyDevicesIntegration)); + serviceBinder.AddMethod(__Method_UpdateMyDevicesIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateMyDevicesIntegration)); + serviceBinder.AddMethod(__Method_DeleteMyDevicesIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteMyDevicesIntegration)); + serviceBinder.AddMethod(__Method_CreateLoraCloudIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateLoraCloudIntegration)); + serviceBinder.AddMethod(__Method_GetLoraCloudIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetLoraCloudIntegration)); + serviceBinder.AddMethod(__Method_UpdateLoraCloudIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateLoraCloudIntegration)); + serviceBinder.AddMethod(__Method_DeleteLoraCloudIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteLoraCloudIntegration)); + serviceBinder.AddMethod(__Method_CreateGcpPubSubIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateGcpPubSubIntegration)); + serviceBinder.AddMethod(__Method_GetGcpPubSubIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGcpPubSubIntegration)); + serviceBinder.AddMethod(__Method_UpdateGcpPubSubIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateGcpPubSubIntegration)); + serviceBinder.AddMethod(__Method_DeleteGcpPubSubIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteGcpPubSubIntegration)); + serviceBinder.AddMethod(__Method_CreateAwsSnsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateAwsSnsIntegration)); + serviceBinder.AddMethod(__Method_GetAwsSnsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetAwsSnsIntegration)); + serviceBinder.AddMethod(__Method_UpdateAwsSnsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateAwsSnsIntegration)); + serviceBinder.AddMethod(__Method_DeleteAwsSnsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteAwsSnsIntegration)); + serviceBinder.AddMethod(__Method_CreateAzureServiceBusIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateAzureServiceBusIntegration)); + serviceBinder.AddMethod(__Method_GetAzureServiceBusIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetAzureServiceBusIntegration)); + serviceBinder.AddMethod(__Method_UpdateAzureServiceBusIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateAzureServiceBusIntegration)); + serviceBinder.AddMethod(__Method_DeleteAzureServiceBusIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteAzureServiceBusIntegration)); + serviceBinder.AddMethod(__Method_CreatePilotThingsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreatePilotThingsIntegration)); + serviceBinder.AddMethod(__Method_GetPilotThingsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPilotThingsIntegration)); + serviceBinder.AddMethod(__Method_UpdatePilotThingsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdatePilotThingsIntegration)); + serviceBinder.AddMethod(__Method_DeletePilotThingsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeletePilotThingsIntegration)); + serviceBinder.AddMethod(__Method_CreateIftttIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateIftttIntegration)); + serviceBinder.AddMethod(__Method_GetIftttIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetIftttIntegration)); + serviceBinder.AddMethod(__Method_UpdateIftttIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateIftttIntegration)); + serviceBinder.AddMethod(__Method_DeleteIftttIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteIftttIntegration)); + serviceBinder.AddMethod(__Method_GenerateMqttIntegrationClientCertificate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateMqttIntegrationClientCertificate)); + } + + } +} +#endregion diff --git a/api/csharp/Chirpstack/api/Device.cs b/api/csharp/Chirpstack/api/Device.cs new file mode 100644 index 00000000..d02f53e5 --- /dev/null +++ b/api/csharp/Chirpstack/api/Device.cs @@ -0,0 +1,9583 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/device.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.Api { + + /// Holder for reflection information generated from api/device.proto + public static partial class DeviceReflection { + + #region Descriptor + /// File descriptor for api/device.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DeviceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBhcGkvZGV2aWNlLnByb3RvEgNhcGkaE2NvbW1vbi9jb21tb24ucHJvdG8a", + "HGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aH2dvb2dsZS9wcm90b2J1", + "Zi90aW1lc3RhbXAucHJvdG8aHGdvb2dsZS9wcm90b2J1Zi9zdHJ1Y3QucHJv", + "dG8aG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90byLQAgoGRGV2aWNlEg8K", + "B2Rldl9ldWkYASABKAkSDAoEbmFtZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgD", + "IAEoCRIWCg5hcHBsaWNhdGlvbl9pZBgEIAEoCRIZChFkZXZpY2VfcHJvZmls", + "ZV9pZBgFIAEoCRIXCg9za2lwX2ZjbnRfY2hlY2sYBiABKAgSEwoLaXNfZGlz", + "YWJsZWQYByABKAgSLQoJdmFyaWFibGVzGAggAygLMhouYXBpLkRldmljZS5W", + "YXJpYWJsZXNFbnRyeRIjCgR0YWdzGAkgAygLMhUuYXBpLkRldmljZS5UYWdz", + "RW50cnkaMAoOVmFyaWFibGVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVl", + "GAIgASgJOgI4ARorCglUYWdzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVl", + "GAIgASgJOgI4ASJUCgxEZXZpY2VTdGF0dXMSDgoGbWFyZ2luGAEgASgFEh0K", + "FWV4dGVybmFsX3Bvd2VyX3NvdXJjZRgCIAEoCBIVCg1iYXR0ZXJ5X2xldmVs", + "GAMgASgCIrgCCg5EZXZpY2VMaXN0SXRlbRIPCgdkZXZfZXVpGAEgASgJEi4K", + "CmNyZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "Ei4KCnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", + "YW1wEjAKDGxhc3Rfc2Vlbl9hdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXASDAoEbmFtZRgFIAEoCRITCgtkZXNjcmlwdGlvbhgGIAEoCRIZ", + "ChFkZXZpY2VfcHJvZmlsZV9pZBgHIAEoCRIbChNkZXZpY2VfcHJvZmlsZV9u", + "YW1lGAggASgJEigKDWRldmljZV9zdGF0dXMYCSABKAsyES5hcGkuRGV2aWNl", + "U3RhdHVzIj8KCkRldmljZUtleXMSDwoHZGV2X2V1aRgBIAEoCRIPCgdud2tf", + "a2V5GAIgASgJEg8KB2FwcF9rZXkYAyABKAkiMgoTQ3JlYXRlRGV2aWNlUmVx", + "dWVzdBIbCgZkZXZpY2UYASABKAsyCy5hcGkuRGV2aWNlIiMKEEdldERldmlj", + "ZVJlcXVlc3QSDwoHZGV2X2V1aRgBIAEoCSLsAQoRR2V0RGV2aWNlUmVzcG9u", + "c2USGwoGZGV2aWNlGAEgASgLMgsuYXBpLkRldmljZRIuCgpjcmVhdGVkX2F0", + "GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVk", + "X2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIwCgxsYXN0", + "X3NlZW5fYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEigK", + "DWRldmljZV9zdGF0dXMYBSABKAsyES5hcGkuRGV2aWNlU3RhdHVzIjIKE1Vw", + "ZGF0ZURldmljZVJlcXVlc3QSGwoGZGV2aWNlGAEgASgLMgsuYXBpLkRldmlj", + "ZSImChNEZWxldGVEZXZpY2VSZXF1ZXN0Eg8KB2Rldl9ldWkYASABKAkidwoS", + "TGlzdERldmljZXNSZXF1ZXN0Eg0KBWxpbWl0GAEgASgNEg4KBm9mZnNldBgC", + "IAEoDRIOCgZzZWFyY2gYAyABKAkSFgoOYXBwbGljYXRpb25faWQYBCABKAkS", + "GgoSbXVsdGljYXN0X2dyb3VwX2lkGAUgASgJIk8KE0xpc3REZXZpY2VzUmVz", + "cG9uc2USEwoLdG90YWxfY291bnQYASABKA0SIwoGcmVzdWx0GAIgAygLMhMu", + "YXBpLkRldmljZUxpc3RJdGVtIj8KF0NyZWF0ZURldmljZUtleXNSZXF1ZXN0", + "EiQKC2RldmljZV9rZXlzGAEgASgLMg8uYXBpLkRldmljZUtleXMiJwoUR2V0", + "RGV2aWNlS2V5c1JlcXVlc3QSDwoHZGV2X2V1aRgBIAEoCSKdAQoVR2V0RGV2", + "aWNlS2V5c1Jlc3BvbnNlEiQKC2RldmljZV9rZXlzGAEgASgLMg8uYXBpLkRl", + "dmljZUtleXMSLgoKY3JlYXRlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1", + "Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90", + "b2J1Zi5UaW1lc3RhbXAiPwoXVXBkYXRlRGV2aWNlS2V5c1JlcXVlc3QSJAoL", + "ZGV2aWNlX2tleXMYASABKAsyDy5hcGkuRGV2aWNlS2V5cyIqChdEZWxldGVE", + "ZXZpY2VLZXlzUmVxdWVzdBIPCgdkZXZfZXVpGAEgASgJIs8BChBEZXZpY2VB", + "Y3RpdmF0aW9uEg8KB2Rldl9ldWkYASABKAkSEAoIZGV2X2FkZHIYAiABKAkS", + "EQoJYXBwX3Nfa2V5GAMgASgJEhUKDW53a19zX2VuY19rZXkYBCABKAkSFwoP", + "c19ud2tfc19pbnRfa2V5GAggASgJEhcKD2ZfbndrX3NfaW50X2tleRgJIAEo", + "CRIQCghmX2NudF91cBgFIAEoDRIUCgxuX2ZfY250X2Rvd24YBiABKA0SFAoM", + "YV9mX2NudF9kb3duGAogASgNIkkKFUFjdGl2YXRlRGV2aWNlUmVxdWVzdBIw", + "ChFkZXZpY2VfYWN0aXZhdGlvbhgBIAEoCzIVLmFwaS5EZXZpY2VBY3RpdmF0", + "aW9uIioKF0RlYWN0aXZhdGVEZXZpY2VSZXF1ZXN0Eg8KB2Rldl9ldWkYASAB", + "KAkiLQoaR2V0RGV2aWNlQWN0aXZhdGlvblJlcXVlc3QSDwoHZGV2X2V1aRgB", + "IAEoCSJPChtHZXREZXZpY2VBY3RpdmF0aW9uUmVzcG9uc2USMAoRZGV2aWNl", + "X2FjdGl2YXRpb24YASABKAsyFS5hcGkuRGV2aWNlQWN0aXZhdGlvbiIqChdH", + "ZXRSYW5kb21EZXZBZGRyUmVxdWVzdBIPCgdkZXZfZXVpGAEgASgJIiwKGEdl", + "dFJhbmRvbURldkFkZHJSZXNwb25zZRIQCghkZXZfYWRkchgBIAEoCSKoAQoX", + "R2V0RGV2aWNlTWV0cmljc1JlcXVlc3QSDwoHZGV2X2V1aRgBIAEoCRIpCgVz", + "dGFydBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASJwoDZW5k", + "GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIoCgthZ2dyZWdh", + "dGlvbhgEIAEoDjITLmNvbW1vbi5BZ2dyZWdhdGlvbiKTAgoYR2V0RGV2aWNl", + "TWV0cmljc1Jlc3BvbnNlEjsKB21ldHJpY3MYASADKAsyKi5hcGkuR2V0RGV2", + "aWNlTWV0cmljc1Jlc3BvbnNlLk1ldHJpY3NFbnRyeRI5CgZzdGF0ZXMYAiAD", + "KAsyKS5hcGkuR2V0RGV2aWNlTWV0cmljc1Jlc3BvbnNlLlN0YXRlc0VudHJ5", + "Gj4KDE1ldHJpY3NFbnRyeRILCgNrZXkYASABKAkSHQoFdmFsdWUYAiABKAsy", + "Di5jb21tb24uTWV0cmljOgI4ARo/CgtTdGF0ZXNFbnRyeRILCgNrZXkYASAB", + "KAkSHwoFdmFsdWUYAiABKAsyEC5hcGkuRGV2aWNlU3RhdGU6AjgBIioKC0Rl", + "dmljZVN0YXRlEgwKBG5hbWUYAiABKAkSDQoFdmFsdWUYAyABKAkirAEKG0dl", + "dERldmljZUxpbmtNZXRyaWNzUmVxdWVzdBIPCgdkZXZfZXVpGAEgASgJEikK", + "BXN0YXJ0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBInCgNl", + "bmQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEigKC2FnZ3Jl", + "Z2F0aW9uGAQgASgOMhMuY29tbW9uLkFnZ3JlZ2F0aW9uIvsBChxHZXREZXZp", + "Y2VMaW5rTWV0cmljc1Jlc3BvbnNlEiIKCnJ4X3BhY2tldHMYASABKAsyDi5j", + "b21tb24uTWV0cmljEh8KB2d3X3Jzc2kYAiABKAsyDi5jb21tb24uTWV0cmlj", + "Eh4KBmd3X3NuchgDIAEoCzIOLmNvbW1vbi5NZXRyaWMSKwoTcnhfcGFja2V0", + "c19wZXJfZnJlcRgEIAEoCzIOLmNvbW1vbi5NZXRyaWMSKQoRcnhfcGFja2V0", + "c19wZXJfZHIYBSABKAsyDi5jb21tb24uTWV0cmljEh4KBmVycm9ycxgGIAEo", + "CzIOLmNvbW1vbi5NZXRyaWMisAEKD0RldmljZVF1ZXVlSXRlbRIKCgJpZBgB", + "IAEoCRIPCgdkZXZfZXVpGAIgASgJEhEKCWNvbmZpcm1lZBgDIAEoCBIOCgZm", + "X3BvcnQYBCABKA0SDAoEZGF0YRgFIAEoDBInCgZvYmplY3QYBiABKAsyFy5n", + "b29nbGUucHJvdG9idWYuU3RydWN0EhIKCmlzX3BlbmRpbmcYByABKAgSEgoK", + "Zl9jbnRfZG93bhgIIAEoDSJJCh1FbnF1ZXVlRGV2aWNlUXVldWVJdGVtUmVx", + "dWVzdBIoCgpxdWV1ZV9pdGVtGAEgASgLMhQuYXBpLkRldmljZVF1ZXVlSXRl", + "bSIsCh5FbnF1ZXVlRGV2aWNlUXVldWVJdGVtUmVzcG9uc2USCgoCaWQYASAB", + "KAkiKgoXRmx1c2hEZXZpY2VRdWV1ZVJlcXVlc3QSDwoHZGV2X2V1aRgBIAEo", + "CSJBChpHZXREZXZpY2VRdWV1ZUl0ZW1zUmVxdWVzdBIPCgdkZXZfZXVpGAEg", + "ASgJEhIKCmNvdW50X29ubHkYAiABKAgiWAobR2V0RGV2aWNlUXVldWVJdGVt", + "c1Jlc3BvbnNlEhMKC3RvdGFsX2NvdW50GAEgASgNEiQKBnJlc3VsdBgCIAMo", + "CzIULmFwaS5EZXZpY2VRdWV1ZUl0ZW0iKAoVRmx1c2hEZXZOb25jZXNSZXF1", + "ZXN0Eg8KB2Rldl9ldWkYASABKAky0BAKDURldmljZVNlcnZpY2USUwoGQ3Jl", + "YXRlEhguYXBpLkNyZWF0ZURldmljZVJlcXVlc3QaFi5nb29nbGUucHJvdG9i", + "dWYuRW1wdHkiF4LT5JMCESIML2FwaS9kZXZpY2VzOgEqElQKA0dldBIVLmFw", + "aS5HZXREZXZpY2VSZXF1ZXN0GhYuYXBpLkdldERldmljZVJlc3BvbnNlIh6C", + "0+STAhgSFi9hcGkvZGV2aWNlcy97ZGV2X2V1aX0SZAoGVXBkYXRlEhguYXBp", + "LlVwZGF0ZURldmljZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHki", + "KILT5JMCIhodL2FwaS9kZXZpY2VzL3tkZXZpY2UuZGV2X2V1aX06ASoSWgoG", + "RGVsZXRlEhguYXBpLkRlbGV0ZURldmljZVJlcXVlc3QaFi5nb29nbGUucHJv", + "dG9idWYuRW1wdHkiHoLT5JMCGCoWL2FwaS9kZXZpY2VzL3tkZXZfZXVpfRJP", + "CgRMaXN0EhcuYXBpLkxpc3REZXZpY2VzUmVxdWVzdBoYLmFwaS5MaXN0RGV2", + "aWNlc1Jlc3BvbnNlIhSC0+STAg4SDC9hcGkvZGV2aWNlcxJ2CgpDcmVhdGVL", + "ZXlzEhwuYXBpLkNyZWF0ZURldmljZUtleXNSZXF1ZXN0GhYuZ29vZ2xlLnBy", + "b3RvYnVmLkVtcHR5IjKC0+STAiwiJy9hcGkvZGV2aWNlcy97ZGV2aWNlX2tl", + "eXMuZGV2X2V1aX0va2V5czoBKhJlCgdHZXRLZXlzEhkuYXBpLkdldERldmlj", + "ZUtleXNSZXF1ZXN0GhouYXBpLkdldERldmljZUtleXNSZXNwb25zZSIjgtPk", + "kwIdEhsvYXBpL2RldmljZXMve2Rldl9ldWl9L2tleXMSdgoKVXBkYXRlS2V5", + "cxIcLmFwaS5VcGRhdGVEZXZpY2VLZXlzUmVxdWVzdBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIygtPkkwIsGicvYXBpL2RldmljZXMve2RldmljZV9rZXlz", + "LmRldl9ldWl9L2tleXM6ASoSZwoKRGVsZXRlS2V5cxIcLmFwaS5EZWxldGVE", + "ZXZpY2VLZXlzUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIjgtPk", + "kwIdKhsvYXBpL2RldmljZXMve2Rldl9ldWl9L2tleXMSbwoORmx1c2hEZXZO", + "b25jZXMSGi5hcGkuRmx1c2hEZXZOb25jZXNSZXF1ZXN0GhYuZ29vZ2xlLnBy", + "b3RvYnVmLkVtcHR5IimC0+STAiMqIS9hcGkvZGV2aWNlcy97ZGV2X2V1aX0v", + "ZGV2LW5vbmNlcxJ8CghBY3RpdmF0ZRIaLmFwaS5BY3RpdmF0ZURldmljZVJl", + "cXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiPILT5JMCNiIxL2FwaS9k", + "ZXZpY2VzL3tkZXZpY2VfYWN0aXZhdGlvbi5kZXZfZXVpfS9hY3RpdmF0ZToB", + "KhJtCgpEZWFjdGl2YXRlEhwuYXBpLkRlYWN0aXZhdGVEZXZpY2VSZXF1ZXN0", + "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IimC0+STAiMqIS9hcGkvZGV2aWNl", + "cy97ZGV2X2V1aX0vYWN0aXZhdGlvbhJ9Cg1HZXRBY3RpdmF0aW9uEh8uYXBp", + "LkdldERldmljZUFjdGl2YXRpb25SZXF1ZXN0GiAuYXBpLkdldERldmljZUFj", + "dGl2YXRpb25SZXNwb25zZSIpgtPkkwIjEiEvYXBpL2RldmljZXMve2Rldl9l", + "dWl9L2FjdGl2YXRpb24SgwEKEEdldFJhbmRvbURldkFkZHISHC5hcGkuR2V0", + "UmFuZG9tRGV2QWRkclJlcXVlc3QaHS5hcGkuR2V0UmFuZG9tRGV2QWRkclJl", + "c3BvbnNlIjKC0+STAiwiKi9hcGkvZGV2aWNlcy97ZGV2X2V1aX0vZ2V0LXJh", + "bmRvbS1kZXYtYWRkchJxCgpHZXRNZXRyaWNzEhwuYXBpLkdldERldmljZU1l", + "dHJpY3NSZXF1ZXN0Gh0uYXBpLkdldERldmljZU1ldHJpY3NSZXNwb25zZSIm", + "gtPkkwIgEh4vYXBpL2RldmljZXMve2Rldl9ldWl9L21ldHJpY3MSggEKDkdl", + "dExpbmtNZXRyaWNzEiAuYXBpLkdldERldmljZUxpbmtNZXRyaWNzUmVxdWVz", + "dBohLmFwaS5HZXREZXZpY2VMaW5rTWV0cmljc1Jlc3BvbnNlIiuC0+STAiUS", + "Iy9hcGkvZGV2aWNlcy97ZGV2X2V1aX0vbGluay1tZXRyaWNzEoYBCgdFbnF1", + "ZXVlEiIuYXBpLkVucXVldWVEZXZpY2VRdWV1ZUl0ZW1SZXF1ZXN0GiMuYXBp", + "LkVucXVldWVEZXZpY2VRdWV1ZUl0ZW1SZXNwb25zZSIygtPkkwIsIicvYXBp", + "L2RldmljZXMve3F1ZXVlX2l0ZW0uZGV2X2V1aX0vcXVldWU6ASoSaAoKRmx1", + "c2hRdWV1ZRIcLmFwaS5GbHVzaERldmljZVF1ZXVlUmVxdWVzdBoWLmdvb2ds", + "ZS5wcm90b2J1Zi5FbXB0eSIkgtPkkwIeKhwvYXBpL2RldmljZXMve2Rldl9l", + "dWl9L3F1ZXVlEnMKCEdldFF1ZXVlEh8uYXBpLkdldERldmljZVF1ZXVlSXRl", + "bXNSZXF1ZXN0GiAuYXBpLkdldERldmljZVF1ZXVlSXRlbXNSZXNwb25zZSIk", + "gtPkkwIeEhwvYXBpL2RldmljZXMve2Rldl9ldWl9L3F1ZXVlQmMKEWlvLmNo", + "aXJwc3RhY2suYXBpQgtEZXZpY2VQcm90b1ABWi5naXRodWIuY29tL2NoaXJw", + "c3RhY2svY2hpcnBzdGFjay9hcGkvZ28vdjQvYXBpqgIOQ2hpcnBzdGFjay5B", + "cGliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Chirpstack.Common.CommonReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.Device), global::Chirpstack.Api.Device.Parser, new[]{ "DevEui", "Name", "Description", "ApplicationId", "DeviceProfileId", "SkipFcntCheck", "IsDisabled", "Variables", "Tags" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceStatus), global::Chirpstack.Api.DeviceStatus.Parser, new[]{ "Margin", "ExternalPowerSource", "BatteryLevel" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceListItem), global::Chirpstack.Api.DeviceListItem.Parser, new[]{ "DevEui", "CreatedAt", "UpdatedAt", "LastSeenAt", "Name", "Description", "DeviceProfileId", "DeviceProfileName", "DeviceStatus" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceKeys), global::Chirpstack.Api.DeviceKeys.Parser, new[]{ "DevEui", "NwkKey", "AppKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateDeviceRequest), global::Chirpstack.Api.CreateDeviceRequest.Parser, new[]{ "Device" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceRequest), global::Chirpstack.Api.GetDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceResponse), global::Chirpstack.Api.GetDeviceResponse.Parser, new[]{ "Device", "CreatedAt", "UpdatedAt", "LastSeenAt", "DeviceStatus" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateDeviceRequest), global::Chirpstack.Api.UpdateDeviceRequest.Parser, new[]{ "Device" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteDeviceRequest), global::Chirpstack.Api.DeleteDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDevicesRequest), global::Chirpstack.Api.ListDevicesRequest.Parser, new[]{ "Limit", "Offset", "Search", "ApplicationId", "MulticastGroupId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDevicesResponse), global::Chirpstack.Api.ListDevicesResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateDeviceKeysRequest), global::Chirpstack.Api.CreateDeviceKeysRequest.Parser, new[]{ "DeviceKeys" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceKeysRequest), global::Chirpstack.Api.GetDeviceKeysRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceKeysResponse), global::Chirpstack.Api.GetDeviceKeysResponse.Parser, new[]{ "DeviceKeys", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateDeviceKeysRequest), global::Chirpstack.Api.UpdateDeviceKeysRequest.Parser, new[]{ "DeviceKeys" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteDeviceKeysRequest), global::Chirpstack.Api.DeleteDeviceKeysRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceActivation), global::Chirpstack.Api.DeviceActivation.Parser, new[]{ "DevEui", "DevAddr", "AppSKey", "NwkSEncKey", "SNwkSIntKey", "FNwkSIntKey", "FCntUp", "NFCntDown", "AFCntDown" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ActivateDeviceRequest), global::Chirpstack.Api.ActivateDeviceRequest.Parser, new[]{ "DeviceActivation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeactivateDeviceRequest), global::Chirpstack.Api.DeactivateDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceActivationRequest), global::Chirpstack.Api.GetDeviceActivationRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceActivationResponse), global::Chirpstack.Api.GetDeviceActivationResponse.Parser, new[]{ "DeviceActivation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetRandomDevAddrRequest), global::Chirpstack.Api.GetRandomDevAddrRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetRandomDevAddrResponse), global::Chirpstack.Api.GetRandomDevAddrResponse.Parser, new[]{ "DevAddr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceMetricsRequest), global::Chirpstack.Api.GetDeviceMetricsRequest.Parser, new[]{ "DevEui", "Start", "End", "Aggregation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceMetricsResponse), global::Chirpstack.Api.GetDeviceMetricsResponse.Parser, new[]{ "Metrics", "States" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceState), global::Chirpstack.Api.DeviceState.Parser, new[]{ "Name", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceLinkMetricsRequest), global::Chirpstack.Api.GetDeviceLinkMetricsRequest.Parser, new[]{ "DevEui", "Start", "End", "Aggregation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceLinkMetricsResponse), global::Chirpstack.Api.GetDeviceLinkMetricsResponse.Parser, new[]{ "RxPackets", "GwRssi", "GwSnr", "RxPacketsPerFreq", "RxPacketsPerDr", "Errors" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceQueueItem), global::Chirpstack.Api.DeviceQueueItem.Parser, new[]{ "Id", "DevEui", "Confirmed", "FPort", "Data", "Object", "IsPending", "FCntDown" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.EnqueueDeviceQueueItemRequest), global::Chirpstack.Api.EnqueueDeviceQueueItemRequest.Parser, new[]{ "QueueItem" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.EnqueueDeviceQueueItemResponse), global::Chirpstack.Api.EnqueueDeviceQueueItemResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.FlushDeviceQueueRequest), global::Chirpstack.Api.FlushDeviceQueueRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceQueueItemsRequest), global::Chirpstack.Api.GetDeviceQueueItemsRequest.Parser, new[]{ "DevEui", "CountOnly" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceQueueItemsResponse), global::Chirpstack.Api.GetDeviceQueueItemsResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.FlushDevNoncesRequest), global::Chirpstack.Api.FlushDevNoncesRequest.Parser, new[]{ "DevEui" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class Device : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Device()); + 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.Api.DeviceReflection.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 Device() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Device(Device other) : this() { + devEui_ = other.devEui_; + name_ = other.name_; + description_ = other.description_; + applicationId_ = other.applicationId_; + deviceProfileId_ = other.deviceProfileId_; + skipFcntCheck_ = other.skipFcntCheck_; + isDisabled_ = other.isDisabled_; + variables_ = other.variables_.Clone(); + tags_ = other.tags_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Device Clone() { + return new Device(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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 "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// Description. + /// + [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 "application_id" field. + public const int ApplicationIdFieldNumber = 4; + 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 "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 "skip_fcnt_check" field. + public const int SkipFcntCheckFieldNumber = 6; + private bool skipFcntCheck_; + /// + /// Skip frame-counter checks (this is insecure, but could be helpful for debugging). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SkipFcntCheck { + get { return skipFcntCheck_; } + set { + skipFcntCheck_ = value; + } + } + + /// Field number for the "is_disabled" field. + public const int IsDisabledFieldNumber = 7; + private bool isDisabled_; + /// + /// Device is disabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsDisabled { + get { return isDisabled_; } + set { + isDisabled_ = value; + } + } + + /// Field number for the "variables" field. + public const int VariablesFieldNumber = 8; + private static readonly pbc::MapField.Codec _map_variables_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 66); + private readonly pbc::MapField variables_ = new pbc::MapField(); + /// + /// Variables (user defined). + /// These variables can be used together with integrations to store tokens / + /// secrets that must be configured per device. These variables are not + /// exposed in the event payloads. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Variables { + get { return variables_; } + } + + /// 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(); + /// + /// Tags (user defined). + /// These tags are exposed in the event payloads or to integration. Tags are + /// intended for aggregation and filtering. + /// + [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 Device); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Device other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (ApplicationId != other.ApplicationId) return false; + if (DeviceProfileId != other.DeviceProfileId) return false; + if (SkipFcntCheck != other.SkipFcntCheck) return false; + if (IsDisabled != other.IsDisabled) return false; + if (!Variables.Equals(other.Variables)) 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 (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + if (DeviceProfileId.Length != 0) hash ^= DeviceProfileId.GetHashCode(); + if (SkipFcntCheck != false) hash ^= SkipFcntCheck.GetHashCode(); + if (IsDisabled != false) hash ^= IsDisabled.GetHashCode(); + hash ^= Variables.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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DevEui); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (ApplicationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ApplicationId); + } + if (DeviceProfileId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DeviceProfileId); + } + if (SkipFcntCheck != false) { + output.WriteRawTag(48); + output.WriteBool(SkipFcntCheck); + } + if (IsDisabled != false) { + output.WriteRawTag(56); + output.WriteBool(IsDisabled); + } + variables_.WriteTo(output, _map_variables_codec); + tags_.WriteTo(output, _map_tags_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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DevEui); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (ApplicationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ApplicationId); + } + if (DeviceProfileId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DeviceProfileId); + } + if (SkipFcntCheck != false) { + output.WriteRawTag(48); + output.WriteBool(SkipFcntCheck); + } + if (IsDisabled != false) { + output.WriteRawTag(56); + output.WriteBool(IsDisabled); + } + variables_.WriteTo(ref output, _map_variables_codec); + tags_.WriteTo(ref output, _map_tags_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 (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (DeviceProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileId); + } + if (SkipFcntCheck != false) { + size += 1 + 1; + } + if (IsDisabled != false) { + size += 1 + 1; + } + size += variables_.CalculateSize(_map_variables_codec); + 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(Device other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + if (other.DeviceProfileId.Length != 0) { + DeviceProfileId = other.DeviceProfileId; + } + if (other.SkipFcntCheck != false) { + SkipFcntCheck = other.SkipFcntCheck; + } + if (other.IsDisabled != false) { + IsDisabled = other.IsDisabled; + } + variables_.Add(other.variables_); + 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: { + DevEui = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + ApplicationId = input.ReadString(); + break; + } + case 42: { + DeviceProfileId = input.ReadString(); + break; + } + case 48: { + SkipFcntCheck = input.ReadBool(); + break; + } + case 56: { + IsDisabled = input.ReadBool(); + break; + } + case 66: { + variables_.AddEntriesFrom(input, _map_variables_codec); + break; + } + case 74: { + tags_.AddEntriesFrom(input, _map_tags_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: { + DevEui = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + ApplicationId = input.ReadString(); + break; + } + case 42: { + DeviceProfileId = input.ReadString(); + break; + } + case 48: { + SkipFcntCheck = input.ReadBool(); + break; + } + case 56: { + IsDisabled = input.ReadBool(); + break; + } + case 66: { + variables_.AddEntriesFrom(ref input, _map_variables_codec); + break; + } + case 74: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeviceStatus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceStatus()); + 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.Api.DeviceReflection.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 DeviceStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceStatus(DeviceStatus other) : this() { + margin_ = other.margin_; + externalPowerSource_ = other.externalPowerSource_; + batteryLevel_ = other.batteryLevel_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceStatus Clone() { + return new DeviceStatus(this); + } + + /// Field number for the "margin" field. + public const int MarginFieldNumber = 1; + private int margin_; + /// + /// The device margin status + /// -32..32: The demodulation SNR ration in dB + /// + [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 = 2; + 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" field. + public const int BatteryLevelFieldNumber = 3; + private float batteryLevel_; + /// + /// Device battery level as a percentage. + /// -1 when the battery level is not available. + /// + [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 DeviceStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeviceStatus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Margin != other.Margin) return false; + if (ExternalPowerSource != other.ExternalPowerSource) 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 (Margin != 0) hash ^= Margin.GetHashCode(); + if (ExternalPowerSource != false) hash ^= ExternalPowerSource.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 (Margin != 0) { + output.WriteRawTag(8); + output.WriteInt32(Margin); + } + if (ExternalPowerSource != false) { + output.WriteRawTag(16); + output.WriteBool(ExternalPowerSource); + } + if (BatteryLevel != 0F) { + output.WriteRawTag(29); + 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 (Margin != 0) { + output.WriteRawTag(8); + output.WriteInt32(Margin); + } + if (ExternalPowerSource != false) { + output.WriteRawTag(16); + output.WriteBool(ExternalPowerSource); + } + if (BatteryLevel != 0F) { + output.WriteRawTag(29); + 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 (Margin != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Margin); + } + if (ExternalPowerSource != 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(DeviceStatus other) { + if (other == null) { + return; + } + if (other.Margin != 0) { + Margin = other.Margin; + } + if (other.ExternalPowerSource != false) { + ExternalPowerSource = other.ExternalPowerSource; + } + 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 8: { + Margin = input.ReadInt32(); + break; + } + case 16: { + ExternalPowerSource = input.ReadBool(); + break; + } + case 29: { + 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 8: { + Margin = input.ReadInt32(); + break; + } + case 16: { + ExternalPowerSource = input.ReadBool(); + break; + } + case 29: { + BatteryLevel = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeviceListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceListItem()); + 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.Api.DeviceReflection.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 DeviceListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceListItem(DeviceListItem other) : this() { + devEui_ = other.devEui_; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + lastSeenAt_ = other.lastSeenAt_ != null ? other.lastSeenAt_.Clone() : null; + name_ = other.name_; + description_ = other.description_; + deviceProfileId_ = other.deviceProfileId_; + deviceProfileName_ = other.deviceProfileName_; + deviceStatus_ = other.deviceStatus_ != null ? other.deviceStatus_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceListItem Clone() { + return new DeviceListItem(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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 "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "last_seen_at" field. + public const int LastSeenAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastSeenAt_; + /// + /// Last seen at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastSeenAt { + get { return lastSeenAt_; } + set { + lastSeenAt_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 5; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 6; + private string description_ = ""; + /// + /// Description. + /// + [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 "device_profile_id" field. + public const int DeviceProfileIdFieldNumber = 7; + 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 = 8; + 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_status" field. + public const int DeviceStatusFieldNumber = 9; + private global::Chirpstack.Api.DeviceStatus deviceStatus_; + /// + /// Device status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceStatus DeviceStatus { + get { return deviceStatus_; } + set { + deviceStatus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeviceListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeviceListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (!object.Equals(LastSeenAt, other.LastSeenAt)) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (DeviceProfileId != other.DeviceProfileId) return false; + if (DeviceProfileName != other.DeviceProfileName) return false; + if (!object.Equals(DeviceStatus, other.DeviceStatus)) 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 (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (lastSeenAt_ != null) hash ^= LastSeenAt.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (DeviceProfileId.Length != 0) hash ^= DeviceProfileId.GetHashCode(); + if (DeviceProfileName.Length != 0) hash ^= DeviceProfileName.GetHashCode(); + if (deviceStatus_ != null) hash ^= DeviceStatus.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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(LastSeenAt); + } + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Description); + } + if (DeviceProfileId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DeviceProfileId); + } + if (DeviceProfileName.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DeviceProfileName); + } + if (deviceStatus_ != null) { + output.WriteRawTag(74); + output.WriteMessage(DeviceStatus); + } + 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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(LastSeenAt); + } + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Description); + } + if (DeviceProfileId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DeviceProfileId); + } + if (DeviceProfileName.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DeviceProfileName); + } + if (deviceStatus_ != null) { + output.WriteRawTag(74); + output.WriteMessage(DeviceStatus); + } + 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 (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (lastSeenAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSeenAt); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (DeviceProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileId); + } + if (DeviceProfileName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileName); + } + if (deviceStatus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceStatus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeviceListItem other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + if (other.lastSeenAt_ != null) { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastSeenAt.MergeFrom(other.LastSeenAt); + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.DeviceProfileId.Length != 0) { + DeviceProfileId = other.DeviceProfileId; + } + if (other.DeviceProfileName.Length != 0) { + DeviceProfileName = other.DeviceProfileName; + } + if (other.deviceStatus_ != null) { + if (deviceStatus_ == null) { + DeviceStatus = new global::Chirpstack.Api.DeviceStatus(); + } + DeviceStatus.MergeFrom(other.DeviceStatus); + } + _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 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + case 50: { + Description = input.ReadString(); + break; + } + case 58: { + DeviceProfileId = input.ReadString(); + break; + } + case 66: { + DeviceProfileName = input.ReadString(); + break; + } + case 74: { + if (deviceStatus_ == null) { + DeviceStatus = new global::Chirpstack.Api.DeviceStatus(); + } + input.ReadMessage(DeviceStatus); + 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 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + case 50: { + Description = input.ReadString(); + break; + } + case 58: { + DeviceProfileId = input.ReadString(); + break; + } + case 66: { + DeviceProfileName = input.ReadString(); + break; + } + case 74: { + if (deviceStatus_ == null) { + DeviceStatus = new global::Chirpstack.Api.DeviceStatus(); + } + input.ReadMessage(DeviceStatus); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeviceKeys : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceKeys()); + 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.Api.DeviceReflection.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 DeviceKeys() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceKeys(DeviceKeys other) : this() { + devEui_ = other.devEui_; + nwkKey_ = other.nwkKey_; + appKey_ = other.appKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceKeys Clone() { + return new DeviceKeys(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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 "nwk_key" field. + public const int NwkKeyFieldNumber = 2; + private string nwkKey_ = ""; + /// + /// Network root key (128 bit). + /// Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`! + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NwkKey { + get { return nwkKey_; } + set { + nwkKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "app_key" field. + public const int AppKeyFieldNumber = 3; + private string appKey_ = ""; + /// + /// Application root key (128 bit). + /// Note: This field only needs to be set for LoRaWAN 1.1.x devices! + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AppKey { + get { return appKey_; } + set { + appKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeviceKeys); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeviceKeys other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (NwkKey != other.NwkKey) return false; + if (AppKey != other.AppKey) 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 (NwkKey.Length != 0) hash ^= NwkKey.GetHashCode(); + if (AppKey.Length != 0) hash ^= AppKey.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 (NwkKey.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NwkKey); + } + if (AppKey.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AppKey); + } + 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 (NwkKey.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NwkKey); + } + if (AppKey.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AppKey); + } + 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 (NwkKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NwkKey); + } + if (AppKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AppKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeviceKeys other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.NwkKey.Length != 0) { + NwkKey = other.NwkKey; + } + if (other.AppKey.Length != 0) { + AppKey = other.AppKey; + } + _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 18: { + NwkKey = input.ReadString(); + break; + } + case 26: { + AppKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + DevEui = input.ReadString(); + break; + } + case 18: { + NwkKey = input.ReadString(); + break; + } + case 26: { + AppKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateDeviceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeviceRequest()); + 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.Api.DeviceReflection.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 CreateDeviceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceRequest(CreateDeviceRequest other) : this() { + device_ = other.device_ != null ? other.device_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceRequest Clone() { + return new CreateDeviceRequest(this); + } + + /// Field number for the "device" field. + public const int DeviceFieldNumber = 1; + private global::Chirpstack.Api.Device device_; + /// + /// Device object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Device Device { + get { return device_; } + set { + device_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateDeviceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateDeviceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Device, other.Device)) 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 (device_ != null) hash ^= Device.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 (device_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Device); + } + 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 (device_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Device); + } + 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 (device_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateDeviceRequest other) { + if (other == null) { + return; + } + if (other.device_ != null) { + if (device_ == null) { + Device = new global::Chirpstack.Api.Device(); + } + Device.MergeFrom(other.Device); + } + _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 (device_ == null) { + Device = new global::Chirpstack.Api.Device(); + } + input.ReadMessage(Device); + 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 (device_ == null) { + Device = new global::Chirpstack.Api.Device(); + } + input.ReadMessage(Device); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceRequest()); + 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.Api.DeviceReflection.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 GetDeviceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceRequest(GetDeviceRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceRequest Clone() { + return new GetDeviceRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceResponse()); + 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.Api.DeviceReflection.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 GetDeviceResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceResponse(GetDeviceResponse other) : this() { + device_ = other.device_ != null ? other.device_.Clone() : null; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + lastSeenAt_ = other.lastSeenAt_ != null ? other.lastSeenAt_.Clone() : null; + deviceStatus_ = other.deviceStatus_ != null ? other.deviceStatus_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceResponse Clone() { + return new GetDeviceResponse(this); + } + + /// Field number for the "device" field. + public const int DeviceFieldNumber = 1; + private global::Chirpstack.Api.Device device_; + /// + /// Device object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Device Device { + get { return device_; } + set { + device_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "last_seen_at" field. + public const int LastSeenAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastSeenAt_; + /// + /// Last seen at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastSeenAt { + get { return lastSeenAt_; } + set { + lastSeenAt_ = value; + } + } + + /// Field number for the "device_status" field. + public const int DeviceStatusFieldNumber = 5; + private global::Chirpstack.Api.DeviceStatus deviceStatus_; + /// + /// Device status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceStatus DeviceStatus { + get { return deviceStatus_; } + set { + deviceStatus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Device, other.Device)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (!object.Equals(LastSeenAt, other.LastSeenAt)) return false; + if (!object.Equals(DeviceStatus, other.DeviceStatus)) 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 (device_ != null) hash ^= Device.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (lastSeenAt_ != null) hash ^= LastSeenAt.GetHashCode(); + if (deviceStatus_ != null) hash ^= DeviceStatus.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 (device_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Device); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(LastSeenAt); + } + if (deviceStatus_ != null) { + output.WriteRawTag(42); + output.WriteMessage(DeviceStatus); + } + 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 (device_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Device); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(LastSeenAt); + } + if (deviceStatus_ != null) { + output.WriteRawTag(42); + output.WriteMessage(DeviceStatus); + } + 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 (device_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (lastSeenAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSeenAt); + } + if (deviceStatus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceStatus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceResponse other) { + if (other == null) { + return; + } + if (other.device_ != null) { + if (device_ == null) { + Device = new global::Chirpstack.Api.Device(); + } + Device.MergeFrom(other.Device); + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + if (other.lastSeenAt_ != null) { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastSeenAt.MergeFrom(other.LastSeenAt); + } + if (other.deviceStatus_ != null) { + if (deviceStatus_ == null) { + DeviceStatus = new global::Chirpstack.Api.DeviceStatus(); + } + DeviceStatus.MergeFrom(other.DeviceStatus); + } + _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 (device_ == null) { + Device = new global::Chirpstack.Api.Device(); + } + input.ReadMessage(Device); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + case 42: { + if (deviceStatus_ == null) { + DeviceStatus = new global::Chirpstack.Api.DeviceStatus(); + } + input.ReadMessage(DeviceStatus); + 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 (device_ == null) { + Device = new global::Chirpstack.Api.Device(); + } + input.ReadMessage(Device); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + case 42: { + if (deviceStatus_ == null) { + DeviceStatus = new global::Chirpstack.Api.DeviceStatus(); + } + input.ReadMessage(DeviceStatus); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateDeviceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateDeviceRequest()); + 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.Api.DeviceReflection.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 UpdateDeviceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDeviceRequest(UpdateDeviceRequest other) : this() { + device_ = other.device_ != null ? other.device_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDeviceRequest Clone() { + return new UpdateDeviceRequest(this); + } + + /// Field number for the "device" field. + public const int DeviceFieldNumber = 1; + private global::Chirpstack.Api.Device device_; + /// + /// Device object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Device Device { + get { return device_; } + set { + device_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateDeviceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateDeviceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Device, other.Device)) 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 (device_ != null) hash ^= Device.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 (device_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Device); + } + 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 (device_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Device); + } + 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 (device_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateDeviceRequest other) { + if (other == null) { + return; + } + if (other.device_ != null) { + if (device_ == null) { + Device = new global::Chirpstack.Api.Device(); + } + Device.MergeFrom(other.Device); + } + _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 (device_ == null) { + Device = new global::Chirpstack.Api.Device(); + } + input.ReadMessage(Device); + 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 (device_ == null) { + Device = new global::Chirpstack.Api.Device(); + } + input.ReadMessage(Device); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteDeviceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceRequest()); + 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.Api.DeviceReflection.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 DeleteDeviceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteDeviceRequest(DeleteDeviceRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteDeviceRequest Clone() { + return new DeleteDeviceRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteDeviceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteDeviceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteDeviceRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class ListDevicesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDevicesRequest()); + 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.Api.DeviceReflection.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 ListDevicesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDevicesRequest(ListDevicesRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + search_ = other.search_; + applicationId_ = other.applicationId_; + multicastGroupId_ = other.multicastGroupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDevicesRequest Clone() { + return new ListDevicesRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private uint limit_; + /// + /// Max number of devices to return in the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 2; + private uint offset_; + /// + /// Offset in the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + /// Field number for the "search" field. + public const int SearchFieldNumber = 3; + private string search_ = ""; + /// + /// If set, the given string will be used to search on name (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Search { + get { return search_; } + set { + search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 4; + private string applicationId_ = ""; + /// + /// Application ID (UUID) to filter devices on. + /// + [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 "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 5; + private string multicastGroupId_ = ""; + /// + /// Multicst-group ID (UUID) to filter devices on. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MulticastGroupId { + get { return multicastGroupId_; } + set { + multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListDevicesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDevicesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Limit != other.Limit) return false; + if (Offset != other.Offset) return false; + if (Search != other.Search) return false; + if (ApplicationId != other.ApplicationId) return false; + if (MulticastGroupId != other.MulticastGroupId) 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 (Limit != 0) hash ^= Limit.GetHashCode(); + if (Offset != 0) hash ^= Offset.GetHashCode(); + if (Search.Length != 0) hash ^= Search.GetHashCode(); + if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (ApplicationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ApplicationId); + } + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(MulticastGroupId); + } + 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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (ApplicationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ApplicationId); + } + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(MulticastGroupId); + } + 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 (Limit != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); + } + if (Offset != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); + } + if (Search.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); + } + if (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDevicesRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0) { + Limit = other.Limit; + } + if (other.Offset != 0) { + Offset = other.Offset; + } + if (other.Search.Length != 0) { + Search = other.Search; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + if (other.MulticastGroupId.Length != 0) { + MulticastGroupId = other.MulticastGroupId; + } + _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: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + case 34: { + ApplicationId = input.ReadString(); + break; + } + case 42: { + MulticastGroupId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + case 34: { + ApplicationId = input.ReadString(); + break; + } + case 42: { + MulticastGroupId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListDevicesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDevicesResponse()); + 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.Api.DeviceReflection.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 ListDevicesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDevicesResponse(ListDevicesResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDevicesResponse Clone() { + return new ListDevicesResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of devices. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.DeviceListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListDevicesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDevicesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDevicesResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateDeviceKeysRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeviceKeysRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceKeysRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceKeysRequest(CreateDeviceKeysRequest other) : this() { + deviceKeys_ = other.deviceKeys_ != null ? other.deviceKeys_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceKeysRequest Clone() { + return new CreateDeviceKeysRequest(this); + } + + /// Field number for the "device_keys" field. + public const int DeviceKeysFieldNumber = 1; + private global::Chirpstack.Api.DeviceKeys deviceKeys_; + /// + /// Device-keys object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceKeys DeviceKeys { + get { return deviceKeys_; } + set { + deviceKeys_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateDeviceKeysRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateDeviceKeysRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DeviceKeys, other.DeviceKeys)) 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 (deviceKeys_ != null) hash ^= DeviceKeys.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 (deviceKeys_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceKeys); + } + 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 (deviceKeys_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceKeys); + } + 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 (deviceKeys_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceKeys); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateDeviceKeysRequest other) { + if (other == null) { + return; + } + if (other.deviceKeys_ != null) { + if (deviceKeys_ == null) { + DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); + } + DeviceKeys.MergeFrom(other.DeviceKeys); + } + _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 (deviceKeys_ == null) { + DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); + } + input.ReadMessage(DeviceKeys); + 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 (deviceKeys_ == null) { + DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); + } + input.ReadMessage(DeviceKeys); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceKeysRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceKeysRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceKeysRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceKeysRequest(GetDeviceKeysRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceKeysRequest Clone() { + return new GetDeviceKeysRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceKeysRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceKeysRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceKeysRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceKeysResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceKeysResponse()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceKeysResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceKeysResponse(GetDeviceKeysResponse other) : this() { + deviceKeys_ = other.deviceKeys_ != null ? other.deviceKeys_.Clone() : null; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceKeysResponse Clone() { + return new GetDeviceKeysResponse(this); + } + + /// Field number for the "device_keys" field. + public const int DeviceKeysFieldNumber = 1; + private global::Chirpstack.Api.DeviceKeys deviceKeys_; + /// + /// Device-keys object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceKeys DeviceKeys { + get { return deviceKeys_; } + set { + deviceKeys_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceKeysResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceKeysResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DeviceKeys, other.DeviceKeys)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) 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 (deviceKeys_ != null) hash ^= DeviceKeys.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.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 (deviceKeys_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceKeys); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (deviceKeys_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceKeys); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (deviceKeys_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceKeys); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceKeysResponse other) { + if (other == null) { + return; + } + if (other.deviceKeys_ != null) { + if (deviceKeys_ == null) { + DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); + } + DeviceKeys.MergeFrom(other.DeviceKeys); + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + _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 (deviceKeys_ == null) { + DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); + } + input.ReadMessage(DeviceKeys); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + 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 (deviceKeys_ == null) { + DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); + } + input.ReadMessage(DeviceKeys); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateDeviceKeysRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateDeviceKeysRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDeviceKeysRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDeviceKeysRequest(UpdateDeviceKeysRequest other) : this() { + deviceKeys_ = other.deviceKeys_ != null ? other.deviceKeys_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDeviceKeysRequest Clone() { + return new UpdateDeviceKeysRequest(this); + } + + /// Field number for the "device_keys" field. + public const int DeviceKeysFieldNumber = 1; + private global::Chirpstack.Api.DeviceKeys deviceKeys_; + /// + /// Device-keys object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceKeys DeviceKeys { + get { return deviceKeys_; } + set { + deviceKeys_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateDeviceKeysRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateDeviceKeysRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DeviceKeys, other.DeviceKeys)) 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 (deviceKeys_ != null) hash ^= DeviceKeys.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 (deviceKeys_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceKeys); + } + 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 (deviceKeys_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceKeys); + } + 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 (deviceKeys_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceKeys); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateDeviceKeysRequest other) { + if (other == null) { + return; + } + if (other.deviceKeys_ != null) { + if (deviceKeys_ == null) { + DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); + } + DeviceKeys.MergeFrom(other.DeviceKeys); + } + _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 (deviceKeys_ == null) { + DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); + } + input.ReadMessage(DeviceKeys); + 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 (deviceKeys_ == null) { + DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); + } + input.ReadMessage(DeviceKeys); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteDeviceKeysRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceKeysRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[15]; } + } + + [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 DeleteDeviceKeysRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteDeviceKeysRequest(DeleteDeviceKeysRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteDeviceKeysRequest Clone() { + return new DeleteDeviceKeysRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteDeviceKeysRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteDeviceKeysRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteDeviceKeysRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class DeviceActivation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceActivation()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[16]; } + } + + [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 DeviceActivation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceActivation(DeviceActivation other) : this() { + devEui_ = other.devEui_; + devAddr_ = other.devAddr_; + appSKey_ = other.appSKey_; + nwkSEncKey_ = other.nwkSEncKey_; + sNwkSIntKey_ = other.sNwkSIntKey_; + fNwkSIntKey_ = other.fNwkSIntKey_; + fCntUp_ = other.fCntUp_; + nFCntDown_ = other.nFCntDown_; + aFCntDown_ = other.aFCntDown_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceActivation Clone() { + return new DeviceActivation(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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 "dev_addr" field. + public const int DevAddrFieldNumber = 2; + private string devAddr_ = ""; + /// + /// Device address (HEX encoded). + /// + [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 "app_s_key" field. + public const int AppSKeyFieldNumber = 3; + private string appSKey_ = ""; + /// + /// Application session key (HEX encoded). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AppSKey { + get { return appSKey_; } + set { + appSKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "nwk_s_enc_key" field. + public const int NwkSEncKeyFieldNumber = 4; + private string nwkSEncKey_ = ""; + /// + /// Network session encryption key (HEX encoded). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NwkSEncKey { + get { return nwkSEncKey_; } + set { + nwkSEncKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "s_nwk_s_int_key" field. + public const int SNwkSIntKeyFieldNumber = 8; + private string sNwkSIntKey_ = ""; + /// + /// Serving network session integrity key (HEX encoded). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SNwkSIntKey { + get { return sNwkSIntKey_; } + set { + sNwkSIntKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_nwk_s_int_key" field. + public const int FNwkSIntKeyFieldNumber = 9; + private string fNwkSIntKey_ = ""; + /// + /// Forwarding network session integrity key (HEX encoded). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FNwkSIntKey { + get { return fNwkSIntKey_; } + set { + fNwkSIntKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt_up" field. + public const int FCntUpFieldNumber = 5; + private uint fCntUp_; + /// + /// Uplink frame-counter. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FCntUp { + get { return fCntUp_; } + set { + fCntUp_ = value; + } + } + + /// Field number for the "n_f_cnt_down" field. + public const int NFCntDownFieldNumber = 6; + private uint nFCntDown_; + /// + /// Downlink network frame-counter. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NFCntDown { + get { return nFCntDown_; } + set { + nFCntDown_ = value; + } + } + + /// Field number for the "a_f_cnt_down" field. + public const int AFCntDownFieldNumber = 10; + private uint aFCntDown_; + /// + /// Downlink application frame-counter. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AFCntDown { + get { return aFCntDown_; } + set { + aFCntDown_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeviceActivation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeviceActivation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (DevAddr != other.DevAddr) return false; + if (AppSKey != other.AppSKey) return false; + if (NwkSEncKey != other.NwkSEncKey) return false; + if (SNwkSIntKey != other.SNwkSIntKey) return false; + if (FNwkSIntKey != other.FNwkSIntKey) return false; + if (FCntUp != other.FCntUp) return false; + if (NFCntDown != other.NFCntDown) return false; + if (AFCntDown != other.AFCntDown) 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 (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); + if (AppSKey.Length != 0) hash ^= AppSKey.GetHashCode(); + if (NwkSEncKey.Length != 0) hash ^= NwkSEncKey.GetHashCode(); + if (SNwkSIntKey.Length != 0) hash ^= SNwkSIntKey.GetHashCode(); + if (FNwkSIntKey.Length != 0) hash ^= FNwkSIntKey.GetHashCode(); + if (FCntUp != 0) hash ^= FCntUp.GetHashCode(); + if (NFCntDown != 0) hash ^= NFCntDown.GetHashCode(); + if (AFCntDown != 0) hash ^= AFCntDown.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 (DevAddr.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DevAddr); + } + if (AppSKey.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AppSKey); + } + if (NwkSEncKey.Length != 0) { + output.WriteRawTag(34); + output.WriteString(NwkSEncKey); + } + if (FCntUp != 0) { + output.WriteRawTag(40); + output.WriteUInt32(FCntUp); + } + if (NFCntDown != 0) { + output.WriteRawTag(48); + output.WriteUInt32(NFCntDown); + } + if (SNwkSIntKey.Length != 0) { + output.WriteRawTag(66); + output.WriteString(SNwkSIntKey); + } + if (FNwkSIntKey.Length != 0) { + output.WriteRawTag(74); + output.WriteString(FNwkSIntKey); + } + if (AFCntDown != 0) { + output.WriteRawTag(80); + output.WriteUInt32(AFCntDown); + } + 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 (DevAddr.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DevAddr); + } + if (AppSKey.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AppSKey); + } + if (NwkSEncKey.Length != 0) { + output.WriteRawTag(34); + output.WriteString(NwkSEncKey); + } + if (FCntUp != 0) { + output.WriteRawTag(40); + output.WriteUInt32(FCntUp); + } + if (NFCntDown != 0) { + output.WriteRawTag(48); + output.WriteUInt32(NFCntDown); + } + if (SNwkSIntKey.Length != 0) { + output.WriteRawTag(66); + output.WriteString(SNwkSIntKey); + } + if (FNwkSIntKey.Length != 0) { + output.WriteRawTag(74); + output.WriteString(FNwkSIntKey); + } + if (AFCntDown != 0) { + output.WriteRawTag(80); + output.WriteUInt32(AFCntDown); + } + 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 (DevAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DevAddr); + } + if (AppSKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AppSKey); + } + if (NwkSEncKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NwkSEncKey); + } + if (SNwkSIntKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SNwkSIntKey); + } + if (FNwkSIntKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FNwkSIntKey); + } + if (FCntUp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCntUp); + } + if (NFCntDown != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NFCntDown); + } + if (AFCntDown != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AFCntDown); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeviceActivation other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.DevAddr.Length != 0) { + DevAddr = other.DevAddr; + } + if (other.AppSKey.Length != 0) { + AppSKey = other.AppSKey; + } + if (other.NwkSEncKey.Length != 0) { + NwkSEncKey = other.NwkSEncKey; + } + if (other.SNwkSIntKey.Length != 0) { + SNwkSIntKey = other.SNwkSIntKey; + } + if (other.FNwkSIntKey.Length != 0) { + FNwkSIntKey = other.FNwkSIntKey; + } + if (other.FCntUp != 0) { + FCntUp = other.FCntUp; + } + if (other.NFCntDown != 0) { + NFCntDown = other.NFCntDown; + } + if (other.AFCntDown != 0) { + AFCntDown = other.AFCntDown; + } + _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 18: { + DevAddr = input.ReadString(); + break; + } + case 26: { + AppSKey = input.ReadString(); + break; + } + case 34: { + NwkSEncKey = input.ReadString(); + break; + } + case 40: { + FCntUp = input.ReadUInt32(); + break; + } + case 48: { + NFCntDown = input.ReadUInt32(); + break; + } + case 66: { + SNwkSIntKey = input.ReadString(); + break; + } + case 74: { + FNwkSIntKey = input.ReadString(); + break; + } + case 80: { + AFCntDown = 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 18: { + DevAddr = input.ReadString(); + break; + } + case 26: { + AppSKey = input.ReadString(); + break; + } + case 34: { + NwkSEncKey = input.ReadString(); + break; + } + case 40: { + FCntUp = input.ReadUInt32(); + break; + } + case 48: { + NFCntDown = input.ReadUInt32(); + break; + } + case 66: { + SNwkSIntKey = input.ReadString(); + break; + } + case 74: { + FNwkSIntKey = input.ReadString(); + break; + } + case 80: { + AFCntDown = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ActivateDeviceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateDeviceRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[17]; } + } + + [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 ActivateDeviceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateDeviceRequest(ActivateDeviceRequest other) : this() { + deviceActivation_ = other.deviceActivation_ != null ? other.deviceActivation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateDeviceRequest Clone() { + return new ActivateDeviceRequest(this); + } + + /// Field number for the "device_activation" field. + public const int DeviceActivationFieldNumber = 1; + private global::Chirpstack.Api.DeviceActivation deviceActivation_; + /// + /// Device activation object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceActivation DeviceActivation { + get { return deviceActivation_; } + set { + deviceActivation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivateDeviceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivateDeviceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DeviceActivation, other.DeviceActivation)) 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 (deviceActivation_ != null) hash ^= DeviceActivation.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 (deviceActivation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceActivation); + } + 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 (deviceActivation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceActivation); + } + 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 (deviceActivation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceActivation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivateDeviceRequest other) { + if (other == null) { + return; + } + if (other.deviceActivation_ != null) { + if (deviceActivation_ == null) { + DeviceActivation = new global::Chirpstack.Api.DeviceActivation(); + } + DeviceActivation.MergeFrom(other.DeviceActivation); + } + _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 (deviceActivation_ == null) { + DeviceActivation = new global::Chirpstack.Api.DeviceActivation(); + } + input.ReadMessage(DeviceActivation); + 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 (deviceActivation_ == null) { + DeviceActivation = new global::Chirpstack.Api.DeviceActivation(); + } + input.ReadMessage(DeviceActivation); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeactivateDeviceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeactivateDeviceRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[18]; } + } + + [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 DeactivateDeviceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeactivateDeviceRequest(DeactivateDeviceRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeactivateDeviceRequest Clone() { + return new DeactivateDeviceRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeactivateDeviceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeactivateDeviceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeactivateDeviceRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceActivationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceActivationRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[19]; } + } + + [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 GetDeviceActivationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceActivationRequest(GetDeviceActivationRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceActivationRequest Clone() { + return new GetDeviceActivationRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceActivationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceActivationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceActivationRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceActivationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceActivationResponse()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[20]; } + } + + [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 GetDeviceActivationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceActivationResponse(GetDeviceActivationResponse other) : this() { + deviceActivation_ = other.deviceActivation_ != null ? other.deviceActivation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceActivationResponse Clone() { + return new GetDeviceActivationResponse(this); + } + + /// Field number for the "device_activation" field. + public const int DeviceActivationFieldNumber = 1; + private global::Chirpstack.Api.DeviceActivation deviceActivation_; + /// + /// Device activation object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceActivation DeviceActivation { + get { return deviceActivation_; } + set { + deviceActivation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceActivationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceActivationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DeviceActivation, other.DeviceActivation)) 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 (deviceActivation_ != null) hash ^= DeviceActivation.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 (deviceActivation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceActivation); + } + 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 (deviceActivation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceActivation); + } + 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 (deviceActivation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceActivation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceActivationResponse other) { + if (other == null) { + return; + } + if (other.deviceActivation_ != null) { + if (deviceActivation_ == null) { + DeviceActivation = new global::Chirpstack.Api.DeviceActivation(); + } + DeviceActivation.MergeFrom(other.DeviceActivation); + } + _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 (deviceActivation_ == null) { + DeviceActivation = new global::Chirpstack.Api.DeviceActivation(); + } + input.ReadMessage(DeviceActivation); + 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 (deviceActivation_ == null) { + DeviceActivation = new global::Chirpstack.Api.DeviceActivation(); + } + input.ReadMessage(DeviceActivation); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetRandomDevAddrRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRandomDevAddrRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[21]; } + } + + [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 GetRandomDevAddrRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRandomDevAddrRequest(GetRandomDevAddrRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRandomDevAddrRequest Clone() { + return new GetRandomDevAddrRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRandomDevAddrRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRandomDevAddrRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRandomDevAddrRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetRandomDevAddrResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRandomDevAddrResponse()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[22]; } + } + + [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 GetRandomDevAddrResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRandomDevAddrResponse(GetRandomDevAddrResponse other) : this() { + devAddr_ = other.devAddr_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRandomDevAddrResponse Clone() { + return new GetRandomDevAddrResponse(this); + } + + /// Field number for the "dev_addr" field. + public const int DevAddrFieldNumber = 1; + private string devAddr_ = ""; + /// + /// DevAddr. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DevAddr { + get { return devAddr_; } + set { + devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRandomDevAddrResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRandomDevAddrResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevAddr != other.DevAddr) 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 (DevAddr.Length != 0) hash ^= DevAddr.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 (DevAddr.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DevAddr); + } + 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 (DevAddr.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DevAddr); + } + 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 (DevAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DevAddr); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRandomDevAddrResponse other) { + if (other == null) { + return; + } + if (other.DevAddr.Length != 0) { + DevAddr = other.DevAddr; + } + _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: { + DevAddr = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + DevAddr = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceMetricsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceMetricsRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[23]; } + } + + [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 GetDeviceMetricsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceMetricsRequest(GetDeviceMetricsRequest other) : this() { + devEui_ = other.devEui_; + start_ = other.start_ != null ? other.start_.Clone() : null; + end_ = other.end_ != null ? other.end_.Clone() : null; + aggregation_ = other.aggregation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceMetricsRequest Clone() { + return new GetDeviceMetricsRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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 "start" field. + public const int StartFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp start_; + /// + /// Interval start timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp Start { + get { return start_; } + set { + start_ = value; + } + } + + /// Field number for the "end" field. + public const int EndFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp end_; + /// + /// Interval end timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp End { + get { return end_; } + set { + end_ = value; + } + } + + /// Field number for the "aggregation" field. + public const int AggregationFieldNumber = 4; + private global::Chirpstack.Common.Aggregation aggregation_ = global::Chirpstack.Common.Aggregation.Hour; + /// + /// Aggregation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Aggregation Aggregation { + get { return aggregation_; } + set { + aggregation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceMetricsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceMetricsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (!object.Equals(Start, other.Start)) return false; + if (!object.Equals(End, other.End)) return false; + if (Aggregation != other.Aggregation) 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 (start_ != null) hash ^= Start.GetHashCode(); + if (end_ != null) hash ^= End.GetHashCode(); + if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) hash ^= Aggregation.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 (start_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Start); + } + if (end_ != null) { + output.WriteRawTag(26); + output.WriteMessage(End); + } + if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { + output.WriteRawTag(32); + output.WriteEnum((int) Aggregation); + } + 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 (start_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Start); + } + if (end_ != null) { + output.WriteRawTag(26); + output.WriteMessage(End); + } + if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { + output.WriteRawTag(32); + output.WriteEnum((int) Aggregation); + } + 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 (start_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start); + } + if (end_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(End); + } + if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Aggregation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceMetricsRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.start_ != null) { + if (start_ == null) { + Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Start.MergeFrom(other.Start); + } + if (other.end_ != null) { + if (end_ == null) { + End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + End.MergeFrom(other.End); + } + if (other.Aggregation != global::Chirpstack.Common.Aggregation.Hour) { + Aggregation = other.Aggregation; + } + _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 18: { + if (start_ == null) { + Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Start); + break; + } + case 26: { + if (end_ == null) { + End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(End); + break; + } + case 32: { + Aggregation = (global::Chirpstack.Common.Aggregation) 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: { + DevEui = input.ReadString(); + break; + } + case 18: { + if (start_ == null) { + Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Start); + break; + } + case 26: { + if (end_ == null) { + End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(End); + break; + } + case 32: { + Aggregation = (global::Chirpstack.Common.Aggregation) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceMetricsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceMetricsResponse()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[24]; } + } + + [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 GetDeviceMetricsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceMetricsResponse(GetDeviceMetricsResponse other) : this() { + metrics_ = other.metrics_.Clone(); + states_ = other.states_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceMetricsResponse Clone() { + return new GetDeviceMetricsResponse(this); + } + + /// Field number for the "metrics" field. + public const int MetricsFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_metrics_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Chirpstack.Common.Metric.Parser), 10); + private readonly pbc::MapField metrics_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Metrics { + get { return metrics_; } + } + + /// Field number for the "states" field. + public const int StatesFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_states_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.DeviceState.Parser), 18); + private readonly pbc::MapField states_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField States { + get { return states_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceMetricsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceMetricsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Metrics.Equals(other.Metrics)) return false; + if (!States.Equals(other.States)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= Metrics.GetHashCode(); + hash ^= States.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 + metrics_.WriteTo(output, _map_metrics_codec); + states_.WriteTo(output, _map_states_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) { + metrics_.WriteTo(ref output, _map_metrics_codec); + states_.WriteTo(ref output, _map_states_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; + size += metrics_.CalculateSize(_map_metrics_codec); + size += states_.CalculateSize(_map_states_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceMetricsResponse other) { + if (other == null) { + return; + } + metrics_.Add(other.metrics_); + states_.Add(other.states_); + _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: { + metrics_.AddEntriesFrom(input, _map_metrics_codec); + break; + } + case 18: { + states_.AddEntriesFrom(input, _map_states_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: { + metrics_.AddEntriesFrom(ref input, _map_metrics_codec); + break; + } + case 18: { + states_.AddEntriesFrom(ref input, _map_states_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeviceState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceState()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[25]; } + } + + [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 DeviceState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceState(DeviceState other) : this() { + name_ = other.name_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceState Clone() { + return new DeviceState(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 3; + private string value_ = ""; + /// + /// Value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeviceState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeviceState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Value.Length != 0) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Value.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Value.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Value.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeviceState other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Value.Length != 0) { + Value = other.Value; + } + _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 18: { + Name = input.ReadString(); + break; + } + case 26: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceLinkMetricsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceLinkMetricsRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[26]; } + } + + [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 GetDeviceLinkMetricsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceLinkMetricsRequest(GetDeviceLinkMetricsRequest other) : this() { + devEui_ = other.devEui_; + start_ = other.start_ != null ? other.start_.Clone() : null; + end_ = other.end_ != null ? other.end_.Clone() : null; + aggregation_ = other.aggregation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceLinkMetricsRequest Clone() { + return new GetDeviceLinkMetricsRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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 "start" field. + public const int StartFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp start_; + /// + /// Interval start timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp Start { + get { return start_; } + set { + start_ = value; + } + } + + /// Field number for the "end" field. + public const int EndFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp end_; + /// + /// Interval end timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp End { + get { return end_; } + set { + end_ = value; + } + } + + /// Field number for the "aggregation" field. + public const int AggregationFieldNumber = 4; + private global::Chirpstack.Common.Aggregation aggregation_ = global::Chirpstack.Common.Aggregation.Hour; + /// + /// Aggregation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Aggregation Aggregation { + get { return aggregation_; } + set { + aggregation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceLinkMetricsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceLinkMetricsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (!object.Equals(Start, other.Start)) return false; + if (!object.Equals(End, other.End)) return false; + if (Aggregation != other.Aggregation) 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 (start_ != null) hash ^= Start.GetHashCode(); + if (end_ != null) hash ^= End.GetHashCode(); + if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) hash ^= Aggregation.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 (start_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Start); + } + if (end_ != null) { + output.WriteRawTag(26); + output.WriteMessage(End); + } + if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { + output.WriteRawTag(32); + output.WriteEnum((int) Aggregation); + } + 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 (start_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Start); + } + if (end_ != null) { + output.WriteRawTag(26); + output.WriteMessage(End); + } + if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { + output.WriteRawTag(32); + output.WriteEnum((int) Aggregation); + } + 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 (start_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start); + } + if (end_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(End); + } + if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Aggregation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceLinkMetricsRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.start_ != null) { + if (start_ == null) { + Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Start.MergeFrom(other.Start); + } + if (other.end_ != null) { + if (end_ == null) { + End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + End.MergeFrom(other.End); + } + if (other.Aggregation != global::Chirpstack.Common.Aggregation.Hour) { + Aggregation = other.Aggregation; + } + _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 18: { + if (start_ == null) { + Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Start); + break; + } + case 26: { + if (end_ == null) { + End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(End); + break; + } + case 32: { + Aggregation = (global::Chirpstack.Common.Aggregation) 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: { + DevEui = input.ReadString(); + break; + } + case 18: { + if (start_ == null) { + Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Start); + break; + } + case 26: { + if (end_ == null) { + End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(End); + break; + } + case 32: { + Aggregation = (global::Chirpstack.Common.Aggregation) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceLinkMetricsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceLinkMetricsResponse()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[27]; } + } + + [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 GetDeviceLinkMetricsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceLinkMetricsResponse(GetDeviceLinkMetricsResponse other) : this() { + rxPackets_ = other.rxPackets_ != null ? other.rxPackets_.Clone() : null; + gwRssi_ = other.gwRssi_ != null ? other.gwRssi_.Clone() : null; + gwSnr_ = other.gwSnr_ != null ? other.gwSnr_.Clone() : null; + rxPacketsPerFreq_ = other.rxPacketsPerFreq_ != null ? other.rxPacketsPerFreq_.Clone() : null; + rxPacketsPerDr_ = other.rxPacketsPerDr_ != null ? other.rxPacketsPerDr_.Clone() : null; + errors_ = other.errors_ != null ? other.errors_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceLinkMetricsResponse Clone() { + return new GetDeviceLinkMetricsResponse(this); + } + + /// Field number for the "rx_packets" field. + public const int RxPacketsFieldNumber = 1; + private global::Chirpstack.Common.Metric rxPackets_; + /// + /// Packets received from the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric RxPackets { + get { return rxPackets_; } + set { + rxPackets_ = value; + } + } + + /// Field number for the "gw_rssi" field. + public const int GwRssiFieldNumber = 2; + private global::Chirpstack.Common.Metric gwRssi_; + /// + /// RSSI (as reported by the gateway(s)). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric GwRssi { + get { return gwRssi_; } + set { + gwRssi_ = value; + } + } + + /// Field number for the "gw_snr" field. + public const int GwSnrFieldNumber = 3; + private global::Chirpstack.Common.Metric gwSnr_; + /// + /// SNR (as reported by the gateway(s)). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric GwSnr { + get { return gwSnr_; } + set { + gwSnr_ = value; + } + } + + /// Field number for the "rx_packets_per_freq" field. + public const int RxPacketsPerFreqFieldNumber = 4; + private global::Chirpstack.Common.Metric rxPacketsPerFreq_; + /// + /// Packets received by frequency. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric RxPacketsPerFreq { + get { return rxPacketsPerFreq_; } + set { + rxPacketsPerFreq_ = value; + } + } + + /// Field number for the "rx_packets_per_dr" field. + public const int RxPacketsPerDrFieldNumber = 5; + private global::Chirpstack.Common.Metric rxPacketsPerDr_; + /// + /// Packets received by DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric RxPacketsPerDr { + get { return rxPacketsPerDr_; } + set { + rxPacketsPerDr_ = value; + } + } + + /// Field number for the "errors" field. + public const int ErrorsFieldNumber = 6; + private global::Chirpstack.Common.Metric errors_; + /// + /// Errors. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric Errors { + get { return errors_; } + set { + errors_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceLinkMetricsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceLinkMetricsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RxPackets, other.RxPackets)) return false; + if (!object.Equals(GwRssi, other.GwRssi)) return false; + if (!object.Equals(GwSnr, other.GwSnr)) return false; + if (!object.Equals(RxPacketsPerFreq, other.RxPacketsPerFreq)) return false; + if (!object.Equals(RxPacketsPerDr, other.RxPacketsPerDr)) return false; + if (!object.Equals(Errors, other.Errors)) 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 (rxPackets_ != null) hash ^= RxPackets.GetHashCode(); + if (gwRssi_ != null) hash ^= GwRssi.GetHashCode(); + if (gwSnr_ != null) hash ^= GwSnr.GetHashCode(); + if (rxPacketsPerFreq_ != null) hash ^= RxPacketsPerFreq.GetHashCode(); + if (rxPacketsPerDr_ != null) hash ^= RxPacketsPerDr.GetHashCode(); + if (errors_ != null) hash ^= Errors.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 (rxPackets_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RxPackets); + } + if (gwRssi_ != null) { + output.WriteRawTag(18); + output.WriteMessage(GwRssi); + } + if (gwSnr_ != null) { + output.WriteRawTag(26); + output.WriteMessage(GwSnr); + } + if (rxPacketsPerFreq_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RxPacketsPerFreq); + } + if (rxPacketsPerDr_ != null) { + output.WriteRawTag(42); + output.WriteMessage(RxPacketsPerDr); + } + if (errors_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Errors); + } + 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 (rxPackets_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RxPackets); + } + if (gwRssi_ != null) { + output.WriteRawTag(18); + output.WriteMessage(GwRssi); + } + if (gwSnr_ != null) { + output.WriteRawTag(26); + output.WriteMessage(GwSnr); + } + if (rxPacketsPerFreq_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RxPacketsPerFreq); + } + if (rxPacketsPerDr_ != null) { + output.WriteRawTag(42); + output.WriteMessage(RxPacketsPerDr); + } + if (errors_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Errors); + } + 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 (rxPackets_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxPackets); + } + if (gwRssi_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GwRssi); + } + if (gwSnr_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GwSnr); + } + if (rxPacketsPerFreq_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxPacketsPerFreq); + } + if (rxPacketsPerDr_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxPacketsPerDr); + } + if (errors_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Errors); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceLinkMetricsResponse other) { + if (other == null) { + return; + } + if (other.rxPackets_ != null) { + if (rxPackets_ == null) { + RxPackets = new global::Chirpstack.Common.Metric(); + } + RxPackets.MergeFrom(other.RxPackets); + } + if (other.gwRssi_ != null) { + if (gwRssi_ == null) { + GwRssi = new global::Chirpstack.Common.Metric(); + } + GwRssi.MergeFrom(other.GwRssi); + } + if (other.gwSnr_ != null) { + if (gwSnr_ == null) { + GwSnr = new global::Chirpstack.Common.Metric(); + } + GwSnr.MergeFrom(other.GwSnr); + } + if (other.rxPacketsPerFreq_ != null) { + if (rxPacketsPerFreq_ == null) { + RxPacketsPerFreq = new global::Chirpstack.Common.Metric(); + } + RxPacketsPerFreq.MergeFrom(other.RxPacketsPerFreq); + } + if (other.rxPacketsPerDr_ != null) { + if (rxPacketsPerDr_ == null) { + RxPacketsPerDr = new global::Chirpstack.Common.Metric(); + } + RxPacketsPerDr.MergeFrom(other.RxPacketsPerDr); + } + if (other.errors_ != null) { + if (errors_ == null) { + Errors = new global::Chirpstack.Common.Metric(); + } + Errors.MergeFrom(other.Errors); + } + _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 (rxPackets_ == null) { + RxPackets = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(RxPackets); + break; + } + case 18: { + if (gwRssi_ == null) { + GwRssi = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(GwRssi); + break; + } + case 26: { + if (gwSnr_ == null) { + GwSnr = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(GwSnr); + break; + } + case 34: { + if (rxPacketsPerFreq_ == null) { + RxPacketsPerFreq = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(RxPacketsPerFreq); + break; + } + case 42: { + if (rxPacketsPerDr_ == null) { + RxPacketsPerDr = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(RxPacketsPerDr); + break; + } + case 50: { + if (errors_ == null) { + Errors = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(Errors); + 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 (rxPackets_ == null) { + RxPackets = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(RxPackets); + break; + } + case 18: { + if (gwRssi_ == null) { + GwRssi = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(GwRssi); + break; + } + case 26: { + if (gwSnr_ == null) { + GwSnr = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(GwSnr); + break; + } + case 34: { + if (rxPacketsPerFreq_ == null) { + RxPacketsPerFreq = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(RxPacketsPerFreq); + break; + } + case 42: { + if (rxPacketsPerDr_ == null) { + RxPacketsPerDr = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(RxPacketsPerDr); + break; + } + case 50: { + if (errors_ == null) { + Errors = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(Errors); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeviceQueueItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceQueueItem()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[28]; } + } + + [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 DeviceQueueItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceQueueItem(DeviceQueueItem 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; + isPending_ = other.isPending_; + fCntDown_ = other.fCntDown_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceQueueItem Clone() { + return new DeviceQueueItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID (UUID). + /// This is automatically generated on enqueue. + /// + [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; + } + } + + /// Field number for the "is_pending" field. + public const int IsPendingFieldNumber = 7; + private bool isPending_; + /// + /// Is pending. + /// This is set to true when the downlink is pending. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsPending { + get { return isPending_; } + set { + isPending_ = value; + } + } + + /// Field number for the "f_cnt_down" field. + public const int FCntDownFieldNumber = 8; + private uint fCntDown_; + /// + /// Downlink frame-counter. + /// This is set when the payload has been sent as downlink. + /// + [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 DeviceQueueItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeviceQueueItem 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; + if (IsPending != other.IsPending) 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 (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 (IsPending != false) hash ^= IsPending.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 (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 (IsPending != false) { + output.WriteRawTag(56); + output.WriteBool(IsPending); + } + if (FCntDown != 0) { + output.WriteRawTag(64); + 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 (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 (IsPending != false) { + output.WriteRawTag(56); + output.WriteBool(IsPending); + } + if (FCntDown != 0) { + output.WriteRawTag(64); + 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 (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 (IsPending != 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(DeviceQueueItem 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); + } + if (other.IsPending != false) { + IsPending = other.IsPending; + } + 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: { + 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; + } + case 56: { + IsPending = input.ReadBool(); + break; + } + case 64: { + 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: { + 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; + } + case 56: { + IsPending = input.ReadBool(); + break; + } + case 64: { + FCntDown = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class EnqueueDeviceQueueItemRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnqueueDeviceQueueItemRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[29]; } + } + + [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 EnqueueDeviceQueueItemRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueDeviceQueueItemRequest(EnqueueDeviceQueueItemRequest other) : this() { + queueItem_ = other.queueItem_ != null ? other.queueItem_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueDeviceQueueItemRequest Clone() { + return new EnqueueDeviceQueueItemRequest(this); + } + + /// Field number for the "queue_item" field. + public const int QueueItemFieldNumber = 1; + private global::Chirpstack.Api.DeviceQueueItem queueItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceQueueItem QueueItem { + get { return queueItem_; } + set { + queueItem_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnqueueDeviceQueueItemRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnqueueDeviceQueueItemRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(QueueItem, other.QueueItem)) 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 (queueItem_ != null) hash ^= QueueItem.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 (queueItem_ != null) { + output.WriteRawTag(10); + output.WriteMessage(QueueItem); + } + 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 (queueItem_ != null) { + output.WriteRawTag(10); + output.WriteMessage(QueueItem); + } + 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 (queueItem_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueueItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnqueueDeviceQueueItemRequest other) { + if (other == null) { + return; + } + if (other.queueItem_ != null) { + if (queueItem_ == null) { + QueueItem = new global::Chirpstack.Api.DeviceQueueItem(); + } + QueueItem.MergeFrom(other.QueueItem); + } + _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 (queueItem_ == null) { + QueueItem = new global::Chirpstack.Api.DeviceQueueItem(); + } + input.ReadMessage(QueueItem); + 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 (queueItem_ == null) { + QueueItem = new global::Chirpstack.Api.DeviceQueueItem(); + } + input.ReadMessage(QueueItem); + break; + } + } + } + } + #endif + + } + + public sealed partial class EnqueueDeviceQueueItemResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnqueueDeviceQueueItemResponse()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[30]; } + } + + [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 EnqueueDeviceQueueItemResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueDeviceQueueItemResponse(EnqueueDeviceQueueItemResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueDeviceQueueItemResponse Clone() { + return new EnqueueDeviceQueueItemResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnqueueDeviceQueueItemResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnqueueDeviceQueueItemResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnqueueDeviceQueueItemResponse other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class FlushDeviceQueueRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushDeviceQueueRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[31]; } + } + + [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 FlushDeviceQueueRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushDeviceQueueRequest(FlushDeviceQueueRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushDeviceQueueRequest Clone() { + return new FlushDeviceQueueRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FlushDeviceQueueRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FlushDeviceQueueRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FlushDeviceQueueRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceQueueItemsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceQueueItemsRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[32]; } + } + + [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 GetDeviceQueueItemsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceQueueItemsRequest(GetDeviceQueueItemsRequest other) : this() { + devEui_ = other.devEui_; + countOnly_ = other.countOnly_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceQueueItemsRequest Clone() { + return new GetDeviceQueueItemsRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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 "count_only" field. + public const int CountOnlyFieldNumber = 2; + private bool countOnly_; + /// + /// Return only the count, not the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CountOnly { + get { return countOnly_; } + set { + countOnly_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceQueueItemsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceQueueItemsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (CountOnly != other.CountOnly) 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 (CountOnly != false) hash ^= CountOnly.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 (CountOnly != false) { + output.WriteRawTag(16); + output.WriteBool(CountOnly); + } + 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 (CountOnly != false) { + output.WriteRawTag(16); + output.WriteBool(CountOnly); + } + 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 (CountOnly != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceQueueItemsRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.CountOnly != false) { + CountOnly = other.CountOnly; + } + _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: { + CountOnly = input.ReadBool(); + 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: { + CountOnly = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceQueueItemsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceQueueItemsResponse()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[33]; } + } + + [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 GetDeviceQueueItemsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceQueueItemsResponse(GetDeviceQueueItemsResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceQueueItemsResponse Clone() { + return new GetDeviceQueueItemsResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of queue items. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.DeviceQueueItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceQueueItemsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceQueueItemsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceQueueItemsResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class FlushDevNoncesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushDevNoncesRequest()); + 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.Api.DeviceReflection.Descriptor.MessageTypes[34]; } + } + + [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 FlushDevNoncesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushDevNoncesRequest(FlushDevNoncesRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushDevNoncesRequest Clone() { + return new FlushDevNoncesRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FlushDevNoncesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FlushDevNoncesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FlushDevNoncesRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/DeviceGrpc.cs b/api/csharp/Chirpstack/api/DeviceGrpc.cs new file mode 100644 index 00000000..428a42ce --- /dev/null +++ b/api/csharp/Chirpstack/api/DeviceGrpc.cs @@ -0,0 +1,1516 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/device.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.Api { + /// + /// DeviceService is the service providing API methods for managing devices. + /// + public static partial class DeviceService + { + static readonly string __ServiceName = "api.DeviceService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListDevicesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDevicesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListDevicesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDevicesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateDeviceKeysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateDeviceKeysRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceKeysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceKeysRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceKeysResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceKeysResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateDeviceKeysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateDeviceKeysRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteDeviceKeysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteDeviceKeysRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_FlushDevNoncesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.FlushDevNoncesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ActivateDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ActivateDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeactivateDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeactivateDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceActivationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceActivationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceActivationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceActivationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetRandomDevAddrRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetRandomDevAddrRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetRandomDevAddrResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetRandomDevAddrResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceMetricsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceMetricsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceMetricsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceMetricsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceLinkMetricsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceLinkMetricsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceLinkMetricsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceLinkMetricsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_EnqueueDeviceQueueItemRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.EnqueueDeviceQueueItemRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_EnqueueDeviceQueueItemResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.EnqueueDeviceQueueItemResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_FlushDeviceQueueRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.FlushDeviceQueueRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceQueueItemsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceQueueItemsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceQueueItemsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceQueueItemsResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Create = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Create", + __Marshaller_api_CreateDeviceRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Get = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Get", + __Marshaller_api_GetDeviceRequest, + __Marshaller_api_GetDeviceResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Update = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Update", + __Marshaller_api_UpdateDeviceRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Delete = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Delete", + __Marshaller_api_DeleteDeviceRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_List = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "List", + __Marshaller_api_ListDevicesRequest, + __Marshaller_api_ListDevicesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateKeys = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateKeys", + __Marshaller_api_CreateDeviceKeysRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetKeys = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetKeys", + __Marshaller_api_GetDeviceKeysRequest, + __Marshaller_api_GetDeviceKeysResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateKeys = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateKeys", + __Marshaller_api_UpdateDeviceKeysRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteKeys = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteKeys", + __Marshaller_api_DeleteDeviceKeysRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_FlushDevNonces = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "FlushDevNonces", + __Marshaller_api_FlushDevNoncesRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Activate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Activate", + __Marshaller_api_ActivateDeviceRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Deactivate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Deactivate", + __Marshaller_api_DeactivateDeviceRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetActivation = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetActivation", + __Marshaller_api_GetDeviceActivationRequest, + __Marshaller_api_GetDeviceActivationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetRandomDevAddr = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetRandomDevAddr", + __Marshaller_api_GetRandomDevAddrRequest, + __Marshaller_api_GetRandomDevAddrResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetMetrics = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetMetrics", + __Marshaller_api_GetDeviceMetricsRequest, + __Marshaller_api_GetDeviceMetricsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetLinkMetrics = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetLinkMetrics", + __Marshaller_api_GetDeviceLinkMetricsRequest, + __Marshaller_api_GetDeviceLinkMetricsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Enqueue = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Enqueue", + __Marshaller_api_EnqueueDeviceQueueItemRequest, + __Marshaller_api_EnqueueDeviceQueueItemResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_FlushQueue = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "FlushQueue", + __Marshaller_api_FlushDeviceQueueRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetQueue = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetQueue", + __Marshaller_api_GetDeviceQueueItemsRequest, + __Marshaller_api_GetDeviceQueueItemsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.Api.DeviceReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of DeviceService + [grpc::BindServiceMethod(typeof(DeviceService), "BindService")] + public abstract partial class DeviceServiceBase + { + /// + /// Create the given device. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get returns the device for the given DevEUI. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update the given device. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete the device with the given DevEUI. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the list of devices. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListDevicesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create the given device-keys. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateKeys(global::Chirpstack.Api.CreateDeviceKeysRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the device-keys for the given DevEUI. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetKeys(global::Chirpstack.Api.GetDeviceKeysRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update the given device-keys. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateKeys(global::Chirpstack.Api.UpdateDeviceKeysRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete the device-keys for the given DevEUI. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteKeys(global::Chirpstack.Api.DeleteDeviceKeysRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// FlushDevNonces flushes the OTAA device nonces. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task FlushDevNonces(global::Chirpstack.Api.FlushDevNoncesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Activate (re)activates the device with the given parameters (for ABP or for importing OTAA activations). + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Activate(global::Chirpstack.Api.ActivateDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deactivate de-activates the device. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Deactivate(global::Chirpstack.Api.DeactivateDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetActivation returns the current activation details of the device (OTAA or ABP). + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetActivation(global::Chirpstack.Api.GetDeviceActivationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into account. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetRandomDevAddr(global::Chirpstack.Api.GetRandomDevAddrRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetMetrics returns the device metrics. + /// Note that this requires a device-profile with codec and measurements configured. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetMetrics(global::Chirpstack.Api.GetDeviceMetricsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetLinkMetrics returns the device link metrics. + /// This includes uplinks, downlinks, RSSI, SNR, etc... + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetLinkMetrics(global::Chirpstack.Api.GetDeviceLinkMetricsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Enqueue adds the given item to the downlink queue. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Enqueue(global::Chirpstack.Api.EnqueueDeviceQueueItemRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// FlushQueue flushes the downlink device-queue. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task FlushQueue(global::Chirpstack.Api.FlushDeviceQueueRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetQueue returns the downlink device-queue. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetQueue(global::Chirpstack.Api.GetDeviceQueueItemsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for DeviceService + public partial class DeviceServiceClient : grpc::ClientBase + { + /// Creates a new client for DeviceService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DeviceServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for DeviceService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DeviceServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DeviceServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DeviceServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Create the given device. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create the given device. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create the given device. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create the given device. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get returns the device for the given DevEUI. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceResponse Get(global::Chirpstack.Api.GetDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get returns the device for the given DevEUI. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceResponse Get(global::Chirpstack.Api.GetDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get returns the device for the given DevEUI. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get returns the device for the given DevEUI. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update the given device. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given device. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update the given device. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given device. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete the device with the given DevEUI. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the device with the given DevEUI. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete the device with the given DevEUI. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the device with the given DevEUI. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Get the list of devices. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListDevicesResponse List(global::Chirpstack.Api.ListDevicesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the list of devices. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListDevicesResponse List(global::Chirpstack.Api.ListDevicesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// Get the list of devices. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListDevicesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the list of devices. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListDevicesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// Create the given device-keys. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateKeys(global::Chirpstack.Api.CreateDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateKeys(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create the given device-keys. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateKeys(global::Chirpstack.Api.CreateDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateKeys, null, options, request); + } + /// + /// Create the given device-keys. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateKeysAsync(global::Chirpstack.Api.CreateDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateKeysAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create the given device-keys. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateKeysAsync(global::Chirpstack.Api.CreateDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateKeys, null, options, request); + } + /// + /// Get the device-keys for the given DevEUI. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceKeysResponse GetKeys(global::Chirpstack.Api.GetDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetKeys(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the device-keys for the given DevEUI. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceKeysResponse GetKeys(global::Chirpstack.Api.GetDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetKeys, null, options, request); + } + /// + /// Get the device-keys for the given DevEUI. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetKeysAsync(global::Chirpstack.Api.GetDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetKeysAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the device-keys for the given DevEUI. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetKeysAsync(global::Chirpstack.Api.GetDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetKeys, null, options, request); + } + /// + /// Update the given device-keys. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateKeys(global::Chirpstack.Api.UpdateDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateKeys(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given device-keys. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateKeys(global::Chirpstack.Api.UpdateDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateKeys, null, options, request); + } + /// + /// Update the given device-keys. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateKeysAsync(global::Chirpstack.Api.UpdateDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateKeysAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given device-keys. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateKeysAsync(global::Chirpstack.Api.UpdateDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateKeys, null, options, request); + } + /// + /// Delete the device-keys for the given DevEUI. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteKeys(global::Chirpstack.Api.DeleteDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteKeys(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the device-keys for the given DevEUI. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteKeys(global::Chirpstack.Api.DeleteDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteKeys, null, options, request); + } + /// + /// Delete the device-keys for the given DevEUI. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteKeysAsync(global::Chirpstack.Api.DeleteDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteKeysAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the device-keys for the given DevEUI. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteKeysAsync(global::Chirpstack.Api.DeleteDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteKeys, null, options, request); + } + /// + /// FlushDevNonces flushes the OTAA device nonces. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty FlushDevNonces(global::Chirpstack.Api.FlushDevNoncesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FlushDevNonces(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// FlushDevNonces flushes the OTAA device nonces. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty FlushDevNonces(global::Chirpstack.Api.FlushDevNoncesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_FlushDevNonces, null, options, request); + } + /// + /// FlushDevNonces flushes the OTAA device nonces. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall FlushDevNoncesAsync(global::Chirpstack.Api.FlushDevNoncesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FlushDevNoncesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// FlushDevNonces flushes the OTAA device nonces. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall FlushDevNoncesAsync(global::Chirpstack.Api.FlushDevNoncesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_FlushDevNonces, null, options, request); + } + /// + /// Activate (re)activates the device with the given parameters (for ABP or for importing OTAA activations). + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Activate(global::Chirpstack.Api.ActivateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Activate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Activate (re)activates the device with the given parameters (for ABP or for importing OTAA activations). + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Activate(global::Chirpstack.Api.ActivateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Activate, null, options, request); + } + /// + /// Activate (re)activates the device with the given parameters (for ABP or for importing OTAA activations). + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ActivateAsync(global::Chirpstack.Api.ActivateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ActivateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Activate (re)activates the device with the given parameters (for ABP or for importing OTAA activations). + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ActivateAsync(global::Chirpstack.Api.ActivateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Activate, null, options, request); + } + /// + /// Deactivate de-activates the device. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Deactivate(global::Chirpstack.Api.DeactivateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Deactivate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deactivate de-activates the device. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Deactivate(global::Chirpstack.Api.DeactivateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Deactivate, null, options, request); + } + /// + /// Deactivate de-activates the device. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeactivateAsync(global::Chirpstack.Api.DeactivateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeactivateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deactivate de-activates the device. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeactivateAsync(global::Chirpstack.Api.DeactivateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Deactivate, null, options, request); + } + /// + /// GetActivation returns the current activation details of the device (OTAA or ABP). + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceActivationResponse GetActivation(global::Chirpstack.Api.GetDeviceActivationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetActivation(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetActivation returns the current activation details of the device (OTAA or ABP). + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceActivationResponse GetActivation(global::Chirpstack.Api.GetDeviceActivationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetActivation, null, options, request); + } + /// + /// GetActivation returns the current activation details of the device (OTAA or ABP). + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetActivationAsync(global::Chirpstack.Api.GetDeviceActivationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetActivationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetActivation returns the current activation details of the device (OTAA or ABP). + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetActivationAsync(global::Chirpstack.Api.GetDeviceActivationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetActivation, null, options, request); + } + /// + /// GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into account. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetRandomDevAddrResponse GetRandomDevAddr(global::Chirpstack.Api.GetRandomDevAddrRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetRandomDevAddr(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into account. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetRandomDevAddrResponse GetRandomDevAddr(global::Chirpstack.Api.GetRandomDevAddrRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetRandomDevAddr, null, options, request); + } + /// + /// GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into account. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetRandomDevAddrAsync(global::Chirpstack.Api.GetRandomDevAddrRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetRandomDevAddrAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into account. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetRandomDevAddrAsync(global::Chirpstack.Api.GetRandomDevAddrRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetRandomDevAddr, null, options, request); + } + /// + /// GetMetrics returns the device metrics. + /// Note that this requires a device-profile with codec and measurements configured. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceMetricsResponse GetMetrics(global::Chirpstack.Api.GetDeviceMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMetrics(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetMetrics returns the device metrics. + /// Note that this requires a device-profile with codec and measurements configured. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceMetricsResponse GetMetrics(global::Chirpstack.Api.GetDeviceMetricsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetMetrics, null, options, request); + } + /// + /// GetMetrics returns the device metrics. + /// Note that this requires a device-profile with codec and measurements configured. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetMetricsAsync(global::Chirpstack.Api.GetDeviceMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMetricsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetMetrics returns the device metrics. + /// Note that this requires a device-profile with codec and measurements configured. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetMetricsAsync(global::Chirpstack.Api.GetDeviceMetricsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetMetrics, null, options, request); + } + /// + /// GetLinkMetrics returns the device link metrics. + /// This includes uplinks, downlinks, RSSI, SNR, etc... + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceLinkMetricsResponse GetLinkMetrics(global::Chirpstack.Api.GetDeviceLinkMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetLinkMetrics(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetLinkMetrics returns the device link metrics. + /// This includes uplinks, downlinks, RSSI, SNR, etc... + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceLinkMetricsResponse GetLinkMetrics(global::Chirpstack.Api.GetDeviceLinkMetricsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetLinkMetrics, null, options, request); + } + /// + /// GetLinkMetrics returns the device link metrics. + /// This includes uplinks, downlinks, RSSI, SNR, etc... + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetLinkMetricsAsync(global::Chirpstack.Api.GetDeviceLinkMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetLinkMetricsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetLinkMetrics returns the device link metrics. + /// This includes uplinks, downlinks, RSSI, SNR, etc... + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetLinkMetricsAsync(global::Chirpstack.Api.GetDeviceLinkMetricsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetLinkMetrics, null, options, request); + } + /// + /// Enqueue adds the given item to the downlink queue. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.EnqueueDeviceQueueItemResponse Enqueue(global::Chirpstack.Api.EnqueueDeviceQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Enqueue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Enqueue adds the given item to the downlink queue. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.EnqueueDeviceQueueItemResponse Enqueue(global::Chirpstack.Api.EnqueueDeviceQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Enqueue, null, options, request); + } + /// + /// Enqueue adds the given item to the downlink queue. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall EnqueueAsync(global::Chirpstack.Api.EnqueueDeviceQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return EnqueueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Enqueue adds the given item to the downlink queue. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall EnqueueAsync(global::Chirpstack.Api.EnqueueDeviceQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Enqueue, null, options, request); + } + /// + /// FlushQueue flushes the downlink device-queue. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty FlushQueue(global::Chirpstack.Api.FlushDeviceQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FlushQueue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// FlushQueue flushes the downlink device-queue. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty FlushQueue(global::Chirpstack.Api.FlushDeviceQueueRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_FlushQueue, null, options, request); + } + /// + /// FlushQueue flushes the downlink device-queue. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall FlushQueueAsync(global::Chirpstack.Api.FlushDeviceQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FlushQueueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// FlushQueue flushes the downlink device-queue. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall FlushQueueAsync(global::Chirpstack.Api.FlushDeviceQueueRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_FlushQueue, null, options, request); + } + /// + /// GetQueue returns the downlink device-queue. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceQueueItemsResponse GetQueue(global::Chirpstack.Api.GetDeviceQueueItemsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetQueue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetQueue returns the downlink device-queue. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceQueueItemsResponse GetQueue(global::Chirpstack.Api.GetDeviceQueueItemsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetQueue, null, options, request); + } + /// + /// GetQueue returns the downlink device-queue. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetQueueAsync(global::Chirpstack.Api.GetDeviceQueueItemsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetQueueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetQueue returns the downlink device-queue. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetQueueAsync(global::Chirpstack.Api.GetDeviceQueueItemsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetQueue, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override DeviceServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new DeviceServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(DeviceServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_Create, serviceImpl.Create) + .AddMethod(__Method_Get, serviceImpl.Get) + .AddMethod(__Method_Update, serviceImpl.Update) + .AddMethod(__Method_Delete, serviceImpl.Delete) + .AddMethod(__Method_List, serviceImpl.List) + .AddMethod(__Method_CreateKeys, serviceImpl.CreateKeys) + .AddMethod(__Method_GetKeys, serviceImpl.GetKeys) + .AddMethod(__Method_UpdateKeys, serviceImpl.UpdateKeys) + .AddMethod(__Method_DeleteKeys, serviceImpl.DeleteKeys) + .AddMethod(__Method_FlushDevNonces, serviceImpl.FlushDevNonces) + .AddMethod(__Method_Activate, serviceImpl.Activate) + .AddMethod(__Method_Deactivate, serviceImpl.Deactivate) + .AddMethod(__Method_GetActivation, serviceImpl.GetActivation) + .AddMethod(__Method_GetRandomDevAddr, serviceImpl.GetRandomDevAddr) + .AddMethod(__Method_GetMetrics, serviceImpl.GetMetrics) + .AddMethod(__Method_GetLinkMetrics, serviceImpl.GetLinkMetrics) + .AddMethod(__Method_Enqueue, serviceImpl.Enqueue) + .AddMethod(__Method_FlushQueue, serviceImpl.FlushQueue) + .AddMethod(__Method_GetQueue, serviceImpl.GetQueue).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, DeviceServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); + serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); + serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); + serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); + serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); + serviceBinder.AddMethod(__Method_CreateKeys, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateKeys)); + serviceBinder.AddMethod(__Method_GetKeys, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetKeys)); + serviceBinder.AddMethod(__Method_UpdateKeys, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateKeys)); + serviceBinder.AddMethod(__Method_DeleteKeys, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteKeys)); + serviceBinder.AddMethod(__Method_FlushDevNonces, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FlushDevNonces)); + serviceBinder.AddMethod(__Method_Activate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Activate)); + serviceBinder.AddMethod(__Method_Deactivate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Deactivate)); + serviceBinder.AddMethod(__Method_GetActivation, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetActivation)); + serviceBinder.AddMethod(__Method_GetRandomDevAddr, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRandomDevAddr)); + serviceBinder.AddMethod(__Method_GetMetrics, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMetrics)); + serviceBinder.AddMethod(__Method_GetLinkMetrics, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetLinkMetrics)); + serviceBinder.AddMethod(__Method_Enqueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Enqueue)); + serviceBinder.AddMethod(__Method_FlushQueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FlushQueue)); + serviceBinder.AddMethod(__Method_GetQueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetQueue)); + } + + } +} +#endregion diff --git a/api/csharp/Chirpstack/api/DeviceProfile.cs b/api/csharp/Chirpstack/api/DeviceProfile.cs new file mode 100644 index 00000000..20d67f1e --- /dev/null +++ b/api/csharp/Chirpstack/api/DeviceProfile.cs @@ -0,0 +1,4543 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/device_profile.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.Api { + + /// Holder for reflection information generated from api/device_profile.proto + public static partial class DeviceProfileReflection { + + #region Descriptor + /// File descriptor for api/device_profile.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DeviceProfileReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhhcGkvZGV2aWNlX3Byb2ZpbGUucHJvdG8SA2FwaRocZ29vZ2xlL2FwaS9h", + "bm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5w", + "cm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGhNjb21tb24vY29t", + "bW9uLnByb3RvIukHCg1EZXZpY2VQcm9maWxlEgoKAmlkGAEgASgJEhEKCXRl", + "bmFudF9pZBgCIAEoCRIMCgRuYW1lGAMgASgJEhMKC2Rlc2NyaXB0aW9uGBog", + "ASgJEh4KBnJlZ2lvbhgEIAEoDjIOLmNvbW1vbi5SZWdpb24SJwoLbWFjX3Zl", + "cnNpb24YBSABKA4yEi5jb21tb24uTWFjVmVyc2lvbhI2ChNyZWdfcGFyYW1z", + "X3JldmlzaW9uGAYgASgOMhkuY29tbW9uLlJlZ1BhcmFtc1JldmlzaW9uEhgK", + "EGFkcl9hbGdvcml0aG1faWQYByABKAkSMAoVcGF5bG9hZF9jb2RlY19ydW50", + "aW1lGAggASgOMhEuYXBpLkNvZGVjUnVudGltZRIcChRwYXlsb2FkX2NvZGVj", + "X3NjcmlwdBgJIAEoCRIfChdmbHVzaF9xdWV1ZV9vbl9hY3RpdmF0ZRgKIAEo", + "CBIXCg91cGxpbmtfaW50ZXJ2YWwYCyABKA0SIgoaZGV2aWNlX3N0YXR1c19y", + "ZXFfaW50ZXJ2YWwYDCABKA0SFQoNc3VwcG9ydHNfb3RhYRgNIAEoCBIYChBz", + "dXBwb3J0c19jbGFzc19iGA4gASgIEhgKEHN1cHBvcnRzX2NsYXNzX2MYDyAB", + "KAgSFwoPY2xhc3NfYl90aW1lb3V0GBAgASgNEh4KFmNsYXNzX2JfcGluZ19z", + "bG90X25iX2sYESABKA0SHAoUY2xhc3NfYl9waW5nX3Nsb3RfZHIYEiABKA0S", + "HgoWY2xhc3NfYl9waW5nX3Nsb3RfZnJlcRgTIAEoDRIXCg9jbGFzc19jX3Rp", + "bWVvdXQYFCABKA0SFQoNYWJwX3J4MV9kZWxheRgVIAEoDRIZChFhYnBfcngx", + "X2RyX29mZnNldBgWIAEoDRISCgphYnBfcngyX2RyGBcgASgNEhQKDGFicF9y", + "eDJfZnJlcRgYIAEoDRIqCgR0YWdzGBkgAygLMhwuYXBpLkRldmljZVByb2Zp", + "bGUuVGFnc0VudHJ5EjoKDG1lYXN1cmVtZW50cxgbIAMoCzIkLmFwaS5EZXZp", + "Y2VQcm9maWxlLk1lYXN1cmVtZW50c0VudHJ5EiAKGGF1dG9fZGV0ZWN0X21l", + "YXN1cmVtZW50cxgcIAEoCBIYChByZWdpb25fY29uZmlnX2lkGB0gASgJGisK", + "CVRhZ3NFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBGkUK", + "EU1lYXN1cmVtZW50c0VudHJ5EgsKA2tleRgBIAEoCRIfCgV2YWx1ZRgCIAEo", + "CzIQLmFwaS5NZWFzdXJlbWVudDoCOAEiPwoLTWVhc3VyZW1lbnQSDAoEbmFt", + "ZRgCIAEoCRIiCgRraW5kGAMgASgOMhQuYXBpLk1lYXN1cmVtZW50S2luZCLd", + "AgoVRGV2aWNlUHJvZmlsZUxpc3RJdGVtEgoKAmlkGAEgASgJEi4KCmNyZWF0", + "ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVw", + "ZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEgwK", + "BG5hbWUYBCABKAkSHgoGcmVnaW9uGAUgASgOMg4uY29tbW9uLlJlZ2lvbhIn", + "CgttYWNfdmVyc2lvbhgGIAEoDjISLmNvbW1vbi5NYWNWZXJzaW9uEjYKE3Jl", + "Z19wYXJhbXNfcmV2aXNpb24YByABKA4yGS5jb21tb24uUmVnUGFyYW1zUmV2", + "aXNpb24SFQoNc3VwcG9ydHNfb3RhYRgIIAEoCBIYChBzdXBwb3J0c19jbGFz", + "c19iGAkgASgIEhgKEHN1cHBvcnRzX2NsYXNzX2MYCiABKAgiSAoaQ3JlYXRl", + "RGV2aWNlUHJvZmlsZVJlcXVlc3QSKgoOZGV2aWNlX3Byb2ZpbGUYASABKAsy", + "Ei5hcGkuRGV2aWNlUHJvZmlsZSIpChtDcmVhdGVEZXZpY2VQcm9maWxlUmVz", + "cG9uc2USCgoCaWQYASABKAkiJQoXR2V0RGV2aWNlUHJvZmlsZVJlcXVlc3QS", + "CgoCaWQYASABKAkipgEKGEdldERldmljZVByb2ZpbGVSZXNwb25zZRIqCg5k", + "ZXZpY2VfcHJvZmlsZRgBIAEoCzISLmFwaS5EZXZpY2VQcm9maWxlEi4KCmNy", + "ZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4K", + "CnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "IkgKGlVwZGF0ZURldmljZVByb2ZpbGVSZXF1ZXN0EioKDmRldmljZV9wcm9m", + "aWxlGAEgASgLMhIuYXBpLkRldmljZVByb2ZpbGUiKAoaRGVsZXRlRGV2aWNl", + "UHJvZmlsZVJlcXVlc3QSCgoCaWQYASABKAkiXQoZTGlzdERldmljZVByb2Zp", + "bGVzUmVxdWVzdBINCgVsaW1pdBgBIAEoDRIOCgZvZmZzZXQYAiABKA0SDgoG", + "c2VhcmNoGAMgASgJEhEKCXRlbmFudF9pZBgEIAEoCSJdChpMaXN0RGV2aWNl", + "UHJvZmlsZXNSZXNwb25zZRITCgt0b3RhbF9jb3VudBgBIAEoDRIqCgZyZXN1", + "bHQYAiADKAsyGi5hcGkuRGV2aWNlUHJvZmlsZUxpc3RJdGVtImgKJkxpc3RE", + "ZXZpY2VQcm9maWxlQWRyQWxnb3JpdGhtc1Jlc3BvbnNlEhMKC3RvdGFsX2Nv", + "dW50GAEgASgNEikKBnJlc3VsdBgCIAMoCzIZLmFwaS5BZHJBbGdvcml0aG1M", + "aXN0SXRlbSIwChRBZHJBbGdvcml0aG1MaXN0SXRlbRIKCgJpZBgBIAEoCRIM", + "CgRuYW1lGAIgASgJKjEKDENvZGVjUnVudGltZRIICgROT05FEAASDwoLQ0FZ", + "RU5ORV9MUFAQARIGCgJKUxACKlAKD01lYXN1cmVtZW50S2luZBILCgdVTktO", + "T1dOEAASCwoHQ09VTlRFUhABEgwKCEFCU09MVVRFEAISCQoFR0FVR0UQAxIK", + "CgZTVFJJTkcQBDK4BQoURGV2aWNlUHJvZmlsZVNlcnZpY2USbAoGQ3JlYXRl", + "Eh8uYXBpLkNyZWF0ZURldmljZVByb2ZpbGVSZXF1ZXN0GiAuYXBpLkNyZWF0", + "ZURldmljZVByb2ZpbGVSZXNwb25zZSIfgtPkkwIZIhQvYXBpL2RldmljZS1w", + "cm9maWxlczoBKhJlCgNHZXQSHC5hcGkuR2V0RGV2aWNlUHJvZmlsZVJlcXVl", + "c3QaHS5hcGkuR2V0RGV2aWNlUHJvZmlsZVJlc3BvbnNlIiGC0+STAhsSGS9h", + "cGkvZGV2aWNlLXByb2ZpbGVzL3tpZH0SdgoGVXBkYXRlEh8uYXBpLlVwZGF0", + "ZURldmljZVByb2ZpbGVSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", + "IjOC0+STAi0aKC9hcGkvZGV2aWNlLXByb2ZpbGVzL3tkZXZpY2VfcHJvZmls", + "ZS5pZH06ASoSZAoGRGVsZXRlEh8uYXBpLkRlbGV0ZURldmljZVByb2ZpbGVS", + "ZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IiGC0+STAhsqGS9hcGkv", + "ZGV2aWNlLXByb2ZpbGVzL3tpZH0SZQoETGlzdBIeLmFwaS5MaXN0RGV2aWNl", + "UHJvZmlsZXNSZXF1ZXN0Gh8uYXBpLkxpc3REZXZpY2VQcm9maWxlc1Jlc3Bv", + "bnNlIhyC0+STAhYSFC9hcGkvZGV2aWNlLXByb2ZpbGVzEoUBChFMaXN0QWRy", + "QWxnb3JpdGhtcxIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRorLmFwaS5MaXN0", + "RGV2aWNlUHJvZmlsZUFkckFsZ29yaXRobXNSZXNwb25zZSIrgtPkkwIlEiMv", + "YXBpL2RldmljZS1wcm9maWxlcy9hZHItYWxnb3JpdGhtc0JqChFpby5jaGly", + "cHN0YWNrLmFwaUISRGV2aWNlUHJvZmlsZVByb3RvUAFaLmdpdGh1Yi5jb20v", + "Y2hpcnBzdGFjay9jaGlycHN0YWNrL2FwaS9nby92NC9hcGmqAg5DaGlycHN0", + "YWNrLkFwaWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Api.CodecRuntime), typeof(global::Chirpstack.Api.MeasurementKind), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceProfile), global::Chirpstack.Api.DeviceProfile.Parser, new[]{ "Id", "TenantId", "Name", "Description", "Region", "MacVersion", "RegParamsRevision", "AdrAlgorithmId", "PayloadCodecRuntime", "PayloadCodecScript", "FlushQueueOnActivate", "UplinkInterval", "DeviceStatusReqInterval", "SupportsOtaa", "SupportsClassB", "SupportsClassC", "ClassBTimeout", "ClassBPingSlotNbK", "ClassBPingSlotDr", "ClassBPingSlotFreq", "ClassCTimeout", "AbpRx1Delay", "AbpRx1DrOffset", "AbpRx2Dr", "AbpRx2Freq", "Tags", "Measurements", "AutoDetectMeasurements", "RegionConfigId" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.Measurement), global::Chirpstack.Api.Measurement.Parser, new[]{ "Name", "Kind" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceProfileListItem), global::Chirpstack.Api.DeviceProfileListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Name", "Region", "MacVersion", "RegParamsRevision", "SupportsOtaa", "SupportsClassB", "SupportsClassC" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateDeviceProfileRequest), global::Chirpstack.Api.CreateDeviceProfileRequest.Parser, new[]{ "DeviceProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateDeviceProfileResponse), global::Chirpstack.Api.CreateDeviceProfileResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceProfileRequest), global::Chirpstack.Api.GetDeviceProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceProfileResponse), global::Chirpstack.Api.GetDeviceProfileResponse.Parser, new[]{ "DeviceProfile", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateDeviceProfileRequest), global::Chirpstack.Api.UpdateDeviceProfileRequest.Parser, new[]{ "DeviceProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteDeviceProfileRequest), global::Chirpstack.Api.DeleteDeviceProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDeviceProfilesRequest), global::Chirpstack.Api.ListDeviceProfilesRequest.Parser, new[]{ "Limit", "Offset", "Search", "TenantId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDeviceProfilesResponse), global::Chirpstack.Api.ListDeviceProfilesResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDeviceProfileAdrAlgorithmsResponse), global::Chirpstack.Api.ListDeviceProfileAdrAlgorithmsResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AdrAlgorithmListItem), global::Chirpstack.Api.AdrAlgorithmListItem.Parser, new[]{ "Id", "Name" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum CodecRuntime { + /// + /// None. + /// + [pbr::OriginalName("NONE")] None = 0, + /// + /// Cayenne LPP. + /// + [pbr::OriginalName("CAYENNE_LPP")] CayenneLpp = 1, + /// + /// JavaScript. + /// + [pbr::OriginalName("JS")] Js = 2, + } + + public enum MeasurementKind { + /// + /// Unknown (in which case it is not tracked). + /// + [pbr::OriginalName("UNKNOWN")] Unknown = 0, + /// + /// Incrementing counters that never decrease (these are not reset on each reading). + /// + [pbr::OriginalName("COUNTER")] Counter = 1, + /// + /// Counters that do get reset upon reading. + /// + [pbr::OriginalName("ABSOLUTE")] Absolute = 2, + /// + /// E.g. a temperature value. + /// + [pbr::OriginalName("GAUGE")] Gauge = 3, + /// + /// E.g. a firmware version, true / false value. + /// + [pbr::OriginalName("STRING")] String = 4, + } + + #endregion + + #region Messages + public sealed partial class DeviceProfile : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceProfile()); + 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.Api.DeviceProfileReflection.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 DeviceProfile() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceProfile(DeviceProfile other) : this() { + id_ = other.id_; + tenantId_ = other.tenantId_; + name_ = other.name_; + description_ = other.description_; + region_ = other.region_; + macVersion_ = other.macVersion_; + regParamsRevision_ = other.regParamsRevision_; + adrAlgorithmId_ = other.adrAlgorithmId_; + payloadCodecRuntime_ = other.payloadCodecRuntime_; + payloadCodecScript_ = other.payloadCodecScript_; + flushQueueOnActivate_ = other.flushQueueOnActivate_; + uplinkInterval_ = other.uplinkInterval_; + deviceStatusReqInterval_ = other.deviceStatusReqInterval_; + supportsOtaa_ = other.supportsOtaa_; + supportsClassB_ = other.supportsClassB_; + supportsClassC_ = other.supportsClassC_; + classBTimeout_ = other.classBTimeout_; + classBPingSlotNbK_ = other.classBPingSlotNbK_; + classBPingSlotDr_ = other.classBPingSlotDr_; + classBPingSlotFreq_ = other.classBPingSlotFreq_; + classCTimeout_ = other.classCTimeout_; + abpRx1Delay_ = other.abpRx1Delay_; + abpRx1DrOffset_ = other.abpRx1DrOffset_; + abpRx2Dr_ = other.abpRx2Dr_; + abpRx2Freq_ = other.abpRx2Freq_; + tags_ = other.tags_.Clone(); + measurements_ = other.measurements_.Clone(); + autoDetectMeasurements_ = other.autoDetectMeasurements_; + regionConfigId_ = other.regionConfigId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceProfile Clone() { + return new DeviceProfile(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Device-profile ID (UUID). + /// Note: on create this will be automatically 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 "tenant_id" field. + public const int TenantIdFieldNumber = 2; + 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 "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 26; + private string description_ = ""; + /// + /// Description. + /// + [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 "region" field. + public const int RegionFieldNumber = 4; + private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; + /// + /// Region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Region Region { + get { return region_; } + set { + region_ = value; + } + } + + /// Field number for the "mac_version" field. + public const int MacVersionFieldNumber = 5; + private global::Chirpstack.Common.MacVersion macVersion_ = global::Chirpstack.Common.MacVersion.Lorawan100; + /// + /// LoRaWAN mac-version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.MacVersion MacVersion { + get { return macVersion_; } + set { + macVersion_ = value; + } + } + + /// Field number for the "reg_params_revision" field. + public const int RegParamsRevisionFieldNumber = 6; + private global::Chirpstack.Common.RegParamsRevision regParamsRevision_ = global::Chirpstack.Common.RegParamsRevision.A; + /// + /// Regional parameters revision. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.RegParamsRevision RegParamsRevision { + get { return regParamsRevision_; } + set { + regParamsRevision_ = value; + } + } + + /// Field number for the "adr_algorithm_id" field. + public const int AdrAlgorithmIdFieldNumber = 7; + private string adrAlgorithmId_ = ""; + /// + /// ADR algorithm ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AdrAlgorithmId { + get { return adrAlgorithmId_; } + set { + adrAlgorithmId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "payload_codec_runtime" field. + public const int PayloadCodecRuntimeFieldNumber = 8; + private global::Chirpstack.Api.CodecRuntime payloadCodecRuntime_ = global::Chirpstack.Api.CodecRuntime.None; + /// + /// Payload codec runtime. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.CodecRuntime PayloadCodecRuntime { + get { return payloadCodecRuntime_; } + set { + payloadCodecRuntime_ = value; + } + } + + /// Field number for the "payload_codec_script" field. + public const int PayloadCodecScriptFieldNumber = 9; + private string payloadCodecScript_ = ""; + /// + /// Payload codec script. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PayloadCodecScript { + get { return payloadCodecScript_; } + set { + payloadCodecScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "flush_queue_on_activate" field. + public const int FlushQueueOnActivateFieldNumber = 10; + private bool flushQueueOnActivate_; + /// + /// Flush queue on device activation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool FlushQueueOnActivate { + get { return flushQueueOnActivate_; } + set { + flushQueueOnActivate_ = value; + } + } + + /// Field number for the "uplink_interval" field. + public const int UplinkIntervalFieldNumber = 11; + private uint uplinkInterval_; + /// + /// Uplink interval (seconds). + /// This defines the expected uplink interval which the device uses for + /// communication. If the uplink interval has expired and no uplink has + /// been received, the device is considered inactive. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UplinkInterval { + get { return uplinkInterval_; } + set { + uplinkInterval_ = value; + } + } + + /// Field number for the "device_status_req_interval" field. + public const int DeviceStatusReqIntervalFieldNumber = 12; + private uint deviceStatusReqInterval_; + /// + /// Device-status request interval (times / day). + /// This defines the times per day that ChirpStack will request the device-status + /// from the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DeviceStatusReqInterval { + get { return deviceStatusReqInterval_; } + set { + deviceStatusReqInterval_ = value; + } + } + + /// Field number for the "supports_otaa" field. + public const int SupportsOtaaFieldNumber = 13; + private bool supportsOtaa_; + /// + /// Supports OTAA. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsOtaa { + get { return supportsOtaa_; } + set { + supportsOtaa_ = value; + } + } + + /// Field number for the "supports_class_b" field. + public const int SupportsClassBFieldNumber = 14; + private bool supportsClassB_; + /// + /// Supports Class B. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsClassB { + get { return supportsClassB_; } + set { + supportsClassB_ = value; + } + } + + /// Field number for the "supports_class_c" field. + public const int SupportsClassCFieldNumber = 15; + private bool supportsClassC_; + /// + /// Supports Class-C. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsClassC { + get { return supportsClassC_; } + set { + supportsClassC_ = value; + } + } + + /// Field number for the "class_b_timeout" field. + public const int ClassBTimeoutFieldNumber = 16; + private uint classBTimeout_; + /// + /// Class-B timeout (seconds). + /// This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBTimeout { + get { return classBTimeout_; } + set { + classBTimeout_ = value; + } + } + + /// Field number for the "class_b_ping_slot_nb_k" field. + public const int ClassBPingSlotNbKFieldNumber = 17; + private uint classBPingSlotNbK_; + /// + /// Class-B ping-slots per beacon period. + /// Valid options are: 0 - 7. + /// + /// The actual number of ping-slots per beacon period equals to 2^k. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBPingSlotNbK { + get { return classBPingSlotNbK_; } + set { + classBPingSlotNbK_ = value; + } + } + + /// Field number for the "class_b_ping_slot_dr" field. + public const int ClassBPingSlotDrFieldNumber = 18; + private uint classBPingSlotDr_; + /// + /// Class-B ping-slot DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBPingSlotDr { + get { return classBPingSlotDr_; } + set { + classBPingSlotDr_ = value; + } + } + + /// Field number for the "class_b_ping_slot_freq" field. + public const int ClassBPingSlotFreqFieldNumber = 19; + private uint classBPingSlotFreq_; + /// + /// Class-B ping-slot freq (Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBPingSlotFreq { + get { return classBPingSlotFreq_; } + set { + classBPingSlotFreq_ = value; + } + } + + /// Field number for the "class_c_timeout" field. + public const int ClassCTimeoutFieldNumber = 20; + private uint classCTimeout_; + /// + /// Class-C timeout (seconds). + /// This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassCTimeout { + get { return classCTimeout_; } + set { + classCTimeout_ = value; + } + } + + /// Field number for the "abp_rx1_delay" field. + public const int AbpRx1DelayFieldNumber = 21; + private uint abpRx1Delay_; + /// + /// RX1 delay (for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AbpRx1Delay { + get { return abpRx1Delay_; } + set { + abpRx1Delay_ = value; + } + } + + /// Field number for the "abp_rx1_dr_offset" field. + public const int AbpRx1DrOffsetFieldNumber = 22; + private uint abpRx1DrOffset_; + /// + /// RX1 DR offset (for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AbpRx1DrOffset { + get { return abpRx1DrOffset_; } + set { + abpRx1DrOffset_ = value; + } + } + + /// Field number for the "abp_rx2_dr" field. + public const int AbpRx2DrFieldNumber = 23; + private uint abpRx2Dr_; + /// + /// RX2 DR (for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AbpRx2Dr { + get { return abpRx2Dr_; } + set { + abpRx2Dr_ = value; + } + } + + /// Field number for the "abp_rx2_freq" field. + public const int AbpRx2FreqFieldNumber = 24; + private uint abpRx2Freq_; + /// + /// RX2 frequency (for ABP, Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AbpRx2Freq { + get { return abpRx2Freq_; } + set { + abpRx2Freq_ = value; + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 25; + private static readonly pbc::MapField.Codec _map_tags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 202); + private readonly pbc::MapField tags_ = new pbc::MapField(); + /// + /// User defined tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Tags { + get { return tags_; } + } + + /// Field number for the "measurements" field. + public const int MeasurementsFieldNumber = 27; + private static readonly pbc::MapField.Codec _map_measurements_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.Measurement.Parser), 218); + private readonly pbc::MapField measurements_ = new pbc::MapField(); + /// + /// Measurements. + /// If defined, ChirpStack will visualize these metrics in the web-interface. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Measurements { + get { return measurements_; } + } + + /// Field number for the "auto_detect_measurements" field. + public const int AutoDetectMeasurementsFieldNumber = 28; + private bool autoDetectMeasurements_; + /// + /// Auto-detect measurements. + /// If set to true, measurements will be automatically added based on the + /// keys of the decoded payload. In cases where the decoded payload contains + /// random keys in the data, you want to set this to false. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AutoDetectMeasurements { + get { return autoDetectMeasurements_; } + set { + autoDetectMeasurements_ = value; + } + } + + /// Field number for the "region_config_id" field. + public const int RegionConfigIdFieldNumber = 29; + private string regionConfigId_ = ""; + /// + /// Region configuration ID. + /// If set, devices will only use the associated region. If let blank, then + /// devices will use all regions matching the selected common-name. Note + /// that multiple region configurations can exist for the same common-name, + /// e.g. to provide an 8 channel and 16 channel configuration for the US915 + /// band. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RegionConfigId { + get { return regionConfigId_; } + set { + regionConfigId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeviceProfile); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeviceProfile other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (TenantId != other.TenantId) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (Region != other.Region) return false; + if (MacVersion != other.MacVersion) return false; + if (RegParamsRevision != other.RegParamsRevision) return false; + if (AdrAlgorithmId != other.AdrAlgorithmId) return false; + if (PayloadCodecRuntime != other.PayloadCodecRuntime) return false; + if (PayloadCodecScript != other.PayloadCodecScript) return false; + if (FlushQueueOnActivate != other.FlushQueueOnActivate) return false; + if (UplinkInterval != other.UplinkInterval) return false; + if (DeviceStatusReqInterval != other.DeviceStatusReqInterval) return false; + if (SupportsOtaa != other.SupportsOtaa) return false; + if (SupportsClassB != other.SupportsClassB) return false; + if (SupportsClassC != other.SupportsClassC) return false; + if (ClassBTimeout != other.ClassBTimeout) return false; + if (ClassBPingSlotNbK != other.ClassBPingSlotNbK) return false; + if (ClassBPingSlotDr != other.ClassBPingSlotDr) return false; + if (ClassBPingSlotFreq != other.ClassBPingSlotFreq) return false; + if (ClassCTimeout != other.ClassCTimeout) return false; + if (AbpRx1Delay != other.AbpRx1Delay) return false; + if (AbpRx1DrOffset != other.AbpRx1DrOffset) return false; + if (AbpRx2Dr != other.AbpRx2Dr) return false; + if (AbpRx2Freq != other.AbpRx2Freq) return false; + if (!Tags.Equals(other.Tags)) return false; + if (!Measurements.Equals(other.Measurements)) return false; + if (AutoDetectMeasurements != other.AutoDetectMeasurements) return false; + if (RegionConfigId != other.RegionConfigId) 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 (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) hash ^= MacVersion.GetHashCode(); + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) hash ^= RegParamsRevision.GetHashCode(); + if (AdrAlgorithmId.Length != 0) hash ^= AdrAlgorithmId.GetHashCode(); + if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) hash ^= PayloadCodecRuntime.GetHashCode(); + if (PayloadCodecScript.Length != 0) hash ^= PayloadCodecScript.GetHashCode(); + if (FlushQueueOnActivate != false) hash ^= FlushQueueOnActivate.GetHashCode(); + if (UplinkInterval != 0) hash ^= UplinkInterval.GetHashCode(); + if (DeviceStatusReqInterval != 0) hash ^= DeviceStatusReqInterval.GetHashCode(); + if (SupportsOtaa != false) hash ^= SupportsOtaa.GetHashCode(); + if (SupportsClassB != false) hash ^= SupportsClassB.GetHashCode(); + if (SupportsClassC != false) hash ^= SupportsClassC.GetHashCode(); + if (ClassBTimeout != 0) hash ^= ClassBTimeout.GetHashCode(); + if (ClassBPingSlotNbK != 0) hash ^= ClassBPingSlotNbK.GetHashCode(); + if (ClassBPingSlotDr != 0) hash ^= ClassBPingSlotDr.GetHashCode(); + if (ClassBPingSlotFreq != 0) hash ^= ClassBPingSlotFreq.GetHashCode(); + if (ClassCTimeout != 0) hash ^= ClassCTimeout.GetHashCode(); + if (AbpRx1Delay != 0) hash ^= AbpRx1Delay.GetHashCode(); + if (AbpRx1DrOffset != 0) hash ^= AbpRx1DrOffset.GetHashCode(); + if (AbpRx2Dr != 0) hash ^= AbpRx2Dr.GetHashCode(); + if (AbpRx2Freq != 0) hash ^= AbpRx2Freq.GetHashCode(); + hash ^= Tags.GetHashCode(); + hash ^= Measurements.GetHashCode(); + if (AutoDetectMeasurements != false) hash ^= AutoDetectMeasurements.GetHashCode(); + if (RegionConfigId.Length != 0) hash ^= RegionConfigId.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 (TenantId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TenantId); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(32); + output.WriteEnum((int) Region); + } + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + output.WriteRawTag(40); + output.WriteEnum((int) MacVersion); + } + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + output.WriteRawTag(48); + output.WriteEnum((int) RegParamsRevision); + } + if (AdrAlgorithmId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(AdrAlgorithmId); + } + if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { + output.WriteRawTag(64); + output.WriteEnum((int) PayloadCodecRuntime); + } + if (PayloadCodecScript.Length != 0) { + output.WriteRawTag(74); + output.WriteString(PayloadCodecScript); + } + if (FlushQueueOnActivate != false) { + output.WriteRawTag(80); + output.WriteBool(FlushQueueOnActivate); + } + if (UplinkInterval != 0) { + output.WriteRawTag(88); + output.WriteUInt32(UplinkInterval); + } + if (DeviceStatusReqInterval != 0) { + output.WriteRawTag(96); + output.WriteUInt32(DeviceStatusReqInterval); + } + if (SupportsOtaa != false) { + output.WriteRawTag(104); + output.WriteBool(SupportsOtaa); + } + if (SupportsClassB != false) { + output.WriteRawTag(112); + output.WriteBool(SupportsClassB); + } + if (SupportsClassC != false) { + output.WriteRawTag(120); + output.WriteBool(SupportsClassC); + } + if (ClassBTimeout != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(ClassBTimeout); + } + if (ClassBPingSlotNbK != 0) { + output.WriteRawTag(136, 1); + output.WriteUInt32(ClassBPingSlotNbK); + } + if (ClassBPingSlotDr != 0) { + output.WriteRawTag(144, 1); + output.WriteUInt32(ClassBPingSlotDr); + } + if (ClassBPingSlotFreq != 0) { + output.WriteRawTag(152, 1); + output.WriteUInt32(ClassBPingSlotFreq); + } + if (ClassCTimeout != 0) { + output.WriteRawTag(160, 1); + output.WriteUInt32(ClassCTimeout); + } + if (AbpRx1Delay != 0) { + output.WriteRawTag(168, 1); + output.WriteUInt32(AbpRx1Delay); + } + if (AbpRx1DrOffset != 0) { + output.WriteRawTag(176, 1); + output.WriteUInt32(AbpRx1DrOffset); + } + if (AbpRx2Dr != 0) { + output.WriteRawTag(184, 1); + output.WriteUInt32(AbpRx2Dr); + } + if (AbpRx2Freq != 0) { + output.WriteRawTag(192, 1); + output.WriteUInt32(AbpRx2Freq); + } + tags_.WriteTo(output, _map_tags_codec); + if (Description.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(Description); + } + measurements_.WriteTo(output, _map_measurements_codec); + if (AutoDetectMeasurements != false) { + output.WriteRawTag(224, 1); + output.WriteBool(AutoDetectMeasurements); + } + if (RegionConfigId.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(RegionConfigId); + } + 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 (TenantId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TenantId); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(32); + output.WriteEnum((int) Region); + } + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + output.WriteRawTag(40); + output.WriteEnum((int) MacVersion); + } + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + output.WriteRawTag(48); + output.WriteEnum((int) RegParamsRevision); + } + if (AdrAlgorithmId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(AdrAlgorithmId); + } + if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { + output.WriteRawTag(64); + output.WriteEnum((int) PayloadCodecRuntime); + } + if (PayloadCodecScript.Length != 0) { + output.WriteRawTag(74); + output.WriteString(PayloadCodecScript); + } + if (FlushQueueOnActivate != false) { + output.WriteRawTag(80); + output.WriteBool(FlushQueueOnActivate); + } + if (UplinkInterval != 0) { + output.WriteRawTag(88); + output.WriteUInt32(UplinkInterval); + } + if (DeviceStatusReqInterval != 0) { + output.WriteRawTag(96); + output.WriteUInt32(DeviceStatusReqInterval); + } + if (SupportsOtaa != false) { + output.WriteRawTag(104); + output.WriteBool(SupportsOtaa); + } + if (SupportsClassB != false) { + output.WriteRawTag(112); + output.WriteBool(SupportsClassB); + } + if (SupportsClassC != false) { + output.WriteRawTag(120); + output.WriteBool(SupportsClassC); + } + if (ClassBTimeout != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(ClassBTimeout); + } + if (ClassBPingSlotNbK != 0) { + output.WriteRawTag(136, 1); + output.WriteUInt32(ClassBPingSlotNbK); + } + if (ClassBPingSlotDr != 0) { + output.WriteRawTag(144, 1); + output.WriteUInt32(ClassBPingSlotDr); + } + if (ClassBPingSlotFreq != 0) { + output.WriteRawTag(152, 1); + output.WriteUInt32(ClassBPingSlotFreq); + } + if (ClassCTimeout != 0) { + output.WriteRawTag(160, 1); + output.WriteUInt32(ClassCTimeout); + } + if (AbpRx1Delay != 0) { + output.WriteRawTag(168, 1); + output.WriteUInt32(AbpRx1Delay); + } + if (AbpRx1DrOffset != 0) { + output.WriteRawTag(176, 1); + output.WriteUInt32(AbpRx1DrOffset); + } + if (AbpRx2Dr != 0) { + output.WriteRawTag(184, 1); + output.WriteUInt32(AbpRx2Dr); + } + if (AbpRx2Freq != 0) { + output.WriteRawTag(192, 1); + output.WriteUInt32(AbpRx2Freq); + } + tags_.WriteTo(ref output, _map_tags_codec); + if (Description.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(Description); + } + measurements_.WriteTo(ref output, _map_measurements_codec); + if (AutoDetectMeasurements != false) { + output.WriteRawTag(224, 1); + output.WriteBool(AutoDetectMeasurements); + } + if (RegionConfigId.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(RegionConfigId); + } + 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 (TenantId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Description.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); + } + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MacVersion); + } + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RegParamsRevision); + } + if (AdrAlgorithmId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AdrAlgorithmId); + } + if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PayloadCodecRuntime); + } + if (PayloadCodecScript.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadCodecScript); + } + if (FlushQueueOnActivate != false) { + size += 1 + 1; + } + if (UplinkInterval != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UplinkInterval); + } + if (DeviceStatusReqInterval != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DeviceStatusReqInterval); + } + if (SupportsOtaa != false) { + size += 1 + 1; + } + if (SupportsClassB != false) { + size += 1 + 1; + } + if (SupportsClassC != false) { + size += 1 + 1; + } + if (ClassBTimeout != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBTimeout); + } + if (ClassBPingSlotNbK != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotNbK); + } + if (ClassBPingSlotDr != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotDr); + } + if (ClassBPingSlotFreq != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotFreq); + } + if (ClassCTimeout != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassCTimeout); + } + if (AbpRx1Delay != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx1Delay); + } + if (AbpRx1DrOffset != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx1DrOffset); + } + if (AbpRx2Dr != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx2Dr); + } + if (AbpRx2Freq != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx2Freq); + } + size += tags_.CalculateSize(_map_tags_codec); + size += measurements_.CalculateSize(_map_measurements_codec); + if (AutoDetectMeasurements != false) { + size += 2 + 1; + } + if (RegionConfigId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RegionConfigId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeviceProfile other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.Region != global::Chirpstack.Common.Region.Eu868) { + Region = other.Region; + } + if (other.MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + MacVersion = other.MacVersion; + } + if (other.RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + RegParamsRevision = other.RegParamsRevision; + } + if (other.AdrAlgorithmId.Length != 0) { + AdrAlgorithmId = other.AdrAlgorithmId; + } + if (other.PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { + PayloadCodecRuntime = other.PayloadCodecRuntime; + } + if (other.PayloadCodecScript.Length != 0) { + PayloadCodecScript = other.PayloadCodecScript; + } + if (other.FlushQueueOnActivate != false) { + FlushQueueOnActivate = other.FlushQueueOnActivate; + } + if (other.UplinkInterval != 0) { + UplinkInterval = other.UplinkInterval; + } + if (other.DeviceStatusReqInterval != 0) { + DeviceStatusReqInterval = other.DeviceStatusReqInterval; + } + if (other.SupportsOtaa != false) { + SupportsOtaa = other.SupportsOtaa; + } + if (other.SupportsClassB != false) { + SupportsClassB = other.SupportsClassB; + } + if (other.SupportsClassC != false) { + SupportsClassC = other.SupportsClassC; + } + if (other.ClassBTimeout != 0) { + ClassBTimeout = other.ClassBTimeout; + } + if (other.ClassBPingSlotNbK != 0) { + ClassBPingSlotNbK = other.ClassBPingSlotNbK; + } + if (other.ClassBPingSlotDr != 0) { + ClassBPingSlotDr = other.ClassBPingSlotDr; + } + if (other.ClassBPingSlotFreq != 0) { + ClassBPingSlotFreq = other.ClassBPingSlotFreq; + } + if (other.ClassCTimeout != 0) { + ClassCTimeout = other.ClassCTimeout; + } + if (other.AbpRx1Delay != 0) { + AbpRx1Delay = other.AbpRx1Delay; + } + if (other.AbpRx1DrOffset != 0) { + AbpRx1DrOffset = other.AbpRx1DrOffset; + } + if (other.AbpRx2Dr != 0) { + AbpRx2Dr = other.AbpRx2Dr; + } + if (other.AbpRx2Freq != 0) { + AbpRx2Freq = other.AbpRx2Freq; + } + tags_.Add(other.tags_); + measurements_.Add(other.measurements_); + if (other.AutoDetectMeasurements != false) { + AutoDetectMeasurements = other.AutoDetectMeasurements; + } + if (other.RegionConfigId.Length != 0) { + RegionConfigId = other.RegionConfigId; + } + _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: { + TenantId = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 40: { + MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); + break; + } + case 48: { + RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); + break; + } + case 58: { + AdrAlgorithmId = input.ReadString(); + break; + } + case 64: { + PayloadCodecRuntime = (global::Chirpstack.Api.CodecRuntime) input.ReadEnum(); + break; + } + case 74: { + PayloadCodecScript = input.ReadString(); + break; + } + case 80: { + FlushQueueOnActivate = input.ReadBool(); + break; + } + case 88: { + UplinkInterval = input.ReadUInt32(); + break; + } + case 96: { + DeviceStatusReqInterval = input.ReadUInt32(); + break; + } + case 104: { + SupportsOtaa = input.ReadBool(); + break; + } + case 112: { + SupportsClassB = input.ReadBool(); + break; + } + case 120: { + SupportsClassC = input.ReadBool(); + break; + } + case 128: { + ClassBTimeout = input.ReadUInt32(); + break; + } + case 136: { + ClassBPingSlotNbK = input.ReadUInt32(); + break; + } + case 144: { + ClassBPingSlotDr = input.ReadUInt32(); + break; + } + case 152: { + ClassBPingSlotFreq = input.ReadUInt32(); + break; + } + case 160: { + ClassCTimeout = input.ReadUInt32(); + break; + } + case 168: { + AbpRx1Delay = input.ReadUInt32(); + break; + } + case 176: { + AbpRx1DrOffset = input.ReadUInt32(); + break; + } + case 184: { + AbpRx2Dr = input.ReadUInt32(); + break; + } + case 192: { + AbpRx2Freq = input.ReadUInt32(); + break; + } + case 202: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 210: { + Description = input.ReadString(); + break; + } + case 218: { + measurements_.AddEntriesFrom(input, _map_measurements_codec); + break; + } + case 224: { + AutoDetectMeasurements = input.ReadBool(); + break; + } + case 234: { + RegionConfigId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + TenantId = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 40: { + MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); + break; + } + case 48: { + RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); + break; + } + case 58: { + AdrAlgorithmId = input.ReadString(); + break; + } + case 64: { + PayloadCodecRuntime = (global::Chirpstack.Api.CodecRuntime) input.ReadEnum(); + break; + } + case 74: { + PayloadCodecScript = input.ReadString(); + break; + } + case 80: { + FlushQueueOnActivate = input.ReadBool(); + break; + } + case 88: { + UplinkInterval = input.ReadUInt32(); + break; + } + case 96: { + DeviceStatusReqInterval = input.ReadUInt32(); + break; + } + case 104: { + SupportsOtaa = input.ReadBool(); + break; + } + case 112: { + SupportsClassB = input.ReadBool(); + break; + } + case 120: { + SupportsClassC = input.ReadBool(); + break; + } + case 128: { + ClassBTimeout = input.ReadUInt32(); + break; + } + case 136: { + ClassBPingSlotNbK = input.ReadUInt32(); + break; + } + case 144: { + ClassBPingSlotDr = input.ReadUInt32(); + break; + } + case 152: { + ClassBPingSlotFreq = input.ReadUInt32(); + break; + } + case 160: { + ClassCTimeout = input.ReadUInt32(); + break; + } + case 168: { + AbpRx1Delay = input.ReadUInt32(); + break; + } + case 176: { + AbpRx1DrOffset = input.ReadUInt32(); + break; + } + case 184: { + AbpRx2Dr = input.ReadUInt32(); + break; + } + case 192: { + AbpRx2Freq = input.ReadUInt32(); + break; + } + case 202: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 210: { + Description = input.ReadString(); + break; + } + case 218: { + measurements_.AddEntriesFrom(ref input, _map_measurements_codec); + break; + } + case 224: { + AutoDetectMeasurements = input.ReadBool(); + break; + } + case 234: { + RegionConfigId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Measurement : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Measurement()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Api.DeviceProfileReflection.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 Measurement() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Measurement(Measurement other) : this() { + name_ = other.name_; + kind_ = other.kind_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Measurement Clone() { + return new Measurement(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Name (user defined). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 3; + private global::Chirpstack.Api.MeasurementKind kind_ = global::Chirpstack.Api.MeasurementKind.Unknown; + /// + /// Kind. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.MeasurementKind Kind { + get { return kind_; } + set { + kind_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Measurement); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Measurement other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Kind != other.Kind) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Kind != global::Chirpstack.Api.MeasurementKind.Unknown) hash ^= Kind.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Kind != global::Chirpstack.Api.MeasurementKind.Unknown) { + output.WriteRawTag(24); + output.WriteEnum((int) Kind); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Kind != global::Chirpstack.Api.MeasurementKind.Unknown) { + output.WriteRawTag(24); + output.WriteEnum((int) Kind); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Kind != global::Chirpstack.Api.MeasurementKind.Unknown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Measurement other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Kind != global::Chirpstack.Api.MeasurementKind.Unknown) { + Kind = other.Kind; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Kind = (global::Chirpstack.Api.MeasurementKind) 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 18: { + Name = input.ReadString(); + break; + } + case 24: { + Kind = (global::Chirpstack.Api.MeasurementKind) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeviceProfileListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceProfileListItem()); + 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.Api.DeviceProfileReflection.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 DeviceProfileListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceProfileListItem(DeviceProfileListItem other) : this() { + id_ = other.id_; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + name_ = other.name_; + region_ = other.region_; + macVersion_ = other.macVersion_; + regParamsRevision_ = other.regParamsRevision_; + supportsOtaa_ = other.supportsOtaa_; + supportsClassB_ = other.supportsClassB_; + supportsClassC_ = other.supportsClassC_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceProfileListItem Clone() { + return new DeviceProfileListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Device-profile ID (UUID). + /// + [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 "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 5; + private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; + /// + /// Region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Region Region { + get { return region_; } + set { + region_ = value; + } + } + + /// Field number for the "mac_version" field. + public const int MacVersionFieldNumber = 6; + private global::Chirpstack.Common.MacVersion macVersion_ = global::Chirpstack.Common.MacVersion.Lorawan100; + /// + /// LoRaWAN mac-version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.MacVersion MacVersion { + get { return macVersion_; } + set { + macVersion_ = value; + } + } + + /// Field number for the "reg_params_revision" field. + public const int RegParamsRevisionFieldNumber = 7; + private global::Chirpstack.Common.RegParamsRevision regParamsRevision_ = global::Chirpstack.Common.RegParamsRevision.A; + /// + /// Regional parameters revision. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.RegParamsRevision RegParamsRevision { + get { return regParamsRevision_; } + set { + regParamsRevision_ = value; + } + } + + /// Field number for the "supports_otaa" field. + public const int SupportsOtaaFieldNumber = 8; + private bool supportsOtaa_; + /// + /// Supports OTAA. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsOtaa { + get { return supportsOtaa_; } + set { + supportsOtaa_ = value; + } + } + + /// Field number for the "supports_class_b" field. + public const int SupportsClassBFieldNumber = 9; + private bool supportsClassB_; + /// + /// Supports Class-B. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsClassB { + get { return supportsClassB_; } + set { + supportsClassB_ = value; + } + } + + /// Field number for the "supports_class_c" field. + public const int SupportsClassCFieldNumber = 10; + private bool supportsClassC_; + /// + /// Supports Class-C. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsClassC { + get { return supportsClassC_; } + set { + supportsClassC_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeviceProfileListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeviceProfileListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (Name != other.Name) return false; + if (Region != other.Region) return false; + if (MacVersion != other.MacVersion) return false; + if (RegParamsRevision != other.RegParamsRevision) return false; + if (SupportsOtaa != other.SupportsOtaa) return false; + if (SupportsClassB != other.SupportsClassB) return false; + if (SupportsClassC != other.SupportsClassC) 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 (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) hash ^= MacVersion.GetHashCode(); + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) hash ^= RegParamsRevision.GetHashCode(); + if (SupportsOtaa != false) hash ^= SupportsOtaa.GetHashCode(); + if (SupportsClassB != false) hash ^= SupportsClassB.GetHashCode(); + if (SupportsClassC != false) hash ^= SupportsClassC.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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(40); + output.WriteEnum((int) Region); + } + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + output.WriteRawTag(48); + output.WriteEnum((int) MacVersion); + } + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + output.WriteRawTag(56); + output.WriteEnum((int) RegParamsRevision); + } + if (SupportsOtaa != false) { + output.WriteRawTag(64); + output.WriteBool(SupportsOtaa); + } + if (SupportsClassB != false) { + output.WriteRawTag(72); + output.WriteBool(SupportsClassB); + } + if (SupportsClassC != false) { + output.WriteRawTag(80); + output.WriteBool(SupportsClassC); + } + 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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(40); + output.WriteEnum((int) Region); + } + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + output.WriteRawTag(48); + output.WriteEnum((int) MacVersion); + } + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + output.WriteRawTag(56); + output.WriteEnum((int) RegParamsRevision); + } + if (SupportsOtaa != false) { + output.WriteRawTag(64); + output.WriteBool(SupportsOtaa); + } + if (SupportsClassB != false) { + output.WriteRawTag(72); + output.WriteBool(SupportsClassB); + } + if (SupportsClassC != false) { + output.WriteRawTag(80); + output.WriteBool(SupportsClassC); + } + 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 (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); + } + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MacVersion); + } + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RegParamsRevision); + } + if (SupportsOtaa != false) { + size += 1 + 1; + } + if (SupportsClassB != false) { + size += 1 + 1; + } + if (SupportsClassC != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeviceProfileListItem other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Region != global::Chirpstack.Common.Region.Eu868) { + Region = other.Region; + } + if (other.MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + MacVersion = other.MacVersion; + } + if (other.RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + RegParamsRevision = other.RegParamsRevision; + } + if (other.SupportsOtaa != false) { + SupportsOtaa = other.SupportsOtaa; + } + if (other.SupportsClassB != false) { + SupportsClassB = other.SupportsClassB; + } + if (other.SupportsClassC != false) { + SupportsClassC = other.SupportsClassC; + } + _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: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 48: { + MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); + break; + } + case 56: { + RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); + break; + } + case 64: { + SupportsOtaa = input.ReadBool(); + break; + } + case 72: { + SupportsClassB = input.ReadBool(); + break; + } + case 80: { + SupportsClassC = input.ReadBool(); + 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: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 48: { + MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); + break; + } + case 56: { + RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); + break; + } + case 64: { + SupportsOtaa = input.ReadBool(); + break; + } + case 72: { + SupportsClassB = input.ReadBool(); + break; + } + case 80: { + SupportsClassC = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateDeviceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeviceProfileRequest()); + 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.Api.DeviceProfileReflection.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 CreateDeviceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceProfileRequest(CreateDeviceProfileRequest other) : this() { + deviceProfile_ = other.deviceProfile_ != null ? other.deviceProfile_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceProfileRequest Clone() { + return new CreateDeviceProfileRequest(this); + } + + /// Field number for the "device_profile" field. + public const int DeviceProfileFieldNumber = 1; + private global::Chirpstack.Api.DeviceProfile deviceProfile_; + /// + /// Object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceProfile DeviceProfile { + get { return deviceProfile_; } + set { + deviceProfile_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateDeviceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateDeviceProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DeviceProfile, other.DeviceProfile)) 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 (deviceProfile_ != null) hash ^= DeviceProfile.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 (deviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceProfile); + } + 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 (deviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceProfile); + } + 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 (deviceProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceProfile); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateDeviceProfileRequest other) { + if (other == null) { + return; + } + if (other.deviceProfile_ != null) { + if (deviceProfile_ == null) { + DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); + } + DeviceProfile.MergeFrom(other.DeviceProfile); + } + _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 (deviceProfile_ == null) { + DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); + } + input.ReadMessage(DeviceProfile); + 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 (deviceProfile_ == null) { + DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); + } + input.ReadMessage(DeviceProfile); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateDeviceProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeviceProfileResponse()); + 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.Api.DeviceProfileReflection.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 CreateDeviceProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceProfileResponse(CreateDeviceProfileResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceProfileResponse Clone() { + return new CreateDeviceProfileResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateDeviceProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateDeviceProfileResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateDeviceProfileResponse other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceProfileRequest()); + 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.Api.DeviceProfileReflection.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 GetDeviceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceProfileRequest(GetDeviceProfileRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceProfileRequest Clone() { + return new GetDeviceProfileRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceProfileRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceProfileResponse()); + 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.Api.DeviceProfileReflection.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 GetDeviceProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceProfileResponse(GetDeviceProfileResponse other) : this() { + deviceProfile_ = other.deviceProfile_ != null ? other.deviceProfile_.Clone() : null; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceProfileResponse Clone() { + return new GetDeviceProfileResponse(this); + } + + /// Field number for the "device_profile" field. + public const int DeviceProfileFieldNumber = 1; + private global::Chirpstack.Api.DeviceProfile deviceProfile_; + /// + /// Device-profile object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceProfile DeviceProfile { + get { return deviceProfile_; } + set { + deviceProfile_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceProfileResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DeviceProfile, other.DeviceProfile)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) 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 (deviceProfile_ != null) hash ^= DeviceProfile.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.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 (deviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceProfile); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (deviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceProfile); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (deviceProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceProfile); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceProfileResponse other) { + if (other == null) { + return; + } + if (other.deviceProfile_ != null) { + if (deviceProfile_ == null) { + DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); + } + DeviceProfile.MergeFrom(other.DeviceProfile); + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + _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 (deviceProfile_ == null) { + DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); + } + input.ReadMessage(DeviceProfile); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + 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 (deviceProfile_ == null) { + DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); + } + input.ReadMessage(DeviceProfile); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateDeviceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateDeviceProfileRequest()); + 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.Api.DeviceProfileReflection.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 UpdateDeviceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDeviceProfileRequest(UpdateDeviceProfileRequest other) : this() { + deviceProfile_ = other.deviceProfile_ != null ? other.deviceProfile_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDeviceProfileRequest Clone() { + return new UpdateDeviceProfileRequest(this); + } + + /// Field number for the "device_profile" field. + public const int DeviceProfileFieldNumber = 1; + private global::Chirpstack.Api.DeviceProfile deviceProfile_; + /// + /// Device-profile object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceProfile DeviceProfile { + get { return deviceProfile_; } + set { + deviceProfile_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateDeviceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateDeviceProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DeviceProfile, other.DeviceProfile)) 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 (deviceProfile_ != null) hash ^= DeviceProfile.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 (deviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceProfile); + } + 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 (deviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceProfile); + } + 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 (deviceProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceProfile); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateDeviceProfileRequest other) { + if (other == null) { + return; + } + if (other.deviceProfile_ != null) { + if (deviceProfile_ == null) { + DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); + } + DeviceProfile.MergeFrom(other.DeviceProfile); + } + _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 (deviceProfile_ == null) { + DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); + } + input.ReadMessage(DeviceProfile); + 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 (deviceProfile_ == null) { + DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); + } + input.ReadMessage(DeviceProfile); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteDeviceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceProfileRequest()); + 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.Api.DeviceProfileReflection.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 DeleteDeviceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteDeviceProfileRequest(DeleteDeviceProfileRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteDeviceProfileRequest Clone() { + return new DeleteDeviceProfileRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteDeviceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteDeviceProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteDeviceProfileRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class ListDeviceProfilesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceProfilesRequest()); + 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.Api.DeviceProfileReflection.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 ListDeviceProfilesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfilesRequest(ListDeviceProfilesRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + search_ = other.search_; + tenantId_ = other.tenantId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfilesRequest Clone() { + return new ListDeviceProfilesRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private uint limit_; + /// + /// Max number of device-profiles to return in the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 2; + private uint offset_; + /// + /// Offset in the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + /// Field number for the "search" field. + public const int SearchFieldNumber = 3; + private string search_ = ""; + /// + /// If set, the given string will be used to search on name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Search { + get { return search_; } + set { + search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tenant_id" field. + public const int TenantIdFieldNumber = 4; + private string tenantId_ = ""; + /// + /// Tenant ID to list the device-profiles for. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TenantId { + get { return tenantId_; } + set { + tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListDeviceProfilesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDeviceProfilesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Limit != other.Limit) return false; + if (Offset != other.Offset) return false; + if (Search != other.Search) return false; + if (TenantId != other.TenantId) 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 (Limit != 0) hash ^= Limit.GetHashCode(); + if (Offset != 0) hash ^= Offset.GetHashCode(); + if (Search.Length != 0) hash ^= Search.GetHashCode(); + if (TenantId.Length != 0) hash ^= TenantId.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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (TenantId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantId); + } + 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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (TenantId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantId); + } + 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 (Limit != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); + } + if (Offset != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); + } + if (Search.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); + } + if (TenantId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDeviceProfilesRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0) { + Limit = other.Limit; + } + if (other.Offset != 0) { + Offset = other.Offset; + } + if (other.Search.Length != 0) { + Search = other.Search; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + _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: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + case 34: { + TenantId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + case 34: { + TenantId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListDeviceProfilesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceProfilesResponse()); + 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.Api.DeviceProfileReflection.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 ListDeviceProfilesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfilesResponse(ListDeviceProfilesResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfilesResponse Clone() { + return new ListDeviceProfilesResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of device-profiles. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.DeviceProfileListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListDeviceProfilesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDeviceProfilesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDeviceProfilesResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListDeviceProfileAdrAlgorithmsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceProfileAdrAlgorithmsResponse()); + 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.Api.DeviceProfileReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfileAdrAlgorithmsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfileAdrAlgorithmsResponse(ListDeviceProfileAdrAlgorithmsResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfileAdrAlgorithmsResponse Clone() { + return new ListDeviceProfileAdrAlgorithmsResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of algorithms. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.AdrAlgorithmListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListDeviceProfileAdrAlgorithmsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDeviceProfileAdrAlgorithmsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDeviceProfileAdrAlgorithmsResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AdrAlgorithmListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdrAlgorithmListItem()); + 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.Api.DeviceProfileReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdrAlgorithmListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdrAlgorithmListItem(AdrAlgorithmListItem other) : this() { + id_ = other.id_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdrAlgorithmListItem Clone() { + return new AdrAlgorithmListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Algorithm ID. + /// + [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 "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Algorithm name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AdrAlgorithmListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AdrAlgorithmListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) 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 (Name.Length != 0) hash ^= Name.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 (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + 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 (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AdrAlgorithmListItem other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _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: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/DeviceProfileGrpc.cs b/api/csharp/Chirpstack/api/DeviceProfileGrpc.cs new file mode 100644 index 00000000..986dc021 --- /dev/null +++ b/api/csharp/Chirpstack/api/DeviceProfileGrpc.cs @@ -0,0 +1,558 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/device_profile.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.Api { + /// + /// DeviceProfileService is the service providing API methods for managing device-profiles. + /// + public static partial class DeviceProfileService + { + static readonly string __ServiceName = "api.DeviceProfileService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateDeviceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateDeviceProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateDeviceProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateDeviceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteDeviceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListDeviceProfilesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDeviceProfilesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListDeviceProfilesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDeviceProfilesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListDeviceProfileAdrAlgorithmsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDeviceProfileAdrAlgorithmsResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Create = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Create", + __Marshaller_api_CreateDeviceProfileRequest, + __Marshaller_api_CreateDeviceProfileResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Get = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Get", + __Marshaller_api_GetDeviceProfileRequest, + __Marshaller_api_GetDeviceProfileResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Update = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Update", + __Marshaller_api_UpdateDeviceProfileRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Delete = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Delete", + __Marshaller_api_DeleteDeviceProfileRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_List = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "List", + __Marshaller_api_ListDeviceProfilesRequest, + __Marshaller_api_ListDeviceProfilesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListAdrAlgorithms = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListAdrAlgorithms", + __Marshaller_google_protobuf_Empty, + __Marshaller_api_ListDeviceProfileAdrAlgorithmsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of DeviceProfileService + [grpc::BindServiceMethod(typeof(DeviceProfileService), "BindService")] + public abstract partial class DeviceProfileServiceBase + { + /// + /// Create the given device-profile. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateDeviceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the device-profile for the given ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetDeviceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update the given device-profile. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateDeviceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete the device-profile with the given ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteDeviceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List the available device-profiles. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListDeviceProfilesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List available ADR algorithms. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListAdrAlgorithms(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for DeviceProfileService + public partial class DeviceProfileServiceClient : grpc::ClientBase + { + /// Creates a new client for DeviceProfileService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DeviceProfileServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for DeviceProfileService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DeviceProfileServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DeviceProfileServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DeviceProfileServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Create the given device-profile. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.CreateDeviceProfileResponse Create(global::Chirpstack.Api.CreateDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create the given device-profile. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.CreateDeviceProfileResponse Create(global::Chirpstack.Api.CreateDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create the given device-profile. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create the given device-profile. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get the device-profile for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceProfileResponse Get(global::Chirpstack.Api.GetDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the device-profile for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceProfileResponse Get(global::Chirpstack.Api.GetDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get the device-profile for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the device-profile for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update the given device-profile. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given device-profile. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update the given device-profile. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given device-profile. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete the device-profile with the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the device-profile with the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete the device-profile with the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the device-profile with the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// List the available device-profiles. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListDeviceProfilesResponse List(global::Chirpstack.Api.ListDeviceProfilesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// List the available device-profiles. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListDeviceProfilesResponse List(global::Chirpstack.Api.ListDeviceProfilesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// List the available device-profiles. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListDeviceProfilesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// List the available device-profiles. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListDeviceProfilesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// List available ADR algorithms. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListDeviceProfileAdrAlgorithmsResponse ListAdrAlgorithms(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAdrAlgorithms(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// List available ADR algorithms. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListDeviceProfileAdrAlgorithmsResponse ListAdrAlgorithms(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListAdrAlgorithms, null, options, request); + } + /// + /// List available ADR algorithms. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAdrAlgorithmsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAdrAlgorithmsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// List available ADR algorithms. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAdrAlgorithmsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListAdrAlgorithms, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override DeviceProfileServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new DeviceProfileServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(DeviceProfileServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_Create, serviceImpl.Create) + .AddMethod(__Method_Get, serviceImpl.Get) + .AddMethod(__Method_Update, serviceImpl.Update) + .AddMethod(__Method_Delete, serviceImpl.Delete) + .AddMethod(__Method_List, serviceImpl.List) + .AddMethod(__Method_ListAdrAlgorithms, serviceImpl.ListAdrAlgorithms).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, DeviceProfileServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); + serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); + serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); + serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); + serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); + serviceBinder.AddMethod(__Method_ListAdrAlgorithms, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListAdrAlgorithms)); + } + + } +} +#endregion diff --git a/api/csharp/Chirpstack/api/DeviceProfileTemplate.cs b/api/csharp/Chirpstack/api/DeviceProfileTemplate.cs new file mode 100644 index 00000000..31ef838c --- /dev/null +++ b/api/csharp/Chirpstack/api/DeviceProfileTemplate.cs @@ -0,0 +1,3609 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/device_profile_template.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.Api { + + /// Holder for reflection information generated from api/device_profile_template.proto + public static partial class DeviceProfileTemplateReflection { + + #region Descriptor + /// File descriptor for api/device_profile_template.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DeviceProfileTemplateReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFhcGkvZGV2aWNlX3Byb2ZpbGVfdGVtcGxhdGUucHJvdG8SA2FwaRocZ29v", + "Z2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3Rp", + "bWVzdGFtcC5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGhNj", + "b21tb24vY29tbW9uLnByb3RvGhhhcGkvZGV2aWNlX3Byb2ZpbGUucHJvdG8i", + "9gcKFURldmljZVByb2ZpbGVUZW1wbGF0ZRIKCgJpZBgBIAEoCRIMCgRuYW1l", + "GAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJEg4KBnZlbmRvchgEIAEoCRIQ", + "CghmaXJtd2FyZRgFIAEoCRIeCgZyZWdpb24YBiABKA4yDi5jb21tb24uUmVn", + "aW9uEicKC21hY192ZXJzaW9uGAcgASgOMhIuY29tbW9uLk1hY1ZlcnNpb24S", + "NgoTcmVnX3BhcmFtc19yZXZpc2lvbhgIIAEoDjIZLmNvbW1vbi5SZWdQYXJh", + "bXNSZXZpc2lvbhIYChBhZHJfYWxnb3JpdGhtX2lkGAkgASgJEjAKFXBheWxv", + "YWRfY29kZWNfcnVudGltZRgKIAEoDjIRLmFwaS5Db2RlY1J1bnRpbWUSHAoU", + "cGF5bG9hZF9jb2RlY19zY3JpcHQYCyABKAkSHwoXZmx1c2hfcXVldWVfb25f", + "YWN0aXZhdGUYDCABKAgSFwoPdXBsaW5rX2ludGVydmFsGA0gASgNEiIKGmRl", + "dmljZV9zdGF0dXNfcmVxX2ludGVydmFsGA4gASgNEhUKDXN1cHBvcnRzX290", + "YWEYDyABKAgSGAoQc3VwcG9ydHNfY2xhc3NfYhgQIAEoCBIYChBzdXBwb3J0", + "c19jbGFzc19jGBEgASgIEhcKD2NsYXNzX2JfdGltZW91dBgSIAEoDRIeChZj", + "bGFzc19iX3Bpbmdfc2xvdF9uYl9rGBMgASgNEhwKFGNsYXNzX2JfcGluZ19z", + "bG90X2RyGBQgASgNEh4KFmNsYXNzX2JfcGluZ19zbG90X2ZyZXEYFSABKA0S", + "FwoPY2xhc3NfY190aW1lb3V0GBYgASgNEhUKDWFicF9yeDFfZGVsYXkYFyAB", + "KA0SGQoRYWJwX3J4MV9kcl9vZmZzZXQYGCABKA0SEgoKYWJwX3J4Ml9kchgZ", + "IAEoDRIUCgxhYnBfcngyX2ZyZXEYGiABKA0SMgoEdGFncxgbIAMoCzIkLmFw", + "aS5EZXZpY2VQcm9maWxlVGVtcGxhdGUuVGFnc0VudHJ5EkIKDG1lYXN1cmVt", + "ZW50cxgcIAMoCzIsLmFwaS5EZXZpY2VQcm9maWxlVGVtcGxhdGUuTWVhc3Vy", + "ZW1lbnRzRW50cnkSIAoYYXV0b19kZXRlY3RfbWVhc3VyZW1lbnRzGB0gASgI", + "GisKCVRhZ3NFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgB", + "GkUKEU1lYXN1cmVtZW50c0VudHJ5EgsKA2tleRgBIAEoCRIfCgV2YWx1ZRgC", + "IAEoCzIQLmFwaS5NZWFzdXJlbWVudDoCOAEihwMKHURldmljZVByb2ZpbGVU", + "ZW1wbGF0ZUxpc3RJdGVtEgoKAmlkGAEgASgJEi4KCmNyZWF0ZWRfYXQYAiAB", + "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQY", + "AyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEgwKBG5hbWUYBCAB", + "KAkSDgoGdmVuZG9yGAUgASgJEhAKCGZpcm13YXJlGAYgASgJEh4KBnJlZ2lv", + "bhgHIAEoDjIOLmNvbW1vbi5SZWdpb24SJwoLbWFjX3ZlcnNpb24YCCABKA4y", + "Ei5jb21tb24uTWFjVmVyc2lvbhI2ChNyZWdfcGFyYW1zX3JldmlzaW9uGAkg", + "ASgOMhkuY29tbW9uLlJlZ1BhcmFtc1JldmlzaW9uEhUKDXN1cHBvcnRzX290", + "YWEYCiABKAgSGAoQc3VwcG9ydHNfY2xhc3NfYhgLIAEoCBIYChBzdXBwb3J0", + "c19jbGFzc19jGAwgASgIImEKIkNyZWF0ZURldmljZVByb2ZpbGVUZW1wbGF0", + "ZVJlcXVlc3QSOwoXZGV2aWNlX3Byb2ZpbGVfdGVtcGxhdGUYASABKAsyGi5h", + "cGkuRGV2aWNlUHJvZmlsZVRlbXBsYXRlIi0KH0dldERldmljZVByb2ZpbGVU", + "ZW1wbGF0ZVJlcXVlc3QSCgoCaWQYASABKAkivwEKIEdldERldmljZVByb2Zp", + "bGVUZW1wbGF0ZVJlc3BvbnNlEjsKF2RldmljZV9wcm9maWxlX3RlbXBsYXRl", + "GAEgASgLMhouYXBpLkRldmljZVByb2ZpbGVUZW1wbGF0ZRIuCgpjcmVhdGVk", + "X2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRh", + "dGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCJhCiJV", + "cGRhdGVEZXZpY2VQcm9maWxlVGVtcGxhdGVSZXF1ZXN0EjsKF2RldmljZV9w", + "cm9maWxlX3RlbXBsYXRlGAEgASgLMhouYXBpLkRldmljZVByb2ZpbGVUZW1w", + "bGF0ZSIwCiJEZWxldGVEZXZpY2VQcm9maWxlVGVtcGxhdGVSZXF1ZXN0EgoK", + "AmlkGAEgASgJIkIKIUxpc3REZXZpY2VQcm9maWxlVGVtcGxhdGVzUmVxdWVz", + "dBINCgVsaW1pdBgBIAEoDRIOCgZvZmZzZXQYAiABKA0ibQoiTGlzdERldmlj", + "ZVByb2ZpbGVUZW1wbGF0ZXNSZXNwb25zZRITCgt0b3RhbF9jb3VudBgBIAEo", + "DRIyCgZyZXN1bHQYAiADKAsyIi5hcGkuRGV2aWNlUHJvZmlsZVRlbXBsYXRl", + "TGlzdEl0ZW0ynQUKHERldmljZVByb2ZpbGVUZW1wbGF0ZVNlcnZpY2UScwoG", + "Q3JlYXRlEicuYXBpLkNyZWF0ZURldmljZVByb2ZpbGVUZW1wbGF0ZVJlcXVl", + "c3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiKILT5JMCIiIdL2FwaS9kZXZp", + "Y2UtcHJvZmlsZS10ZW1wbGF0ZXM6ASoSfgoDR2V0EiQuYXBpLkdldERldmlj", + "ZVByb2ZpbGVUZW1wbGF0ZVJlcXVlc3QaJS5hcGkuR2V0RGV2aWNlUHJvZmls", + "ZVRlbXBsYXRlUmVzcG9uc2UiKoLT5JMCJBIiL2FwaS9kZXZpY2UtcHJvZmls", + "ZS10ZW1wbGF0ZXMve2lkfRKQAQoGVXBkYXRlEicuYXBpLlVwZGF0ZURldmlj", + "ZVByb2ZpbGVUZW1wbGF0ZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1w", + "dHkiRYLT5JMCPxo6L2FwaS9kZXZpY2UtcHJvZmlsZS10ZW1wbGF0ZXMve2Rl", + "dmljZV9wcm9maWxlX3RlbXBsYXRlLmlkfToBKhJ1CgZEZWxldGUSJy5hcGku", + "RGVsZXRlRGV2aWNlUHJvZmlsZVRlbXBsYXRlUmVxdWVzdBoWLmdvb2dsZS5w", + "cm90b2J1Zi5FbXB0eSIqgtPkkwIkKiIvYXBpL2RldmljZS1wcm9maWxlLXRl", + "bXBsYXRlcy97aWR9En4KBExpc3QSJi5hcGkuTGlzdERldmljZVByb2ZpbGVU", + "ZW1wbGF0ZXNSZXF1ZXN0GicuYXBpLkxpc3REZXZpY2VQcm9maWxlVGVtcGxh", + "dGVzUmVzcG9uc2UiJYLT5JMCHxIdL2FwaS9kZXZpY2UtcHJvZmlsZS10ZW1w", + "bGF0ZXNCcgoRaW8uY2hpcnBzdGFjay5hcGlCGkRldmljZVByb2ZpbGVUZW1w", + "bGF0ZVByb3RvUAFaLmdpdGh1Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0YWNr", + "L2FwaS9nby92NC9hcGmqAg5DaGlycHN0YWNrLkFwaWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Api.DeviceProfileReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceProfileTemplate), global::Chirpstack.Api.DeviceProfileTemplate.Parser, new[]{ "Id", "Name", "Description", "Vendor", "Firmware", "Region", "MacVersion", "RegParamsRevision", "AdrAlgorithmId", "PayloadCodecRuntime", "PayloadCodecScript", "FlushQueueOnActivate", "UplinkInterval", "DeviceStatusReqInterval", "SupportsOtaa", "SupportsClassB", "SupportsClassC", "ClassBTimeout", "ClassBPingSlotNbK", "ClassBPingSlotDr", "ClassBPingSlotFreq", "ClassCTimeout", "AbpRx1Delay", "AbpRx1DrOffset", "AbpRx2Dr", "AbpRx2Freq", "Tags", "Measurements", "AutoDetectMeasurements" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceProfileTemplateListItem), global::Chirpstack.Api.DeviceProfileTemplateListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Name", "Vendor", "Firmware", "Region", "MacVersion", "RegParamsRevision", "SupportsOtaa", "SupportsClassB", "SupportsClassC" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest), global::Chirpstack.Api.CreateDeviceProfileTemplateRequest.Parser, new[]{ "DeviceProfileTemplate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceProfileTemplateRequest), global::Chirpstack.Api.GetDeviceProfileTemplateRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceProfileTemplateResponse), global::Chirpstack.Api.GetDeviceProfileTemplateResponse.Parser, new[]{ "DeviceProfileTemplate", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest), global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest.Parser, new[]{ "DeviceProfileTemplate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest), global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest), global::Chirpstack.Api.ListDeviceProfileTemplatesRequest.Parser, new[]{ "Limit", "Offset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDeviceProfileTemplatesResponse), global::Chirpstack.Api.ListDeviceProfileTemplatesResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class DeviceProfileTemplate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceProfileTemplate()); + 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.Api.DeviceProfileTemplateReflection.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 DeviceProfileTemplate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceProfileTemplate(DeviceProfileTemplate other) : this() { + id_ = other.id_; + name_ = other.name_; + description_ = other.description_; + vendor_ = other.vendor_; + firmware_ = other.firmware_; + region_ = other.region_; + macVersion_ = other.macVersion_; + regParamsRevision_ = other.regParamsRevision_; + adrAlgorithmId_ = other.adrAlgorithmId_; + payloadCodecRuntime_ = other.payloadCodecRuntime_; + payloadCodecScript_ = other.payloadCodecScript_; + flushQueueOnActivate_ = other.flushQueueOnActivate_; + uplinkInterval_ = other.uplinkInterval_; + deviceStatusReqInterval_ = other.deviceStatusReqInterval_; + supportsOtaa_ = other.supportsOtaa_; + supportsClassB_ = other.supportsClassB_; + supportsClassC_ = other.supportsClassC_; + classBTimeout_ = other.classBTimeout_; + classBPingSlotNbK_ = other.classBPingSlotNbK_; + classBPingSlotDr_ = other.classBPingSlotDr_; + classBPingSlotFreq_ = other.classBPingSlotFreq_; + classCTimeout_ = other.classCTimeout_; + abpRx1Delay_ = other.abpRx1Delay_; + abpRx1DrOffset_ = other.abpRx1DrOffset_; + abpRx2Dr_ = other.abpRx2Dr_; + abpRx2Freq_ = other.abpRx2Freq_; + tags_ = other.tags_.Clone(); + measurements_ = other.measurements_.Clone(); + autoDetectMeasurements_ = other.autoDetectMeasurements_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceProfileTemplate Clone() { + return new DeviceProfileTemplate(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Device-profile template ID. + /// + [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 "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// Description. + /// + [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 "vendor" field. + public const int VendorFieldNumber = 4; + private string vendor_ = ""; + /// + /// Vendor. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Vendor { + get { return vendor_; } + set { + vendor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "firmware" field. + public const int FirmwareFieldNumber = 5; + private string firmware_ = ""; + /// + /// Firmware. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Firmware { + get { return firmware_; } + set { + firmware_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 6; + private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; + /// + /// Region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Region Region { + get { return region_; } + set { + region_ = value; + } + } + + /// Field number for the "mac_version" field. + public const int MacVersionFieldNumber = 7; + private global::Chirpstack.Common.MacVersion macVersion_ = global::Chirpstack.Common.MacVersion.Lorawan100; + /// + /// LoRaWAN mac-version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.MacVersion MacVersion { + get { return macVersion_; } + set { + macVersion_ = value; + } + } + + /// Field number for the "reg_params_revision" field. + public const int RegParamsRevisionFieldNumber = 8; + private global::Chirpstack.Common.RegParamsRevision regParamsRevision_ = global::Chirpstack.Common.RegParamsRevision.A; + /// + /// Regional parameters revision. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.RegParamsRevision RegParamsRevision { + get { return regParamsRevision_; } + set { + regParamsRevision_ = value; + } + } + + /// Field number for the "adr_algorithm_id" field. + public const int AdrAlgorithmIdFieldNumber = 9; + private string adrAlgorithmId_ = ""; + /// + /// ADR algorithm ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AdrAlgorithmId { + get { return adrAlgorithmId_; } + set { + adrAlgorithmId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "payload_codec_runtime" field. + public const int PayloadCodecRuntimeFieldNumber = 10; + private global::Chirpstack.Api.CodecRuntime payloadCodecRuntime_ = global::Chirpstack.Api.CodecRuntime.None; + /// + /// Payload codec runtime. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.CodecRuntime PayloadCodecRuntime { + get { return payloadCodecRuntime_; } + set { + payloadCodecRuntime_ = value; + } + } + + /// Field number for the "payload_codec_script" field. + public const int PayloadCodecScriptFieldNumber = 11; + private string payloadCodecScript_ = ""; + /// + /// Payload codec script. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PayloadCodecScript { + get { return payloadCodecScript_; } + set { + payloadCodecScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "flush_queue_on_activate" field. + public const int FlushQueueOnActivateFieldNumber = 12; + private bool flushQueueOnActivate_; + /// + /// Flush queue on device activation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool FlushQueueOnActivate { + get { return flushQueueOnActivate_; } + set { + flushQueueOnActivate_ = value; + } + } + + /// Field number for the "uplink_interval" field. + public const int UplinkIntervalFieldNumber = 13; + private uint uplinkInterval_; + /// + /// Uplink interval (seconds). + /// This defines the expected uplink interval which the device uses for + /// communication. When the uplink interval has expired and no uplink has + /// been received, the device is considered inactive. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UplinkInterval { + get { return uplinkInterval_; } + set { + uplinkInterval_ = value; + } + } + + /// Field number for the "device_status_req_interval" field. + public const int DeviceStatusReqIntervalFieldNumber = 14; + private uint deviceStatusReqInterval_; + /// + /// Device-status request interval (times / day). + /// This defines the times per day that ChirpStack will request the device-status + /// from the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DeviceStatusReqInterval { + get { return deviceStatusReqInterval_; } + set { + deviceStatusReqInterval_ = value; + } + } + + /// Field number for the "supports_otaa" field. + public const int SupportsOtaaFieldNumber = 15; + private bool supportsOtaa_; + /// + /// Supports OTAA. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsOtaa { + get { return supportsOtaa_; } + set { + supportsOtaa_ = value; + } + } + + /// Field number for the "supports_class_b" field. + public const int SupportsClassBFieldNumber = 16; + private bool supportsClassB_; + /// + /// Supports Class B. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsClassB { + get { return supportsClassB_; } + set { + supportsClassB_ = value; + } + } + + /// Field number for the "supports_class_c" field. + public const int SupportsClassCFieldNumber = 17; + private bool supportsClassC_; + /// + /// Supports Class-C. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsClassC { + get { return supportsClassC_; } + set { + supportsClassC_ = value; + } + } + + /// Field number for the "class_b_timeout" field. + public const int ClassBTimeoutFieldNumber = 18; + private uint classBTimeout_; + /// + /// Class-B timeout (seconds). + /// This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBTimeout { + get { return classBTimeout_; } + set { + classBTimeout_ = value; + } + } + + /// Field number for the "class_b_ping_slot_nb_k" field. + public const int ClassBPingSlotNbKFieldNumber = 19; + private uint classBPingSlotNbK_; + /// + /// Class-B ping-slots per beacon period. + /// Valid options are: 0 - 7. + /// + /// The actual number of ping-slots per beacon period equals to 2^k. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBPingSlotNbK { + get { return classBPingSlotNbK_; } + set { + classBPingSlotNbK_ = value; + } + } + + /// Field number for the "class_b_ping_slot_dr" field. + public const int ClassBPingSlotDrFieldNumber = 20; + private uint classBPingSlotDr_; + /// + /// Class-B ping-slot DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBPingSlotDr { + get { return classBPingSlotDr_; } + set { + classBPingSlotDr_ = value; + } + } + + /// Field number for the "class_b_ping_slot_freq" field. + public const int ClassBPingSlotFreqFieldNumber = 21; + private uint classBPingSlotFreq_; + /// + /// Class-B ping-slot freq (Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBPingSlotFreq { + get { return classBPingSlotFreq_; } + set { + classBPingSlotFreq_ = value; + } + } + + /// Field number for the "class_c_timeout" field. + public const int ClassCTimeoutFieldNumber = 22; + private uint classCTimeout_; + /// + /// Class-C timeout (seconds). + /// This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassCTimeout { + get { return classCTimeout_; } + set { + classCTimeout_ = value; + } + } + + /// Field number for the "abp_rx1_delay" field. + public const int AbpRx1DelayFieldNumber = 23; + private uint abpRx1Delay_; + /// + /// RX1 delay (for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AbpRx1Delay { + get { return abpRx1Delay_; } + set { + abpRx1Delay_ = value; + } + } + + /// Field number for the "abp_rx1_dr_offset" field. + public const int AbpRx1DrOffsetFieldNumber = 24; + private uint abpRx1DrOffset_; + /// + /// RX1 DR offset (for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AbpRx1DrOffset { + get { return abpRx1DrOffset_; } + set { + abpRx1DrOffset_ = value; + } + } + + /// Field number for the "abp_rx2_dr" field. + public const int AbpRx2DrFieldNumber = 25; + private uint abpRx2Dr_; + /// + /// RX2 DR (for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AbpRx2Dr { + get { return abpRx2Dr_; } + set { + abpRx2Dr_ = value; + } + } + + /// Field number for the "abp_rx2_freq" field. + public const int AbpRx2FreqFieldNumber = 26; + private uint abpRx2Freq_; + /// + /// RX2 frequency (for ABP, Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AbpRx2Freq { + get { return abpRx2Freq_; } + set { + abpRx2Freq_ = value; + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 27; + private static readonly pbc::MapField.Codec _map_tags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 218); + private readonly pbc::MapField tags_ = new pbc::MapField(); + /// + /// User defined tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Tags { + get { return tags_; } + } + + /// Field number for the "measurements" field. + public const int MeasurementsFieldNumber = 28; + private static readonly pbc::MapField.Codec _map_measurements_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.Measurement.Parser), 226); + private readonly pbc::MapField measurements_ = new pbc::MapField(); + /// + /// Measurements. + /// If defined, ChirpStack will visualize these metrics in the web-interface. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Measurements { + get { return measurements_; } + } + + /// Field number for the "auto_detect_measurements" field. + public const int AutoDetectMeasurementsFieldNumber = 29; + private bool autoDetectMeasurements_; + /// + /// Auto-detect measurements. + /// If set to true, measurements will be automatically added based on the + /// keys of the decoded payload. In cases where the decoded payload contains + /// random keys in the data, you want to set this to false. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AutoDetectMeasurements { + get { return autoDetectMeasurements_; } + set { + autoDetectMeasurements_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeviceProfileTemplate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeviceProfileTemplate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (Vendor != other.Vendor) return false; + if (Firmware != other.Firmware) return false; + if (Region != other.Region) return false; + if (MacVersion != other.MacVersion) return false; + if (RegParamsRevision != other.RegParamsRevision) return false; + if (AdrAlgorithmId != other.AdrAlgorithmId) return false; + if (PayloadCodecRuntime != other.PayloadCodecRuntime) return false; + if (PayloadCodecScript != other.PayloadCodecScript) return false; + if (FlushQueueOnActivate != other.FlushQueueOnActivate) return false; + if (UplinkInterval != other.UplinkInterval) return false; + if (DeviceStatusReqInterval != other.DeviceStatusReqInterval) return false; + if (SupportsOtaa != other.SupportsOtaa) return false; + if (SupportsClassB != other.SupportsClassB) return false; + if (SupportsClassC != other.SupportsClassC) return false; + if (ClassBTimeout != other.ClassBTimeout) return false; + if (ClassBPingSlotNbK != other.ClassBPingSlotNbK) return false; + if (ClassBPingSlotDr != other.ClassBPingSlotDr) return false; + if (ClassBPingSlotFreq != other.ClassBPingSlotFreq) return false; + if (ClassCTimeout != other.ClassCTimeout) return false; + if (AbpRx1Delay != other.AbpRx1Delay) return false; + if (AbpRx1DrOffset != other.AbpRx1DrOffset) return false; + if (AbpRx2Dr != other.AbpRx2Dr) return false; + if (AbpRx2Freq != other.AbpRx2Freq) return false; + if (!Tags.Equals(other.Tags)) return false; + if (!Measurements.Equals(other.Measurements)) return false; + if (AutoDetectMeasurements != other.AutoDetectMeasurements) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (Vendor.Length != 0) hash ^= Vendor.GetHashCode(); + if (Firmware.Length != 0) hash ^= Firmware.GetHashCode(); + if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) hash ^= MacVersion.GetHashCode(); + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) hash ^= RegParamsRevision.GetHashCode(); + if (AdrAlgorithmId.Length != 0) hash ^= AdrAlgorithmId.GetHashCode(); + if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) hash ^= PayloadCodecRuntime.GetHashCode(); + if (PayloadCodecScript.Length != 0) hash ^= PayloadCodecScript.GetHashCode(); + if (FlushQueueOnActivate != false) hash ^= FlushQueueOnActivate.GetHashCode(); + if (UplinkInterval != 0) hash ^= UplinkInterval.GetHashCode(); + if (DeviceStatusReqInterval != 0) hash ^= DeviceStatusReqInterval.GetHashCode(); + if (SupportsOtaa != false) hash ^= SupportsOtaa.GetHashCode(); + if (SupportsClassB != false) hash ^= SupportsClassB.GetHashCode(); + if (SupportsClassC != false) hash ^= SupportsClassC.GetHashCode(); + if (ClassBTimeout != 0) hash ^= ClassBTimeout.GetHashCode(); + if (ClassBPingSlotNbK != 0) hash ^= ClassBPingSlotNbK.GetHashCode(); + if (ClassBPingSlotDr != 0) hash ^= ClassBPingSlotDr.GetHashCode(); + if (ClassBPingSlotFreq != 0) hash ^= ClassBPingSlotFreq.GetHashCode(); + if (ClassCTimeout != 0) hash ^= ClassCTimeout.GetHashCode(); + if (AbpRx1Delay != 0) hash ^= AbpRx1Delay.GetHashCode(); + if (AbpRx1DrOffset != 0) hash ^= AbpRx1DrOffset.GetHashCode(); + if (AbpRx2Dr != 0) hash ^= AbpRx2Dr.GetHashCode(); + if (AbpRx2Freq != 0) hash ^= AbpRx2Freq.GetHashCode(); + hash ^= Tags.GetHashCode(); + hash ^= Measurements.GetHashCode(); + if (AutoDetectMeasurements != false) hash ^= AutoDetectMeasurements.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 (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (Vendor.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Vendor); + } + if (Firmware.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Firmware); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(48); + output.WriteEnum((int) Region); + } + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + output.WriteRawTag(56); + output.WriteEnum((int) MacVersion); + } + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + output.WriteRawTag(64); + output.WriteEnum((int) RegParamsRevision); + } + if (AdrAlgorithmId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(AdrAlgorithmId); + } + if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { + output.WriteRawTag(80); + output.WriteEnum((int) PayloadCodecRuntime); + } + if (PayloadCodecScript.Length != 0) { + output.WriteRawTag(90); + output.WriteString(PayloadCodecScript); + } + if (FlushQueueOnActivate != false) { + output.WriteRawTag(96); + output.WriteBool(FlushQueueOnActivate); + } + if (UplinkInterval != 0) { + output.WriteRawTag(104); + output.WriteUInt32(UplinkInterval); + } + if (DeviceStatusReqInterval != 0) { + output.WriteRawTag(112); + output.WriteUInt32(DeviceStatusReqInterval); + } + if (SupportsOtaa != false) { + output.WriteRawTag(120); + output.WriteBool(SupportsOtaa); + } + if (SupportsClassB != false) { + output.WriteRawTag(128, 1); + output.WriteBool(SupportsClassB); + } + if (SupportsClassC != false) { + output.WriteRawTag(136, 1); + output.WriteBool(SupportsClassC); + } + if (ClassBTimeout != 0) { + output.WriteRawTag(144, 1); + output.WriteUInt32(ClassBTimeout); + } + if (ClassBPingSlotNbK != 0) { + output.WriteRawTag(152, 1); + output.WriteUInt32(ClassBPingSlotNbK); + } + if (ClassBPingSlotDr != 0) { + output.WriteRawTag(160, 1); + output.WriteUInt32(ClassBPingSlotDr); + } + if (ClassBPingSlotFreq != 0) { + output.WriteRawTag(168, 1); + output.WriteUInt32(ClassBPingSlotFreq); + } + if (ClassCTimeout != 0) { + output.WriteRawTag(176, 1); + output.WriteUInt32(ClassCTimeout); + } + if (AbpRx1Delay != 0) { + output.WriteRawTag(184, 1); + output.WriteUInt32(AbpRx1Delay); + } + if (AbpRx1DrOffset != 0) { + output.WriteRawTag(192, 1); + output.WriteUInt32(AbpRx1DrOffset); + } + if (AbpRx2Dr != 0) { + output.WriteRawTag(200, 1); + output.WriteUInt32(AbpRx2Dr); + } + if (AbpRx2Freq != 0) { + output.WriteRawTag(208, 1); + output.WriteUInt32(AbpRx2Freq); + } + tags_.WriteTo(output, _map_tags_codec); + measurements_.WriteTo(output, _map_measurements_codec); + if (AutoDetectMeasurements != false) { + output.WriteRawTag(232, 1); + output.WriteBool(AutoDetectMeasurements); + } + 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 (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (Vendor.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Vendor); + } + if (Firmware.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Firmware); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(48); + output.WriteEnum((int) Region); + } + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + output.WriteRawTag(56); + output.WriteEnum((int) MacVersion); + } + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + output.WriteRawTag(64); + output.WriteEnum((int) RegParamsRevision); + } + if (AdrAlgorithmId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(AdrAlgorithmId); + } + if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { + output.WriteRawTag(80); + output.WriteEnum((int) PayloadCodecRuntime); + } + if (PayloadCodecScript.Length != 0) { + output.WriteRawTag(90); + output.WriteString(PayloadCodecScript); + } + if (FlushQueueOnActivate != false) { + output.WriteRawTag(96); + output.WriteBool(FlushQueueOnActivate); + } + if (UplinkInterval != 0) { + output.WriteRawTag(104); + output.WriteUInt32(UplinkInterval); + } + if (DeviceStatusReqInterval != 0) { + output.WriteRawTag(112); + output.WriteUInt32(DeviceStatusReqInterval); + } + if (SupportsOtaa != false) { + output.WriteRawTag(120); + output.WriteBool(SupportsOtaa); + } + if (SupportsClassB != false) { + output.WriteRawTag(128, 1); + output.WriteBool(SupportsClassB); + } + if (SupportsClassC != false) { + output.WriteRawTag(136, 1); + output.WriteBool(SupportsClassC); + } + if (ClassBTimeout != 0) { + output.WriteRawTag(144, 1); + output.WriteUInt32(ClassBTimeout); + } + if (ClassBPingSlotNbK != 0) { + output.WriteRawTag(152, 1); + output.WriteUInt32(ClassBPingSlotNbK); + } + if (ClassBPingSlotDr != 0) { + output.WriteRawTag(160, 1); + output.WriteUInt32(ClassBPingSlotDr); + } + if (ClassBPingSlotFreq != 0) { + output.WriteRawTag(168, 1); + output.WriteUInt32(ClassBPingSlotFreq); + } + if (ClassCTimeout != 0) { + output.WriteRawTag(176, 1); + output.WriteUInt32(ClassCTimeout); + } + if (AbpRx1Delay != 0) { + output.WriteRawTag(184, 1); + output.WriteUInt32(AbpRx1Delay); + } + if (AbpRx1DrOffset != 0) { + output.WriteRawTag(192, 1); + output.WriteUInt32(AbpRx1DrOffset); + } + if (AbpRx2Dr != 0) { + output.WriteRawTag(200, 1); + output.WriteUInt32(AbpRx2Dr); + } + if (AbpRx2Freq != 0) { + output.WriteRawTag(208, 1); + output.WriteUInt32(AbpRx2Freq); + } + tags_.WriteTo(ref output, _map_tags_codec); + measurements_.WriteTo(ref output, _map_measurements_codec); + if (AutoDetectMeasurements != false) { + output.WriteRawTag(232, 1); + output.WriteBool(AutoDetectMeasurements); + } + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (Vendor.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Vendor); + } + if (Firmware.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Firmware); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); + } + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MacVersion); + } + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RegParamsRevision); + } + if (AdrAlgorithmId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AdrAlgorithmId); + } + if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PayloadCodecRuntime); + } + if (PayloadCodecScript.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadCodecScript); + } + if (FlushQueueOnActivate != false) { + size += 1 + 1; + } + if (UplinkInterval != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UplinkInterval); + } + if (DeviceStatusReqInterval != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DeviceStatusReqInterval); + } + if (SupportsOtaa != false) { + size += 1 + 1; + } + if (SupportsClassB != false) { + size += 2 + 1; + } + if (SupportsClassC != false) { + size += 2 + 1; + } + if (ClassBTimeout != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBTimeout); + } + if (ClassBPingSlotNbK != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotNbK); + } + if (ClassBPingSlotDr != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotDr); + } + if (ClassBPingSlotFreq != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotFreq); + } + if (ClassCTimeout != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassCTimeout); + } + if (AbpRx1Delay != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx1Delay); + } + if (AbpRx1DrOffset != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx1DrOffset); + } + if (AbpRx2Dr != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx2Dr); + } + if (AbpRx2Freq != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx2Freq); + } + size += tags_.CalculateSize(_map_tags_codec); + size += measurements_.CalculateSize(_map_measurements_codec); + if (AutoDetectMeasurements != false) { + size += 2 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeviceProfileTemplate other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.Vendor.Length != 0) { + Vendor = other.Vendor; + } + if (other.Firmware.Length != 0) { + Firmware = other.Firmware; + } + if (other.Region != global::Chirpstack.Common.Region.Eu868) { + Region = other.Region; + } + if (other.MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + MacVersion = other.MacVersion; + } + if (other.RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + RegParamsRevision = other.RegParamsRevision; + } + if (other.AdrAlgorithmId.Length != 0) { + AdrAlgorithmId = other.AdrAlgorithmId; + } + if (other.PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { + PayloadCodecRuntime = other.PayloadCodecRuntime; + } + if (other.PayloadCodecScript.Length != 0) { + PayloadCodecScript = other.PayloadCodecScript; + } + if (other.FlushQueueOnActivate != false) { + FlushQueueOnActivate = other.FlushQueueOnActivate; + } + if (other.UplinkInterval != 0) { + UplinkInterval = other.UplinkInterval; + } + if (other.DeviceStatusReqInterval != 0) { + DeviceStatusReqInterval = other.DeviceStatusReqInterval; + } + if (other.SupportsOtaa != false) { + SupportsOtaa = other.SupportsOtaa; + } + if (other.SupportsClassB != false) { + SupportsClassB = other.SupportsClassB; + } + if (other.SupportsClassC != false) { + SupportsClassC = other.SupportsClassC; + } + if (other.ClassBTimeout != 0) { + ClassBTimeout = other.ClassBTimeout; + } + if (other.ClassBPingSlotNbK != 0) { + ClassBPingSlotNbK = other.ClassBPingSlotNbK; + } + if (other.ClassBPingSlotDr != 0) { + ClassBPingSlotDr = other.ClassBPingSlotDr; + } + if (other.ClassBPingSlotFreq != 0) { + ClassBPingSlotFreq = other.ClassBPingSlotFreq; + } + if (other.ClassCTimeout != 0) { + ClassCTimeout = other.ClassCTimeout; + } + if (other.AbpRx1Delay != 0) { + AbpRx1Delay = other.AbpRx1Delay; + } + if (other.AbpRx1DrOffset != 0) { + AbpRx1DrOffset = other.AbpRx1DrOffset; + } + if (other.AbpRx2Dr != 0) { + AbpRx2Dr = other.AbpRx2Dr; + } + if (other.AbpRx2Freq != 0) { + AbpRx2Freq = other.AbpRx2Freq; + } + tags_.Add(other.tags_); + measurements_.Add(other.measurements_); + if (other.AutoDetectMeasurements != false) { + AutoDetectMeasurements = other.AutoDetectMeasurements; + } + _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: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + Vendor = input.ReadString(); + break; + } + case 42: { + Firmware = input.ReadString(); + break; + } + case 48: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 56: { + MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); + break; + } + case 64: { + RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); + break; + } + case 74: { + AdrAlgorithmId = input.ReadString(); + break; + } + case 80: { + PayloadCodecRuntime = (global::Chirpstack.Api.CodecRuntime) input.ReadEnum(); + break; + } + case 90: { + PayloadCodecScript = input.ReadString(); + break; + } + case 96: { + FlushQueueOnActivate = input.ReadBool(); + break; + } + case 104: { + UplinkInterval = input.ReadUInt32(); + break; + } + case 112: { + DeviceStatusReqInterval = input.ReadUInt32(); + break; + } + case 120: { + SupportsOtaa = input.ReadBool(); + break; + } + case 128: { + SupportsClassB = input.ReadBool(); + break; + } + case 136: { + SupportsClassC = input.ReadBool(); + break; + } + case 144: { + ClassBTimeout = input.ReadUInt32(); + break; + } + case 152: { + ClassBPingSlotNbK = input.ReadUInt32(); + break; + } + case 160: { + ClassBPingSlotDr = input.ReadUInt32(); + break; + } + case 168: { + ClassBPingSlotFreq = input.ReadUInt32(); + break; + } + case 176: { + ClassCTimeout = input.ReadUInt32(); + break; + } + case 184: { + AbpRx1Delay = input.ReadUInt32(); + break; + } + case 192: { + AbpRx1DrOffset = input.ReadUInt32(); + break; + } + case 200: { + AbpRx2Dr = input.ReadUInt32(); + break; + } + case 208: { + AbpRx2Freq = input.ReadUInt32(); + break; + } + case 218: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 226: { + measurements_.AddEntriesFrom(input, _map_measurements_codec); + break; + } + case 232: { + AutoDetectMeasurements = input.ReadBool(); + 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: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + Vendor = input.ReadString(); + break; + } + case 42: { + Firmware = input.ReadString(); + break; + } + case 48: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 56: { + MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); + break; + } + case 64: { + RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); + break; + } + case 74: { + AdrAlgorithmId = input.ReadString(); + break; + } + case 80: { + PayloadCodecRuntime = (global::Chirpstack.Api.CodecRuntime) input.ReadEnum(); + break; + } + case 90: { + PayloadCodecScript = input.ReadString(); + break; + } + case 96: { + FlushQueueOnActivate = input.ReadBool(); + break; + } + case 104: { + UplinkInterval = input.ReadUInt32(); + break; + } + case 112: { + DeviceStatusReqInterval = input.ReadUInt32(); + break; + } + case 120: { + SupportsOtaa = input.ReadBool(); + break; + } + case 128: { + SupportsClassB = input.ReadBool(); + break; + } + case 136: { + SupportsClassC = input.ReadBool(); + break; + } + case 144: { + ClassBTimeout = input.ReadUInt32(); + break; + } + case 152: { + ClassBPingSlotNbK = input.ReadUInt32(); + break; + } + case 160: { + ClassBPingSlotDr = input.ReadUInt32(); + break; + } + case 168: { + ClassBPingSlotFreq = input.ReadUInt32(); + break; + } + case 176: { + ClassCTimeout = input.ReadUInt32(); + break; + } + case 184: { + AbpRx1Delay = input.ReadUInt32(); + break; + } + case 192: { + AbpRx1DrOffset = input.ReadUInt32(); + break; + } + case 200: { + AbpRx2Dr = input.ReadUInt32(); + break; + } + case 208: { + AbpRx2Freq = input.ReadUInt32(); + break; + } + case 218: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 226: { + measurements_.AddEntriesFrom(ref input, _map_measurements_codec); + break; + } + case 232: { + AutoDetectMeasurements = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeviceProfileTemplateListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceProfileTemplateListItem()); + 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.Api.DeviceProfileTemplateReflection.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 DeviceProfileTemplateListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceProfileTemplateListItem(DeviceProfileTemplateListItem other) : this() { + id_ = other.id_; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + name_ = other.name_; + vendor_ = other.vendor_; + firmware_ = other.firmware_; + region_ = other.region_; + macVersion_ = other.macVersion_; + regParamsRevision_ = other.regParamsRevision_; + supportsOtaa_ = other.supportsOtaa_; + supportsClassB_ = other.supportsClassB_; + supportsClassC_ = other.supportsClassC_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceProfileTemplateListItem Clone() { + return new DeviceProfileTemplateListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Device-profile template ID. + /// + [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 "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "vendor" field. + public const int VendorFieldNumber = 5; + private string vendor_ = ""; + /// + /// Vendor. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Vendor { + get { return vendor_; } + set { + vendor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "firmware" field. + public const int FirmwareFieldNumber = 6; + private string firmware_ = ""; + /// + /// Firmware. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Firmware { + get { return firmware_; } + set { + firmware_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 7; + private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; + /// + /// Region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Region Region { + get { return region_; } + set { + region_ = value; + } + } + + /// Field number for the "mac_version" field. + public const int MacVersionFieldNumber = 8; + private global::Chirpstack.Common.MacVersion macVersion_ = global::Chirpstack.Common.MacVersion.Lorawan100; + /// + /// LoRaWAN mac-version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.MacVersion MacVersion { + get { return macVersion_; } + set { + macVersion_ = value; + } + } + + /// Field number for the "reg_params_revision" field. + public const int RegParamsRevisionFieldNumber = 9; + private global::Chirpstack.Common.RegParamsRevision regParamsRevision_ = global::Chirpstack.Common.RegParamsRevision.A; + /// + /// Regional parameters revision. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.RegParamsRevision RegParamsRevision { + get { return regParamsRevision_; } + set { + regParamsRevision_ = value; + } + } + + /// Field number for the "supports_otaa" field. + public const int SupportsOtaaFieldNumber = 10; + private bool supportsOtaa_; + /// + /// Supports OTAA. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsOtaa { + get { return supportsOtaa_; } + set { + supportsOtaa_ = value; + } + } + + /// Field number for the "supports_class_b" field. + public const int SupportsClassBFieldNumber = 11; + private bool supportsClassB_; + /// + /// Supports Class-B. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsClassB { + get { return supportsClassB_; } + set { + supportsClassB_ = value; + } + } + + /// Field number for the "supports_class_c" field. + public const int SupportsClassCFieldNumber = 12; + private bool supportsClassC_; + /// + /// Supports Class-C. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsClassC { + get { return supportsClassC_; } + set { + supportsClassC_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeviceProfileTemplateListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeviceProfileTemplateListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (Name != other.Name) return false; + if (Vendor != other.Vendor) return false; + if (Firmware != other.Firmware) return false; + if (Region != other.Region) return false; + if (MacVersion != other.MacVersion) return false; + if (RegParamsRevision != other.RegParamsRevision) return false; + if (SupportsOtaa != other.SupportsOtaa) return false; + if (SupportsClassB != other.SupportsClassB) return false; + if (SupportsClassC != other.SupportsClassC) 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 (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Vendor.Length != 0) hash ^= Vendor.GetHashCode(); + if (Firmware.Length != 0) hash ^= Firmware.GetHashCode(); + if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) hash ^= MacVersion.GetHashCode(); + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) hash ^= RegParamsRevision.GetHashCode(); + if (SupportsOtaa != false) hash ^= SupportsOtaa.GetHashCode(); + if (SupportsClassB != false) hash ^= SupportsClassB.GetHashCode(); + if (SupportsClassC != false) hash ^= SupportsClassC.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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Vendor.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Vendor); + } + if (Firmware.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Firmware); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(56); + output.WriteEnum((int) Region); + } + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + output.WriteRawTag(64); + output.WriteEnum((int) MacVersion); + } + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + output.WriteRawTag(72); + output.WriteEnum((int) RegParamsRevision); + } + if (SupportsOtaa != false) { + output.WriteRawTag(80); + output.WriteBool(SupportsOtaa); + } + if (SupportsClassB != false) { + output.WriteRawTag(88); + output.WriteBool(SupportsClassB); + } + if (SupportsClassC != false) { + output.WriteRawTag(96); + output.WriteBool(SupportsClassC); + } + 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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Vendor.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Vendor); + } + if (Firmware.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Firmware); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(56); + output.WriteEnum((int) Region); + } + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + output.WriteRawTag(64); + output.WriteEnum((int) MacVersion); + } + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + output.WriteRawTag(72); + output.WriteEnum((int) RegParamsRevision); + } + if (SupportsOtaa != false) { + output.WriteRawTag(80); + output.WriteBool(SupportsOtaa); + } + if (SupportsClassB != false) { + output.WriteRawTag(88); + output.WriteBool(SupportsClassB); + } + if (SupportsClassC != false) { + output.WriteRawTag(96); + output.WriteBool(SupportsClassC); + } + 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 (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Vendor.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Vendor); + } + if (Firmware.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Firmware); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); + } + if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MacVersion); + } + if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RegParamsRevision); + } + if (SupportsOtaa != false) { + size += 1 + 1; + } + if (SupportsClassB != false) { + size += 1 + 1; + } + if (SupportsClassC != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeviceProfileTemplateListItem other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Vendor.Length != 0) { + Vendor = other.Vendor; + } + if (other.Firmware.Length != 0) { + Firmware = other.Firmware; + } + if (other.Region != global::Chirpstack.Common.Region.Eu868) { + Region = other.Region; + } + if (other.MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { + MacVersion = other.MacVersion; + } + if (other.RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { + RegParamsRevision = other.RegParamsRevision; + } + if (other.SupportsOtaa != false) { + SupportsOtaa = other.SupportsOtaa; + } + if (other.SupportsClassB != false) { + SupportsClassB = other.SupportsClassB; + } + if (other.SupportsClassC != false) { + SupportsClassC = other.SupportsClassC; + } + _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: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Vendor = input.ReadString(); + break; + } + case 50: { + Firmware = input.ReadString(); + break; + } + case 56: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 64: { + MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); + break; + } + case 72: { + RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); + break; + } + case 80: { + SupportsOtaa = input.ReadBool(); + break; + } + case 88: { + SupportsClassB = input.ReadBool(); + break; + } + case 96: { + SupportsClassC = input.ReadBool(); + 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: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Vendor = input.ReadString(); + break; + } + case 50: { + Firmware = input.ReadString(); + break; + } + case 56: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 64: { + MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); + break; + } + case 72: { + RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); + break; + } + case 80: { + SupportsOtaa = input.ReadBool(); + break; + } + case 88: { + SupportsClassB = input.ReadBool(); + break; + } + case 96: { + SupportsClassC = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateDeviceProfileTemplateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeviceProfileTemplateRequest()); + 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.Api.DeviceProfileTemplateReflection.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 CreateDeviceProfileTemplateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceProfileTemplateRequest(CreateDeviceProfileTemplateRequest other) : this() { + deviceProfileTemplate_ = other.deviceProfileTemplate_ != null ? other.deviceProfileTemplate_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceProfileTemplateRequest Clone() { + return new CreateDeviceProfileTemplateRequest(this); + } + + /// Field number for the "device_profile_template" field. + public const int DeviceProfileTemplateFieldNumber = 1; + private global::Chirpstack.Api.DeviceProfileTemplate deviceProfileTemplate_; + /// + /// Object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceProfileTemplate DeviceProfileTemplate { + get { return deviceProfileTemplate_; } + set { + deviceProfileTemplate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateDeviceProfileTemplateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateDeviceProfileTemplateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DeviceProfileTemplate, other.DeviceProfileTemplate)) 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 (deviceProfileTemplate_ != null) hash ^= DeviceProfileTemplate.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 (deviceProfileTemplate_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceProfileTemplate); + } + 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 (deviceProfileTemplate_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceProfileTemplate); + } + 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 (deviceProfileTemplate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceProfileTemplate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateDeviceProfileTemplateRequest other) { + if (other == null) { + return; + } + if (other.deviceProfileTemplate_ != null) { + if (deviceProfileTemplate_ == null) { + DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); + } + DeviceProfileTemplate.MergeFrom(other.DeviceProfileTemplate); + } + _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 (deviceProfileTemplate_ == null) { + DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); + } + input.ReadMessage(DeviceProfileTemplate); + 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 (deviceProfileTemplate_ == null) { + DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); + } + input.ReadMessage(DeviceProfileTemplate); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceProfileTemplateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceProfileTemplateRequest()); + 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.Api.DeviceProfileTemplateReflection.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 GetDeviceProfileTemplateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceProfileTemplateRequest(GetDeviceProfileTemplateRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceProfileTemplateRequest Clone() { + return new GetDeviceProfileTemplateRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceProfileTemplateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceProfileTemplateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceProfileTemplateRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceProfileTemplateResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceProfileTemplateResponse()); + 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.Api.DeviceProfileTemplateReflection.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 GetDeviceProfileTemplateResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceProfileTemplateResponse(GetDeviceProfileTemplateResponse other) : this() { + deviceProfileTemplate_ = other.deviceProfileTemplate_ != null ? other.deviceProfileTemplate_.Clone() : null; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceProfileTemplateResponse Clone() { + return new GetDeviceProfileTemplateResponse(this); + } + + /// Field number for the "device_profile_template" field. + public const int DeviceProfileTemplateFieldNumber = 1; + private global::Chirpstack.Api.DeviceProfileTemplate deviceProfileTemplate_; + /// + /// Device-profile template object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceProfileTemplate DeviceProfileTemplate { + get { return deviceProfileTemplate_; } + set { + deviceProfileTemplate_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceProfileTemplateResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceProfileTemplateResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DeviceProfileTemplate, other.DeviceProfileTemplate)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) 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 (deviceProfileTemplate_ != null) hash ^= DeviceProfileTemplate.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.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 (deviceProfileTemplate_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceProfileTemplate); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (deviceProfileTemplate_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceProfileTemplate); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (deviceProfileTemplate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceProfileTemplate); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceProfileTemplateResponse other) { + if (other == null) { + return; + } + if (other.deviceProfileTemplate_ != null) { + if (deviceProfileTemplate_ == null) { + DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); + } + DeviceProfileTemplate.MergeFrom(other.DeviceProfileTemplate); + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + _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 (deviceProfileTemplate_ == null) { + DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); + } + input.ReadMessage(DeviceProfileTemplate); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + 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 (deviceProfileTemplate_ == null) { + DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); + } + input.ReadMessage(DeviceProfileTemplate); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateDeviceProfileTemplateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateDeviceProfileTemplateRequest()); + 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.Api.DeviceProfileTemplateReflection.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 UpdateDeviceProfileTemplateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDeviceProfileTemplateRequest(UpdateDeviceProfileTemplateRequest other) : this() { + deviceProfileTemplate_ = other.deviceProfileTemplate_ != null ? other.deviceProfileTemplate_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDeviceProfileTemplateRequest Clone() { + return new UpdateDeviceProfileTemplateRequest(this); + } + + /// Field number for the "device_profile_template" field. + public const int DeviceProfileTemplateFieldNumber = 1; + private global::Chirpstack.Api.DeviceProfileTemplate deviceProfileTemplate_; + /// + /// Object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.DeviceProfileTemplate DeviceProfileTemplate { + get { return deviceProfileTemplate_; } + set { + deviceProfileTemplate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateDeviceProfileTemplateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateDeviceProfileTemplateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DeviceProfileTemplate, other.DeviceProfileTemplate)) 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 (deviceProfileTemplate_ != null) hash ^= DeviceProfileTemplate.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 (deviceProfileTemplate_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceProfileTemplate); + } + 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 (deviceProfileTemplate_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceProfileTemplate); + } + 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 (deviceProfileTemplate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceProfileTemplate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateDeviceProfileTemplateRequest other) { + if (other == null) { + return; + } + if (other.deviceProfileTemplate_ != null) { + if (deviceProfileTemplate_ == null) { + DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); + } + DeviceProfileTemplate.MergeFrom(other.DeviceProfileTemplate); + } + _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 (deviceProfileTemplate_ == null) { + DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); + } + input.ReadMessage(DeviceProfileTemplate); + 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 (deviceProfileTemplate_ == null) { + DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); + } + input.ReadMessage(DeviceProfileTemplate); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteDeviceProfileTemplateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceProfileTemplateRequest()); + 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.Api.DeviceProfileTemplateReflection.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 DeleteDeviceProfileTemplateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteDeviceProfileTemplateRequest(DeleteDeviceProfileTemplateRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteDeviceProfileTemplateRequest Clone() { + return new DeleteDeviceProfileTemplateRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteDeviceProfileTemplateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteDeviceProfileTemplateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteDeviceProfileTemplateRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class ListDeviceProfileTemplatesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceProfileTemplatesRequest()); + 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.Api.DeviceProfileTemplateReflection.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 ListDeviceProfileTemplatesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfileTemplatesRequest(ListDeviceProfileTemplatesRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfileTemplatesRequest Clone() { + return new ListDeviceProfileTemplatesRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private uint limit_; + /// + /// Max number of device-profile templates to return in the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 2; + private uint offset_; + /// + /// Offset in the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListDeviceProfileTemplatesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDeviceProfileTemplatesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Limit != other.Limit) return false; + if (Offset != other.Offset) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Limit != 0) hash ^= Limit.GetHashCode(); + if (Offset != 0) hash ^= Offset.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Limit != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); + } + if (Offset != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDeviceProfileTemplatesRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0) { + Limit = other.Limit; + } + if (other.Offset != 0) { + Offset = other.Offset; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = 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 8: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListDeviceProfileTemplatesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceProfileTemplatesResponse()); + 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.Api.DeviceProfileTemplateReflection.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 ListDeviceProfileTemplatesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfileTemplatesResponse(ListDeviceProfileTemplatesResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfileTemplatesResponse Clone() { + return new ListDeviceProfileTemplatesResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of device-profile templates. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.DeviceProfileTemplateListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListDeviceProfileTemplatesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDeviceProfileTemplatesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDeviceProfileTemplatesResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/DeviceProfileTemplateGrpc.cs b/api/csharp/Chirpstack/api/DeviceProfileTemplateGrpc.cs new file mode 100644 index 00000000..d46eafe0 --- /dev/null +++ b/api/csharp/Chirpstack/api/DeviceProfileTemplateGrpc.cs @@ -0,0 +1,484 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/device_profile_template.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.Api { + /// + /// DeviceProfileTemplateService is the service providing API methods for managing device-profile templates. + /// + public static partial class DeviceProfileTemplateService + { + static readonly string __ServiceName = "api.DeviceProfileTemplateService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateDeviceProfileTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateDeviceProfileTemplateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceProfileTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceProfileTemplateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceProfileTemplateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceProfileTemplateResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateDeviceProfileTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteDeviceProfileTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListDeviceProfileTemplatesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDeviceProfileTemplatesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListDeviceProfileTemplatesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDeviceProfileTemplatesResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Create = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Create", + __Marshaller_api_CreateDeviceProfileTemplateRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Get = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Get", + __Marshaller_api_GetDeviceProfileTemplateRequest, + __Marshaller_api_GetDeviceProfileTemplateResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Update = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Update", + __Marshaller_api_UpdateDeviceProfileTemplateRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Delete = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Delete", + __Marshaller_api_DeleteDeviceProfileTemplateRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_List = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "List", + __Marshaller_api_ListDeviceProfileTemplatesRequest, + __Marshaller_api_ListDeviceProfileTemplatesResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.Api.DeviceProfileTemplateReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of DeviceProfileTemplateService + [grpc::BindServiceMethod(typeof(DeviceProfileTemplateService), "BindService")] + public abstract partial class DeviceProfileTemplateServiceBase + { + /// + /// Create the given device-profile template. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the device-profile template for the given ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update the given device-profile template. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete the device-profile template with the given ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List the available device-profile templates. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for DeviceProfileTemplateService + public partial class DeviceProfileTemplateServiceClient : grpc::ClientBase + { + /// Creates a new client for DeviceProfileTemplateService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DeviceProfileTemplateServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for DeviceProfileTemplateService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DeviceProfileTemplateServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DeviceProfileTemplateServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DeviceProfileTemplateServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Create the given device-profile template. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create the given device-profile template. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create the given device-profile template. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create the given device-profile template. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get the device-profile template for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceProfileTemplateResponse Get(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the device-profile template for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDeviceProfileTemplateResponse Get(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get the device-profile template for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the device-profile template for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update the given device-profile template. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given device-profile template. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update the given device-profile template. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given device-profile template. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete the device-profile template with the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the device-profile template with the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete the device-profile template with the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the device-profile template with the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// List the available device-profile templates. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListDeviceProfileTemplatesResponse List(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// List the available device-profile templates. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListDeviceProfileTemplatesResponse List(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// List the available device-profile templates. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// List the available device-profile templates. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override DeviceProfileTemplateServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new DeviceProfileTemplateServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(DeviceProfileTemplateServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_Create, serviceImpl.Create) + .AddMethod(__Method_Get, serviceImpl.Get) + .AddMethod(__Method_Update, serviceImpl.Update) + .AddMethod(__Method_Delete, serviceImpl.Delete) + .AddMethod(__Method_List, serviceImpl.List).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, DeviceProfileTemplateServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); + serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); + serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); + serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); + serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); + } + + } +} +#endregion diff --git a/api/csharp/Chirpstack/api/FrameLog.cs b/api/csharp/Chirpstack/api/FrameLog.cs new file mode 100644 index 00000000..ebcebbb7 --- /dev/null +++ b/api/csharp/Chirpstack/api/FrameLog.cs @@ -0,0 +1,1067 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/frame_log.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.Api { + + /// Holder for reflection information generated from api/frame_log.proto + public static partial class FrameLogReflection { + + #region Descriptor + /// File descriptor for api/frame_log.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FrameLogReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNhcGkvZnJhbWVfbG9nLnByb3RvEgNhcGkaH2dvb2dsZS9wcm90b2J1Zi90", + "aW1lc3RhbXAucHJvdG8aE2NvbW1vbi9jb21tb24ucHJvdG8aC2d3L2d3LnBy", + "b3RvIvcBCg5VcGxpbmtGcmFtZUxvZxITCgtwaHlfcGF5bG9hZBgBIAEoDBIh", + "Cgd0eF9pbmZvGAIgASgLMhAuZ3cuVXBsaW5rVHhJbmZvEiEKB3J4X2luZm8Y", + "AyADKAsyEC5ndy5VcGxpbmtSeEluZm8SHQoGbV90eXBlGAQgASgOMg0uY29t", + "bW9uLk1UeXBlEhAKCGRldl9hZGRyGAUgASgJEg8KB2Rldl9ldWkYBiABKAkS", + "KAoEdGltZRgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASHgoW", + "cGxhaW50ZXh0X21hY19jb21tYW5kcxgIIAEoCCKBAgoQRG93bmxpbmtGcmFt", + "ZUxvZxIoCgR0aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", + "cBITCgtwaHlfcGF5bG9hZBgCIAEoDBIjCgd0eF9pbmZvGAMgASgLMhIuZ3cu", + "RG93bmxpbmtUeEluZm8SEwoLZG93bmxpbmtfaWQYBCABKA0SEgoKZ2F0ZXdh", + "eV9pZBgFIAEoCRIdCgZtX3R5cGUYBiABKA4yDS5jb21tb24uTVR5cGUSEAoI", + "ZGV2X2FkZHIYByABKAkSDwoHZGV2X2V1aRgIIAEoCRIeChZwbGFpbnRleHRf", + "bWFjX2NvbW1hbmRzGAkgASgIQmUKEWlvLmNoaXJwc3RhY2suYXBpQg1GcmFt", + "ZUxvZ1Byb3RvUAFaLmdpdGh1Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0YWNr", + "L2FwaS9nby92NC9hcGmqAg5DaGlycHN0YWNrLkFwaWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UplinkFrameLog), global::Chirpstack.Api.UplinkFrameLog.Parser, new[]{ "PhyPayload", "TxInfo", "RxInfo", "MType", "DevAddr", "DevEui", "Time", "PlaintextMacCommands" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DownlinkFrameLog), global::Chirpstack.Api.DownlinkFrameLog.Parser, new[]{ "Time", "PhyPayload", "TxInfo", "DownlinkId", "GatewayId", "MType", "DevAddr", "DevEui", "PlaintextMacCommands" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class UplinkFrameLog : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkFrameLog()); + 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.Api.FrameLogReflection.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 UplinkFrameLog() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkFrameLog(UplinkFrameLog other) : this() { + phyPayload_ = other.phyPayload_; + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + rxInfo_ = other.rxInfo_.Clone(); + mType_ = other.mType_; + devAddr_ = other.devAddr_; + devEui_ = other.devEui_; + time_ = other.time_ != null ? other.time_.Clone() : null; + plaintextMacCommands_ = other.plaintextMacCommands_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkFrameLog Clone() { + return new UplinkFrameLog(this); + } + + /// Field number for the "phy_payload" field. + public const int PhyPayloadFieldNumber = 1; + private pb::ByteString phyPayload_ = pb::ByteString.Empty; + /// + /// PHYPayload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString PhyPayload { + get { return phyPayload_; } + set { + phyPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tx_info" field. + public const int TxInfoFieldNumber = 2; + private global::Chirpstack.Gateway.UplinkTxInfo txInfo_; + /// + /// TX meta-data. + /// + [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 "rx_info" field. + public const int RxInfoFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_rxInfo_codec + = pb::FieldCodec.ForMessage(26, global::Chirpstack.Gateway.UplinkRxInfo.Parser); + private readonly pbc::RepeatedField rxInfo_ = new pbc::RepeatedField(); + /// + /// RX meta-data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RxInfo { + get { return rxInfo_; } + } + + /// Field number for the "m_type" field. + public const int MTypeFieldNumber = 4; + private global::Chirpstack.Common.MType mType_ = global::Chirpstack.Common.MType.JoinRequest; + /// + /// Message type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.MType MType { + get { return mType_; } + set { + mType_ = value; + } + } + + /// Field number for the "dev_addr" field. + public const int DevAddrFieldNumber = 5; + private string devAddr_ = ""; + /// + /// Device address (optional). + /// + [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 "dev_eui" field. + public const int DevEuiFieldNumber = 6; + private string devEui_ = ""; + /// + /// Device EUI (optional). + /// + [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 "time" field. + public const int TimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp time_; + /// + /// Time. + /// + [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 "plaintext_mac_commands" field. + public const int PlaintextMacCommandsFieldNumber = 8; + private bool plaintextMacCommands_; + /// + /// Plaintext mac-commands. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PlaintextMacCommands { + get { return plaintextMacCommands_; } + set { + plaintextMacCommands_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UplinkFrameLog); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UplinkFrameLog other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PhyPayload != other.PhyPayload) return false; + if (!object.Equals(TxInfo, other.TxInfo)) return false; + if(!rxInfo_.Equals(other.rxInfo_)) return false; + if (MType != other.MType) return false; + if (DevAddr != other.DevAddr) return false; + if (DevEui != other.DevEui) return false; + if (!object.Equals(Time, other.Time)) return false; + if (PlaintextMacCommands != other.PlaintextMacCommands) 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 (PhyPayload.Length != 0) hash ^= PhyPayload.GetHashCode(); + if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); + hash ^= rxInfo_.GetHashCode(); + if (MType != global::Chirpstack.Common.MType.JoinRequest) hash ^= MType.GetHashCode(); + if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (PlaintextMacCommands != false) hash ^= PlaintextMacCommands.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 (PhyPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(PhyPayload); + } + if (txInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfo); + } + rxInfo_.WriteTo(output, _repeated_rxInfo_codec); + if (MType != global::Chirpstack.Common.MType.JoinRequest) { + output.WriteRawTag(32); + output.WriteEnum((int) MType); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DevAddr); + } + if (DevEui.Length != 0) { + output.WriteRawTag(50); + output.WriteString(DevEui); + } + if (time_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Time); + } + if (PlaintextMacCommands != false) { + output.WriteRawTag(64); + output.WriteBool(PlaintextMacCommands); + } + 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 (PhyPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(PhyPayload); + } + if (txInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfo); + } + rxInfo_.WriteTo(ref output, _repeated_rxInfo_codec); + if (MType != global::Chirpstack.Common.MType.JoinRequest) { + output.WriteRawTag(32); + output.WriteEnum((int) MType); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DevAddr); + } + if (DevEui.Length != 0) { + output.WriteRawTag(50); + output.WriteString(DevEui); + } + if (time_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Time); + } + if (PlaintextMacCommands != false) { + output.WriteRawTag(64); + output.WriteBool(PlaintextMacCommands); + } + 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 (PhyPayload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(PhyPayload); + } + if (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + size += rxInfo_.CalculateSize(_repeated_rxInfo_codec); + if (MType != global::Chirpstack.Common.MType.JoinRequest) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MType); + } + if (DevAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DevAddr); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (PlaintextMacCommands != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UplinkFrameLog other) { + if (other == null) { + return; + } + if (other.PhyPayload.Length != 0) { + PhyPayload = other.PhyPayload; + } + if (other.txInfo_ != null) { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); + } + TxInfo.MergeFrom(other.TxInfo); + } + rxInfo_.Add(other.rxInfo_); + if (other.MType != global::Chirpstack.Common.MType.JoinRequest) { + MType = other.MType; + } + if (other.DevAddr.Length != 0) { + DevAddr = other.DevAddr; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Time.MergeFrom(other.Time); + } + if (other.PlaintextMacCommands != false) { + PlaintextMacCommands = other.PlaintextMacCommands; + } + _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: { + PhyPayload = input.ReadBytes(); + break; + } + case 18: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 26: { + rxInfo_.AddEntriesFrom(input, _repeated_rxInfo_codec); + break; + } + case 32: { + MType = (global::Chirpstack.Common.MType) input.ReadEnum(); + break; + } + case 42: { + DevAddr = input.ReadString(); + break; + } + case 50: { + DevEui = input.ReadString(); + break; + } + case 58: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 64: { + PlaintextMacCommands = input.ReadBool(); + 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: { + PhyPayload = input.ReadBytes(); + break; + } + case 18: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 26: { + rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); + break; + } + case 32: { + MType = (global::Chirpstack.Common.MType) input.ReadEnum(); + break; + } + case 42: { + DevAddr = input.ReadString(); + break; + } + case 50: { + DevEui = input.ReadString(); + break; + } + case 58: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 64: { + PlaintextMacCommands = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DownlinkFrameLog : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkFrameLog()); + 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.Api.FrameLogReflection.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 DownlinkFrameLog() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkFrameLog(DownlinkFrameLog other) : this() { + time_ = other.time_ != null ? other.time_.Clone() : null; + phyPayload_ = other.phyPayload_; + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + downlinkId_ = other.downlinkId_; + gatewayId_ = other.gatewayId_; + mType_ = other.mType_; + devAddr_ = other.devAddr_; + devEui_ = other.devEui_; + plaintextMacCommands_ = other.plaintextMacCommands_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkFrameLog Clone() { + return new DownlinkFrameLog(this); + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp time_; + /// + /// Time. + /// + [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 "phy_payload" field. + public const int PhyPayloadFieldNumber = 2; + private pb::ByteString phyPayload_ = pb::ByteString.Empty; + /// + /// PHYPayload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString PhyPayload { + get { return phyPayload_; } + set { + phyPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tx_info" field. + public const int TxInfoFieldNumber = 3; + private global::Chirpstack.Gateway.DownlinkTxInfo txInfo_; + /// + /// TX meta-data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.DownlinkTxInfo TxInfo { + get { return txInfo_; } + set { + txInfo_ = value; + } + } + + /// Field number for the "downlink_id" field. + public const int DownlinkIdFieldNumber = 4; + 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 "gateway_id" field. + public const int GatewayIdFieldNumber = 5; + private string gatewayId_ = ""; + /// + /// Gateway ID (EUI64). + /// + [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 "m_type" field. + public const int MTypeFieldNumber = 6; + private global::Chirpstack.Common.MType mType_ = global::Chirpstack.Common.MType.JoinRequest; + /// + /// Message type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.MType MType { + get { return mType_; } + set { + mType_ = value; + } + } + + /// Field number for the "dev_addr" field. + public const int DevAddrFieldNumber = 7; + private string devAddr_ = ""; + /// + /// Device address (optional). + /// + [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 "dev_eui" field. + public const int DevEuiFieldNumber = 8; + private string devEui_ = ""; + /// + /// Device EUI (optional). + /// + [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 "plaintext_mac_commands" field. + public const int PlaintextMacCommandsFieldNumber = 9; + private bool plaintextMacCommands_; + /// + /// Plaintext mac-commands. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PlaintextMacCommands { + get { return plaintextMacCommands_; } + set { + plaintextMacCommands_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DownlinkFrameLog); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DownlinkFrameLog other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Time, other.Time)) return false; + if (PhyPayload != other.PhyPayload) return false; + if (!object.Equals(TxInfo, other.TxInfo)) return false; + if (DownlinkId != other.DownlinkId) return false; + if (GatewayId != other.GatewayId) return false; + if (MType != other.MType) return false; + if (DevAddr != other.DevAddr) return false; + if (DevEui != other.DevEui) return false; + if (PlaintextMacCommands != other.PlaintextMacCommands) 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 (PhyPayload.Length != 0) hash ^= PhyPayload.GetHashCode(); + if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); + if (DownlinkId != 0) hash ^= DownlinkId.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (MType != global::Chirpstack.Common.MType.JoinRequest) hash ^= MType.GetHashCode(); + if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (PlaintextMacCommands != false) hash ^= PlaintextMacCommands.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 (PhyPayload.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(PhyPayload); + } + if (txInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TxInfo); + } + if (DownlinkId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(DownlinkId); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(GatewayId); + } + if (MType != global::Chirpstack.Common.MType.JoinRequest) { + output.WriteRawTag(48); + output.WriteEnum((int) MType); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DevAddr); + } + if (DevEui.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DevEui); + } + if (PlaintextMacCommands != false) { + output.WriteRawTag(72); + output.WriteBool(PlaintextMacCommands); + } + 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 (PhyPayload.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(PhyPayload); + } + if (txInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TxInfo); + } + if (DownlinkId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(DownlinkId); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(GatewayId); + } + if (MType != global::Chirpstack.Common.MType.JoinRequest) { + output.WriteRawTag(48); + output.WriteEnum((int) MType); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DevAddr); + } + if (DevEui.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DevEui); + } + if (PlaintextMacCommands != false) { + output.WriteRawTag(72); + output.WriteBool(PlaintextMacCommands); + } + 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 (PhyPayload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(PhyPayload); + } + if (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + if (DownlinkId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DownlinkId); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (MType != global::Chirpstack.Common.MType.JoinRequest) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MType); + } + if (DevAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DevAddr); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); + } + if (PlaintextMacCommands != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DownlinkFrameLog 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.PhyPayload.Length != 0) { + PhyPayload = other.PhyPayload; + } + if (other.txInfo_ != null) { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); + } + TxInfo.MergeFrom(other.TxInfo); + } + if (other.DownlinkId != 0) { + DownlinkId = other.DownlinkId; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.MType != global::Chirpstack.Common.MType.JoinRequest) { + MType = other.MType; + } + if (other.DevAddr.Length != 0) { + DevAddr = other.DevAddr; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.PlaintextMacCommands != false) { + PlaintextMacCommands = other.PlaintextMacCommands; + } + _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: { + PhyPayload = input.ReadBytes(); + break; + } + case 26: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 32: { + DownlinkId = input.ReadUInt32(); + break; + } + case 42: { + GatewayId = input.ReadString(); + break; + } + case 48: { + MType = (global::Chirpstack.Common.MType) input.ReadEnum(); + break; + } + case 58: { + DevAddr = input.ReadString(); + break; + } + case 66: { + DevEui = input.ReadString(); + break; + } + case 72: { + PlaintextMacCommands = input.ReadBool(); + 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: { + PhyPayload = input.ReadBytes(); + break; + } + case 26: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 32: { + DownlinkId = input.ReadUInt32(); + break; + } + case 42: { + GatewayId = input.ReadString(); + break; + } + case 48: { + MType = (global::Chirpstack.Common.MType) input.ReadEnum(); + break; + } + case 58: { + DevAddr = input.ReadString(); + break; + } + case 66: { + DevEui = input.ReadString(); + break; + } + case 72: { + PlaintextMacCommands = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/Gateway.cs b/api/csharp/Chirpstack/api/Gateway.cs new file mode 100644 index 00000000..5353c800 --- /dev/null +++ b/api/csharp/Chirpstack/api/Gateway.cs @@ -0,0 +1,4227 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/gateway.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.Api { + + /// Holder for reflection information generated from api/gateway.proto + public static partial class GatewayReflection { + + #region Descriptor + /// File descriptor for api/gateway.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GatewayReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFhcGkvZ2F0ZXdheS5wcm90bxIDYXBpGhxnb29nbGUvYXBpL2Fubm90YXRp", + "b25zLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGhtn", + "b29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8aE2NvbW1vbi9jb21tb24ucHJv", + "dG8iwQIKB0dhdGV3YXkSEgoKZ2F0ZXdheV9pZBgBIAEoCRIMCgRuYW1lGAIg", + "ASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJEiIKCGxvY2F0aW9uGAQgASgLMhAu", + "Y29tbW9uLkxvY2F0aW9uEhEKCXRlbmFudF9pZBgFIAEoCRIkCgR0YWdzGAYg", + "AygLMhYuYXBpLkdhdGV3YXkuVGFnc0VudHJ5EiwKCG1ldGFkYXRhGAcgAygL", + "MhouYXBpLkdhdGV3YXkuTWV0YWRhdGFFbnRyeRIWCg5zdGF0c19pbnRlcnZh", + "bBgIIAEoDRorCglUYWdzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIg", + "ASgJOgI4ARovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1", + "ZRgCIAEoCToCOAEioAMKD0dhdGV3YXlMaXN0SXRlbRIRCgl0ZW5hbnRfaWQY", + "ASABKAkSEgoKZ2F0ZXdheV9pZBgCIAEoCRIMCgRuYW1lGAMgASgJEhMKC2Rl", + "c2NyaXB0aW9uGAQgASgJEiIKCGxvY2F0aW9uGAUgASgLMhAuY29tbW9uLkxv", + "Y2F0aW9uEjgKCnByb3BlcnRpZXMYBiADKAsyJC5hcGkuR2F0ZXdheUxpc3RJ", + "dGVtLlByb3BlcnRpZXNFbnRyeRIuCgpjcmVhdGVkX2F0GAcgASgLMhouZ29v", + "Z2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAggASgLMhou", + "Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIwCgxsYXN0X3NlZW5fYXQYCSAB", + "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiAKBXN0YXRlGAogASgO", + "MhEuYXBpLkdhdGV3YXlTdGF0ZRoxCg9Qcm9wZXJ0aWVzRW50cnkSCwoDa2V5", + "GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASI1ChRDcmVhdGVHYXRld2F5UmVx", + "dWVzdBIdCgdnYXRld2F5GAEgASgLMgwuYXBpLkdhdGV3YXkiJwoRR2V0R2F0", + "ZXdheVJlcXVlc3QSEgoKZ2F0ZXdheV9pZBgBIAEoCSLFAQoSR2V0R2F0ZXdh", + "eVJlc3BvbnNlEh0KB2dhdGV3YXkYASABKAsyDC5hcGkuR2F0ZXdheRIuCgpj", + "cmVhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIu", + "Cgp1cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", + "cBIwCgxsYXN0X3NlZW5fYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", + "ZXN0YW1wIjUKFFVwZGF0ZUdhdGV3YXlSZXF1ZXN0Eh0KB2dhdGV3YXkYASAB", + "KAsyDC5hcGkuR2F0ZXdheSIqChREZWxldGVHYXRld2F5UmVxdWVzdBISCgpn", + "YXRld2F5X2lkGAEgASgJInMKE0xpc3RHYXRld2F5c1JlcXVlc3QSDQoFbGlt", + "aXQYASABKA0SDgoGb2Zmc2V0GAIgASgNEg4KBnNlYXJjaBgDIAEoCRIRCgl0", + "ZW5hbnRfaWQYBCABKAkSGgoSbXVsdGljYXN0X2dyb3VwX2lkGAUgASgJIlEK", + "FExpc3RHYXRld2F5c1Jlc3BvbnNlEhMKC3RvdGFsX2NvdW50GAEgASgNEiQK", + "BnJlc3VsdBgCIAMoCzIULmFwaS5HYXRld2F5TGlzdEl0ZW0iPQonR2VuZXJh", + "dGVHYXRld2F5Q2xpZW50Q2VydGlmaWNhdGVSZXF1ZXN0EhIKCmdhdGV3YXlf", + "aWQYASABKAkijgEKKEdlbmVyYXRlR2F0ZXdheUNsaWVudENlcnRpZmljYXRl", + "UmVzcG9uc2USEAoIdGxzX2NlcnQYASABKAkSDwoHdGxzX2tleRgCIAEoCRIP", + "CgdjYV9jZXJ0GAMgASgJEi4KCmV4cGlyZXNfYXQYBCABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wIqwBChhHZXRHYXRld2F5TWV0cmljc1JlcXVl", + "c3QSEgoKZ2F0ZXdheV9pZBgBIAEoCRIpCgVzdGFydBgCIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXASJwoDZW5kGAMgASgLMhouZ29vZ2xlLnBy", + "b3RvYnVmLlRpbWVzdGFtcBIoCgthZ2dyZWdhdGlvbhgEIAEoDjITLmNvbW1v", + "bi5BZ2dyZWdhdGlvbiLCAgoZR2V0R2F0ZXdheU1ldHJpY3NSZXNwb25zZRIi", + "CgpyeF9wYWNrZXRzGAEgASgLMg4uY29tbW9uLk1ldHJpYxIiCgp0eF9wYWNr", + "ZXRzGAIgASgLMg4uY29tbW9uLk1ldHJpYxIrChN0eF9wYWNrZXRzX3Blcl9m", + "cmVxGAMgASgLMg4uY29tbW9uLk1ldHJpYxIrChNyeF9wYWNrZXRzX3Blcl9m", + "cmVxGAQgASgLMg4uY29tbW9uLk1ldHJpYxIpChF0eF9wYWNrZXRzX3Blcl9k", + "chgFIAEoCzIOLmNvbW1vbi5NZXRyaWMSKQoRcnhfcGFja2V0c19wZXJfZHIY", + "BiABKAsyDi5jb21tb24uTWV0cmljEi0KFXR4X3BhY2tldHNfcGVyX3N0YXR1", + "cxgHIAEoCzIOLmNvbW1vbi5NZXRyaWMqNwoMR2F0ZXdheVN0YXRlEg4KCk5F", + "VkVSX1NFRU4QABIKCgZPTkxJTkUQARILCgdPRkZMSU5FEAIykQYKDkdhdGV3", + "YXlTZXJ2aWNlElUKBkNyZWF0ZRIZLmFwaS5DcmVhdGVHYXRld2F5UmVxdWVz", + "dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIYgtPkkwISIg0vYXBpL2dhdGV3", + "YXlzOgEqEloKA0dldBIWLmFwaS5HZXRHYXRld2F5UmVxdWVzdBoXLmFwaS5H", + "ZXRHYXRld2F5UmVzcG9uc2UiIoLT5JMCHBIaL2FwaS9nYXRld2F5cy97Z2F0", + "ZXdheV9pZH0SagoGVXBkYXRlEhkuYXBpLlVwZGF0ZUdhdGV3YXlSZXF1ZXN0", + "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Ii2C0+STAicaIi9hcGkvZ2F0ZXdh", + "eXMve2dhdGV3YXkuZ2F0ZXdheV9pZH06ASoSXwoGRGVsZXRlEhkuYXBpLkRl", + "bGV0ZUdhdGV3YXlSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IiKC", + "0+STAhwqGi9hcGkvZ2F0ZXdheXMve2dhdGV3YXlfaWR9ElIKBExpc3QSGC5h", + "cGkuTGlzdEdhdGV3YXlzUmVxdWVzdBoZLmFwaS5MaXN0R2F0ZXdheXNSZXNw", + "b25zZSIVgtPkkwIPEg0vYXBpL2dhdGV3YXlzErEBChlHZW5lcmF0ZUNsaWVu", + "dENlcnRpZmljYXRlEiwuYXBpLkdlbmVyYXRlR2F0ZXdheUNsaWVudENlcnRp", + "ZmljYXRlUmVxdWVzdBotLmFwaS5HZW5lcmF0ZUdhdGV3YXlDbGllbnRDZXJ0", + "aWZpY2F0ZVJlc3BvbnNlIjeC0+STAjEiLy9hcGkvZ2F0ZXdheXMve2dhdGV3", + "YXlfaWR9L2dlbmVyYXRlLWNlcnRpZmljYXRlEncKCkdldE1ldHJpY3MSHS5h", + "cGkuR2V0R2F0ZXdheU1ldHJpY3NSZXF1ZXN0Gh4uYXBpLkdldEdhdGV3YXlN", + "ZXRyaWNzUmVzcG9uc2UiKoLT5JMCJBIiL2FwaS9nYXRld2F5cy97Z2F0ZXdh", + "eV9pZH0vbWV0cmljc0JkChFpby5jaGlycHN0YWNrLmFwaUIMR2F0ZXdheVBy", + "b3RvUAFaLmdpdGh1Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0YWNrL2FwaS9n", + "by92NC9hcGmqAg5DaGlycHN0YWNrLkFwaWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Api.GatewayState), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.Gateway), global::Chirpstack.Api.Gateway.Parser, new[]{ "GatewayId", "Name", "Description", "Location", "TenantId", "Tags", "Metadata", "StatsInterval" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GatewayListItem), global::Chirpstack.Api.GatewayListItem.Parser, new[]{ "TenantId", "GatewayId", "Name", "Description", "Location", "Properties", "CreatedAt", "UpdatedAt", "LastSeenAt", "State" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateGatewayRequest), global::Chirpstack.Api.CreateGatewayRequest.Parser, new[]{ "Gateway" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGatewayRequest), global::Chirpstack.Api.GetGatewayRequest.Parser, new[]{ "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGatewayResponse), global::Chirpstack.Api.GetGatewayResponse.Parser, new[]{ "Gateway", "CreatedAt", "UpdatedAt", "LastSeenAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateGatewayRequest), global::Chirpstack.Api.UpdateGatewayRequest.Parser, new[]{ "Gateway" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteGatewayRequest), global::Chirpstack.Api.DeleteGatewayRequest.Parser, new[]{ "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListGatewaysRequest), global::Chirpstack.Api.ListGatewaysRequest.Parser, new[]{ "Limit", "Offset", "Search", "TenantId", "MulticastGroupId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListGatewaysResponse), global::Chirpstack.Api.ListGatewaysResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GenerateGatewayClientCertificateRequest), global::Chirpstack.Api.GenerateGatewayClientCertificateRequest.Parser, new[]{ "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GenerateGatewayClientCertificateResponse), global::Chirpstack.Api.GenerateGatewayClientCertificateResponse.Parser, new[]{ "TlsCert", "TlsKey", "CaCert", "ExpiresAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGatewayMetricsRequest), global::Chirpstack.Api.GetGatewayMetricsRequest.Parser, new[]{ "GatewayId", "Start", "End", "Aggregation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGatewayMetricsResponse), global::Chirpstack.Api.GetGatewayMetricsResponse.Parser, new[]{ "RxPackets", "TxPackets", "TxPacketsPerFreq", "RxPacketsPerFreq", "TxPacketsPerDr", "RxPacketsPerDr", "TxPacketsPerStatus" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum GatewayState { + /// + /// The gateway has never sent any stats. + /// + [pbr::OriginalName("NEVER_SEEN")] NeverSeen = 0, + /// + /// Online. + /// + [pbr::OriginalName("ONLINE")] Online = 1, + /// + /// Offline. + /// + [pbr::OriginalName("OFFLINE")] Offline = 2, + } + + #endregion + + #region Messages + public sealed partial class Gateway : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Gateway()); + 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.Api.GatewayReflection.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 Gateway() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Gateway(Gateway other) : this() { + gatewayId_ = other.gatewayId_; + name_ = other.name_; + description_ = other.description_; + location_ = other.location_ != null ? other.location_.Clone() : null; + tenantId_ = other.tenantId_; + tags_ = other.tags_.Clone(); + metadata_ = other.metadata_.Clone(); + statsInterval_ = other.statsInterval_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Gateway Clone() { + return new Gateway(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + private string gatewayId_ = ""; + /// + /// Gateway ID (EUI64). + /// + [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 "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// Description. + /// + [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 "location" field. + public const int LocationFieldNumber = 4; + private global::Chirpstack.Common.Location location_; + /// + /// Gateway location. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Location Location { + get { return location_; } + set { + location_ = value; + } + } + + /// Field number for the "tenant_id" field. + public const int TenantIdFieldNumber = 5; + 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 "tags" field. + public const int TagsFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_tags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 50); + private readonly pbc::MapField tags_ = new pbc::MapField(); + /// + /// Tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Tags { + get { return tags_; } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 7; + private static readonly pbc::MapField.Codec _map_metadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 58); + private readonly pbc::MapField metadata_ = new pbc::MapField(); + /// + /// Metadata (provided by the gateway). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Metadata { + get { return metadata_; } + } + + /// Field number for the "stats_interval" field. + public const int StatsIntervalFieldNumber = 8; + private uint statsInterval_; + /// + /// Stats interval (seconds). + /// This defines the expected interval in which the gateway sends its + /// statistics. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StatsInterval { + get { return statsInterval_; } + set { + statsInterval_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Gateway); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Gateway other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (!object.Equals(Location, other.Location)) return false; + if (TenantId != other.TenantId) return false; + if (!Tags.Equals(other.Tags)) return false; + if (!Metadata.Equals(other.Metadata)) return false; + if (StatsInterval != other.StatsInterval) 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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (location_ != null) hash ^= Location.GetHashCode(); + if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); + hash ^= Tags.GetHashCode(); + hash ^= Metadata.GetHashCode(); + if (StatsInterval != 0) hash ^= StatsInterval.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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (location_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Location); + } + if (TenantId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(TenantId); + } + tags_.WriteTo(output, _map_tags_codec); + metadata_.WriteTo(output, _map_metadata_codec); + if (StatsInterval != 0) { + output.WriteRawTag(64); + output.WriteUInt32(StatsInterval); + } + 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (location_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Location); + } + if (TenantId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(TenantId); + } + tags_.WriteTo(ref output, _map_tags_codec); + metadata_.WriteTo(ref output, _map_metadata_codec); + if (StatsInterval != 0) { + output.WriteRawTag(64); + output.WriteUInt32(StatsInterval); + } + 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 (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + if (TenantId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); + } + size += tags_.CalculateSize(_map_tags_codec); + size += metadata_.CalculateSize(_map_metadata_codec); + if (StatsInterval != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StatsInterval); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Gateway other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.location_ != null) { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + Location.MergeFrom(other.Location); + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + tags_.Add(other.tags_); + metadata_.Add(other.metadata_); + if (other.StatsInterval != 0) { + StatsInterval = other.StatsInterval; + } + _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: { + GatewayId = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 42: { + TenantId = input.ReadString(); + break; + } + case 50: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 58: { + metadata_.AddEntriesFrom(input, _map_metadata_codec); + break; + } + case 64: { + StatsInterval = 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: { + GatewayId = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 42: { + TenantId = input.ReadString(); + break; + } + case 50: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 58: { + metadata_.AddEntriesFrom(ref input, _map_metadata_codec); + break; + } + case 64: { + StatsInterval = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GatewayListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayListItem()); + 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.Api.GatewayReflection.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 GatewayListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayListItem(GatewayListItem other) : this() { + tenantId_ = other.tenantId_; + gatewayId_ = other.gatewayId_; + name_ = other.name_; + description_ = other.description_; + location_ = other.location_ != null ? other.location_.Clone() : null; + properties_ = other.properties_.Clone(); + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + lastSeenAt_ = other.lastSeenAt_ != null ? other.lastSeenAt_.Clone() : null; + state_ = other.state_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayListItem Clone() { + return new GatewayListItem(this); + } + + /// Field number for the "tenant_id" field. + public const int TenantIdFieldNumber = 1; + private string tenantId_ = ""; + /// + /// Tenant ID. + /// + [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 "gateway_id" field. + public const int GatewayIdFieldNumber = 2; + private string gatewayId_ = ""; + /// + /// Gateway ID (EUI64). + /// + [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 "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 4; + private string description_ = ""; + /// + /// Description. + /// + [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 "location" field. + public const int LocationFieldNumber = 5; + 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; + } + } + + /// Field number for the "properties" field. + public const int PropertiesFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_properties_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 50); + private readonly pbc::MapField properties_ = new pbc::MapField(); + /// + /// Gateway properties. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Properties { + get { return properties_; } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "last_seen_at" field. + public const int LastSeenAtFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastSeenAt_; + /// + /// Last seen at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastSeenAt { + get { return lastSeenAt_; } + set { + lastSeenAt_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 10; + private global::Chirpstack.Api.GatewayState state_ = global::Chirpstack.Api.GatewayState.NeverSeen; + /// + /// Gateway state. + /// Please note that the state of the gateway is driven by the stats + /// packages that are sent by the gateway. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.GatewayState State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GatewayListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TenantId != other.TenantId) return false; + if (GatewayId != other.GatewayId) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (!object.Equals(Location, other.Location)) return false; + if (!Properties.Equals(other.Properties)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (!object.Equals(LastSeenAt, other.LastSeenAt)) return false; + if (State != other.State) 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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (location_ != null) hash ^= Location.GetHashCode(); + hash ^= Properties.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (lastSeenAt_ != null) hash ^= LastSeenAt.GetHashCode(); + if (State != global::Chirpstack.Api.GatewayState.NeverSeen) hash ^= State.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 (GatewayId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GatewayId); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (location_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Location); + } + properties_.WriteTo(output, _map_properties_codec); + if (createdAt_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(66); + output.WriteMessage(UpdatedAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(LastSeenAt); + } + if (State != global::Chirpstack.Api.GatewayState.NeverSeen) { + output.WriteRawTag(80); + output.WriteEnum((int) State); + } + 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 (GatewayId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GatewayId); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (location_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Location); + } + properties_.WriteTo(ref output, _map_properties_codec); + if (createdAt_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(66); + output.WriteMessage(UpdatedAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(LastSeenAt); + } + if (State != global::Chirpstack.Api.GatewayState.NeverSeen) { + output.WriteRawTag(80); + output.WriteEnum((int) State); + } + 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 (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + size += properties_.CalculateSize(_map_properties_codec); + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (lastSeenAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSeenAt); + } + if (State != global::Chirpstack.Api.GatewayState.NeverSeen) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GatewayListItem other) { + if (other == null) { + return; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.location_ != null) { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + Location.MergeFrom(other.Location); + } + properties_.Add(other.properties_); + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + if (other.lastSeenAt_ != null) { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastSeenAt.MergeFrom(other.LastSeenAt); + } + if (other.State != global::Chirpstack.Api.GatewayState.NeverSeen) { + State = other.State; + } + _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: { + GatewayId = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 50: { + properties_.AddEntriesFrom(input, _map_properties_codec); + break; + } + case 58: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 66: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 74: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + case 80: { + State = (global::Chirpstack.Api.GatewayState) 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: { + GatewayId = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 50: { + properties_.AddEntriesFrom(ref input, _map_properties_codec); + break; + } + case 58: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 66: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 74: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + case 80: { + State = (global::Chirpstack.Api.GatewayState) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateGatewayRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateGatewayRequest()); + 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.Api.GatewayReflection.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 CreateGatewayRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateGatewayRequest(CreateGatewayRequest other) : this() { + gateway_ = other.gateway_ != null ? other.gateway_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateGatewayRequest Clone() { + return new CreateGatewayRequest(this); + } + + /// Field number for the "gateway" field. + public const int GatewayFieldNumber = 1; + private global::Chirpstack.Api.Gateway gateway_; + /// + /// Gateway object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Gateway Gateway { + get { return gateway_; } + set { + gateway_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateGatewayRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateGatewayRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Gateway, other.Gateway)) 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 (gateway_ != null) hash ^= Gateway.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 (gateway_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Gateway); + } + 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 (gateway_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Gateway); + } + 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 (gateway_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gateway); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateGatewayRequest other) { + if (other == null) { + return; + } + if (other.gateway_ != null) { + if (gateway_ == null) { + Gateway = new global::Chirpstack.Api.Gateway(); + } + Gateway.MergeFrom(other.Gateway); + } + _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 (gateway_ == null) { + Gateway = new global::Chirpstack.Api.Gateway(); + } + input.ReadMessage(Gateway); + 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 (gateway_ == null) { + Gateway = new global::Chirpstack.Api.Gateway(); + } + input.ReadMessage(Gateway); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGatewayRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayRequest()); + 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.Api.GatewayReflection.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 GetGatewayRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayRequest(GetGatewayRequest other) : this() { + gatewayId_ = other.gatewayId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayRequest Clone() { + return new GetGatewayRequest(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + private string gatewayId_ = ""; + /// + /// Gateway ID (EUI64). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GatewayId { + get { return gatewayId_; } + set { + gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGatewayRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewayRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) 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 (GatewayId.Length != 0) hash ^= GatewayId.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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + 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 (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGatewayRequest other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + _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: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGatewayResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayResponse()); + 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.Api.GatewayReflection.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 GetGatewayResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayResponse(GetGatewayResponse other) : this() { + gateway_ = other.gateway_ != null ? other.gateway_.Clone() : null; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + lastSeenAt_ = other.lastSeenAt_ != null ? other.lastSeenAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayResponse Clone() { + return new GetGatewayResponse(this); + } + + /// Field number for the "gateway" field. + public const int GatewayFieldNumber = 1; + private global::Chirpstack.Api.Gateway gateway_; + /// + /// Gateway object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Gateway Gateway { + get { return gateway_; } + set { + gateway_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "last_seen_at" field. + public const int LastSeenAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastSeenAt_; + /// + /// Last seen at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastSeenAt { + get { return lastSeenAt_; } + set { + lastSeenAt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGatewayResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewayResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Gateway, other.Gateway)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (!object.Equals(LastSeenAt, other.LastSeenAt)) 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 (gateway_ != null) hash ^= Gateway.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (lastSeenAt_ != null) hash ^= LastSeenAt.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 (gateway_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Gateway); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(LastSeenAt); + } + 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 (gateway_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Gateway); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(LastSeenAt); + } + 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 (gateway_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gateway); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (lastSeenAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSeenAt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGatewayResponse other) { + if (other == null) { + return; + } + if (other.gateway_ != null) { + if (gateway_ == null) { + Gateway = new global::Chirpstack.Api.Gateway(); + } + Gateway.MergeFrom(other.Gateway); + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + if (other.lastSeenAt_ != null) { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastSeenAt.MergeFrom(other.LastSeenAt); + } + _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 (gateway_ == null) { + Gateway = new global::Chirpstack.Api.Gateway(); + } + input.ReadMessage(Gateway); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + 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 (gateway_ == null) { + Gateway = new global::Chirpstack.Api.Gateway(); + } + input.ReadMessage(Gateway); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateGatewayRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateGatewayRequest()); + 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.Api.GatewayReflection.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 UpdateGatewayRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateGatewayRequest(UpdateGatewayRequest other) : this() { + gateway_ = other.gateway_ != null ? other.gateway_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateGatewayRequest Clone() { + return new UpdateGatewayRequest(this); + } + + /// Field number for the "gateway" field. + public const int GatewayFieldNumber = 1; + private global::Chirpstack.Api.Gateway gateway_; + /// + /// Gateway object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Gateway Gateway { + get { return gateway_; } + set { + gateway_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateGatewayRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateGatewayRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Gateway, other.Gateway)) 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 (gateway_ != null) hash ^= Gateway.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 (gateway_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Gateway); + } + 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 (gateway_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Gateway); + } + 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 (gateway_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gateway); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateGatewayRequest other) { + if (other == null) { + return; + } + if (other.gateway_ != null) { + if (gateway_ == null) { + Gateway = new global::Chirpstack.Api.Gateway(); + } + Gateway.MergeFrom(other.Gateway); + } + _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 (gateway_ == null) { + Gateway = new global::Chirpstack.Api.Gateway(); + } + input.ReadMessage(Gateway); + 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 (gateway_ == null) { + Gateway = new global::Chirpstack.Api.Gateway(); + } + input.ReadMessage(Gateway); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteGatewayRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteGatewayRequest()); + 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.Api.GatewayReflection.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 DeleteGatewayRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteGatewayRequest(DeleteGatewayRequest other) : this() { + gatewayId_ = other.gatewayId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteGatewayRequest Clone() { + return new DeleteGatewayRequest(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + private string gatewayId_ = ""; + /// + /// Gateway ID (EUI64). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GatewayId { + get { return gatewayId_; } + set { + gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteGatewayRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteGatewayRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) 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 (GatewayId.Length != 0) hash ^= GatewayId.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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + 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 (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteGatewayRequest other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + _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: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListGatewaysRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListGatewaysRequest()); + 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.Api.GatewayReflection.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 ListGatewaysRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListGatewaysRequest(ListGatewaysRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + search_ = other.search_; + tenantId_ = other.tenantId_; + multicastGroupId_ = other.multicastGroupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListGatewaysRequest Clone() { + return new ListGatewaysRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private uint limit_; + /// + /// Max number of gateways to return in the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 2; + private uint offset_; + /// + /// Offset in the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + /// Field number for the "search" field. + public const int SearchFieldNumber = 3; + private string search_ = ""; + /// + /// If set, the given string will be used to search on name (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Search { + get { return search_; } + set { + search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tenant_id" field. + public const int TenantIdFieldNumber = 4; + private string tenantId_ = ""; + /// + /// Tenant ID (UUID) to filter gateways on. + /// To list all gateways as a global admin user, this field can be left blank. + /// + [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 "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 5; + private string multicastGroupId_ = ""; + /// + /// Multicast-group ID (UUID) to filter gateways on. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MulticastGroupId { + get { return multicastGroupId_; } + set { + multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListGatewaysRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListGatewaysRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Limit != other.Limit) return false; + if (Offset != other.Offset) return false; + if (Search != other.Search) return false; + if (TenantId != other.TenantId) return false; + if (MulticastGroupId != other.MulticastGroupId) 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 (Limit != 0) hash ^= Limit.GetHashCode(); + if (Offset != 0) hash ^= Offset.GetHashCode(); + if (Search.Length != 0) hash ^= Search.GetHashCode(); + if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); + if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (TenantId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantId); + } + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(MulticastGroupId); + } + 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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (TenantId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantId); + } + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(MulticastGroupId); + } + 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 (Limit != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); + } + if (Offset != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); + } + if (Search.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); + } + if (TenantId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); + } + if (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListGatewaysRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0) { + Limit = other.Limit; + } + if (other.Offset != 0) { + Offset = other.Offset; + } + if (other.Search.Length != 0) { + Search = other.Search; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + if (other.MulticastGroupId.Length != 0) { + MulticastGroupId = other.MulticastGroupId; + } + _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: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + case 34: { + TenantId = input.ReadString(); + break; + } + case 42: { + MulticastGroupId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + case 34: { + TenantId = input.ReadString(); + break; + } + case 42: { + MulticastGroupId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListGatewaysResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListGatewaysResponse()); + 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.Api.GatewayReflection.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 ListGatewaysResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListGatewaysResponse(ListGatewaysResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListGatewaysResponse Clone() { + return new ListGatewaysResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of gateways. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.GatewayListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListGatewaysResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListGatewaysResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListGatewaysResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GenerateGatewayClientCertificateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateGatewayClientCertificateRequest()); + 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.Api.GatewayReflection.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 GenerateGatewayClientCertificateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateGatewayClientCertificateRequest(GenerateGatewayClientCertificateRequest other) : this() { + gatewayId_ = other.gatewayId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateGatewayClientCertificateRequest Clone() { + return new GenerateGatewayClientCertificateRequest(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + private string gatewayId_ = ""; + /// + /// Gateway ID (EUI64). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GatewayId { + get { return gatewayId_; } + set { + gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GenerateGatewayClientCertificateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GenerateGatewayClientCertificateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) 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 (GatewayId.Length != 0) hash ^= GatewayId.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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + 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 (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GenerateGatewayClientCertificateRequest other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + _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: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GenerateGatewayClientCertificateResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateGatewayClientCertificateResponse()); + 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.Api.GatewayReflection.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 GenerateGatewayClientCertificateResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateGatewayClientCertificateResponse(GenerateGatewayClientCertificateResponse other) : this() { + tlsCert_ = other.tlsCert_; + tlsKey_ = other.tlsKey_; + caCert_ = other.caCert_; + expiresAt_ = other.expiresAt_ != null ? other.expiresAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateGatewayClientCertificateResponse Clone() { + return new GenerateGatewayClientCertificateResponse(this); + } + + /// Field number for the "tls_cert" field. + public const int TlsCertFieldNumber = 1; + private string tlsCert_ = ""; + /// + /// TLS certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TlsCert { + get { return tlsCert_; } + set { + tlsCert_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tls_key" field. + public const int TlsKeyFieldNumber = 2; + private string tlsKey_ = ""; + /// + /// TLS key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TlsKey { + get { return tlsKey_; } + set { + tlsKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ca_cert" field. + public const int CaCertFieldNumber = 3; + private string caCert_ = ""; + /// + /// CA certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CaCert { + get { return caCert_; } + set { + caCert_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "expires_at" field. + public const int ExpiresAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp expiresAt_; + /// + /// Expires at defines the expiration date of the certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiresAt { + get { return expiresAt_; } + set { + expiresAt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GenerateGatewayClientCertificateResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GenerateGatewayClientCertificateResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TlsCert != other.TlsCert) return false; + if (TlsKey != other.TlsKey) return false; + if (CaCert != other.CaCert) return false; + if (!object.Equals(ExpiresAt, other.ExpiresAt)) 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 (TlsCert.Length != 0) hash ^= TlsCert.GetHashCode(); + if (TlsKey.Length != 0) hash ^= TlsKey.GetHashCode(); + if (CaCert.Length != 0) hash ^= CaCert.GetHashCode(); + if (expiresAt_ != null) hash ^= ExpiresAt.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 (TlsCert.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TlsCert); + } + if (TlsKey.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TlsKey); + } + if (CaCert.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CaCert); + } + if (expiresAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExpiresAt); + } + 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 (TlsCert.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TlsCert); + } + if (TlsKey.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TlsKey); + } + if (CaCert.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CaCert); + } + if (expiresAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExpiresAt); + } + 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 (TlsCert.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsCert); + } + if (TlsKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsKey); + } + if (CaCert.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CaCert); + } + if (expiresAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiresAt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GenerateGatewayClientCertificateResponse other) { + if (other == null) { + return; + } + if (other.TlsCert.Length != 0) { + TlsCert = other.TlsCert; + } + if (other.TlsKey.Length != 0) { + TlsKey = other.TlsKey; + } + if (other.CaCert.Length != 0) { + CaCert = other.CaCert; + } + if (other.expiresAt_ != null) { + if (expiresAt_ == null) { + ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpiresAt.MergeFrom(other.ExpiresAt); + } + _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: { + TlsCert = input.ReadString(); + break; + } + case 18: { + TlsKey = input.ReadString(); + break; + } + case 26: { + CaCert = input.ReadString(); + break; + } + case 34: { + if (expiresAt_ == null) { + ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiresAt); + 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: { + TlsCert = input.ReadString(); + break; + } + case 18: { + TlsKey = input.ReadString(); + break; + } + case 26: { + CaCert = input.ReadString(); + break; + } + case 34: { + if (expiresAt_ == null) { + ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiresAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGatewayMetricsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayMetricsRequest()); + 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.Api.GatewayReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayMetricsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayMetricsRequest(GetGatewayMetricsRequest other) : this() { + gatewayId_ = other.gatewayId_; + start_ = other.start_ != null ? other.start_.Clone() : null; + end_ = other.end_ != null ? other.end_.Clone() : null; + aggregation_ = other.aggregation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayMetricsRequest Clone() { + return new GetGatewayMetricsRequest(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + private string gatewayId_ = ""; + /// + /// Gateway ID (EUI64). + /// + [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 "start" field. + public const int StartFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp start_; + /// + /// Interval start timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp Start { + get { return start_; } + set { + start_ = value; + } + } + + /// Field number for the "end" field. + public const int EndFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp end_; + /// + /// Interval end timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp End { + get { return end_; } + set { + end_ = value; + } + } + + /// Field number for the "aggregation" field. + public const int AggregationFieldNumber = 4; + private global::Chirpstack.Common.Aggregation aggregation_ = global::Chirpstack.Common.Aggregation.Hour; + /// + /// Aggregation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Aggregation Aggregation { + get { return aggregation_; } + set { + aggregation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGatewayMetricsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewayMetricsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) return false; + if (!object.Equals(Start, other.Start)) return false; + if (!object.Equals(End, other.End)) return false; + if (Aggregation != other.Aggregation) 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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (start_ != null) hash ^= Start.GetHashCode(); + if (end_ != null) hash ^= End.GetHashCode(); + if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) hash ^= Aggregation.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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + if (start_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Start); + } + if (end_ != null) { + output.WriteRawTag(26); + output.WriteMessage(End); + } + if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { + output.WriteRawTag(32); + output.WriteEnum((int) Aggregation); + } + 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + if (start_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Start); + } + if (end_ != null) { + output.WriteRawTag(26); + output.WriteMessage(End); + } + if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { + output.WriteRawTag(32); + output.WriteEnum((int) Aggregation); + } + 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 (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (start_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start); + } + if (end_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(End); + } + if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Aggregation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGatewayMetricsRequest other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.start_ != null) { + if (start_ == null) { + Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Start.MergeFrom(other.Start); + } + if (other.end_ != null) { + if (end_ == null) { + End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + End.MergeFrom(other.End); + } + if (other.Aggregation != global::Chirpstack.Common.Aggregation.Hour) { + Aggregation = other.Aggregation; + } + _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: { + GatewayId = input.ReadString(); + break; + } + case 18: { + if (start_ == null) { + Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Start); + break; + } + case 26: { + if (end_ == null) { + End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(End); + break; + } + case 32: { + Aggregation = (global::Chirpstack.Common.Aggregation) 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: { + GatewayId = input.ReadString(); + break; + } + case 18: { + if (start_ == null) { + Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Start); + break; + } + case 26: { + if (end_ == null) { + End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(End); + break; + } + case 32: { + Aggregation = (global::Chirpstack.Common.Aggregation) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGatewayMetricsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayMetricsResponse()); + 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.Api.GatewayReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayMetricsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayMetricsResponse(GetGatewayMetricsResponse other) : this() { + rxPackets_ = other.rxPackets_ != null ? other.rxPackets_.Clone() : null; + txPackets_ = other.txPackets_ != null ? other.txPackets_.Clone() : null; + txPacketsPerFreq_ = other.txPacketsPerFreq_ != null ? other.txPacketsPerFreq_.Clone() : null; + rxPacketsPerFreq_ = other.rxPacketsPerFreq_ != null ? other.rxPacketsPerFreq_.Clone() : null; + txPacketsPerDr_ = other.txPacketsPerDr_ != null ? other.txPacketsPerDr_.Clone() : null; + rxPacketsPerDr_ = other.rxPacketsPerDr_ != null ? other.rxPacketsPerDr_.Clone() : null; + txPacketsPerStatus_ = other.txPacketsPerStatus_ != null ? other.txPacketsPerStatus_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayMetricsResponse Clone() { + return new GetGatewayMetricsResponse(this); + } + + /// Field number for the "rx_packets" field. + public const int RxPacketsFieldNumber = 1; + private global::Chirpstack.Common.Metric rxPackets_; + /// + /// RX packets. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric RxPackets { + get { return rxPackets_; } + set { + rxPackets_ = value; + } + } + + /// Field number for the "tx_packets" field. + public const int TxPacketsFieldNumber = 2; + private global::Chirpstack.Common.Metric txPackets_; + /// + /// TX packets. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric TxPackets { + get { return txPackets_; } + set { + txPackets_ = value; + } + } + + /// Field number for the "tx_packets_per_freq" field. + public const int TxPacketsPerFreqFieldNumber = 3; + private global::Chirpstack.Common.Metric txPacketsPerFreq_; + /// + /// TX packets / frequency. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric TxPacketsPerFreq { + get { return txPacketsPerFreq_; } + set { + txPacketsPerFreq_ = value; + } + } + + /// Field number for the "rx_packets_per_freq" field. + public const int RxPacketsPerFreqFieldNumber = 4; + private global::Chirpstack.Common.Metric rxPacketsPerFreq_; + /// + /// RX packets / frequency. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric RxPacketsPerFreq { + get { return rxPacketsPerFreq_; } + set { + rxPacketsPerFreq_ = value; + } + } + + /// Field number for the "tx_packets_per_dr" field. + public const int TxPacketsPerDrFieldNumber = 5; + private global::Chirpstack.Common.Metric txPacketsPerDr_; + /// + /// TX packets / DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric TxPacketsPerDr { + get { return txPacketsPerDr_; } + set { + txPacketsPerDr_ = value; + } + } + + /// Field number for the "rx_packets_per_dr" field. + public const int RxPacketsPerDrFieldNumber = 6; + private global::Chirpstack.Common.Metric rxPacketsPerDr_; + /// + /// RX packets / DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric RxPacketsPerDr { + get { return rxPacketsPerDr_; } + set { + rxPacketsPerDr_ = value; + } + } + + /// Field number for the "tx_packets_per_status" field. + public const int TxPacketsPerStatusFieldNumber = 7; + private global::Chirpstack.Common.Metric txPacketsPerStatus_; + /// + /// TX packets per status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Metric TxPacketsPerStatus { + get { return txPacketsPerStatus_; } + set { + txPacketsPerStatus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGatewayMetricsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewayMetricsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RxPackets, other.RxPackets)) return false; + if (!object.Equals(TxPackets, other.TxPackets)) return false; + if (!object.Equals(TxPacketsPerFreq, other.TxPacketsPerFreq)) return false; + if (!object.Equals(RxPacketsPerFreq, other.RxPacketsPerFreq)) return false; + if (!object.Equals(TxPacketsPerDr, other.TxPacketsPerDr)) return false; + if (!object.Equals(RxPacketsPerDr, other.RxPacketsPerDr)) return false; + if (!object.Equals(TxPacketsPerStatus, other.TxPacketsPerStatus)) 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 (rxPackets_ != null) hash ^= RxPackets.GetHashCode(); + if (txPackets_ != null) hash ^= TxPackets.GetHashCode(); + if (txPacketsPerFreq_ != null) hash ^= TxPacketsPerFreq.GetHashCode(); + if (rxPacketsPerFreq_ != null) hash ^= RxPacketsPerFreq.GetHashCode(); + if (txPacketsPerDr_ != null) hash ^= TxPacketsPerDr.GetHashCode(); + if (rxPacketsPerDr_ != null) hash ^= RxPacketsPerDr.GetHashCode(); + if (txPacketsPerStatus_ != null) hash ^= TxPacketsPerStatus.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 (rxPackets_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RxPackets); + } + if (txPackets_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxPackets); + } + if (txPacketsPerFreq_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TxPacketsPerFreq); + } + if (rxPacketsPerFreq_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RxPacketsPerFreq); + } + if (txPacketsPerDr_ != null) { + output.WriteRawTag(42); + output.WriteMessage(TxPacketsPerDr); + } + if (rxPacketsPerDr_ != null) { + output.WriteRawTag(50); + output.WriteMessage(RxPacketsPerDr); + } + if (txPacketsPerStatus_ != null) { + output.WriteRawTag(58); + output.WriteMessage(TxPacketsPerStatus); + } + 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 (rxPackets_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RxPackets); + } + if (txPackets_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxPackets); + } + if (txPacketsPerFreq_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TxPacketsPerFreq); + } + if (rxPacketsPerFreq_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RxPacketsPerFreq); + } + if (txPacketsPerDr_ != null) { + output.WriteRawTag(42); + output.WriteMessage(TxPacketsPerDr); + } + if (rxPacketsPerDr_ != null) { + output.WriteRawTag(50); + output.WriteMessage(RxPacketsPerDr); + } + if (txPacketsPerStatus_ != null) { + output.WriteRawTag(58); + output.WriteMessage(TxPacketsPerStatus); + } + 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 (rxPackets_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxPackets); + } + if (txPackets_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxPackets); + } + if (txPacketsPerFreq_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxPacketsPerFreq); + } + if (rxPacketsPerFreq_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxPacketsPerFreq); + } + if (txPacketsPerDr_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxPacketsPerDr); + } + if (rxPacketsPerDr_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxPacketsPerDr); + } + if (txPacketsPerStatus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxPacketsPerStatus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGatewayMetricsResponse other) { + if (other == null) { + return; + } + if (other.rxPackets_ != null) { + if (rxPackets_ == null) { + RxPackets = new global::Chirpstack.Common.Metric(); + } + RxPackets.MergeFrom(other.RxPackets); + } + if (other.txPackets_ != null) { + if (txPackets_ == null) { + TxPackets = new global::Chirpstack.Common.Metric(); + } + TxPackets.MergeFrom(other.TxPackets); + } + if (other.txPacketsPerFreq_ != null) { + if (txPacketsPerFreq_ == null) { + TxPacketsPerFreq = new global::Chirpstack.Common.Metric(); + } + TxPacketsPerFreq.MergeFrom(other.TxPacketsPerFreq); + } + if (other.rxPacketsPerFreq_ != null) { + if (rxPacketsPerFreq_ == null) { + RxPacketsPerFreq = new global::Chirpstack.Common.Metric(); + } + RxPacketsPerFreq.MergeFrom(other.RxPacketsPerFreq); + } + if (other.txPacketsPerDr_ != null) { + if (txPacketsPerDr_ == null) { + TxPacketsPerDr = new global::Chirpstack.Common.Metric(); + } + TxPacketsPerDr.MergeFrom(other.TxPacketsPerDr); + } + if (other.rxPacketsPerDr_ != null) { + if (rxPacketsPerDr_ == null) { + RxPacketsPerDr = new global::Chirpstack.Common.Metric(); + } + RxPacketsPerDr.MergeFrom(other.RxPacketsPerDr); + } + if (other.txPacketsPerStatus_ != null) { + if (txPacketsPerStatus_ == null) { + TxPacketsPerStatus = new global::Chirpstack.Common.Metric(); + } + TxPacketsPerStatus.MergeFrom(other.TxPacketsPerStatus); + } + _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 (rxPackets_ == null) { + RxPackets = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(RxPackets); + break; + } + case 18: { + if (txPackets_ == null) { + TxPackets = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(TxPackets); + break; + } + case 26: { + if (txPacketsPerFreq_ == null) { + TxPacketsPerFreq = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(TxPacketsPerFreq); + break; + } + case 34: { + if (rxPacketsPerFreq_ == null) { + RxPacketsPerFreq = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(RxPacketsPerFreq); + break; + } + case 42: { + if (txPacketsPerDr_ == null) { + TxPacketsPerDr = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(TxPacketsPerDr); + break; + } + case 50: { + if (rxPacketsPerDr_ == null) { + RxPacketsPerDr = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(RxPacketsPerDr); + break; + } + case 58: { + if (txPacketsPerStatus_ == null) { + TxPacketsPerStatus = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(TxPacketsPerStatus); + 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 (rxPackets_ == null) { + RxPackets = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(RxPackets); + break; + } + case 18: { + if (txPackets_ == null) { + TxPackets = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(TxPackets); + break; + } + case 26: { + if (txPacketsPerFreq_ == null) { + TxPacketsPerFreq = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(TxPacketsPerFreq); + break; + } + case 34: { + if (rxPacketsPerFreq_ == null) { + RxPacketsPerFreq = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(RxPacketsPerFreq); + break; + } + case 42: { + if (txPacketsPerDr_ == null) { + TxPacketsPerDr = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(TxPacketsPerDr); + break; + } + case 50: { + if (rxPacketsPerDr_ == null) { + RxPacketsPerDr = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(RxPacketsPerDr); + break; + } + case 58: { + if (txPacketsPerStatus_ == null) { + TxPacketsPerStatus = new global::Chirpstack.Common.Metric(); + } + input.ReadMessage(TxPacketsPerStatus); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/GatewayGrpc.cs b/api/csharp/Chirpstack/api/GatewayGrpc.cs new file mode 100644 index 00000000..1e5d5b61 --- /dev/null +++ b/api/csharp/Chirpstack/api/GatewayGrpc.cs @@ -0,0 +1,632 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/gateway.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.Api { + /// + /// GatewayService is the service providing API methods for managing gateways. + /// + public static partial class GatewayService + { + static readonly string __ServiceName = "api.GatewayService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateGatewayRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGatewayRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetGatewayResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGatewayResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateGatewayRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteGatewayRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListGatewaysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListGatewaysRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListGatewaysResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListGatewaysResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GenerateGatewayClientCertificateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GenerateGatewayClientCertificateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GenerateGatewayClientCertificateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GenerateGatewayClientCertificateResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetGatewayMetricsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGatewayMetricsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetGatewayMetricsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGatewayMetricsResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Create = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Create", + __Marshaller_api_CreateGatewayRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Get = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Get", + __Marshaller_api_GetGatewayRequest, + __Marshaller_api_GetGatewayResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Update = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Update", + __Marshaller_api_UpdateGatewayRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Delete = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Delete", + __Marshaller_api_DeleteGatewayRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_List = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "List", + __Marshaller_api_ListGatewaysRequest, + __Marshaller_api_ListGatewaysResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GenerateClientCertificate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GenerateClientCertificate", + __Marshaller_api_GenerateGatewayClientCertificateRequest, + __Marshaller_api_GenerateGatewayClientCertificateResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetMetrics = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetMetrics", + __Marshaller_api_GetGatewayMetricsRequest, + __Marshaller_api_GetGatewayMetricsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.Api.GatewayReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of GatewayService + [grpc::BindServiceMethod(typeof(GatewayService), "BindService")] + public abstract partial class GatewayServiceBase + { + /// + /// Create creates the given gateway. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get returns the gateway for the given Gateway ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update updates the given gateway. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete deletes the gateway matching the given Gateway ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the list of gateways. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListGatewaysRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Generate client-certificate for the gateway. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GenerateClientCertificate(global::Chirpstack.Api.GenerateGatewayClientCertificateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetMetrics returns the gateway metrics. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetMetrics(global::Chirpstack.Api.GetGatewayMetricsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for GatewayService + public partial class GatewayServiceClient : grpc::ClientBase + { + /// Creates a new client for GatewayService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public GatewayServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for GatewayService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public GatewayServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected GatewayServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected GatewayServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Create creates the given gateway. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create creates the given gateway. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create creates the given gateway. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create creates the given gateway. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get returns the gateway for the given Gateway ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetGatewayResponse Get(global::Chirpstack.Api.GetGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get returns the gateway for the given Gateway ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetGatewayResponse Get(global::Chirpstack.Api.GetGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get returns the gateway for the given Gateway ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get returns the gateway for the given Gateway ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update updates the given gateway. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update updates the given gateway. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update updates the given gateway. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update updates the given gateway. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete deletes the gateway matching the given Gateway ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete deletes the gateway matching the given Gateway ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete deletes the gateway matching the given Gateway ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete deletes the gateway matching the given Gateway ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Get the list of gateways. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListGatewaysResponse List(global::Chirpstack.Api.ListGatewaysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the list of gateways. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListGatewaysResponse List(global::Chirpstack.Api.ListGatewaysRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// Get the list of gateways. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListGatewaysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the list of gateways. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListGatewaysRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// Generate client-certificate for the gateway. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GenerateGatewayClientCertificateResponse GenerateClientCertificate(global::Chirpstack.Api.GenerateGatewayClientCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GenerateClientCertificate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Generate client-certificate for the gateway. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GenerateGatewayClientCertificateResponse GenerateClientCertificate(global::Chirpstack.Api.GenerateGatewayClientCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GenerateClientCertificate, null, options, request); + } + /// + /// Generate client-certificate for the gateway. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GenerateClientCertificateAsync(global::Chirpstack.Api.GenerateGatewayClientCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GenerateClientCertificateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Generate client-certificate for the gateway. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GenerateClientCertificateAsync(global::Chirpstack.Api.GenerateGatewayClientCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GenerateClientCertificate, null, options, request); + } + /// + /// GetMetrics returns the gateway metrics. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetGatewayMetricsResponse GetMetrics(global::Chirpstack.Api.GetGatewayMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMetrics(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetMetrics returns the gateway metrics. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetGatewayMetricsResponse GetMetrics(global::Chirpstack.Api.GetGatewayMetricsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetMetrics, null, options, request); + } + /// + /// GetMetrics returns the gateway metrics. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetMetricsAsync(global::Chirpstack.Api.GetGatewayMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMetricsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetMetrics returns the gateway metrics. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetMetricsAsync(global::Chirpstack.Api.GetGatewayMetricsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetMetrics, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override GatewayServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new GatewayServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(GatewayServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_Create, serviceImpl.Create) + .AddMethod(__Method_Get, serviceImpl.Get) + .AddMethod(__Method_Update, serviceImpl.Update) + .AddMethod(__Method_Delete, serviceImpl.Delete) + .AddMethod(__Method_List, serviceImpl.List) + .AddMethod(__Method_GenerateClientCertificate, serviceImpl.GenerateClientCertificate) + .AddMethod(__Method_GetMetrics, serviceImpl.GetMetrics).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, GatewayServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); + serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); + serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); + serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); + serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); + serviceBinder.AddMethod(__Method_GenerateClientCertificate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateClientCertificate)); + serviceBinder.AddMethod(__Method_GetMetrics, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMetrics)); + } + + } +} +#endregion diff --git a/api/csharp/Chirpstack/api/Internal.cs b/api/csharp/Chirpstack/api/Internal.cs new file mode 100644 index 00000000..2acad822 --- /dev/null +++ b/api/csharp/Chirpstack/api/Internal.cs @@ -0,0 +1,8018 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/internal.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.Api { + + /// Holder for reflection information generated from api/internal.proto + public static partial class InternalReflection { + + #region Descriptor + /// File descriptor for api/internal.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InternalReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJhcGkvaW50ZXJuYWwucHJvdG8SA2FwaRofZ29vZ2xlL3Byb3RvYnVmL3Rp", + "bWVzdGFtcC5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGhNj", + "b21tb24vY29tbW9uLnByb3RvGg5hcGkvdXNlci5wcm90byJHCgZBcGlLZXkS", + "CgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRIQCghpc19hZG1pbhgDIAEoCBIR", + "Cgl0ZW5hbnRfaWQYBCABKAkiMwoTQ3JlYXRlQXBpS2V5UmVxdWVzdBIcCgdh", + "cGlfa2V5GAEgASgLMgsuYXBpLkFwaUtleSIxChRDcmVhdGVBcGlLZXlSZXNw", + "b25zZRIKCgJpZBgBIAEoCRINCgV0b2tlbhgCIAEoCSIhChNEZWxldGVBcGlL", + "ZXlSZXF1ZXN0EgoKAmlkGAEgASgJIlgKEkxpc3RBcGlLZXlzUmVxdWVzdBIN", + "CgVsaW1pdBgBIAEoDRIOCgZvZmZzZXQYAiABKA0SEAoIaXNfYWRtaW4YAyAB", + "KAgSEQoJdGVuYW50X2lkGAQgASgJIkcKE0xpc3RBcGlLZXlzUmVzcG9uc2US", + "EwoLdG90YWxfY291bnQYASABKA0SGwoGcmVzdWx0GAIgAygLMgsuYXBpLkFw", + "aUtleSLIAQoOVXNlclRlbmFudExpbmsSLgoKY3JlYXRlZF9hdBgBIAEoCzIa", + "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgCIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEQoJdGVuYW50X2lkGAMg", + "ASgJEhAKCGlzX2FkbWluGAQgASgIEhcKD2lzX2RldmljZV9hZG1pbhgFIAEo", + "CBIYChBpc19nYXRld2F5X2FkbWluGAYgASgIIi8KDExvZ2luUmVxdWVzdBIN", + "CgVlbWFpbBgBIAEoCRIQCghwYXNzd29yZBgCIAEoCSIcCg1Mb2dpblJlc3Bv", + "bnNlEgsKA2p3dBgBIAEoCSJQCg9Qcm9maWxlUmVzcG9uc2USFwoEdXNlchgB", + "IAEoCzIJLmFwaS5Vc2VyEiQKB3RlbmFudHMYAyADKAsyEy5hcGkuVXNlclRl", + "bmFudExpbmsiRAoTR2xvYmFsU2VhcmNoUmVxdWVzdBIOCgZzZWFyY2gYASAB", + "KAkSDQoFbGltaXQYAiABKAMSDgoGb2Zmc2V0GAMgASgDIj8KFEdsb2JhbFNl", + "YXJjaFJlc3BvbnNlEicKBnJlc3VsdBgBIAMoCzIXLmFwaS5HbG9iYWxTZWFy", + "Y2hSZXN1bHQi4gEKEkdsb2JhbFNlYXJjaFJlc3VsdBIMCgRraW5kGAEgASgJ", + "Eg0KBXNjb3JlGAIgASgCEhEKCXRlbmFudF9pZBgDIAEoCRITCgt0ZW5hbnRf", + "bmFtZRgEIAEoCRIWCg5hcHBsaWNhdGlvbl9pZBgFIAEoCRIYChBhcHBsaWNh", + "dGlvbl9uYW1lGAYgASgJEhYKDmRldmljZV9kZXZfZXVpGAcgASgJEhMKC2Rl", + "dmljZV9uYW1lGAggASgJEhIKCmdhdGV3YXlfaWQYCSABKAkSFAoMZ2F0ZXdh", + "eV9uYW1lGAogASgJIj4KEFNldHRpbmdzUmVzcG9uc2USKgoOb3BlbmlkX2Nv", + "bm5lY3QYASABKAsyEi5hcGkuT3BlbklkQ29ubmVjdCJxCg1PcGVuSWRDb25u", + "ZWN0Eg8KB2VuYWJsZWQYASABKAgSGwoJbG9naW5fdXJsGAIgASgJUghsb2dp", + "blVSTBITCgtsb2dpbl9sYWJlbBgDIAEoCRIdCgpsb2dvdXRfdXJsGAQgASgJ", + "Uglsb2dvdXRVUkwiOAoZT3BlbklkQ29ubmVjdExvZ2luUmVxdWVzdBIMCgRj", + "b2RlGAEgASgJEg0KBXN0YXRlGAIgASgJIisKGk9wZW5JZENvbm5lY3RMb2dp", + "blJlc3BvbnNlEg0KBXRva2VuGAEgASgJIi0KGEdldERldmljZXNTdW1tYXJ5", + "UmVxdWVzdBIRCgl0ZW5hbnRfaWQYASABKAki0gEKGUdldERldmljZXNTdW1t", + "YXJ5UmVzcG9uc2USFAoMYWN0aXZlX2NvdW50GAEgASgNEhYKDmluYWN0aXZl", + "X2NvdW50GAIgASgNEj0KCGRyX2NvdW50GAMgAygLMisuYXBpLkdldERldmlj", + "ZXNTdW1tYXJ5UmVzcG9uc2UuRHJDb3VudEVudHJ5EhgKEG5ldmVyX3NlZW5f", + "Y291bnQYBCABKA0aLgoMRHJDb3VudEVudHJ5EgsKA2tleRgBIAEoDRINCgV2", + "YWx1ZRgCIAEoDToCOAEiLgoZR2V0R2F0ZXdheXNTdW1tYXJ5UmVxdWVzdBIR", + "Cgl0ZW5hbnRfaWQYASABKAkiYwoaR2V0R2F0ZXdheXNTdW1tYXJ5UmVzcG9u", + "c2USFAoMb25saW5lX2NvdW50GAEgASgNEhUKDW9mZmxpbmVfY291bnQYAiAB", + "KA0SGAoQbmV2ZXJfc2Vlbl9jb3VudBgDIAEoDSLHAQoHTG9nSXRlbRIKCgJp", + "ZBgBIAEoCRIoCgR0aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", + "dGFtcBITCgtkZXNjcmlwdGlvbhgDIAEoCRIMCgRib2R5GAQgASgJEjAKCnBy", + "b3BlcnRpZXMYBSADKAsyHC5hcGkuTG9nSXRlbS5Qcm9wZXJ0aWVzRW50cnka", + "MQoPUHJvcGVydGllc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEo", + "CToCOAEiMAoaU3RyZWFtR2F0ZXdheUZyYW1lc1JlcXVlc3QSEgoKZ2F0ZXdh", + "eV9pZBgBIAEoCSIsChlTdHJlYW1EZXZpY2VGcmFtZXNSZXF1ZXN0Eg8KB2Rl", + "dl9ldWkYASABKAkiLAoZU3RyZWFtRGV2aWNlRXZlbnRzUmVxdWVzdBIPCgdk", + "ZXZfZXVpGAEgASgJIjsKE0xpc3RSZWdpb25zUmVzcG9uc2USJAoHcmVnaW9u", + "cxgBIAMoCzITLmFwaS5SZWdpb25MaXN0SXRlbSJRCg5SZWdpb25MaXN0SXRl", + "bRIKCgJpZBgBIAEoCRIeCgZyZWdpb24YAiABKA4yDi5jb21tb24uUmVnaW9u", + "EhMKC2Rlc2NyaXB0aW9uGAMgASgJIh4KEEdldFJlZ2lvblJlcXVlc3QSCgoC", + "aWQYASABKAkiqAIKEUdldFJlZ2lvblJlc3BvbnNlEgoKAmlkGAEgASgJEh4K", + "BnJlZ2lvbhgCIAEoDjIOLmNvbW1vbi5SZWdpb24SEQoJdXNlcl9pbmZvGAMg", + "ASgJEisKD3VwbGlua19jaGFubmVscxgEIAMoCzISLmFwaS5SZWdpb25DaGFu", + "bmVsEhEKCXJ4MV9kZWxheRgFIAEoDRIVCg1yeDFfZHJfb2Zmc2V0GAYgASgN", + "Eg4KBnJ4Ml9kchgHIAEoDRIVCg1yeDJfZnJlcXVlbmN5GAggASgNEhwKFGNs", + "YXNzX2JfcGluZ19zbG90X2RyGAkgASgNEiMKG2NsYXNzX2JfcGluZ19zbG90", + "X2ZyZXF1ZW5jeRgKIAEoDRITCgtkZXNjcmlwdGlvbhgLIAEoCSJCCg1SZWdp", + "b25DaGFubmVsEhEKCWZyZXF1ZW5jeRgBIAEoDRIOCgZkcl9taW4YAiABKA0S", + "DgoGZHJfbWF4GAMgASgNMrQICg9JbnRlcm5hbFNlcnZpY2USMAoFTG9naW4S", + "ES5hcGkuTG9naW5SZXF1ZXN0GhIuYXBpLkxvZ2luUmVzcG9uc2UiABI5CgdQ", + "cm9maWxlEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GhQuYXBpLlByb2ZpbGVS", + "ZXNwb25zZSIAEkUKDEdsb2JhbFNlYXJjaBIYLmFwaS5HbG9iYWxTZWFyY2hS", + "ZXF1ZXN0GhkuYXBpLkdsb2JhbFNlYXJjaFJlc3BvbnNlIgASRQoMQ3JlYXRl", + "QXBpS2V5EhguYXBpLkNyZWF0ZUFwaUtleVJlcXVlc3QaGS5hcGkuQ3JlYXRl", + "QXBpS2V5UmVzcG9uc2UiABJCCgxEZWxldGVBcGlLZXkSGC5hcGkuRGVsZXRl", + "QXBpS2V5UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEkIKC0xp", + "c3RBcGlLZXlzEhcuYXBpLkxpc3RBcGlLZXlzUmVxdWVzdBoYLmFwaS5MaXN0", + "QXBpS2V5c1Jlc3BvbnNlIgASOwoIU2V0dGluZ3MSFi5nb29nbGUucHJvdG9i", + "dWYuRW1wdHkaFS5hcGkuU2V0dGluZ3NSZXNwb25zZSIAElcKEk9wZW5JZENv", + "bm5lY3RMb2dpbhIeLmFwaS5PcGVuSWRDb25uZWN0TG9naW5SZXF1ZXN0Gh8u", + "YXBpLk9wZW5JZENvbm5lY3RMb2dpblJlc3BvbnNlIgASVAoRR2V0RGV2aWNl", + "c1N1bW1hcnkSHS5hcGkuR2V0RGV2aWNlc1N1bW1hcnlSZXF1ZXN0Gh4uYXBp", + "LkdldERldmljZXNTdW1tYXJ5UmVzcG9uc2UiABJXChJHZXRHYXRld2F5c1N1", + "bW1hcnkSHi5hcGkuR2V0R2F0ZXdheXNTdW1tYXJ5UmVxdWVzdBofLmFwaS5H", + "ZXRHYXRld2F5c1N1bW1hcnlSZXNwb25zZSIAEkgKE1N0cmVhbUdhdGV3YXlG", + "cmFtZXMSHy5hcGkuU3RyZWFtR2F0ZXdheUZyYW1lc1JlcXVlc3QaDC5hcGku", + "TG9nSXRlbSIAMAESRgoSU3RyZWFtRGV2aWNlRnJhbWVzEh4uYXBpLlN0cmVh", + "bURldmljZUZyYW1lc1JlcXVlc3QaDC5hcGkuTG9nSXRlbSIAMAESRgoSU3Ry", + "ZWFtRGV2aWNlRXZlbnRzEh4uYXBpLlN0cmVhbURldmljZUV2ZW50c1JlcXVl", + "c3QaDC5hcGkuTG9nSXRlbSIAMAESQQoLTGlzdFJlZ2lvbnMSFi5nb29nbGUu", + "cHJvdG9idWYuRW1wdHkaGC5hcGkuTGlzdFJlZ2lvbnNSZXNwb25zZSIAEjwK", + "CUdldFJlZ2lvbhIVLmFwaS5HZXRSZWdpb25SZXF1ZXN0GhYuYXBpLkdldFJl", + "Z2lvblJlc3BvbnNlIgBCZQoRaW8uY2hpcnBzdGFjay5hcGlCDUludGVybmFs", + "UHJvdG9QAVouZ2l0aHViLmNvbS9jaGlycHN0YWNrL2NoaXJwc3RhY2svYXBp", + "L2dvL3Y0L2FwaaoCDkNoaXJwc3RhY2suQXBpYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Api.UserReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ApiKey), global::Chirpstack.Api.ApiKey.Parser, new[]{ "Id", "Name", "IsAdmin", "TenantId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateApiKeyRequest), global::Chirpstack.Api.CreateApiKeyRequest.Parser, new[]{ "ApiKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateApiKeyResponse), global::Chirpstack.Api.CreateApiKeyResponse.Parser, new[]{ "Id", "Token" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteApiKeyRequest), global::Chirpstack.Api.DeleteApiKeyRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListApiKeysRequest), global::Chirpstack.Api.ListApiKeysRequest.Parser, new[]{ "Limit", "Offset", "IsAdmin", "TenantId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListApiKeysResponse), global::Chirpstack.Api.ListApiKeysResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UserTenantLink), global::Chirpstack.Api.UserTenantLink.Parser, new[]{ "CreatedAt", "UpdatedAt", "TenantId", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.LoginRequest), global::Chirpstack.Api.LoginRequest.Parser, new[]{ "Email", "Password" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.LoginResponse), global::Chirpstack.Api.LoginResponse.Parser, new[]{ "Jwt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ProfileResponse), global::Chirpstack.Api.ProfileResponse.Parser, new[]{ "User", "Tenants" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GlobalSearchRequest), global::Chirpstack.Api.GlobalSearchRequest.Parser, new[]{ "Search", "Limit", "Offset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GlobalSearchResponse), global::Chirpstack.Api.GlobalSearchResponse.Parser, new[]{ "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GlobalSearchResult), global::Chirpstack.Api.GlobalSearchResult.Parser, new[]{ "Kind", "Score", "TenantId", "TenantName", "ApplicationId", "ApplicationName", "DeviceDevEui", "DeviceName", "GatewayId", "GatewayName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.SettingsResponse), global::Chirpstack.Api.SettingsResponse.Parser, new[]{ "OpenidConnect" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.OpenIdConnect), global::Chirpstack.Api.OpenIdConnect.Parser, new[]{ "Enabled", "LoginUrl", "LoginLabel", "LogoutUrl" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.OpenIdConnectLoginRequest), global::Chirpstack.Api.OpenIdConnectLoginRequest.Parser, new[]{ "Code", "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.OpenIdConnectLoginResponse), global::Chirpstack.Api.OpenIdConnectLoginResponse.Parser, new[]{ "Token" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDevicesSummaryRequest), global::Chirpstack.Api.GetDevicesSummaryRequest.Parser, new[]{ "TenantId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDevicesSummaryResponse), global::Chirpstack.Api.GetDevicesSummaryResponse.Parser, new[]{ "ActiveCount", "InactiveCount", "DrCount", "NeverSeenCount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGatewaysSummaryRequest), global::Chirpstack.Api.GetGatewaysSummaryRequest.Parser, new[]{ "TenantId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGatewaysSummaryResponse), global::Chirpstack.Api.GetGatewaysSummaryResponse.Parser, new[]{ "OnlineCount", "OfflineCount", "NeverSeenCount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.LogItem), global::Chirpstack.Api.LogItem.Parser, new[]{ "Id", "Time", "Description", "Body", "Properties" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.StreamGatewayFramesRequest), global::Chirpstack.Api.StreamGatewayFramesRequest.Parser, new[]{ "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.StreamDeviceFramesRequest), global::Chirpstack.Api.StreamDeviceFramesRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.StreamDeviceEventsRequest), global::Chirpstack.Api.StreamDeviceEventsRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListRegionsResponse), global::Chirpstack.Api.ListRegionsResponse.Parser, new[]{ "Regions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.RegionListItem), global::Chirpstack.Api.RegionListItem.Parser, new[]{ "Id", "Region", "Description" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetRegionRequest), global::Chirpstack.Api.GetRegionRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetRegionResponse), global::Chirpstack.Api.GetRegionResponse.Parser, new[]{ "Id", "Region", "UserInfo", "UplinkChannels", "Rx1Delay", "Rx1DrOffset", "Rx2Dr", "Rx2Frequency", "ClassBPingSlotDr", "ClassBPingSlotFrequency", "Description" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.RegionChannel), global::Chirpstack.Api.RegionChannel.Parser, new[]{ "Frequency", "DrMin", "DrMax" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class ApiKey : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApiKey()); + 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.Api.InternalReflection.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 ApiKey() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApiKey(ApiKey other) : this() { + id_ = other.id_; + name_ = other.name_; + isAdmin_ = other.isAdmin_; + tenantId_ = other.tenantId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApiKey Clone() { + return new ApiKey(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// API key ID. + /// This value will be automatically generated on create. + /// + [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 "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_admin" field. + public const int IsAdminFieldNumber = 3; + private bool isAdmin_; + /// + /// Is global admin key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAdmin { + get { return isAdmin_; } + set { + isAdmin_ = value; + } + } + + /// Field number for the "tenant_id" field. + public const int TenantIdFieldNumber = 4; + private string tenantId_ = ""; + /// + /// Tenant ID. + /// In case the API key is intended to manage resources under a single tenant. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TenantId { + get { return tenantId_; } + set { + tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ApiKey); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ApiKey other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (IsAdmin != other.IsAdmin) return false; + if (TenantId != other.TenantId) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); + if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); + if (TenantId.Length != 0) hash ^= TenantId.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 (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (TenantId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantId); + } + 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 (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (TenantId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantId); + } + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (IsAdmin != false) { + size += 1 + 1; + } + if (TenantId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ApiKey other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.IsAdmin != false) { + IsAdmin = other.IsAdmin; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + _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: { + Name = input.ReadString(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 34: { + TenantId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 34: { + TenantId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateApiKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateApiKeyRequest()); + 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.Api.InternalReflection.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 CreateApiKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateApiKeyRequest(CreateApiKeyRequest other) : this() { + apiKey_ = other.apiKey_ != null ? other.apiKey_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateApiKeyRequest Clone() { + return new CreateApiKeyRequest(this); + } + + /// Field number for the "api_key" field. + public const int ApiKeyFieldNumber = 1; + private global::Chirpstack.Api.ApiKey apiKey_; + /// + /// The API key to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.ApiKey ApiKey { + get { return apiKey_; } + set { + apiKey_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateApiKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateApiKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ApiKey, other.ApiKey)) 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 (apiKey_ != null) hash ^= ApiKey.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 (apiKey_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ApiKey); + } + 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 (apiKey_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ApiKey); + } + 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 (apiKey_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateApiKeyRequest other) { + if (other == null) { + return; + } + if (other.apiKey_ != null) { + if (apiKey_ == null) { + ApiKey = new global::Chirpstack.Api.ApiKey(); + } + ApiKey.MergeFrom(other.ApiKey); + } + _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 (apiKey_ == null) { + ApiKey = new global::Chirpstack.Api.ApiKey(); + } + input.ReadMessage(ApiKey); + 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 (apiKey_ == null) { + ApiKey = new global::Chirpstack.Api.ApiKey(); + } + input.ReadMessage(ApiKey); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateApiKeyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateApiKeyResponse()); + 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.Api.InternalReflection.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 CreateApiKeyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateApiKeyResponse(CreateApiKeyResponse other) : this() { + id_ = other.id_; + token_ = other.token_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateApiKeyResponse Clone() { + return new CreateApiKeyResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// API key ID. + /// + [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 "token" field. + public const int TokenFieldNumber = 2; + private string token_ = ""; + /// + /// API token for authentication API requests. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Token { + get { return token_; } + set { + token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateApiKeyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateApiKeyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Token != other.Token) 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 (Token.Length != 0) hash ^= Token.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 (Token.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Token); + } + 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 (Token.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Token); + } + 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 (Token.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateApiKeyResponse other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Token.Length != 0) { + Token = other.Token; + } + _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: { + Token = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Token = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteApiKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteApiKeyRequest()); + 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.Api.InternalReflection.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 DeleteApiKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteApiKeyRequest(DeleteApiKeyRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteApiKeyRequest Clone() { + return new DeleteApiKeyRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// API key ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteApiKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteApiKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteApiKeyRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class ListApiKeysRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListApiKeysRequest()); + 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.Api.InternalReflection.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 ListApiKeysRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListApiKeysRequest(ListApiKeysRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + isAdmin_ = other.isAdmin_; + tenantId_ = other.tenantId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListApiKeysRequest Clone() { + return new ListApiKeysRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private uint limit_; + /// + /// Max number of items to return. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 2; + private uint offset_; + /// + /// Offset in the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + /// Field number for the "is_admin" field. + public const int IsAdminFieldNumber = 3; + private bool isAdmin_; + /// + /// Return only admin keys. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAdmin { + get { return isAdmin_; } + set { + isAdmin_ = value; + } + } + + /// Field number for the "tenant_id" field. + public const int TenantIdFieldNumber = 4; + private string tenantId_ = ""; + /// + /// Filter on tenant ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TenantId { + get { return tenantId_; } + set { + tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListApiKeysRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListApiKeysRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Limit != other.Limit) return false; + if (Offset != other.Offset) return false; + if (IsAdmin != other.IsAdmin) return false; + if (TenantId != other.TenantId) 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 (Limit != 0) hash ^= Limit.GetHashCode(); + if (Offset != 0) hash ^= Offset.GetHashCode(); + if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); + if (TenantId.Length != 0) hash ^= TenantId.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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (TenantId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantId); + } + 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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (TenantId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantId); + } + 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 (Limit != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); + } + if (Offset != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); + } + if (IsAdmin != false) { + size += 1 + 1; + } + if (TenantId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListApiKeysRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0) { + Limit = other.Limit; + } + if (other.Offset != 0) { + Offset = other.Offset; + } + if (other.IsAdmin != false) { + IsAdmin = other.IsAdmin; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + _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: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 34: { + TenantId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 34: { + TenantId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListApiKeysResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListApiKeysResponse()); + 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.Api.InternalReflection.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 ListApiKeysResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListApiKeysResponse(ListApiKeysResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListApiKeysResponse Clone() { + return new ListApiKeysResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of API keys. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.ApiKey.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListApiKeysResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListApiKeysResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListApiKeysResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Defines a tenant to which the user is associated. + /// + public sealed partial class UserTenantLink : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserTenantLink()); + 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.Api.InternalReflection.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 UserTenantLink() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserTenantLink(UserTenantLink other) : this() { + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + tenantId_ = other.tenantId_; + isAdmin_ = other.isAdmin_; + isDeviceAdmin_ = other.isDeviceAdmin_; + isGatewayAdmin_ = other.isGatewayAdmin_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserTenantLink Clone() { + return new UserTenantLink(this); + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "tenant_id" field. + public const int TenantIdFieldNumber = 3; + private string tenantId_ = ""; + /// + /// Tenant ID. + /// + [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 "is_admin" field. + public const int IsAdminFieldNumber = 4; + private bool isAdmin_; + /// + /// User is admin within the context of this tenant. + /// There is no need to set the is_device_admin and is_gateway_admin flags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAdmin { + get { return isAdmin_; } + set { + isAdmin_ = value; + } + } + + /// Field number for the "is_device_admin" field. + public const int IsDeviceAdminFieldNumber = 5; + private bool isDeviceAdmin_; + /// + /// User is able to modify device related resources (applications, + /// device-profiles, devices, multicast-groups). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsDeviceAdmin { + get { return isDeviceAdmin_; } + set { + isDeviceAdmin_ = value; + } + } + + /// Field number for the "is_gateway_admin" field. + public const int IsGatewayAdminFieldNumber = 6; + private bool isGatewayAdmin_; + /// + /// User is able to modify gateways. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsGatewayAdmin { + get { return isGatewayAdmin_; } + set { + isGatewayAdmin_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserTenantLink); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserTenantLink other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (TenantId != other.TenantId) return false; + if (IsAdmin != other.IsAdmin) return false; + if (IsDeviceAdmin != other.IsDeviceAdmin) return false; + if (IsGatewayAdmin != other.IsGatewayAdmin) 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 (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); + if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); + if (IsDeviceAdmin != false) hash ^= IsDeviceAdmin.GetHashCode(); + if (IsGatewayAdmin != false) hash ^= IsGatewayAdmin.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 (createdAt_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdatedAt); + } + if (TenantId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TenantId); + } + if (IsAdmin != false) { + output.WriteRawTag(32); + output.WriteBool(IsAdmin); + } + if (IsDeviceAdmin != false) { + output.WriteRawTag(40); + output.WriteBool(IsDeviceAdmin); + } + if (IsGatewayAdmin != false) { + output.WriteRawTag(48); + output.WriteBool(IsGatewayAdmin); + } + 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 (createdAt_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdatedAt); + } + if (TenantId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TenantId); + } + if (IsAdmin != false) { + output.WriteRawTag(32); + output.WriteBool(IsAdmin); + } + if (IsDeviceAdmin != false) { + output.WriteRawTag(40); + output.WriteBool(IsDeviceAdmin); + } + if (IsGatewayAdmin != false) { + output.WriteRawTag(48); + output.WriteBool(IsGatewayAdmin); + } + 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 (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (TenantId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); + } + if (IsAdmin != false) { + size += 1 + 1; + } + if (IsDeviceAdmin != false) { + size += 1 + 1; + } + if (IsGatewayAdmin != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserTenantLink other) { + if (other == null) { + return; + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + if (other.IsAdmin != false) { + IsAdmin = other.IsAdmin; + } + if (other.IsDeviceAdmin != false) { + IsDeviceAdmin = other.IsDeviceAdmin; + } + if (other.IsGatewayAdmin != false) { + IsGatewayAdmin = other.IsGatewayAdmin; + } + _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 (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 18: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 26: { + TenantId = input.ReadString(); + break; + } + case 32: { + IsAdmin = input.ReadBool(); + break; + } + case 40: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 48: { + IsGatewayAdmin = input.ReadBool(); + 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 (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 18: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 26: { + TenantId = input.ReadString(); + break; + } + case 32: { + IsAdmin = input.ReadBool(); + break; + } + case 40: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 48: { + IsGatewayAdmin = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class LoginRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoginRequest()); + 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.Api.InternalReflection.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 LoginRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoginRequest(LoginRequest other) : this() { + email_ = other.email_; + password_ = other.password_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoginRequest Clone() { + return new LoginRequest(this); + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 1; + private string email_ = ""; + /// + /// Email of the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Email { + get { return email_; } + set { + email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "password" field. + public const int PasswordFieldNumber = 2; + private string password_ = ""; + /// + /// Password of the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Password { + get { return password_; } + set { + password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LoginRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LoginRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Email != other.Email) return false; + if (Password != other.Password) 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 (Email.Length != 0) hash ^= Email.GetHashCode(); + if (Password.Length != 0) hash ^= Password.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 (Email.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Email); + } + if (Password.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Password); + } + 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 (Email.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Email); + } + if (Password.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Password); + } + 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 (Email.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + if (Password.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LoginRequest other) { + if (other == null) { + return; + } + if (other.Email.Length != 0) { + Email = other.Email; + } + if (other.Password.Length != 0) { + Password = other.Password; + } + _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: { + Email = input.ReadString(); + break; + } + case 18: { + Password = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Email = input.ReadString(); + break; + } + case 18: { + Password = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class LoginResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoginResponse()); + 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.Api.InternalReflection.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 LoginResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoginResponse(LoginResponse other) : this() { + jwt_ = other.jwt_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoginResponse Clone() { + return new LoginResponse(this); + } + + /// Field number for the "jwt" field. + public const int JwtFieldNumber = 1; + private string jwt_ = ""; + /// + /// The JWT tag to be used to access chirpstack-application-server interfaces. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Jwt { + get { return jwt_; } + set { + jwt_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LoginResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LoginResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Jwt != other.Jwt) 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 (Jwt.Length != 0) hash ^= Jwt.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 (Jwt.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Jwt); + } + 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 (Jwt.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Jwt); + } + 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 (Jwt.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Jwt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LoginResponse other) { + if (other == null) { + return; + } + if (other.Jwt.Length != 0) { + Jwt = other.Jwt; + } + _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: { + Jwt = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Jwt = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProfileResponse()); + 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.Api.InternalReflection.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 ProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProfileResponse(ProfileResponse other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + tenants_ = other.tenants_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProfileResponse Clone() { + return new ProfileResponse(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Chirpstack.Api.User user_; + /// + /// User object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.User User { + get { return user_; } + set { + user_ = value; + } + } + + /// Field number for the "tenants" field. + public const int TenantsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_tenants_codec + = pb::FieldCodec.ForMessage(26, global::Chirpstack.Api.UserTenantLink.Parser); + private readonly pbc::RepeatedField tenants_ = new pbc::RepeatedField(); + /// + /// Tenants to which the user is associated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Tenants { + get { return tenants_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ProfileResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + if(!tenants_.Equals(other.tenants_)) 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 (user_ != null) hash ^= User.GetHashCode(); + hash ^= tenants_.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 (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + tenants_.WriteTo(output, _repeated_tenants_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 (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + tenants_.WriteTo(ref output, _repeated_tenants_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 (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + size += tenants_.CalculateSize(_repeated_tenants_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ProfileResponse other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Chirpstack.Api.User(); + } + User.MergeFrom(other.User); + } + tenants_.Add(other.tenants_); + _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 (user_ == null) { + User = new global::Chirpstack.Api.User(); + } + input.ReadMessage(User); + break; + } + case 26: { + tenants_.AddEntriesFrom(input, _repeated_tenants_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 (user_ == null) { + User = new global::Chirpstack.Api.User(); + } + input.ReadMessage(User); + break; + } + case 26: { + tenants_.AddEntriesFrom(ref input, _repeated_tenants_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GlobalSearchRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GlobalSearchRequest()); + 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.Api.InternalReflection.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 GlobalSearchRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GlobalSearchRequest(GlobalSearchRequest other) : this() { + search_ = other.search_; + limit_ = other.limit_; + offset_ = other.offset_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GlobalSearchRequest Clone() { + return new GlobalSearchRequest(this); + } + + /// Field number for the "search" field. + public const int SearchFieldNumber = 1; + private string search_ = ""; + /// + /// Search query. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Search { + get { return search_; } + set { + search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 2; + private long limit_; + /// + /// Max number of results to return. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 3; + private long offset_; + /// + /// Offset offset of the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GlobalSearchRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GlobalSearchRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Search != other.Search) return false; + if (Limit != other.Limit) return false; + if (Offset != other.Offset) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Search.Length != 0) hash ^= Search.GetHashCode(); + if (Limit != 0L) hash ^= Limit.GetHashCode(); + if (Offset != 0L) hash ^= Offset.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Search.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Search); + } + if (Limit != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Offset); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Search.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Search); + } + if (Limit != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Offset); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Search.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); + } + if (Limit != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); + } + if (Offset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GlobalSearchRequest other) { + if (other == null) { + return; + } + if (other.Search.Length != 0) { + Search = other.Search; + } + if (other.Limit != 0L) { + Limit = other.Limit; + } + if (other.Offset != 0L) { + Offset = other.Offset; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Search = input.ReadString(); + break; + } + case 16: { + Limit = input.ReadInt64(); + break; + } + case 24: { + Offset = input.ReadInt64(); + 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: { + Search = input.ReadString(); + break; + } + case 16: { + Limit = input.ReadInt64(); + break; + } + case 24: { + Offset = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GlobalSearchResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GlobalSearchResponse()); + 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.Api.InternalReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GlobalSearchResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GlobalSearchResponse(GlobalSearchResponse other) : this() { + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GlobalSearchResponse Clone() { + return new GlobalSearchResponse(this); + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(10, global::Chirpstack.Api.GlobalSearchResult.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GlobalSearchResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GlobalSearchResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!result_.Equals(other.result_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= result_.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 + result_.WriteTo(output, _repeated_result_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) { + result_.WriteTo(ref output, _repeated_result_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; + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GlobalSearchResponse other) { + if (other == null) { + return; + } + result_.Add(other.result_); + _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: { + result_.AddEntriesFrom(input, _repeated_result_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: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GlobalSearchResult : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GlobalSearchResult()); + 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.Api.InternalReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GlobalSearchResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GlobalSearchResult(GlobalSearchResult other) : this() { + kind_ = other.kind_; + score_ = other.score_; + tenantId_ = other.tenantId_; + tenantName_ = other.tenantName_; + applicationId_ = other.applicationId_; + applicationName_ = other.applicationName_; + deviceDevEui_ = other.deviceDevEui_; + deviceName_ = other.deviceName_; + gatewayId_ = other.gatewayId_; + gatewayName_ = other.gatewayName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GlobalSearchResult Clone() { + return new GlobalSearchResult(this); + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 1; + private string kind_ = ""; + /// + /// Record kind. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Kind { + get { return kind_; } + set { + kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "score" field. + public const int ScoreFieldNumber = 2; + private float score_; + /// + /// Search score. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Score { + get { return score_; } + set { + score_ = value; + } + } + + /// Field number for the "tenant_id" field. + public const int TenantIdFieldNumber = 3; + private string tenantId_ = ""; + /// + /// Organization id. + /// + [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 = 4; + private string tenantName_ = ""; + /// + /// Organization 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 = 5; + private string applicationId_ = ""; + /// + /// Application id. + /// + [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 = 6; + 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_dev_eui" field. + public const int DeviceDevEuiFieldNumber = 7; + private string deviceDevEui_ = ""; + /// + /// Device DevEUI (hex encoded). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DeviceDevEui { + get { return deviceDevEui_; } + set { + deviceDevEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "device_name" field. + public const int DeviceNameFieldNumber = 8; + 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 "gateway_id" field. + public const int GatewayIdFieldNumber = 9; + private string gatewayId_ = ""; + /// + /// Gateway MAC (hex encoded). + /// + [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 "gateway_name" field. + public const int GatewayNameFieldNumber = 10; + private string gatewayName_ = ""; + /// + /// Gateway name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GatewayName { + get { return gatewayName_; } + set { + gatewayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GlobalSearchResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GlobalSearchResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Kind != other.Kind) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Score, other.Score)) return false; + 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 (DeviceDevEui != other.DeviceDevEui) return false; + if (DeviceName != other.DeviceName) return false; + if (GatewayId != other.GatewayId) return false; + if (GatewayName != other.GatewayName) 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 (Kind.Length != 0) hash ^= Kind.GetHashCode(); + if (Score != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Score); + 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 (DeviceDevEui.Length != 0) hash ^= DeviceDevEui.GetHashCode(); + if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (GatewayName.Length != 0) hash ^= GatewayName.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 (Kind.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Kind); + } + if (Score != 0F) { + output.WriteRawTag(21); + output.WriteFloat(Score); + } + if (TenantId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TenantId); + } + if (TenantName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantName); + } + if (ApplicationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ApplicationName); + } + if (DeviceDevEui.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DeviceDevEui); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DeviceName); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(GatewayId); + } + if (GatewayName.Length != 0) { + output.WriteRawTag(82); + output.WriteString(GatewayName); + } + 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 (Kind.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Kind); + } + if (Score != 0F) { + output.WriteRawTag(21); + output.WriteFloat(Score); + } + if (TenantId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TenantId); + } + if (TenantName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TenantName); + } + if (ApplicationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ApplicationName); + } + if (DeviceDevEui.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DeviceDevEui); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DeviceName); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(GatewayId); + } + if (GatewayName.Length != 0) { + output.WriteRawTag(82); + output.WriteString(GatewayName); + } + 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 (Kind.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); + } + if (Score != 0F) { + size += 1 + 4; + } + 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 (DeviceDevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceDevEui); + } + if (DeviceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (GatewayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GlobalSearchResult other) { + if (other == null) { + return; + } + if (other.Kind.Length != 0) { + Kind = other.Kind; + } + if (other.Score != 0F) { + Score = other.Score; + } + 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.DeviceDevEui.Length != 0) { + DeviceDevEui = other.DeviceDevEui; + } + if (other.DeviceName.Length != 0) { + DeviceName = other.DeviceName; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.GatewayName.Length != 0) { + GatewayName = other.GatewayName; + } + _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: { + Kind = input.ReadString(); + break; + } + case 21: { + Score = input.ReadFloat(); + break; + } + case 26: { + TenantId = input.ReadString(); + break; + } + case 34: { + TenantName = input.ReadString(); + break; + } + case 42: { + ApplicationId = input.ReadString(); + break; + } + case 50: { + ApplicationName = input.ReadString(); + break; + } + case 58: { + DeviceDevEui = input.ReadString(); + break; + } + case 66: { + DeviceName = input.ReadString(); + break; + } + case 74: { + GatewayId = input.ReadString(); + break; + } + case 82: { + GatewayName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Kind = input.ReadString(); + break; + } + case 21: { + Score = input.ReadFloat(); + break; + } + case 26: { + TenantId = input.ReadString(); + break; + } + case 34: { + TenantName = input.ReadString(); + break; + } + case 42: { + ApplicationId = input.ReadString(); + break; + } + case 50: { + ApplicationName = input.ReadString(); + break; + } + case 58: { + DeviceDevEui = input.ReadString(); + break; + } + case 66: { + DeviceName = input.ReadString(); + break; + } + case 74: { + GatewayId = input.ReadString(); + break; + } + case 82: { + GatewayName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SettingsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SettingsResponse()); + 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.Api.InternalReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SettingsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SettingsResponse(SettingsResponse other) : this() { + openidConnect_ = other.openidConnect_ != null ? other.openidConnect_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SettingsResponse Clone() { + return new SettingsResponse(this); + } + + /// Field number for the "openid_connect" field. + public const int OpenidConnectFieldNumber = 1; + private global::Chirpstack.Api.OpenIdConnect openidConnect_; + /// + /// OpenId Connect settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.OpenIdConnect OpenidConnect { + get { return openidConnect_; } + set { + openidConnect_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SettingsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SettingsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OpenidConnect, other.OpenidConnect)) 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 (openidConnect_ != null) hash ^= OpenidConnect.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 (openidConnect_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OpenidConnect); + } + 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 (openidConnect_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OpenidConnect); + } + 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 (openidConnect_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OpenidConnect); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SettingsResponse other) { + if (other == null) { + return; + } + if (other.openidConnect_ != null) { + if (openidConnect_ == null) { + OpenidConnect = new global::Chirpstack.Api.OpenIdConnect(); + } + OpenidConnect.MergeFrom(other.OpenidConnect); + } + _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 (openidConnect_ == null) { + OpenidConnect = new global::Chirpstack.Api.OpenIdConnect(); + } + input.ReadMessage(OpenidConnect); + 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 (openidConnect_ == null) { + OpenidConnect = new global::Chirpstack.Api.OpenIdConnect(); + } + input.ReadMessage(OpenidConnect); + break; + } + } + } + } + #endif + + } + + public sealed partial class OpenIdConnect : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OpenIdConnect()); + 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.Api.InternalReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenIdConnect() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenIdConnect(OpenIdConnect other) : this() { + enabled_ = other.enabled_; + loginUrl_ = other.loginUrl_; + loginLabel_ = other.loginLabel_; + logoutUrl_ = other.logoutUrl_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenIdConnect Clone() { + return new OpenIdConnect(this); + } + + /// Field number for the "enabled" field. + public const int EnabledFieldNumber = 1; + private bool enabled_; + /// + /// Enable OpenId Connect authentication. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Enabled { + get { return enabled_; } + set { + enabled_ = value; + } + } + + /// Field number for the "login_url" field. + public const int LoginUrlFieldNumber = 2; + private string loginUrl_ = ""; + /// + /// Login url. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LoginUrl { + get { return loginUrl_; } + set { + loginUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "login_label" field. + public const int LoginLabelFieldNumber = 3; + private string loginLabel_ = ""; + /// + /// Login label. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LoginLabel { + get { return loginLabel_; } + set { + loginLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "logout_url" field. + public const int LogoutUrlFieldNumber = 4; + private string logoutUrl_ = ""; + /// + /// Logout url. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LogoutUrl { + get { return logoutUrl_; } + set { + logoutUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OpenIdConnect); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OpenIdConnect other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Enabled != other.Enabled) return false; + if (LoginUrl != other.LoginUrl) return false; + if (LoginLabel != other.LoginLabel) return false; + if (LogoutUrl != other.LogoutUrl) 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 (Enabled != false) hash ^= Enabled.GetHashCode(); + if (LoginUrl.Length != 0) hash ^= LoginUrl.GetHashCode(); + if (LoginLabel.Length != 0) hash ^= LoginLabel.GetHashCode(); + if (LogoutUrl.Length != 0) hash ^= LogoutUrl.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 (Enabled != false) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + if (LoginUrl.Length != 0) { + output.WriteRawTag(18); + output.WriteString(LoginUrl); + } + if (LoginLabel.Length != 0) { + output.WriteRawTag(26); + output.WriteString(LoginLabel); + } + if (LogoutUrl.Length != 0) { + output.WriteRawTag(34); + output.WriteString(LogoutUrl); + } + 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 (Enabled != false) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + if (LoginUrl.Length != 0) { + output.WriteRawTag(18); + output.WriteString(LoginUrl); + } + if (LoginLabel.Length != 0) { + output.WriteRawTag(26); + output.WriteString(LoginLabel); + } + if (LogoutUrl.Length != 0) { + output.WriteRawTag(34); + output.WriteString(LogoutUrl); + } + 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 (Enabled != false) { + size += 1 + 1; + } + if (LoginUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LoginUrl); + } + if (LoginLabel.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LoginLabel); + } + if (LogoutUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LogoutUrl); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OpenIdConnect other) { + if (other == null) { + return; + } + if (other.Enabled != false) { + Enabled = other.Enabled; + } + if (other.LoginUrl.Length != 0) { + LoginUrl = other.LoginUrl; + } + if (other.LoginLabel.Length != 0) { + LoginLabel = other.LoginLabel; + } + if (other.LogoutUrl.Length != 0) { + LogoutUrl = other.LogoutUrl; + } + _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: { + Enabled = input.ReadBool(); + break; + } + case 18: { + LoginUrl = input.ReadString(); + break; + } + case 26: { + LoginLabel = input.ReadString(); + break; + } + case 34: { + LogoutUrl = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Enabled = input.ReadBool(); + break; + } + case 18: { + LoginUrl = input.ReadString(); + break; + } + case 26: { + LoginLabel = input.ReadString(); + break; + } + case 34: { + LogoutUrl = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class OpenIdConnectLoginRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OpenIdConnectLoginRequest()); + 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.Api.InternalReflection.Descriptor.MessageTypes[15]; } + } + + [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 OpenIdConnectLoginRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenIdConnectLoginRequest(OpenIdConnectLoginRequest other) : this() { + code_ = other.code_; + state_ = other.state_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenIdConnectLoginRequest Clone() { + return new OpenIdConnectLoginRequest(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private string code_ = ""; + /// + /// OpenId Connect callback code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Code { + get { return code_; } + set { + code_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 2; + private string state_ = ""; + /// + /// OpenId Connect callback state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string State { + get { return state_; } + set { + state_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OpenIdConnectLoginRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OpenIdConnectLoginRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (State != other.State) 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 (Code.Length != 0) hash ^= Code.GetHashCode(); + if (State.Length != 0) hash ^= State.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 (Code.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Code); + } + if (State.Length != 0) { + output.WriteRawTag(18); + output.WriteString(State); + } + 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 (Code.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Code); + } + if (State.Length != 0) { + output.WriteRawTag(18); + output.WriteString(State); + } + 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 (Code.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Code); + } + if (State.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OpenIdConnectLoginRequest other) { + if (other == null) { + return; + } + if (other.Code.Length != 0) { + Code = other.Code; + } + if (other.State.Length != 0) { + State = other.State; + } + _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: { + Code = input.ReadString(); + break; + } + case 18: { + State = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Code = input.ReadString(); + break; + } + case 18: { + State = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class OpenIdConnectLoginResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OpenIdConnectLoginResponse()); + 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.Api.InternalReflection.Descriptor.MessageTypes[16]; } + } + + [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 OpenIdConnectLoginResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenIdConnectLoginResponse(OpenIdConnectLoginResponse other) : this() { + token_ = other.token_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenIdConnectLoginResponse Clone() { + return new OpenIdConnectLoginResponse(this); + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 1; + private string token_ = ""; + /// + /// Token to use for authentication. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Token { + get { return token_; } + set { + token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OpenIdConnectLoginResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OpenIdConnectLoginResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Token != other.Token) 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 (Token.Length != 0) hash ^= Token.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 (Token.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Token); + } + 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 (Token.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Token); + } + 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 (Token.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OpenIdConnectLoginResponse other) { + if (other == null) { + return; + } + if (other.Token.Length != 0) { + Token = other.Token; + } + _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: { + Token = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Token = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDevicesSummaryRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDevicesSummaryRequest()); + 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.Api.InternalReflection.Descriptor.MessageTypes[17]; } + } + + [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 GetDevicesSummaryRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDevicesSummaryRequest(GetDevicesSummaryRequest other) : this() { + tenantId_ = other.tenantId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDevicesSummaryRequest Clone() { + return new GetDevicesSummaryRequest(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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDevicesSummaryRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDevicesSummaryRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TenantId != other.TenantId) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDevicesSummaryRequest other) { + if (other == null) { + return; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetDevicesSummaryResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDevicesSummaryResponse()); + 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.Api.InternalReflection.Descriptor.MessageTypes[18]; } + } + + [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 GetDevicesSummaryResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDevicesSummaryResponse(GetDevicesSummaryResponse other) : this() { + activeCount_ = other.activeCount_; + inactiveCount_ = other.inactiveCount_; + drCount_ = other.drCount_.Clone(); + neverSeenCount_ = other.neverSeenCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDevicesSummaryResponse Clone() { + return new GetDevicesSummaryResponse(this); + } + + /// Field number for the "active_count" field. + public const int ActiveCountFieldNumber = 1; + private uint activeCount_; + /// + /// Active count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ActiveCount { + get { return activeCount_; } + set { + activeCount_ = value; + } + } + + /// Field number for the "inactive_count" field. + public const int InactiveCountFieldNumber = 2; + private uint inactiveCount_; + /// + /// Inactive count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint InactiveCount { + get { return inactiveCount_; } + set { + inactiveCount_ = value; + } + } + + /// Field number for the "dr_count" field. + public const int DrCountFieldNumber = 3; + private static readonly pbc::MapField.Codec _map_drCount_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 26); + private readonly pbc::MapField drCount_ = new pbc::MapField(); + /// + /// per data-rate count. + /// Devices that have never been seen are excluded. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField DrCount { + get { return drCount_; } + } + + /// Field number for the "never_seen_count" field. + public const int NeverSeenCountFieldNumber = 4; + private uint neverSeenCount_; + /// + /// Never seen count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NeverSeenCount { + get { return neverSeenCount_; } + set { + neverSeenCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDevicesSummaryResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDevicesSummaryResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ActiveCount != other.ActiveCount) return false; + if (InactiveCount != other.InactiveCount) return false; + if (!DrCount.Equals(other.DrCount)) return false; + if (NeverSeenCount != other.NeverSeenCount) 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 (ActiveCount != 0) hash ^= ActiveCount.GetHashCode(); + if (InactiveCount != 0) hash ^= InactiveCount.GetHashCode(); + hash ^= DrCount.GetHashCode(); + if (NeverSeenCount != 0) hash ^= NeverSeenCount.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 (ActiveCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(ActiveCount); + } + if (InactiveCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(InactiveCount); + } + drCount_.WriteTo(output, _map_drCount_codec); + if (NeverSeenCount != 0) { + output.WriteRawTag(32); + output.WriteUInt32(NeverSeenCount); + } + 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 (ActiveCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(ActiveCount); + } + if (InactiveCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(InactiveCount); + } + drCount_.WriteTo(ref output, _map_drCount_codec); + if (NeverSeenCount != 0) { + output.WriteRawTag(32); + output.WriteUInt32(NeverSeenCount); + } + 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 (ActiveCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ActiveCount); + } + if (InactiveCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(InactiveCount); + } + size += drCount_.CalculateSize(_map_drCount_codec); + if (NeverSeenCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NeverSeenCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDevicesSummaryResponse other) { + if (other == null) { + return; + } + if (other.ActiveCount != 0) { + ActiveCount = other.ActiveCount; + } + if (other.InactiveCount != 0) { + InactiveCount = other.InactiveCount; + } + drCount_.Add(other.drCount_); + if (other.NeverSeenCount != 0) { + NeverSeenCount = other.NeverSeenCount; + } + _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: { + ActiveCount = input.ReadUInt32(); + break; + } + case 16: { + InactiveCount = input.ReadUInt32(); + break; + } + case 26: { + drCount_.AddEntriesFrom(input, _map_drCount_codec); + break; + } + case 32: { + NeverSeenCount = 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 8: { + ActiveCount = input.ReadUInt32(); + break; + } + case 16: { + InactiveCount = input.ReadUInt32(); + break; + } + case 26: { + drCount_.AddEntriesFrom(ref input, _map_drCount_codec); + break; + } + case 32: { + NeverSeenCount = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGatewaysSummaryRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewaysSummaryRequest()); + 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.Api.InternalReflection.Descriptor.MessageTypes[19]; } + } + + [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 GetGatewaysSummaryRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewaysSummaryRequest(GetGatewaysSummaryRequest other) : this() { + tenantId_ = other.tenantId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewaysSummaryRequest Clone() { + return new GetGatewaysSummaryRequest(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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGatewaysSummaryRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewaysSummaryRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TenantId != other.TenantId) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGatewaysSummaryRequest other) { + if (other == null) { + return; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetGatewaysSummaryResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewaysSummaryResponse()); + 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.Api.InternalReflection.Descriptor.MessageTypes[20]; } + } + + [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 GetGatewaysSummaryResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewaysSummaryResponse(GetGatewaysSummaryResponse other) : this() { + onlineCount_ = other.onlineCount_; + offlineCount_ = other.offlineCount_; + neverSeenCount_ = other.neverSeenCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewaysSummaryResponse Clone() { + return new GetGatewaysSummaryResponse(this); + } + + /// Field number for the "online_count" field. + public const int OnlineCountFieldNumber = 1; + private uint onlineCount_; + /// + /// Online count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OnlineCount { + get { return onlineCount_; } + set { + onlineCount_ = value; + } + } + + /// Field number for the "offline_count" field. + public const int OfflineCountFieldNumber = 2; + private uint offlineCount_; + /// + /// Offline count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OfflineCount { + get { return offlineCount_; } + set { + offlineCount_ = value; + } + } + + /// Field number for the "never_seen_count" field. + public const int NeverSeenCountFieldNumber = 3; + private uint neverSeenCount_; + /// + /// Never seen count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NeverSeenCount { + get { return neverSeenCount_; } + set { + neverSeenCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGatewaysSummaryResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewaysSummaryResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OnlineCount != other.OnlineCount) return false; + if (OfflineCount != other.OfflineCount) return false; + if (NeverSeenCount != other.NeverSeenCount) 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 (OnlineCount != 0) hash ^= OnlineCount.GetHashCode(); + if (OfflineCount != 0) hash ^= OfflineCount.GetHashCode(); + if (NeverSeenCount != 0) hash ^= NeverSeenCount.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 (OnlineCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(OnlineCount); + } + if (OfflineCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(OfflineCount); + } + if (NeverSeenCount != 0) { + output.WriteRawTag(24); + output.WriteUInt32(NeverSeenCount); + } + 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 (OnlineCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(OnlineCount); + } + if (OfflineCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(OfflineCount); + } + if (NeverSeenCount != 0) { + output.WriteRawTag(24); + output.WriteUInt32(NeverSeenCount); + } + 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 (OnlineCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OnlineCount); + } + if (OfflineCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OfflineCount); + } + if (NeverSeenCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NeverSeenCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGatewaysSummaryResponse other) { + if (other == null) { + return; + } + if (other.OnlineCount != 0) { + OnlineCount = other.OnlineCount; + } + if (other.OfflineCount != 0) { + OfflineCount = other.OfflineCount; + } + if (other.NeverSeenCount != 0) { + NeverSeenCount = other.NeverSeenCount; + } + _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: { + OnlineCount = input.ReadUInt32(); + break; + } + case 16: { + OfflineCount = input.ReadUInt32(); + break; + } + case 24: { + NeverSeenCount = 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 8: { + OnlineCount = input.ReadUInt32(); + break; + } + case 16: { + OfflineCount = input.ReadUInt32(); + break; + } + case 24: { + NeverSeenCount = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class LogItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogItem()); + 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.Api.InternalReflection.Descriptor.MessageTypes[21]; } + } + + [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 LogItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LogItem(LogItem other) : this() { + id_ = other.id_; + time_ = other.time_ != null ? other.time_.Clone() : null; + description_ = other.description_; + body_ = other.body_; + properties_ = other.properties_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LogItem Clone() { + return new LogItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID. + /// + [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 "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 "description" field. + public const int DescriptionFieldNumber = 3; + private string 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 "body" field. + public const int BodyFieldNumber = 4; + private string body_ = ""; + /// + /// Body. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Body { + get { return body_; } + set { + body_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "properties" field. + public const int PropertiesFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_properties_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); + private readonly pbc::MapField properties_ = new pbc::MapField(); + /// + /// Properties. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Properties { + get { return properties_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LogItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LogItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(Time, other.Time)) return false; + if (Description != other.Description) return false; + if (Body != other.Body) return false; + if (!Properties.Equals(other.Properties)) 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 (time_ != null) hash ^= Time.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (Body.Length != 0) hash ^= Body.GetHashCode(); + hash ^= Properties.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 (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (Body.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Body); + } + properties_.WriteTo(output, _map_properties_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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (Body.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Body); + } + properties_.WriteTo(ref output, _map_properties_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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (Body.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Body); + } + size += properties_.CalculateSize(_map_properties_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LogItem other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Time.MergeFrom(other.Time); + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.Body.Length != 0) { + Body = other.Body; + } + properties_.Add(other.properties_); + _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: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + Body = input.ReadString(); + break; + } + case 42: { + properties_.AddEntriesFrom(input, _map_properties_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: { + Id = input.ReadString(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + Body = input.ReadString(); + break; + } + case 42: { + properties_.AddEntriesFrom(ref input, _map_properties_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class StreamGatewayFramesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamGatewayFramesRequest()); + 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.Api.InternalReflection.Descriptor.MessageTypes[22]; } + } + + [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 StreamGatewayFramesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamGatewayFramesRequest(StreamGatewayFramesRequest other) : this() { + gatewayId_ = other.gatewayId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamGatewayFramesRequest Clone() { + return new StreamGatewayFramesRequest(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + private string gatewayId_ = ""; + /// + /// Gateway ID (EUI64). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GatewayId { + get { return gatewayId_; } + set { + gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StreamGatewayFramesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamGatewayFramesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) 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 (GatewayId.Length != 0) hash ^= GatewayId.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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + 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 (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StreamGatewayFramesRequest other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + _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: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class StreamDeviceFramesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamDeviceFramesRequest()); + 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.Api.InternalReflection.Descriptor.MessageTypes[23]; } + } + + [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 StreamDeviceFramesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamDeviceFramesRequest(StreamDeviceFramesRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamDeviceFramesRequest Clone() { + return new StreamDeviceFramesRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StreamDeviceFramesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamDeviceFramesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StreamDeviceFramesRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class StreamDeviceEventsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamDeviceEventsRequest()); + 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.Api.InternalReflection.Descriptor.MessageTypes[24]; } + } + + [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 StreamDeviceEventsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamDeviceEventsRequest(StreamDeviceEventsRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamDeviceEventsRequest Clone() { + return new StreamDeviceEventsRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StreamDeviceEventsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamDeviceEventsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StreamDeviceEventsRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class ListRegionsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListRegionsResponse()); + 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.Api.InternalReflection.Descriptor.MessageTypes[25]; } + } + + [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 ListRegionsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListRegionsResponse(ListRegionsResponse other) : this() { + regions_ = other.regions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListRegionsResponse Clone() { + return new ListRegionsResponse(this); + } + + /// Field number for the "regions" field. + public const int RegionsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_regions_codec + = pb::FieldCodec.ForMessage(10, global::Chirpstack.Api.RegionListItem.Parser); + private readonly pbc::RepeatedField regions_ = new pbc::RepeatedField(); + /// + /// Configured regions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Regions { + get { return regions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListRegionsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListRegionsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!regions_.Equals(other.regions_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= regions_.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 + regions_.WriteTo(output, _repeated_regions_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) { + regions_.WriteTo(ref output, _repeated_regions_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; + size += regions_.CalculateSize(_repeated_regions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListRegionsResponse other) { + if (other == null) { + return; + } + regions_.Add(other.regions_); + _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: { + regions_.AddEntriesFrom(input, _repeated_regions_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: { + regions_.AddEntriesFrom(ref input, _repeated_regions_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RegionListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegionListItem()); + 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.Api.InternalReflection.Descriptor.MessageTypes[26]; } + } + + [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 RegionListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionListItem(RegionListItem other) : this() { + id_ = other.id_; + region_ = other.region_; + description_ = other.description_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionListItem Clone() { + return new RegionListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID. + /// + [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 "region" field. + public const int RegionFieldNumber = 2; + private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; + /// + /// Region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Region Region { + get { return region_; } + set { + region_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// Description. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RegionListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RegionListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Region != other.Region) return false; + if (Description != other.Description) 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 (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); + if (Description.Length != 0) hash ^= Description.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 (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(16); + output.WriteEnum((int) Region); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + 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 (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(16); + output.WriteEnum((int) Region); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + 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 (Region != global::Chirpstack.Common.Region.Eu868) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RegionListItem other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Region != global::Chirpstack.Common.Region.Eu868) { + Region = other.Region; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + _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 16: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 16: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetRegionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRegionRequest()); + 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.Api.InternalReflection.Descriptor.MessageTypes[27]; } + } + + [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 GetRegionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRegionRequest(GetRegionRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRegionRequest Clone() { + return new GetRegionRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Region ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRegionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRegionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRegionRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetRegionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRegionResponse()); + 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.Api.InternalReflection.Descriptor.MessageTypes[28]; } + } + + [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 GetRegionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRegionResponse(GetRegionResponse other) : this() { + id_ = other.id_; + region_ = other.region_; + userInfo_ = other.userInfo_; + uplinkChannels_ = other.uplinkChannels_.Clone(); + rx1Delay_ = other.rx1Delay_; + rx1DrOffset_ = other.rx1DrOffset_; + rx2Dr_ = other.rx2Dr_; + rx2Frequency_ = other.rx2Frequency_; + classBPingSlotDr_ = other.classBPingSlotDr_; + classBPingSlotFrequency_ = other.classBPingSlotFrequency_; + description_ = other.description_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRegionResponse Clone() { + return new GetRegionResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID. + /// + [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 "region" field. + public const int RegionFieldNumber = 2; + private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; + /// + /// Region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Region Region { + get { return region_; } + set { + region_ = value; + } + } + + /// Field number for the "user_info" field. + public const int UserInfoFieldNumber = 3; + private string userInfo_ = ""; + /// + /// User information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserInfo { + get { return userInfo_; } + set { + userInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uplink_channels" field. + public const int UplinkChannelsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_uplinkChannels_codec + = pb::FieldCodec.ForMessage(34, global::Chirpstack.Api.RegionChannel.Parser); + private readonly pbc::RepeatedField uplinkChannels_ = new pbc::RepeatedField(); + /// + /// Uplink channels. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UplinkChannels { + get { return uplinkChannels_; } + } + + /// Field number for the "rx1_delay" field. + public const int Rx1DelayFieldNumber = 5; + private uint rx1Delay_; + /// + /// RX1 delay. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Rx1Delay { + get { return rx1Delay_; } + set { + rx1Delay_ = value; + } + } + + /// Field number for the "rx1_dr_offset" field. + public const int Rx1DrOffsetFieldNumber = 6; + private uint rx1DrOffset_; + /// + /// RX1 data-rate offset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Rx1DrOffset { + get { return rx1DrOffset_; } + set { + rx1DrOffset_ = value; + } + } + + /// Field number for the "rx2_dr" field. + public const int Rx2DrFieldNumber = 7; + private uint rx2Dr_; + /// + /// RX2 DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Rx2Dr { + get { return rx2Dr_; } + set { + rx2Dr_ = value; + } + } + + /// Field number for the "rx2_frequency" field. + public const int Rx2FrequencyFieldNumber = 8; + private uint rx2Frequency_; + /// + /// RX2 frequency. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Rx2Frequency { + get { return rx2Frequency_; } + set { + rx2Frequency_ = value; + } + } + + /// Field number for the "class_b_ping_slot_dr" field. + public const int ClassBPingSlotDrFieldNumber = 9; + private uint classBPingSlotDr_; + /// + /// Class-B ping-slot DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBPingSlotDr { + get { return classBPingSlotDr_; } + set { + classBPingSlotDr_ = value; + } + } + + /// Field number for the "class_b_ping_slot_frequency" field. + public const int ClassBPingSlotFrequencyFieldNumber = 10; + private uint classBPingSlotFrequency_; + /// + /// Class-B ping-slot frequency. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBPingSlotFrequency { + get { return classBPingSlotFrequency_; } + set { + classBPingSlotFrequency_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 11; + private string description_ = ""; + /// + /// Region description. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRegionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRegionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Region != other.Region) return false; + if (UserInfo != other.UserInfo) return false; + if(!uplinkChannels_.Equals(other.uplinkChannels_)) return false; + if (Rx1Delay != other.Rx1Delay) return false; + if (Rx1DrOffset != other.Rx1DrOffset) return false; + if (Rx2Dr != other.Rx2Dr) return false; + if (Rx2Frequency != other.Rx2Frequency) return false; + if (ClassBPingSlotDr != other.ClassBPingSlotDr) return false; + if (ClassBPingSlotFrequency != other.ClassBPingSlotFrequency) return false; + if (Description != other.Description) 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 (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); + if (UserInfo.Length != 0) hash ^= UserInfo.GetHashCode(); + hash ^= uplinkChannels_.GetHashCode(); + if (Rx1Delay != 0) hash ^= Rx1Delay.GetHashCode(); + if (Rx1DrOffset != 0) hash ^= Rx1DrOffset.GetHashCode(); + if (Rx2Dr != 0) hash ^= Rx2Dr.GetHashCode(); + if (Rx2Frequency != 0) hash ^= Rx2Frequency.GetHashCode(); + if (ClassBPingSlotDr != 0) hash ^= ClassBPingSlotDr.GetHashCode(); + if (ClassBPingSlotFrequency != 0) hash ^= ClassBPingSlotFrequency.GetHashCode(); + if (Description.Length != 0) hash ^= Description.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 (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(16); + output.WriteEnum((int) Region); + } + if (UserInfo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(UserInfo); + } + uplinkChannels_.WriteTo(output, _repeated_uplinkChannels_codec); + if (Rx1Delay != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Rx1Delay); + } + if (Rx1DrOffset != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Rx1DrOffset); + } + if (Rx2Dr != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Rx2Dr); + } + if (Rx2Frequency != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Rx2Frequency); + } + if (ClassBPingSlotDr != 0) { + output.WriteRawTag(72); + output.WriteUInt32(ClassBPingSlotDr); + } + if (ClassBPingSlotFrequency != 0) { + output.WriteRawTag(80); + output.WriteUInt32(ClassBPingSlotFrequency); + } + if (Description.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Description); + } + 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 (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(16); + output.WriteEnum((int) Region); + } + if (UserInfo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(UserInfo); + } + uplinkChannels_.WriteTo(ref output, _repeated_uplinkChannels_codec); + if (Rx1Delay != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Rx1Delay); + } + if (Rx1DrOffset != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Rx1DrOffset); + } + if (Rx2Dr != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Rx2Dr); + } + if (Rx2Frequency != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Rx2Frequency); + } + if (ClassBPingSlotDr != 0) { + output.WriteRawTag(72); + output.WriteUInt32(ClassBPingSlotDr); + } + if (ClassBPingSlotFrequency != 0) { + output.WriteRawTag(80); + output.WriteUInt32(ClassBPingSlotFrequency); + } + if (Description.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Description); + } + 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 (Region != global::Chirpstack.Common.Region.Eu868) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); + } + if (UserInfo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserInfo); + } + size += uplinkChannels_.CalculateSize(_repeated_uplinkChannels_codec); + if (Rx1Delay != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rx1Delay); + } + if (Rx1DrOffset != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rx1DrOffset); + } + if (Rx2Dr != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rx2Dr); + } + if (Rx2Frequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rx2Frequency); + } + if (ClassBPingSlotDr != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotDr); + } + if (ClassBPingSlotFrequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotFrequency); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRegionResponse other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Region != global::Chirpstack.Common.Region.Eu868) { + Region = other.Region; + } + if (other.UserInfo.Length != 0) { + UserInfo = other.UserInfo; + } + uplinkChannels_.Add(other.uplinkChannels_); + if (other.Rx1Delay != 0) { + Rx1Delay = other.Rx1Delay; + } + if (other.Rx1DrOffset != 0) { + Rx1DrOffset = other.Rx1DrOffset; + } + if (other.Rx2Dr != 0) { + Rx2Dr = other.Rx2Dr; + } + if (other.Rx2Frequency != 0) { + Rx2Frequency = other.Rx2Frequency; + } + if (other.ClassBPingSlotDr != 0) { + ClassBPingSlotDr = other.ClassBPingSlotDr; + } + if (other.ClassBPingSlotFrequency != 0) { + ClassBPingSlotFrequency = other.ClassBPingSlotFrequency; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + _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 16: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 26: { + UserInfo = input.ReadString(); + break; + } + case 34: { + uplinkChannels_.AddEntriesFrom(input, _repeated_uplinkChannels_codec); + break; + } + case 40: { + Rx1Delay = input.ReadUInt32(); + break; + } + case 48: { + Rx1DrOffset = input.ReadUInt32(); + break; + } + case 56: { + Rx2Dr = input.ReadUInt32(); + break; + } + case 64: { + Rx2Frequency = input.ReadUInt32(); + break; + } + case 72: { + ClassBPingSlotDr = input.ReadUInt32(); + break; + } + case 80: { + ClassBPingSlotFrequency = input.ReadUInt32(); + break; + } + case 90: { + Description = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 16: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 26: { + UserInfo = input.ReadString(); + break; + } + case 34: { + uplinkChannels_.AddEntriesFrom(ref input, _repeated_uplinkChannels_codec); + break; + } + case 40: { + Rx1Delay = input.ReadUInt32(); + break; + } + case 48: { + Rx1DrOffset = input.ReadUInt32(); + break; + } + case 56: { + Rx2Dr = input.ReadUInt32(); + break; + } + case 64: { + Rx2Frequency = input.ReadUInt32(); + break; + } + case 72: { + ClassBPingSlotDr = input.ReadUInt32(); + break; + } + case 80: { + ClassBPingSlotFrequency = input.ReadUInt32(); + break; + } + case 90: { + Description = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class RegionChannel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegionChannel()); + 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.Api.InternalReflection.Descriptor.MessageTypes[29]; } + } + + [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 RegionChannel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionChannel(RegionChannel other) : this() { + frequency_ = other.frequency_; + drMin_ = other.drMin_; + drMax_ = other.drMax_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionChannel Clone() { + return new RegionChannel(this); + } + + /// Field number for the "frequency" field. + public const int FrequencyFieldNumber = 1; + private uint frequency_; + /// + /// Frequency (Hz). + /// + [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_min" field. + public const int DrMinFieldNumber = 2; + private uint drMin_; + /// + /// Min DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DrMin { + get { return drMin_; } + set { + drMin_ = value; + } + } + + /// Field number for the "dr_max" field. + public const int DrMaxFieldNumber = 3; + private uint drMax_; + /// + /// Max DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DrMax { + get { return drMax_; } + set { + drMax_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RegionChannel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RegionChannel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Frequency != other.Frequency) return false; + if (DrMin != other.DrMin) return false; + if (DrMax != other.DrMax) 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 (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (DrMin != 0) hash ^= DrMin.GetHashCode(); + if (DrMax != 0) hash ^= DrMax.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 (Frequency != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Frequency); + } + if (DrMin != 0) { + output.WriteRawTag(16); + output.WriteUInt32(DrMin); + } + if (DrMax != 0) { + output.WriteRawTag(24); + output.WriteUInt32(DrMax); + } + 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 (Frequency != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Frequency); + } + if (DrMin != 0) { + output.WriteRawTag(16); + output.WriteUInt32(DrMin); + } + if (DrMax != 0) { + output.WriteRawTag(24); + output.WriteUInt32(DrMax); + } + 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 (Frequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); + } + if (DrMin != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DrMin); + } + if (DrMax != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DrMax); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RegionChannel other) { + if (other == null) { + return; + } + if (other.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.DrMin != 0) { + DrMin = other.DrMin; + } + if (other.DrMax != 0) { + DrMax = other.DrMax; + } + _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: { + Frequency = input.ReadUInt32(); + break; + } + case 16: { + DrMin = input.ReadUInt32(); + break; + } + case 24: { + DrMax = 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 8: { + Frequency = input.ReadUInt32(); + break; + } + case 16: { + DrMin = input.ReadUInt32(); + break; + } + case 24: { + DrMax = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/InternalGrpc.cs b/api/csharp/Chirpstack/api/InternalGrpc.cs new file mode 100644 index 00000000..1eb8228a --- /dev/null +++ b/api/csharp/Chirpstack/api/InternalGrpc.cs @@ -0,0 +1,1149 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/internal.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.Api { + /// + /// InternalService is the service providing API endpoints for internal usage. + /// + public static partial class InternalService + { + static readonly string __ServiceName = "api.InternalService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_LoginRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.LoginRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_LoginResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.LoginResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GlobalSearchRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GlobalSearchRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GlobalSearchResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GlobalSearchResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateApiKeyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateApiKeyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateApiKeyResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateApiKeyResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteApiKeyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteApiKeyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListApiKeysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListApiKeysRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListApiKeysResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListApiKeysResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_SettingsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.SettingsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_OpenIdConnectLoginRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.OpenIdConnectLoginRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_OpenIdConnectLoginResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.OpenIdConnectLoginResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDevicesSummaryRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDevicesSummaryRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDevicesSummaryResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDevicesSummaryResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetGatewaysSummaryRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGatewaysSummaryRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetGatewaysSummaryResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGatewaysSummaryResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_StreamGatewayFramesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.StreamGatewayFramesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_LogItem = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.LogItem.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_StreamDeviceFramesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.StreamDeviceFramesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_StreamDeviceEventsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.StreamDeviceEventsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListRegionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListRegionsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetRegionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetRegionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetRegionResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetRegionResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Login = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Login", + __Marshaller_api_LoginRequest, + __Marshaller_api_LoginResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Profile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Profile", + __Marshaller_google_protobuf_Empty, + __Marshaller_api_ProfileResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GlobalSearch = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GlobalSearch", + __Marshaller_api_GlobalSearchRequest, + __Marshaller_api_GlobalSearchResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateApiKey = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateApiKey", + __Marshaller_api_CreateApiKeyRequest, + __Marshaller_api_CreateApiKeyResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteApiKey = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteApiKey", + __Marshaller_api_DeleteApiKeyRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListApiKeys = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListApiKeys", + __Marshaller_api_ListApiKeysRequest, + __Marshaller_api_ListApiKeysResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Settings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Settings", + __Marshaller_google_protobuf_Empty, + __Marshaller_api_SettingsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_OpenIdConnectLogin = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "OpenIdConnectLogin", + __Marshaller_api_OpenIdConnectLoginRequest, + __Marshaller_api_OpenIdConnectLoginResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetDevicesSummary = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetDevicesSummary", + __Marshaller_api_GetDevicesSummaryRequest, + __Marshaller_api_GetDevicesSummaryResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetGatewaysSummary = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetGatewaysSummary", + __Marshaller_api_GetGatewaysSummaryRequest, + __Marshaller_api_GetGatewaysSummaryResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_StreamGatewayFrames = new grpc::Method( + grpc::MethodType.ServerStreaming, + __ServiceName, + "StreamGatewayFrames", + __Marshaller_api_StreamGatewayFramesRequest, + __Marshaller_api_LogItem); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_StreamDeviceFrames = new grpc::Method( + grpc::MethodType.ServerStreaming, + __ServiceName, + "StreamDeviceFrames", + __Marshaller_api_StreamDeviceFramesRequest, + __Marshaller_api_LogItem); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_StreamDeviceEvents = new grpc::Method( + grpc::MethodType.ServerStreaming, + __ServiceName, + "StreamDeviceEvents", + __Marshaller_api_StreamDeviceEventsRequest, + __Marshaller_api_LogItem); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListRegions = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListRegions", + __Marshaller_google_protobuf_Empty, + __Marshaller_api_ListRegionsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetRegion = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetRegion", + __Marshaller_api_GetRegionRequest, + __Marshaller_api_GetRegionResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.Api.InternalReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of InternalService + [grpc::BindServiceMethod(typeof(InternalService), "BindService")] + public abstract partial class InternalServiceBase + { + /// + /// Log in a user + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Login(global::Chirpstack.Api.LoginRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the current user's profile + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Profile(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Perform a global search. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GlobalSearch(global::Chirpstack.Api.GlobalSearchRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateApiKey creates the given API key. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateApiKey(global::Chirpstack.Api.CreateApiKeyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteApiKey deletes the API key. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteApiKey(global::Chirpstack.Api.DeleteApiKeyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// ListApiKeys lists the available API keys. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListApiKeys(global::Chirpstack.Api.ListApiKeysRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the global settings. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Settings(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// OpenId Connect login. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task OpenIdConnectLogin(global::Chirpstack.Api.OpenIdConnectLoginRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetDevicesSummary returns an aggregated summary of the devices. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetDevicesSummary(global::Chirpstack.Api.GetDevicesSummaryRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetGatewaysSummary returns an aggregated summary of the gateways. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetGatewaysSummary(global::Chirpstack.Api.GetGatewaysSummaryRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Stream frame for the given Gateway ID. + /// + /// The request received from the client. + /// Used for sending responses back to the client. + /// The context of the server-side call handler being invoked. + /// A task indicating completion of the handler. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task StreamGatewayFrames(global::Chirpstack.Api.StreamGatewayFramesRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Stream frames for the given Device EUI. + /// + /// The request received from the client. + /// Used for sending responses back to the client. + /// The context of the server-side call handler being invoked. + /// A task indicating completion of the handler. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task StreamDeviceFrames(global::Chirpstack.Api.StreamDeviceFramesRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Stream events for the given Device EUI. + /// + /// The request received from the client. + /// Used for sending responses back to the client. + /// The context of the server-side call handler being invoked. + /// A task indicating completion of the handler. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task StreamDeviceEvents(global::Chirpstack.Api.StreamDeviceEventsRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// ListRegions lists the available (configured) regions. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListRegions(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetRegion returns the region details for the given region. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetRegion(global::Chirpstack.Api.GetRegionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for InternalService + public partial class InternalServiceClient : grpc::ClientBase + { + /// Creates a new client for InternalService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public InternalServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for InternalService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public InternalServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected InternalServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected InternalServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Log in a user + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.LoginResponse Login(global::Chirpstack.Api.LoginRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Login(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Log in a user + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.LoginResponse Login(global::Chirpstack.Api.LoginRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Login, null, options, request); + } + /// + /// Log in a user + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall LoginAsync(global::Chirpstack.Api.LoginRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return LoginAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Log in a user + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall LoginAsync(global::Chirpstack.Api.LoginRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Login, null, options, request); + } + /// + /// Get the current user's profile + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ProfileResponse Profile(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Profile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the current user's profile + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ProfileResponse Profile(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Profile, null, options, request); + } + /// + /// Get the current user's profile + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ProfileAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the current user's profile + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ProfileAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Profile, null, options, request); + } + /// + /// Perform a global search. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GlobalSearchResponse GlobalSearch(global::Chirpstack.Api.GlobalSearchRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GlobalSearch(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Perform a global search. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GlobalSearchResponse GlobalSearch(global::Chirpstack.Api.GlobalSearchRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GlobalSearch, null, options, request); + } + /// + /// Perform a global search. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GlobalSearchAsync(global::Chirpstack.Api.GlobalSearchRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GlobalSearchAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Perform a global search. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GlobalSearchAsync(global::Chirpstack.Api.GlobalSearchRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GlobalSearch, null, options, request); + } + /// + /// CreateApiKey creates the given API key. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.CreateApiKeyResponse CreateApiKey(global::Chirpstack.Api.CreateApiKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateApiKey(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateApiKey creates the given API key. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.CreateApiKeyResponse CreateApiKey(global::Chirpstack.Api.CreateApiKeyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateApiKey, null, options, request); + } + /// + /// CreateApiKey creates the given API key. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateApiKeyAsync(global::Chirpstack.Api.CreateApiKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateApiKeyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateApiKey creates the given API key. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateApiKeyAsync(global::Chirpstack.Api.CreateApiKeyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateApiKey, null, options, request); + } + /// + /// DeleteApiKey deletes the API key. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteApiKey(global::Chirpstack.Api.DeleteApiKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteApiKey(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteApiKey deletes the API key. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteApiKey(global::Chirpstack.Api.DeleteApiKeyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteApiKey, null, options, request); + } + /// + /// DeleteApiKey deletes the API key. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteApiKeyAsync(global::Chirpstack.Api.DeleteApiKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteApiKeyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteApiKey deletes the API key. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteApiKeyAsync(global::Chirpstack.Api.DeleteApiKeyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteApiKey, null, options, request); + } + /// + /// ListApiKeys lists the available API keys. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListApiKeysResponse ListApiKeys(global::Chirpstack.Api.ListApiKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListApiKeys(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ListApiKeys lists the available API keys. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListApiKeysResponse ListApiKeys(global::Chirpstack.Api.ListApiKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListApiKeys, null, options, request); + } + /// + /// ListApiKeys lists the available API keys. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListApiKeysAsync(global::Chirpstack.Api.ListApiKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListApiKeysAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ListApiKeys lists the available API keys. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListApiKeysAsync(global::Chirpstack.Api.ListApiKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListApiKeys, null, options, request); + } + /// + /// Get the global settings. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.SettingsResponse Settings(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Settings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the global settings. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.SettingsResponse Settings(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Settings, null, options, request); + } + /// + /// Get the global settings. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SettingsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the global settings. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SettingsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Settings, null, options, request); + } + /// + /// OpenId Connect login. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.OpenIdConnectLoginResponse OpenIdConnectLogin(global::Chirpstack.Api.OpenIdConnectLoginRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return OpenIdConnectLogin(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// OpenId Connect login. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.OpenIdConnectLoginResponse OpenIdConnectLogin(global::Chirpstack.Api.OpenIdConnectLoginRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_OpenIdConnectLogin, null, options, request); + } + /// + /// OpenId Connect login. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall OpenIdConnectLoginAsync(global::Chirpstack.Api.OpenIdConnectLoginRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return OpenIdConnectLoginAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// OpenId Connect login. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall OpenIdConnectLoginAsync(global::Chirpstack.Api.OpenIdConnectLoginRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_OpenIdConnectLogin, null, options, request); + } + /// + /// GetDevicesSummary returns an aggregated summary of the devices. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDevicesSummaryResponse GetDevicesSummary(global::Chirpstack.Api.GetDevicesSummaryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDevicesSummary(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDevicesSummary returns an aggregated summary of the devices. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetDevicesSummaryResponse GetDevicesSummary(global::Chirpstack.Api.GetDevicesSummaryRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetDevicesSummary, null, options, request); + } + /// + /// GetDevicesSummary returns an aggregated summary of the devices. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetDevicesSummaryAsync(global::Chirpstack.Api.GetDevicesSummaryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDevicesSummaryAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDevicesSummary returns an aggregated summary of the devices. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetDevicesSummaryAsync(global::Chirpstack.Api.GetDevicesSummaryRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetDevicesSummary, null, options, request); + } + /// + /// GetGatewaysSummary returns an aggregated summary of the gateways. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetGatewaysSummaryResponse GetGatewaysSummary(global::Chirpstack.Api.GetGatewaysSummaryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetGatewaysSummary(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetGatewaysSummary returns an aggregated summary of the gateways. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetGatewaysSummaryResponse GetGatewaysSummary(global::Chirpstack.Api.GetGatewaysSummaryRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetGatewaysSummary, null, options, request); + } + /// + /// GetGatewaysSummary returns an aggregated summary of the gateways. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetGatewaysSummaryAsync(global::Chirpstack.Api.GetGatewaysSummaryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetGatewaysSummaryAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetGatewaysSummary returns an aggregated summary of the gateways. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetGatewaysSummaryAsync(global::Chirpstack.Api.GetGatewaysSummaryRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetGatewaysSummary, null, options, request); + } + /// + /// Stream frame for the given Gateway ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncServerStreamingCall StreamGatewayFrames(global::Chirpstack.Api.StreamGatewayFramesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return StreamGatewayFrames(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Stream frame for the given Gateway ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncServerStreamingCall StreamGatewayFrames(global::Chirpstack.Api.StreamGatewayFramesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncServerStreamingCall(__Method_StreamGatewayFrames, null, options, request); + } + /// + /// Stream frames for the given Device EUI. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncServerStreamingCall StreamDeviceFrames(global::Chirpstack.Api.StreamDeviceFramesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return StreamDeviceFrames(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Stream frames for the given Device EUI. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncServerStreamingCall StreamDeviceFrames(global::Chirpstack.Api.StreamDeviceFramesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncServerStreamingCall(__Method_StreamDeviceFrames, null, options, request); + } + /// + /// Stream events for the given Device EUI. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncServerStreamingCall StreamDeviceEvents(global::Chirpstack.Api.StreamDeviceEventsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return StreamDeviceEvents(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Stream events for the given Device EUI. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncServerStreamingCall StreamDeviceEvents(global::Chirpstack.Api.StreamDeviceEventsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncServerStreamingCall(__Method_StreamDeviceEvents, null, options, request); + } + /// + /// ListRegions lists the available (configured) regions. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListRegionsResponse ListRegions(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListRegions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ListRegions lists the available (configured) regions. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListRegionsResponse ListRegions(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListRegions, null, options, request); + } + /// + /// ListRegions lists the available (configured) regions. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListRegionsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListRegionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ListRegions lists the available (configured) regions. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListRegionsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListRegions, null, options, request); + } + /// + /// GetRegion returns the region details for the given region. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetRegionResponse GetRegion(global::Chirpstack.Api.GetRegionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetRegion(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetRegion returns the region details for the given region. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetRegionResponse GetRegion(global::Chirpstack.Api.GetRegionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetRegion, null, options, request); + } + /// + /// GetRegion returns the region details for the given region. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetRegionAsync(global::Chirpstack.Api.GetRegionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetRegionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetRegion returns the region details for the given region. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetRegionAsync(global::Chirpstack.Api.GetRegionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetRegion, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override InternalServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new InternalServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(InternalServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_Login, serviceImpl.Login) + .AddMethod(__Method_Profile, serviceImpl.Profile) + .AddMethod(__Method_GlobalSearch, serviceImpl.GlobalSearch) + .AddMethod(__Method_CreateApiKey, serviceImpl.CreateApiKey) + .AddMethod(__Method_DeleteApiKey, serviceImpl.DeleteApiKey) + .AddMethod(__Method_ListApiKeys, serviceImpl.ListApiKeys) + .AddMethod(__Method_Settings, serviceImpl.Settings) + .AddMethod(__Method_OpenIdConnectLogin, serviceImpl.OpenIdConnectLogin) + .AddMethod(__Method_GetDevicesSummary, serviceImpl.GetDevicesSummary) + .AddMethod(__Method_GetGatewaysSummary, serviceImpl.GetGatewaysSummary) + .AddMethod(__Method_StreamGatewayFrames, serviceImpl.StreamGatewayFrames) + .AddMethod(__Method_StreamDeviceFrames, serviceImpl.StreamDeviceFrames) + .AddMethod(__Method_StreamDeviceEvents, serviceImpl.StreamDeviceEvents) + .AddMethod(__Method_ListRegions, serviceImpl.ListRegions) + .AddMethod(__Method_GetRegion, serviceImpl.GetRegion).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, InternalServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_Login, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Login)); + serviceBinder.AddMethod(__Method_Profile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Profile)); + serviceBinder.AddMethod(__Method_GlobalSearch, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GlobalSearch)); + serviceBinder.AddMethod(__Method_CreateApiKey, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateApiKey)); + serviceBinder.AddMethod(__Method_DeleteApiKey, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteApiKey)); + serviceBinder.AddMethod(__Method_ListApiKeys, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListApiKeys)); + serviceBinder.AddMethod(__Method_Settings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Settings)); + serviceBinder.AddMethod(__Method_OpenIdConnectLogin, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.OpenIdConnectLogin)); + serviceBinder.AddMethod(__Method_GetDevicesSummary, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetDevicesSummary)); + serviceBinder.AddMethod(__Method_GetGatewaysSummary, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGatewaysSummary)); + serviceBinder.AddMethod(__Method_StreamGatewayFrames, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.StreamGatewayFrames)); + serviceBinder.AddMethod(__Method_StreamDeviceFrames, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.StreamDeviceFrames)); + serviceBinder.AddMethod(__Method_StreamDeviceEvents, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.StreamDeviceEvents)); + serviceBinder.AddMethod(__Method_ListRegions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListRegions)); + serviceBinder.AddMethod(__Method_GetRegion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRegion)); + } + + } +} +#endregion diff --git a/api/csharp/Chirpstack/api/MulticastGroup.cs b/api/csharp/Chirpstack/api/MulticastGroup.cs new file mode 100644 index 00000000..723d7149 --- /dev/null +++ b/api/csharp/Chirpstack/api/MulticastGroup.cs @@ -0,0 +1,5270 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/multicast_group.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.Api { + + /// Holder for reflection information generated from api/multicast_group.proto + public static partial class MulticastGroupReflection { + + #region Descriptor + /// File descriptor for api/multicast_group.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MulticastGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlhcGkvbXVsdGljYXN0X2dyb3VwLnByb3RvEgNhcGkaHGdvb2dsZS9hcGkv", + "YW5ub3RhdGlvbnMucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAu", + "cHJvdG8aG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90bxoTY29tbW9uL2Nv", + "bW1vbi5wcm90byLgAgoOTXVsdGljYXN0R3JvdXASCgoCaWQYASABKAkSDAoE", + "bmFtZRgCIAEoCRIWCg5hcHBsaWNhdGlvbl9pZBgDIAEoCRIeCgZyZWdpb24Y", + "BCABKA4yDi5jb21tb24uUmVnaW9uEg8KB21jX2FkZHIYBSABKAkSFAoMbWNf", + "bndrX3Nfa2V5GAYgASgJEhQKDG1jX2FwcF9zX2tleRgHIAEoCRINCgVmX2Nu", + "dBgIIAEoDRIrCgpncm91cF90eXBlGAkgASgOMhcuYXBpLk11bHRpY2FzdEdy", + "b3VwVHlwZRIKCgJkchgKIAEoDRIRCglmcmVxdWVuY3kYCyABKA0SIAoYY2xh", + "c3NfYl9waW5nX3Nsb3RfcGVyaW9kGAwgASgNEkIKF2NsYXNzX2Nfc2NoZWR1", + "bGluZ190eXBlGA0gASgOMiEuYXBpLk11bHRpY2FzdEdyb3VwU2NoZWR1bGlu", + "Z1R5cGUi3wEKFk11bHRpY2FzdEdyb3VwTGlzdEl0ZW0SCgoCaWQYASABKAkS", + "LgoKY3JlYXRlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", + "bXASLgoKdXBkYXRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXASDAoEbmFtZRgEIAEoCRIeCgZyZWdpb24YBSABKA4yDi5jb21tb24u", + "UmVnaW9uEisKCmdyb3VwX3R5cGUYBiABKA4yFy5hcGkuTXVsdGljYXN0R3Jv", + "dXBUeXBlIksKG0NyZWF0ZU11bHRpY2FzdEdyb3VwUmVxdWVzdBIsCg9tdWx0", + "aWNhc3RfZ3JvdXAYASABKAsyEy5hcGkuTXVsdGljYXN0R3JvdXAiKgocQ3Jl", + "YXRlTXVsdGljYXN0R3JvdXBSZXNwb25zZRIKCgJpZBgBIAEoCSImChhHZXRN", + "dWx0aWNhc3RHcm91cFJlcXVlc3QSCgoCaWQYASABKAkiqQEKGUdldE11bHRp", + "Y2FzdEdyb3VwUmVzcG9uc2USLAoPbXVsdGljYXN0X2dyb3VwGAEgASgLMhMu", + "YXBpLk11bHRpY2FzdEdyb3VwEi4KCmNyZWF0ZWRfYXQYAiABKAsyGi5nb29n", + "bGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYAyABKAsyGi5n", + "b29nbGUucHJvdG9idWYuVGltZXN0YW1wIksKG1VwZGF0ZU11bHRpY2FzdEdy", + "b3VwUmVxdWVzdBIsCg9tdWx0aWNhc3RfZ3JvdXAYASABKAsyEy5hcGkuTXVs", + "dGljYXN0R3JvdXAiKQobRGVsZXRlTXVsdGljYXN0R3JvdXBSZXF1ZXN0EgoK", + "AmlkGAEgASgJImMKGkxpc3RNdWx0aWNhc3RHcm91cHNSZXF1ZXN0Eg0KBWxp", + "bWl0GAEgASgNEg4KBm9mZnNldBgCIAEoDRIOCgZzZWFyY2gYAyABKAkSFgoO", + "YXBwbGljYXRpb25faWQYBCABKAkiXwobTGlzdE11bHRpY2FzdEdyb3Vwc1Jl", + "c3BvbnNlEhMKC3RvdGFsX2NvdW50GAEgASgNEisKBnJlc3VsdBgCIAMoCzIb", + "LmFwaS5NdWx0aWNhc3RHcm91cExpc3RJdGVtIk8KIEFkZERldmljZVRvTXVs", + "dGljYXN0R3JvdXBSZXF1ZXN0EhoKEm11bHRpY2FzdF9ncm91cF9pZBgBIAEo", + "CRIPCgdkZXZfZXVpGAIgASgJIlQKJVJlbW92ZURldmljZUZyb21NdWx0aWNh", + "c3RHcm91cFJlcXVlc3QSGgoSbXVsdGljYXN0X2dyb3VwX2lkGAEgASgJEg8K", + "B2Rldl9ldWkYAiABKAkiUwohQWRkR2F0ZXdheVRvTXVsdGljYXN0R3JvdXBS", + "ZXF1ZXN0EhoKEm11bHRpY2FzdF9ncm91cF9pZBgBIAEoCRISCgpnYXRld2F5", + "X2lkGAIgASgJIlgKJlJlbW92ZUdhdGV3YXlGcm9tTXVsdGljYXN0R3JvdXBS", + "ZXF1ZXN0EhoKEm11bHRpY2FzdF9ncm91cF9pZBgBIAEoCRISCgpnYXRld2F5", + "X2lkGAIgASgJImIKF011bHRpY2FzdEdyb3VwUXVldWVJdGVtEhoKEm11bHRp", + "Y2FzdF9ncm91cF9pZBgBIAEoCRINCgVmX2NudBgCIAEoDRIOCgZmX3BvcnQY", + "AyABKA0SDAoEZGF0YRgEIAEoDCJZCiVFbnF1ZXVlTXVsdGljYXN0R3JvdXBR", + "dWV1ZUl0ZW1SZXF1ZXN0EjAKCnF1ZXVlX2l0ZW0YASABKAsyHC5hcGkuTXVs", + "dGljYXN0R3JvdXBRdWV1ZUl0ZW0iNwomRW5xdWV1ZU11bHRpY2FzdEdyb3Vw", + "UXVldWVJdGVtUmVzcG9uc2USDQoFZl9jbnQYASABKA0iPQofRmx1c2hNdWx0", + "aWNhc3RHcm91cFF1ZXVlUmVxdWVzdBIaChJtdWx0aWNhc3RfZ3JvdXBfaWQY", + "ASABKAkiPAoeTGlzdE11bHRpY2FzdEdyb3VwUXVldWVSZXF1ZXN0EhoKEm11", + "bHRpY2FzdF9ncm91cF9pZBgBIAEoCSJOCh9MaXN0TXVsdGljYXN0R3JvdXBR", + "dWV1ZVJlc3BvbnNlEisKBWl0ZW1zGAEgAygLMhwuYXBpLk11bHRpY2FzdEdy", + "b3VwUXVldWVJdGVtKi4KEk11bHRpY2FzdEdyb3VwVHlwZRILCgdDTEFTU19D", + "EAASCwoHQ0xBU1NfQhABKjcKHE11bHRpY2FzdEdyb3VwU2NoZWR1bGluZ1R5", + "cGUSCQoFREVMQVkQABIMCghHUFNfVElNRRABMt0MChVNdWx0aWNhc3RHcm91", + "cFNlcnZpY2USbwoGQ3JlYXRlEiAuYXBpLkNyZWF0ZU11bHRpY2FzdEdyb3Vw", + "UmVxdWVzdBohLmFwaS5DcmVhdGVNdWx0aWNhc3RHcm91cFJlc3BvbnNlIiCC", + "0+STAhoiFS9hcGkvbXVsdGljYXN0LWdyb3VwczoBKhJoCgNHZXQSHS5hcGku", + "R2V0TXVsdGljYXN0R3JvdXBSZXF1ZXN0Gh4uYXBpLkdldE11bHRpY2FzdEdy", + "b3VwUmVzcG9uc2UiIoLT5JMCHBIaL2FwaS9tdWx0aWNhc3QtZ3JvdXBzL3tp", + "ZH0SeQoGVXBkYXRlEiAuYXBpLlVwZGF0ZU11bHRpY2FzdEdyb3VwUmVxdWVz", + "dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSI1gtPkkwIvGiovYXBpL211bHRp", + "Y2FzdC1ncm91cHMve211bHRpY2FzdF9ncm91cC5pZH06ASoSZgoGRGVsZXRl", + "EiAuYXBpLkRlbGV0ZU11bHRpY2FzdEdyb3VwUmVxdWVzdBoWLmdvb2dsZS5w", + "cm90b2J1Zi5FbXB0eSIigtPkkwIcKhovYXBpL211bHRpY2FzdC1ncm91cHMv", + "e2lkfRJoCgRMaXN0Eh8uYXBpLkxpc3RNdWx0aWNhc3RHcm91cHNSZXF1ZXN0", + "GiAuYXBpLkxpc3RNdWx0aWNhc3RHcm91cHNSZXNwb25zZSIdgtPkkwIXEhUv", + "YXBpL211bHRpY2FzdC1ncm91cHMSiQEKCUFkZERldmljZRIlLmFwaS5BZGRE", + "ZXZpY2VUb011bHRpY2FzdEdyb3VwUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1", + "Zi5FbXB0eSI9gtPkkwI3IjIvYXBpL211bHRpY2FzdC1ncm91cHMve211bHRp", + "Y2FzdF9ncm91cF9pZH0vZGV2aWNlczoBKhKYAQoMUmVtb3ZlRGV2aWNlEiou", + "YXBpLlJlbW92ZURldmljZUZyb21NdWx0aWNhc3RHcm91cFJlcXVlc3QaFi5n", + "b29nbGUucHJvdG9idWYuRW1wdHkiRILT5JMCPio8L2FwaS9tdWx0aWNhc3Qt", + "Z3JvdXBzL3ttdWx0aWNhc3RfZ3JvdXBfaWR9L2RldmljZXMve2Rldl9ldWl9", + "EowBCgpBZGRHYXRld2F5EiYuYXBpLkFkZEdhdGV3YXlUb011bHRpY2FzdEdy", + "b3VwUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSI+gtPkkwI4IjMv", + "YXBpL211bHRpY2FzdC1ncm91cHMve211bHRpY2FzdF9ncm91cF9pZH0vZ2F0", + "ZXdheXM6ASoSngEKDVJlbW92ZUdhdGV3YXkSKy5hcGkuUmVtb3ZlR2F0ZXdh", + "eUZyb21NdWx0aWNhc3RHcm91cFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYu", + "RW1wdHkiSILT5JMCQipAL2FwaS9tdWx0aWNhc3QtZ3JvdXBzL3ttdWx0aWNh", + "c3RfZ3JvdXBfaWR9L2dhdGV3YXlzL3tnYXRld2F5X2lkfRKqAQoHRW5xdWV1", + "ZRIqLmFwaS5FbnF1ZXVlTXVsdGljYXN0R3JvdXBRdWV1ZUl0ZW1SZXF1ZXN0", + "GisuYXBpLkVucXVldWVNdWx0aWNhc3RHcm91cFF1ZXVlSXRlbVJlc3BvbnNl", + "IkaC0+STAkAiOy9hcGkvbXVsdGljYXN0LWdyb3Vwcy97cXVldWVfaXRlbS5t", + "dWx0aWNhc3RfZ3JvdXBfaWR9L3F1ZXVlOgEqEoQBCgpGbHVzaFF1ZXVlEiQu", + "YXBpLkZsdXNoTXVsdGljYXN0R3JvdXBRdWV1ZVJlcXVlc3QaFi5nb29nbGUu", + "cHJvdG9idWYuRW1wdHkiOILT5JMCMiowL2FwaS9tdWx0aWNhc3QtZ3JvdXBz", + "L3ttdWx0aWNhc3RfZ3JvdXBfaWR9L3F1ZXVlEpABCglMaXN0UXVldWUSIy5h", + "cGkuTGlzdE11bHRpY2FzdEdyb3VwUXVldWVSZXF1ZXN0GiQuYXBpLkxpc3RN", + "dWx0aWNhc3RHcm91cFF1ZXVlUmVzcG9uc2UiOILT5JMCMhIwL2FwaS9tdWx0", + "aWNhc3QtZ3JvdXBzL3ttdWx0aWNhc3RfZ3JvdXBfaWR9L3F1ZXVlQmsKEWlv", + "LmNoaXJwc3RhY2suYXBpQhNNdWx0aWNhc3RHcm91cFByb3RvUAFaLmdpdGh1", + "Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0YWNrL2FwaS9nby92NC9hcGmqAg5D", + "aGlycHN0YWNrLkFwaWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Api.MulticastGroupType), typeof(global::Chirpstack.Api.MulticastGroupSchedulingType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.MulticastGroup), global::Chirpstack.Api.MulticastGroup.Parser, new[]{ "Id", "Name", "ApplicationId", "Region", "McAddr", "McNwkSKey", "McAppSKey", "FCnt", "GroupType", "Dr", "Frequency", "ClassBPingSlotPeriod", "ClassCSchedulingType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.MulticastGroupListItem), global::Chirpstack.Api.MulticastGroupListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Name", "Region", "GroupType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateMulticastGroupRequest), global::Chirpstack.Api.CreateMulticastGroupRequest.Parser, new[]{ "MulticastGroup" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateMulticastGroupResponse), global::Chirpstack.Api.CreateMulticastGroupResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetMulticastGroupRequest), global::Chirpstack.Api.GetMulticastGroupRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetMulticastGroupResponse), global::Chirpstack.Api.GetMulticastGroupResponse.Parser, new[]{ "MulticastGroup", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateMulticastGroupRequest), global::Chirpstack.Api.UpdateMulticastGroupRequest.Parser, new[]{ "MulticastGroup" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteMulticastGroupRequest), global::Chirpstack.Api.DeleteMulticastGroupRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListMulticastGroupsRequest), global::Chirpstack.Api.ListMulticastGroupsRequest.Parser, new[]{ "Limit", "Offset", "Search", "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListMulticastGroupsResponse), global::Chirpstack.Api.ListMulticastGroupsResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AddDeviceToMulticastGroupRequest), global::Chirpstack.Api.AddDeviceToMulticastGroupRequest.Parser, new[]{ "MulticastGroupId", "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest), global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest.Parser, new[]{ "MulticastGroupId", "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AddGatewayToMulticastGroupRequest), global::Chirpstack.Api.AddGatewayToMulticastGroupRequest.Parser, new[]{ "MulticastGroupId", "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest), global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest.Parser, new[]{ "MulticastGroupId", "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.MulticastGroupQueueItem), global::Chirpstack.Api.MulticastGroupQueueItem.Parser, new[]{ "MulticastGroupId", "FCnt", "FPort", "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest), global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest.Parser, new[]{ "QueueItem" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemResponse), global::Chirpstack.Api.EnqueueMulticastGroupQueueItemResponse.Parser, new[]{ "FCnt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.FlushMulticastGroupQueueRequest), global::Chirpstack.Api.FlushMulticastGroupQueueRequest.Parser, new[]{ "MulticastGroupId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListMulticastGroupQueueRequest), global::Chirpstack.Api.ListMulticastGroupQueueRequest.Parser, new[]{ "MulticastGroupId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListMulticastGroupQueueResponse), global::Chirpstack.Api.ListMulticastGroupQueueResponse.Parser, new[]{ "Items" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum MulticastGroupType { + /// + /// Class C. + /// + [pbr::OriginalName("CLASS_C")] ClassC = 0, + /// + /// Class-B. + /// + [pbr::OriginalName("CLASS_B")] ClassB = 1, + } + + public enum MulticastGroupSchedulingType { + /// + /// Delay. + /// If multicast downlinks must be sent through multiple gateways, then + /// these will be sent one by one with a delay between each gateway. + /// + [pbr::OriginalName("DELAY")] Delay = 0, + /// + /// Time. + /// If multicast downlinks must be sent through multiple gateways, then + /// these will be sent simultaneously using GPS time synchronization. + /// Note that this does require GPS time-synchronized LoRa gateways. + /// + [pbr::OriginalName("GPS_TIME")] GpsTime = 1, + } + + #endregion + + #region Messages + public sealed partial class MulticastGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MulticastGroup()); + 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.Api.MulticastGroupReflection.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 MulticastGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MulticastGroup(MulticastGroup other) : this() { + id_ = other.id_; + name_ = other.name_; + applicationId_ = other.applicationId_; + region_ = other.region_; + mcAddr_ = other.mcAddr_; + mcNwkSKey_ = other.mcNwkSKey_; + mcAppSKey_ = other.mcAppSKey_; + fCnt_ = other.fCnt_; + groupType_ = other.groupType_; + dr_ = other.dr_; + frequency_ = other.frequency_; + classBPingSlotPeriod_ = other.classBPingSlotPeriod_; + classCSchedulingType_ = other.classCSchedulingType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MulticastGroup Clone() { + return new MulticastGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID (UUID). + /// This will be generated automatically on create. + /// + [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 "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 3; + private string applicationId_ = ""; + /// + /// Application ID. + /// After creation, this can not be updated. + /// + [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 "region" field. + public const int RegionFieldNumber = 4; + private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; + /// + /// Region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Region Region { + get { return region_; } + set { + region_ = value; + } + } + + /// Field number for the "mc_addr" field. + public const int McAddrFieldNumber = 5; + private string mcAddr_ = ""; + /// + /// Multicast address (HEX encoded DevAddr). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string McAddr { + get { return mcAddr_; } + set { + mcAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mc_nwk_s_key" field. + public const int McNwkSKeyFieldNumber = 6; + private string mcNwkSKey_ = ""; + /// + /// Multicast network session key (HEX encoded AES128 key). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string McNwkSKey { + get { return mcNwkSKey_; } + set { + mcNwkSKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mc_app_s_key" field. + public const int McAppSKeyFieldNumber = 7; + private string mcAppSKey_ = ""; + /// + /// Multicast application session key (HEX encoded AES128 key). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string McAppSKey { + get { return mcAppSKey_; } + set { + mcAppSKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 8; + 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 "group_type" field. + public const int GroupTypeFieldNumber = 9; + private global::Chirpstack.Api.MulticastGroupType groupType_ = global::Chirpstack.Api.MulticastGroupType.ClassC; + /// + /// Multicast group type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.MulticastGroupType GroupType { + get { return groupType_; } + set { + groupType_ = value; + } + } + + /// Field number for the "dr" field. + public const int DrFieldNumber = 10; + 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 "frequency" field. + public const int FrequencyFieldNumber = 11; + private uint frequency_; + /// + /// Frequency (Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Frequency { + get { return frequency_; } + set { + frequency_ = value; + } + } + + /// Field number for the "class_b_ping_slot_period" field. + public const int ClassBPingSlotPeriodFieldNumber = 12; + private uint classBPingSlotPeriod_; + /// + /// Ping-slot period (only for Class-B). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBPingSlotPeriod { + get { return classBPingSlotPeriod_; } + set { + classBPingSlotPeriod_ = value; + } + } + + /// Field number for the "class_c_scheduling_type" field. + public const int ClassCSchedulingTypeFieldNumber = 13; + private global::Chirpstack.Api.MulticastGroupSchedulingType classCSchedulingType_ = global::Chirpstack.Api.MulticastGroupSchedulingType.Delay; + /// + /// Scheduling type (only for Class-C). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.MulticastGroupSchedulingType ClassCSchedulingType { + get { return classCSchedulingType_; } + set { + classCSchedulingType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MulticastGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MulticastGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (ApplicationId != other.ApplicationId) return false; + if (Region != other.Region) return false; + if (McAddr != other.McAddr) return false; + if (McNwkSKey != other.McNwkSKey) return false; + if (McAppSKey != other.McAppSKey) return false; + if (FCnt != other.FCnt) return false; + if (GroupType != other.GroupType) return false; + if (Dr != other.Dr) return false; + if (Frequency != other.Frequency) return false; + if (ClassBPingSlotPeriod != other.ClassBPingSlotPeriod) return false; + if (ClassCSchedulingType != other.ClassCSchedulingType) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); + if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); + if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); + if (McAddr.Length != 0) hash ^= McAddr.GetHashCode(); + if (McNwkSKey.Length != 0) hash ^= McNwkSKey.GetHashCode(); + if (McAppSKey.Length != 0) hash ^= McAppSKey.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.GetHashCode(); + if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) hash ^= GroupType.GetHashCode(); + if (Dr != 0) hash ^= Dr.GetHashCode(); + if (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (ClassBPingSlotPeriod != 0) hash ^= ClassBPingSlotPeriod.GetHashCode(); + if (ClassCSchedulingType != global::Chirpstack.Api.MulticastGroupSchedulingType.Delay) hash ^= ClassCSchedulingType.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 (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (ApplicationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ApplicationId); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(32); + output.WriteEnum((int) Region); + } + if (McAddr.Length != 0) { + output.WriteRawTag(42); + output.WriteString(McAddr); + } + if (McNwkSKey.Length != 0) { + output.WriteRawTag(50); + output.WriteString(McNwkSKey); + } + if (McAppSKey.Length != 0) { + output.WriteRawTag(58); + output.WriteString(McAppSKey); + } + if (FCnt != 0) { + output.WriteRawTag(64); + output.WriteUInt32(FCnt); + } + if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { + output.WriteRawTag(72); + output.WriteEnum((int) GroupType); + } + if (Dr != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Dr); + } + if (Frequency != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Frequency); + } + if (ClassBPingSlotPeriod != 0) { + output.WriteRawTag(96); + output.WriteUInt32(ClassBPingSlotPeriod); + } + if (ClassCSchedulingType != global::Chirpstack.Api.MulticastGroupSchedulingType.Delay) { + output.WriteRawTag(104); + output.WriteEnum((int) ClassCSchedulingType); + } + 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 (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (ApplicationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ApplicationId); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(32); + output.WriteEnum((int) Region); + } + if (McAddr.Length != 0) { + output.WriteRawTag(42); + output.WriteString(McAddr); + } + if (McNwkSKey.Length != 0) { + output.WriteRawTag(50); + output.WriteString(McNwkSKey); + } + if (McAppSKey.Length != 0) { + output.WriteRawTag(58); + output.WriteString(McAppSKey); + } + if (FCnt != 0) { + output.WriteRawTag(64); + output.WriteUInt32(FCnt); + } + if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { + output.WriteRawTag(72); + output.WriteEnum((int) GroupType); + } + if (Dr != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Dr); + } + if (Frequency != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Frequency); + } + if (ClassBPingSlotPeriod != 0) { + output.WriteRawTag(96); + output.WriteUInt32(ClassBPingSlotPeriod); + } + if (ClassCSchedulingType != global::Chirpstack.Api.MulticastGroupSchedulingType.Delay) { + output.WriteRawTag(104); + output.WriteEnum((int) ClassCSchedulingType); + } + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); + } + if (McAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(McAddr); + } + if (McNwkSKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(McNwkSKey); + } + if (McAppSKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(McAppSKey); + } + if (FCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); + } + if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GroupType); + } + if (Dr != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Dr); + } + if (Frequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); + } + if (ClassBPingSlotPeriod != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotPeriod); + } + if (ClassCSchedulingType != global::Chirpstack.Api.MulticastGroupSchedulingType.Delay) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ClassCSchedulingType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MulticastGroup other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + if (other.Region != global::Chirpstack.Common.Region.Eu868) { + Region = other.Region; + } + if (other.McAddr.Length != 0) { + McAddr = other.McAddr; + } + if (other.McNwkSKey.Length != 0) { + McNwkSKey = other.McNwkSKey; + } + if (other.McAppSKey.Length != 0) { + McAppSKey = other.McAppSKey; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + if (other.GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { + GroupType = other.GroupType; + } + if (other.Dr != 0) { + Dr = other.Dr; + } + if (other.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.ClassBPingSlotPeriod != 0) { + ClassBPingSlotPeriod = other.ClassBPingSlotPeriod; + } + if (other.ClassCSchedulingType != global::Chirpstack.Api.MulticastGroupSchedulingType.Delay) { + ClassCSchedulingType = other.ClassCSchedulingType; + } + _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: { + Name = input.ReadString(); + break; + } + case 26: { + ApplicationId = input.ReadString(); + break; + } + case 32: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 42: { + McAddr = input.ReadString(); + break; + } + case 50: { + McNwkSKey = input.ReadString(); + break; + } + case 58: { + McAppSKey = input.ReadString(); + break; + } + case 64: { + FCnt = input.ReadUInt32(); + break; + } + case 72: { + GroupType = (global::Chirpstack.Api.MulticastGroupType) input.ReadEnum(); + break; + } + case 80: { + Dr = input.ReadUInt32(); + break; + } + case 88: { + Frequency = input.ReadUInt32(); + break; + } + case 96: { + ClassBPingSlotPeriod = input.ReadUInt32(); + break; + } + case 104: { + ClassCSchedulingType = (global::Chirpstack.Api.MulticastGroupSchedulingType) 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: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + ApplicationId = input.ReadString(); + break; + } + case 32: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 42: { + McAddr = input.ReadString(); + break; + } + case 50: { + McNwkSKey = input.ReadString(); + break; + } + case 58: { + McAppSKey = input.ReadString(); + break; + } + case 64: { + FCnt = input.ReadUInt32(); + break; + } + case 72: { + GroupType = (global::Chirpstack.Api.MulticastGroupType) input.ReadEnum(); + break; + } + case 80: { + Dr = input.ReadUInt32(); + break; + } + case 88: { + Frequency = input.ReadUInt32(); + break; + } + case 96: { + ClassBPingSlotPeriod = input.ReadUInt32(); + break; + } + case 104: { + ClassCSchedulingType = (global::Chirpstack.Api.MulticastGroupSchedulingType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class MulticastGroupListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MulticastGroupListItem()); + 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.Api.MulticastGroupReflection.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 MulticastGroupListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MulticastGroupListItem(MulticastGroupListItem other) : this() { + id_ = other.id_; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + name_ = other.name_; + region_ = other.region_; + groupType_ = other.groupType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MulticastGroupListItem Clone() { + return new MulticastGroupListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID. + /// + [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 "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 5; + private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; + /// + /// Region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Region Region { + get { return region_; } + set { + region_ = value; + } + } + + /// Field number for the "group_type" field. + public const int GroupTypeFieldNumber = 6; + private global::Chirpstack.Api.MulticastGroupType groupType_ = global::Chirpstack.Api.MulticastGroupType.ClassC; + /// + /// Multicast group type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.MulticastGroupType GroupType { + get { return groupType_; } + set { + groupType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MulticastGroupListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MulticastGroupListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (Name != other.Name) return false; + if (Region != other.Region) return false; + if (GroupType != other.GroupType) 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 (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); + if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) hash ^= GroupType.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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(40); + output.WriteEnum((int) Region); + } + if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { + output.WriteRawTag(48); + output.WriteEnum((int) GroupType); + } + 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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(40); + output.WriteEnum((int) Region); + } + if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { + output.WriteRawTag(48); + output.WriteEnum((int) GroupType); + } + 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 (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); + } + if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GroupType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MulticastGroupListItem other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Region != global::Chirpstack.Common.Region.Eu868) { + Region = other.Region; + } + if (other.GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { + GroupType = other.GroupType; + } + _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: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 48: { + GroupType = (global::Chirpstack.Api.MulticastGroupType) 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: { + Id = input.ReadString(); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + case 48: { + GroupType = (global::Chirpstack.Api.MulticastGroupType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateMulticastGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMulticastGroupRequest()); + 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.Api.MulticastGroupReflection.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 CreateMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateMulticastGroupRequest(CreateMulticastGroupRequest other) : this() { + multicastGroup_ = other.multicastGroup_ != null ? other.multicastGroup_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateMulticastGroupRequest Clone() { + return new CreateMulticastGroupRequest(this); + } + + /// Field number for the "multicast_group" field. + public const int MulticastGroupFieldNumber = 1; + private global::Chirpstack.Api.MulticastGroup multicastGroup_; + /// + /// Multicast group to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.MulticastGroup MulticastGroup { + get { return multicastGroup_; } + set { + multicastGroup_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateMulticastGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateMulticastGroupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MulticastGroup, other.MulticastGroup)) 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 (multicastGroup_ != null) hash ^= MulticastGroup.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 (multicastGroup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MulticastGroup); + } + 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 (multicastGroup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MulticastGroup); + } + 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 (multicastGroup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MulticastGroup); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateMulticastGroupRequest other) { + if (other == null) { + return; + } + if (other.multicastGroup_ != null) { + if (multicastGroup_ == null) { + MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); + } + MulticastGroup.MergeFrom(other.MulticastGroup); + } + _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 (multicastGroup_ == null) { + MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); + } + input.ReadMessage(MulticastGroup); + 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 (multicastGroup_ == null) { + MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); + } + input.ReadMessage(MulticastGroup); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateMulticastGroupResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMulticastGroupResponse()); + 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.Api.MulticastGroupReflection.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 CreateMulticastGroupResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateMulticastGroupResponse(CreateMulticastGroupResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateMulticastGroupResponse Clone() { + return new CreateMulticastGroupResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID of created multicast group (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateMulticastGroupResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateMulticastGroupResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateMulticastGroupResponse other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetMulticastGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMulticastGroupRequest()); + 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.Api.MulticastGroupReflection.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 GetMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMulticastGroupRequest(GetMulticastGroupRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMulticastGroupRequest Clone() { + return new GetMulticastGroupRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Multicast group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetMulticastGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMulticastGroupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetMulticastGroupRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetMulticastGroupResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMulticastGroupResponse()); + 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.Api.MulticastGroupReflection.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 GetMulticastGroupResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMulticastGroupResponse(GetMulticastGroupResponse other) : this() { + multicastGroup_ = other.multicastGroup_ != null ? other.multicastGroup_.Clone() : null; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMulticastGroupResponse Clone() { + return new GetMulticastGroupResponse(this); + } + + /// Field number for the "multicast_group" field. + public const int MulticastGroupFieldNumber = 1; + private global::Chirpstack.Api.MulticastGroup multicastGroup_; + /// + /// Multicast group object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.MulticastGroup MulticastGroup { + get { return multicastGroup_; } + set { + multicastGroup_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetMulticastGroupResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMulticastGroupResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MulticastGroup, other.MulticastGroup)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) 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 (multicastGroup_ != null) hash ^= MulticastGroup.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.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 (multicastGroup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MulticastGroup); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (multicastGroup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MulticastGroup); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (multicastGroup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MulticastGroup); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetMulticastGroupResponse other) { + if (other == null) { + return; + } + if (other.multicastGroup_ != null) { + if (multicastGroup_ == null) { + MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); + } + MulticastGroup.MergeFrom(other.MulticastGroup); + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + _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 (multicastGroup_ == null) { + MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); + } + input.ReadMessage(MulticastGroup); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + 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 (multicastGroup_ == null) { + MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); + } + input.ReadMessage(MulticastGroup); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateMulticastGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateMulticastGroupRequest()); + 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.Api.MulticastGroupReflection.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 UpdateMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateMulticastGroupRequest(UpdateMulticastGroupRequest other) : this() { + multicastGroup_ = other.multicastGroup_ != null ? other.multicastGroup_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateMulticastGroupRequest Clone() { + return new UpdateMulticastGroupRequest(this); + } + + /// Field number for the "multicast_group" field. + public const int MulticastGroupFieldNumber = 1; + private global::Chirpstack.Api.MulticastGroup multicastGroup_; + /// + /// Multicast group object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.MulticastGroup MulticastGroup { + get { return multicastGroup_; } + set { + multicastGroup_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateMulticastGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateMulticastGroupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MulticastGroup, other.MulticastGroup)) 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 (multicastGroup_ != null) hash ^= MulticastGroup.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 (multicastGroup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MulticastGroup); + } + 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 (multicastGroup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MulticastGroup); + } + 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 (multicastGroup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MulticastGroup); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateMulticastGroupRequest other) { + if (other == null) { + return; + } + if (other.multicastGroup_ != null) { + if (multicastGroup_ == null) { + MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); + } + MulticastGroup.MergeFrom(other.MulticastGroup); + } + _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 (multicastGroup_ == null) { + MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); + } + input.ReadMessage(MulticastGroup); + 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 (multicastGroup_ == null) { + MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); + } + input.ReadMessage(MulticastGroup); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteMulticastGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteMulticastGroupRequest()); + 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.Api.MulticastGroupReflection.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 DeleteMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteMulticastGroupRequest(DeleteMulticastGroupRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteMulticastGroupRequest Clone() { + return new DeleteMulticastGroupRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Multicast group iD. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteMulticastGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteMulticastGroupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteMulticastGroupRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class ListMulticastGroupsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMulticastGroupsRequest()); + 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.Api.MulticastGroupReflection.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 ListMulticastGroupsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupsRequest(ListMulticastGroupsRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + search_ = other.search_; + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupsRequest Clone() { + return new ListMulticastGroupsRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private uint limit_; + /// + /// Max number of multicast groups to return in the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 2; + private uint offset_; + /// + /// Offset in the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + /// Field number for the "search" field. + public const int SearchFieldNumber = 3; + private string search_ = ""; + /// + /// If set, the given string will be used to search on name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Search { + get { return search_; } + set { + search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 4; + private string applicationId_ = ""; + /// + /// Application ID to list the multicast groups for. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApplicationId { + get { return applicationId_; } + set { + applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListMulticastGroupsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListMulticastGroupsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Limit != other.Limit) return false; + if (Offset != other.Offset) return false; + if (Search != other.Search) return false; + if (ApplicationId != other.ApplicationId) 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 (Limit != 0) hash ^= Limit.GetHashCode(); + if (Offset != 0) hash ^= Offset.GetHashCode(); + if (Search.Length != 0) hash ^= Search.GetHashCode(); + if (ApplicationId.Length != 0) hash ^= ApplicationId.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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (ApplicationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ApplicationId); + } + 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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (ApplicationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ApplicationId); + } + 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 (Limit != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); + } + if (Offset != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); + } + if (Search.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); + } + if (ApplicationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListMulticastGroupsRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0) { + Limit = other.Limit; + } + if (other.Offset != 0) { + Offset = other.Offset; + } + if (other.Search.Length != 0) { + Search = other.Search; + } + if (other.ApplicationId.Length != 0) { + ApplicationId = other.ApplicationId; + } + _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: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + case 34: { + ApplicationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + case 34: { + ApplicationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListMulticastGroupsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMulticastGroupsResponse()); + 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.Api.MulticastGroupReflection.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 ListMulticastGroupsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupsResponse(ListMulticastGroupsResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupsResponse Clone() { + return new ListMulticastGroupsResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of multicast groups. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.MulticastGroupListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Result-test. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListMulticastGroupsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListMulticastGroupsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListMulticastGroupsResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AddDeviceToMulticastGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddDeviceToMulticastGroupRequest()); + 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.Api.MulticastGroupReflection.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 AddDeviceToMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddDeviceToMulticastGroupRequest(AddDeviceToMulticastGroupRequest other) : this() { + multicastGroupId_ = other.multicastGroupId_; + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddDeviceToMulticastGroupRequest Clone() { + return new AddDeviceToMulticastGroupRequest(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private string multicastGroupId_ = ""; + /// + /// Multicast group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MulticastGroupId { + get { return multicastGroupId_; } + set { + multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 2; + private string devEui_ = ""; + /// + /// Device EUI (HEX encoded). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddDeviceToMulticastGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddDeviceToMulticastGroupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MulticastGroupId != other.MulticastGroupId) return false; + if (DevEui != other.DevEui) 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 (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + if (DevEui.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DevEui); + } + 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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + if (DevEui.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DevEui); + } + 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 (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddDeviceToMulticastGroupRequest other) { + if (other == null) { + return; + } + if (other.MulticastGroupId.Length != 0) { + MulticastGroupId = other.MulticastGroupId; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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: { + MulticastGroupId = input.ReadString(); + break; + } + case 18: { + DevEui = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + MulticastGroupId = input.ReadString(); + break; + } + case 18: { + DevEui = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class RemoveDeviceFromMulticastGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveDeviceFromMulticastGroupRequest()); + 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.Api.MulticastGroupReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveDeviceFromMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveDeviceFromMulticastGroupRequest(RemoveDeviceFromMulticastGroupRequest other) : this() { + multicastGroupId_ = other.multicastGroupId_; + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveDeviceFromMulticastGroupRequest Clone() { + return new RemoveDeviceFromMulticastGroupRequest(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private string multicastGroupId_ = ""; + /// + /// Multicast group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MulticastGroupId { + get { return multicastGroupId_; } + set { + multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 2; + private string devEui_ = ""; + /// + /// Device EUI (HEX encoded). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoveDeviceFromMulticastGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveDeviceFromMulticastGroupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MulticastGroupId != other.MulticastGroupId) return false; + if (DevEui != other.DevEui) 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 (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + if (DevEui.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DevEui); + } + 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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + if (DevEui.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DevEui); + } + 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 (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoveDeviceFromMulticastGroupRequest other) { + if (other == null) { + return; + } + if (other.MulticastGroupId.Length != 0) { + MulticastGroupId = other.MulticastGroupId; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + _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: { + MulticastGroupId = input.ReadString(); + break; + } + case 18: { + DevEui = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + MulticastGroupId = input.ReadString(); + break; + } + case 18: { + DevEui = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AddGatewayToMulticastGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddGatewayToMulticastGroupRequest()); + 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.Api.MulticastGroupReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddGatewayToMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddGatewayToMulticastGroupRequest(AddGatewayToMulticastGroupRequest other) : this() { + multicastGroupId_ = other.multicastGroupId_; + gatewayId_ = other.gatewayId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddGatewayToMulticastGroupRequest Clone() { + return new AddGatewayToMulticastGroupRequest(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private string multicastGroupId_ = ""; + /// + /// Multicast group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MulticastGroupId { + get { return multicastGroupId_; } + set { + multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 2; + private string gatewayId_ = ""; + /// + /// Gateway ID (HEX encoded). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GatewayId { + get { return gatewayId_; } + set { + gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddGatewayToMulticastGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddGatewayToMulticastGroupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MulticastGroupId != other.MulticastGroupId) return false; + if (GatewayId != other.GatewayId) 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 (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GatewayId); + } + 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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GatewayId); + } + 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 (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddGatewayToMulticastGroupRequest other) { + if (other == null) { + return; + } + if (other.MulticastGroupId.Length != 0) { + MulticastGroupId = other.MulticastGroupId; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + _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: { + MulticastGroupId = input.ReadString(); + break; + } + case 18: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + MulticastGroupId = input.ReadString(); + break; + } + case 18: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class RemoveGatewayFromMulticastGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveGatewayFromMulticastGroupRequest()); + 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.Api.MulticastGroupReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveGatewayFromMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveGatewayFromMulticastGroupRequest(RemoveGatewayFromMulticastGroupRequest other) : this() { + multicastGroupId_ = other.multicastGroupId_; + gatewayId_ = other.gatewayId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveGatewayFromMulticastGroupRequest Clone() { + return new RemoveGatewayFromMulticastGroupRequest(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private string multicastGroupId_ = ""; + /// + /// Multicast group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MulticastGroupId { + get { return multicastGroupId_; } + set { + multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 2; + private string gatewayId_ = ""; + /// + /// Gateway ID (HEX encoded). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GatewayId { + get { return gatewayId_; } + set { + gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoveGatewayFromMulticastGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveGatewayFromMulticastGroupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MulticastGroupId != other.MulticastGroupId) return false; + if (GatewayId != other.GatewayId) 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 (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GatewayId); + } + 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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GatewayId); + } + 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 (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoveGatewayFromMulticastGroupRequest other) { + if (other == null) { + return; + } + if (other.MulticastGroupId.Length != 0) { + MulticastGroupId = other.MulticastGroupId; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + _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: { + MulticastGroupId = input.ReadString(); + break; + } + case 18: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + MulticastGroupId = input.ReadString(); + break; + } + case 18: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class MulticastGroupQueueItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MulticastGroupQueueItem()); + 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.Api.MulticastGroupReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MulticastGroupQueueItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MulticastGroupQueueItem(MulticastGroupQueueItem other) : this() { + multicastGroupId_ = other.multicastGroupId_; + fCnt_ = other.fCnt_; + fPort_ = other.fPort_; + data_ = other.data_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MulticastGroupQueueItem Clone() { + return new MulticastGroupQueueItem(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private string multicastGroupId_ = ""; + /// + /// Multicast group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MulticastGroupId { + get { return multicastGroupId_; } + set { + multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 2; + private uint fCnt_; + /// + /// Downlink frame-counter. + /// This will be automatically set on enqueue. + /// + [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 = 3; + 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 = 4; + private pb::ByteString data_ = pb::ByteString.Empty; + /// + /// Payload. + /// + [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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MulticastGroupQueueItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MulticastGroupQueueItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MulticastGroupId != other.MulticastGroupId) return false; + if (FCnt != other.FCnt) return false; + if (FPort != other.FPort) return false; + if (Data != other.Data) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.GetHashCode(); + if (FPort != 0) hash ^= FPort.GetHashCode(); + if (Data.Length != 0) hash ^= Data.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + if (FCnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FPort); + } + if (Data.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + if (FCnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FPort); + } + if (Data.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); + } + if (FCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); + } + if (FPort != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FPort); + } + if (Data.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MulticastGroupQueueItem other) { + if (other == null) { + return; + } + if (other.MulticastGroupId.Length != 0) { + MulticastGroupId = other.MulticastGroupId; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + if (other.FPort != 0) { + FPort = other.FPort; + } + if (other.Data.Length != 0) { + Data = other.Data; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + MulticastGroupId = input.ReadString(); + break; + } + case 16: { + FCnt = input.ReadUInt32(); + break; + } + case 24: { + FPort = input.ReadUInt32(); + break; + } + case 34: { + Data = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + MulticastGroupId = input.ReadString(); + break; + } + case 16: { + FCnt = input.ReadUInt32(); + break; + } + case 24: { + FPort = input.ReadUInt32(); + break; + } + case 34: { + Data = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class EnqueueMulticastGroupQueueItemRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnqueueMulticastGroupQueueItemRequest()); + 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.Api.MulticastGroupReflection.Descriptor.MessageTypes[15]; } + } + + [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 EnqueueMulticastGroupQueueItemRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueMulticastGroupQueueItemRequest(EnqueueMulticastGroupQueueItemRequest other) : this() { + queueItem_ = other.queueItem_ != null ? other.queueItem_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueMulticastGroupQueueItemRequest Clone() { + return new EnqueueMulticastGroupQueueItemRequest(this); + } + + /// Field number for the "queue_item" field. + public const int QueueItemFieldNumber = 1; + private global::Chirpstack.Api.MulticastGroupQueueItem queueItem_; + /// + /// Multicast queue-item to enqueue. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.MulticastGroupQueueItem QueueItem { + get { return queueItem_; } + set { + queueItem_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnqueueMulticastGroupQueueItemRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnqueueMulticastGroupQueueItemRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(QueueItem, other.QueueItem)) 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 (queueItem_ != null) hash ^= QueueItem.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 (queueItem_ != null) { + output.WriteRawTag(10); + output.WriteMessage(QueueItem); + } + 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 (queueItem_ != null) { + output.WriteRawTag(10); + output.WriteMessage(QueueItem); + } + 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 (queueItem_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueueItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnqueueMulticastGroupQueueItemRequest other) { + if (other == null) { + return; + } + if (other.queueItem_ != null) { + if (queueItem_ == null) { + QueueItem = new global::Chirpstack.Api.MulticastGroupQueueItem(); + } + QueueItem.MergeFrom(other.QueueItem); + } + _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 (queueItem_ == null) { + QueueItem = new global::Chirpstack.Api.MulticastGroupQueueItem(); + } + input.ReadMessage(QueueItem); + 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 (queueItem_ == null) { + QueueItem = new global::Chirpstack.Api.MulticastGroupQueueItem(); + } + input.ReadMessage(QueueItem); + break; + } + } + } + } + #endif + + } + + public sealed partial class EnqueueMulticastGroupQueueItemResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnqueueMulticastGroupQueueItemResponse()); + 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.Api.MulticastGroupReflection.Descriptor.MessageTypes[16]; } + } + + [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 EnqueueMulticastGroupQueueItemResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueMulticastGroupQueueItemResponse(EnqueueMulticastGroupQueueItemResponse other) : this() { + fCnt_ = other.fCnt_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueMulticastGroupQueueItemResponse Clone() { + return new EnqueueMulticastGroupQueueItemResponse(this); + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 1; + private uint fCnt_; + /// + /// Frame-counter of the enqueued payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FCnt { + get { return fCnt_; } + set { + fCnt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnqueueMulticastGroupQueueItemResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnqueueMulticastGroupQueueItemResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FCnt != other.FCnt) 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 (FCnt != 0) hash ^= FCnt.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 (FCnt != 0) { + output.WriteRawTag(8); + output.WriteUInt32(FCnt); + } + 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 (FCnt != 0) { + output.WriteRawTag(8); + output.WriteUInt32(FCnt); + } + 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 (FCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnqueueMulticastGroupQueueItemResponse other) { + if (other == null) { + return; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + _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: { + FCnt = 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 8: { + FCnt = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class FlushMulticastGroupQueueRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushMulticastGroupQueueRequest()); + 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.Api.MulticastGroupReflection.Descriptor.MessageTypes[17]; } + } + + [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 FlushMulticastGroupQueueRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushMulticastGroupQueueRequest(FlushMulticastGroupQueueRequest other) : this() { + multicastGroupId_ = other.multicastGroupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushMulticastGroupQueueRequest Clone() { + return new FlushMulticastGroupQueueRequest(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private string multicastGroupId_ = ""; + /// + /// Multicast group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MulticastGroupId { + get { return multicastGroupId_; } + set { + multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FlushMulticastGroupQueueRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FlushMulticastGroupQueueRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MulticastGroupId != other.MulticastGroupId) 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 (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + 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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + 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 (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FlushMulticastGroupQueueRequest other) { + if (other == null) { + return; + } + if (other.MulticastGroupId.Length != 0) { + MulticastGroupId = other.MulticastGroupId; + } + _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: { + MulticastGroupId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + MulticastGroupId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListMulticastGroupQueueRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMulticastGroupQueueRequest()); + 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.Api.MulticastGroupReflection.Descriptor.MessageTypes[18]; } + } + + [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 ListMulticastGroupQueueRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupQueueRequest(ListMulticastGroupQueueRequest other) : this() { + multicastGroupId_ = other.multicastGroupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupQueueRequest Clone() { + return new ListMulticastGroupQueueRequest(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private string multicastGroupId_ = ""; + /// + /// Multicast group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MulticastGroupId { + get { return multicastGroupId_; } + set { + multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListMulticastGroupQueueRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListMulticastGroupQueueRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MulticastGroupId != other.MulticastGroupId) 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 (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + 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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MulticastGroupId); + } + 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 (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListMulticastGroupQueueRequest other) { + if (other == null) { + return; + } + if (other.MulticastGroupId.Length != 0) { + MulticastGroupId = other.MulticastGroupId; + } + _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: { + MulticastGroupId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + MulticastGroupId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListMulticastGroupQueueResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMulticastGroupQueueResponse()); + 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.Api.MulticastGroupReflection.Descriptor.MessageTypes[19]; } + } + + [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 ListMulticastGroupQueueResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupQueueResponse(ListMulticastGroupQueueResponse other) : this() { + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupQueueResponse Clone() { + return new ListMulticastGroupQueueResponse(this); + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(10, global::Chirpstack.Api.MulticastGroupQueueItem.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListMulticastGroupQueueResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListMulticastGroupQueueResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= items_.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 + items_.WriteTo(output, _repeated_items_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) { + items_.WriteTo(ref output, _repeated_items_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; + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListMulticastGroupQueueResponse other) { + if (other == null) { + return; + } + items_.Add(other.items_); + _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: { + items_.AddEntriesFrom(input, _repeated_items_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: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/MulticastGroupGrpc.cs b/api/csharp/Chirpstack/api/MulticastGroupGrpc.cs new file mode 100644 index 00000000..ab3ae60a --- /dev/null +++ b/api/csharp/Chirpstack/api/MulticastGroupGrpc.cs @@ -0,0 +1,994 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/multicast_group.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.Api { + /// + /// MulticastGroupService is the service managing multicast-groups. + /// + public static partial class MulticastGroupService + { + static readonly string __ServiceName = "api.MulticastGroupService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateMulticastGroupResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateMulticastGroupResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetMulticastGroupResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetMulticastGroupResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListMulticastGroupsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListMulticastGroupsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListMulticastGroupsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListMulticastGroupsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_AddDeviceToMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.AddDeviceToMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_RemoveDeviceFromMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_AddGatewayToMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.AddGatewayToMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_RemoveGatewayFromMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_EnqueueMulticastGroupQueueItemRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_EnqueueMulticastGroupQueueItemResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.EnqueueMulticastGroupQueueItemResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_FlushMulticastGroupQueueRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.FlushMulticastGroupQueueRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListMulticastGroupQueueRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListMulticastGroupQueueRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListMulticastGroupQueueResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListMulticastGroupQueueResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Create = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Create", + __Marshaller_api_CreateMulticastGroupRequest, + __Marshaller_api_CreateMulticastGroupResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Get = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Get", + __Marshaller_api_GetMulticastGroupRequest, + __Marshaller_api_GetMulticastGroupResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Update = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Update", + __Marshaller_api_UpdateMulticastGroupRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Delete = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Delete", + __Marshaller_api_DeleteMulticastGroupRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_List = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "List", + __Marshaller_api_ListMulticastGroupsRequest, + __Marshaller_api_ListMulticastGroupsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_AddDevice = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "AddDevice", + __Marshaller_api_AddDeviceToMulticastGroupRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_RemoveDevice = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "RemoveDevice", + __Marshaller_api_RemoveDeviceFromMulticastGroupRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_AddGateway = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "AddGateway", + __Marshaller_api_AddGatewayToMulticastGroupRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_RemoveGateway = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "RemoveGateway", + __Marshaller_api_RemoveGatewayFromMulticastGroupRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Enqueue = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Enqueue", + __Marshaller_api_EnqueueMulticastGroupQueueItemRequest, + __Marshaller_api_EnqueueMulticastGroupQueueItemResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_FlushQueue = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "FlushQueue", + __Marshaller_api_FlushMulticastGroupQueueRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListQueue = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListQueue", + __Marshaller_api_ListMulticastGroupQueueRequest, + __Marshaller_api_ListMulticastGroupQueueResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of MulticastGroupService + [grpc::BindServiceMethod(typeof(MulticastGroupService), "BindService")] + public abstract partial class MulticastGroupServiceBase + { + /// + /// Create the given multicast group. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get returns the multicast group for the given ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update the given multicast group. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete the multicast-group with the given ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List the available multicast groups. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListMulticastGroupsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Add a device to the multicast group. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task AddDevice(global::Chirpstack.Api.AddDeviceToMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Remove a device from the multicast group. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task RemoveDevice(global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Add a gateway to the multicast group. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task AddGateway(global::Chirpstack.Api.AddGatewayToMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Remove a gateway from the multicast group. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task RemoveGateway(global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Add the given item to the multicast group queue. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Enqueue(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Flush the queue for the given multicast group. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task FlushQueue(global::Chirpstack.Api.FlushMulticastGroupQueueRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List the items in the multicast group queue. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListQueue(global::Chirpstack.Api.ListMulticastGroupQueueRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for MulticastGroupService + public partial class MulticastGroupServiceClient : grpc::ClientBase + { + /// Creates a new client for MulticastGroupService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public MulticastGroupServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for MulticastGroupService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public MulticastGroupServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected MulticastGroupServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected MulticastGroupServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Create the given multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.CreateMulticastGroupResponse Create(global::Chirpstack.Api.CreateMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create the given multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.CreateMulticastGroupResponse Create(global::Chirpstack.Api.CreateMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create the given multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create the given multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get returns the multicast group for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetMulticastGroupResponse Get(global::Chirpstack.Api.GetMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get returns the multicast group for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetMulticastGroupResponse Get(global::Chirpstack.Api.GetMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get returns the multicast group for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get returns the multicast group for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update the given multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update the given multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete the multicast-group with the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the multicast-group with the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete the multicast-group with the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the multicast-group with the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// List the available multicast groups. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListMulticastGroupsResponse List(global::Chirpstack.Api.ListMulticastGroupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// List the available multicast groups. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListMulticastGroupsResponse List(global::Chirpstack.Api.ListMulticastGroupsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// List the available multicast groups. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListMulticastGroupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// List the available multicast groups. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListMulticastGroupsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// Add a device to the multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty AddDevice(global::Chirpstack.Api.AddDeviceToMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return AddDevice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Add a device to the multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty AddDevice(global::Chirpstack.Api.AddDeviceToMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_AddDevice, null, options, request); + } + /// + /// Add a device to the multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall AddDeviceAsync(global::Chirpstack.Api.AddDeviceToMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return AddDeviceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Add a device to the multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall AddDeviceAsync(global::Chirpstack.Api.AddDeviceToMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_AddDevice, null, options, request); + } + /// + /// Remove a device from the multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty RemoveDevice(global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RemoveDevice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Remove a device from the multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty RemoveDevice(global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_RemoveDevice, null, options, request); + } + /// + /// Remove a device from the multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall RemoveDeviceAsync(global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RemoveDeviceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Remove a device from the multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall RemoveDeviceAsync(global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_RemoveDevice, null, options, request); + } + /// + /// Add a gateway to the multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty AddGateway(global::Chirpstack.Api.AddGatewayToMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return AddGateway(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Add a gateway to the multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty AddGateway(global::Chirpstack.Api.AddGatewayToMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_AddGateway, null, options, request); + } + /// + /// Add a gateway to the multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall AddGatewayAsync(global::Chirpstack.Api.AddGatewayToMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return AddGatewayAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Add a gateway to the multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall AddGatewayAsync(global::Chirpstack.Api.AddGatewayToMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_AddGateway, null, options, request); + } + /// + /// Remove a gateway from the multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty RemoveGateway(global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RemoveGateway(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Remove a gateway from the multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty RemoveGateway(global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_RemoveGateway, null, options, request); + } + /// + /// Remove a gateway from the multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall RemoveGatewayAsync(global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RemoveGatewayAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Remove a gateway from the multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall RemoveGatewayAsync(global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_RemoveGateway, null, options, request); + } + /// + /// Add the given item to the multicast group queue. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.EnqueueMulticastGroupQueueItemResponse Enqueue(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Enqueue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Add the given item to the multicast group queue. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.EnqueueMulticastGroupQueueItemResponse Enqueue(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Enqueue, null, options, request); + } + /// + /// Add the given item to the multicast group queue. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall EnqueueAsync(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return EnqueueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Add the given item to the multicast group queue. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall EnqueueAsync(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Enqueue, null, options, request); + } + /// + /// Flush the queue for the given multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty FlushQueue(global::Chirpstack.Api.FlushMulticastGroupQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FlushQueue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Flush the queue for the given multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty FlushQueue(global::Chirpstack.Api.FlushMulticastGroupQueueRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_FlushQueue, null, options, request); + } + /// + /// Flush the queue for the given multicast group. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall FlushQueueAsync(global::Chirpstack.Api.FlushMulticastGroupQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FlushQueueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Flush the queue for the given multicast group. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall FlushQueueAsync(global::Chirpstack.Api.FlushMulticastGroupQueueRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_FlushQueue, null, options, request); + } + /// + /// List the items in the multicast group queue. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListMulticastGroupQueueResponse ListQueue(global::Chirpstack.Api.ListMulticastGroupQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListQueue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// List the items in the multicast group queue. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListMulticastGroupQueueResponse ListQueue(global::Chirpstack.Api.ListMulticastGroupQueueRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListQueue, null, options, request); + } + /// + /// List the items in the multicast group queue. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListQueueAsync(global::Chirpstack.Api.ListMulticastGroupQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListQueueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// List the items in the multicast group queue. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListQueueAsync(global::Chirpstack.Api.ListMulticastGroupQueueRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListQueue, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override MulticastGroupServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new MulticastGroupServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(MulticastGroupServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_Create, serviceImpl.Create) + .AddMethod(__Method_Get, serviceImpl.Get) + .AddMethod(__Method_Update, serviceImpl.Update) + .AddMethod(__Method_Delete, serviceImpl.Delete) + .AddMethod(__Method_List, serviceImpl.List) + .AddMethod(__Method_AddDevice, serviceImpl.AddDevice) + .AddMethod(__Method_RemoveDevice, serviceImpl.RemoveDevice) + .AddMethod(__Method_AddGateway, serviceImpl.AddGateway) + .AddMethod(__Method_RemoveGateway, serviceImpl.RemoveGateway) + .AddMethod(__Method_Enqueue, serviceImpl.Enqueue) + .AddMethod(__Method_FlushQueue, serviceImpl.FlushQueue) + .AddMethod(__Method_ListQueue, serviceImpl.ListQueue).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, MulticastGroupServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); + serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); + serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); + serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); + serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); + serviceBinder.AddMethod(__Method_AddDevice, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddDevice)); + serviceBinder.AddMethod(__Method_RemoveDevice, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RemoveDevice)); + serviceBinder.AddMethod(__Method_AddGateway, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddGateway)); + serviceBinder.AddMethod(__Method_RemoveGateway, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RemoveGateway)); + serviceBinder.AddMethod(__Method_Enqueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Enqueue)); + serviceBinder.AddMethod(__Method_FlushQueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FlushQueue)); + serviceBinder.AddMethod(__Method_ListQueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListQueue)); + } + + } +} +#endregion diff --git a/api/csharp/Chirpstack/api/RequestLog.cs b/api/csharp/Chirpstack/api/RequestLog.cs new file mode 100644 index 00000000..aaa83468 --- /dev/null +++ b/api/csharp/Chirpstack/api/RequestLog.cs @@ -0,0 +1,310 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/request_log.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.Api { + + /// Holder for reflection information generated from api/request_log.proto + public static partial class RequestLogReflection { + + #region Descriptor + /// File descriptor for api/request_log.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RequestLogReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVhcGkvcmVxdWVzdF9sb2cucHJvdG8SA2FwaRofZ29vZ2xlL3Byb3RvYnVm", + "L3RpbWVzdGFtcC5wcm90bxoTY29tbW9uL2NvbW1vbi5wcm90bxoLZ3cvZ3cu", + "cHJvdG8ijwEKClJlcXVlc3RMb2cSDwoHc2VydmljZRgBIAEoCRIOCgZtZXRo", + "b2QYAiABKAkSLwoIbWV0YWRhdGEYAyADKAsyHS5hcGkuUmVxdWVzdExvZy5N", + "ZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0K", + "BXZhbHVlGAIgASgJOgI4AUJnChFpby5jaGlycHN0YWNrLmFwaUIPUmVxdWVz", + "dExvZ1Byb3RvUAFaLmdpdGh1Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0YWNr", + "L2FwaS9nby92NC9hcGmqAg5DaGlycHN0YWNrLkFwaWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.RequestLog), global::Chirpstack.Api.RequestLog.Parser, new[]{ "Service", "Method", "Metadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + public sealed partial class RequestLog : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RequestLog()); + 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.Api.RequestLogReflection.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 RequestLog() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RequestLog(RequestLog other) : this() { + service_ = other.service_; + method_ = other.method_; + metadata_ = other.metadata_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RequestLog Clone() { + return new RequestLog(this); + } + + /// Field number for the "service" field. + public const int ServiceFieldNumber = 1; + private string service_ = ""; + /// + /// API service name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Service { + get { return service_; } + set { + service_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "method" field. + public const int MethodFieldNumber = 2; + private string method_ = ""; + /// + /// API method name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Method { + get { return method_; } + set { + method_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 3; + private static readonly pbc::MapField.Codec _map_metadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 26); + private readonly pbc::MapField metadata_ = new pbc::MapField(); + /// + /// Metadata. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Metadata { + get { return metadata_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RequestLog); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RequestLog other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Service != other.Service) return false; + if (Method != other.Method) return false; + if (!Metadata.Equals(other.Metadata)) 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 (Service.Length != 0) hash ^= Service.GetHashCode(); + if (Method.Length != 0) hash ^= Method.GetHashCode(); + hash ^= Metadata.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 (Service.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Service); + } + if (Method.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Method); + } + metadata_.WriteTo(output, _map_metadata_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 (Service.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Service); + } + if (Method.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Method); + } + metadata_.WriteTo(ref output, _map_metadata_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 (Service.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Service); + } + if (Method.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Method); + } + size += metadata_.CalculateSize(_map_metadata_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RequestLog other) { + if (other == null) { + return; + } + if (other.Service.Length != 0) { + Service = other.Service; + } + if (other.Method.Length != 0) { + Method = other.Method; + } + metadata_.Add(other.metadata_); + _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: { + Service = input.ReadString(); + break; + } + case 18: { + Method = input.ReadString(); + break; + } + case 26: { + metadata_.AddEntriesFrom(input, _map_metadata_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: { + Service = input.ReadString(); + break; + } + case 18: { + Method = input.ReadString(); + break; + } + case 26: { + metadata_.AddEntriesFrom(ref input, _map_metadata_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/Tenant.cs b/api/csharp/Chirpstack/api/Tenant.cs new file mode 100644 index 00000000..4fb7df71 --- /dev/null +++ b/api/csharp/Chirpstack/api/Tenant.cs @@ -0,0 +1,5413 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/tenant.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.Api { + + /// Holder for reflection information generated from api/tenant.proto + public static partial class TenantReflection { + + #region Descriptor + /// File descriptor for api/tenant.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TenantReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBhcGkvdGVuYW50LnByb3RvEgNhcGkaHGdvb2dsZS9hcGkvYW5ub3RhdGlv", + "bnMucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aG2dv", + "b2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90byKhAQoGVGVuYW50EgoKAmlkGAEg", + "ASgJEgwKBG5hbWUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSGQoRY2Fu", + "X2hhdmVfZ2F0ZXdheXMYBCABKAgSGQoRbWF4X2dhdGV3YXlfY291bnQYBSAB", + "KA0SGAoQbWF4X2RldmljZV9jb3VudBgGIAEoDRIYChBwcml2YXRlX2dhdGV3", + "YXlzGAcgASgIIvQBCg5UZW5hbnRMaXN0SXRlbRIKCgJpZBgBIAEoCRIuCgpj", + "cmVhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIu", + "Cgp1cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", + "cBIMCgRuYW1lGAQgASgJEhkKEWNhbl9oYXZlX2dhdGV3YXlzGAUgASgIEhgK", + "EHByaXZhdGVfZ2F0ZXdheXMYBiABKAgSGQoRbWF4X2dhdGV3YXlfY291bnQY", + "ByABKA0SGAoQbWF4X2RldmljZV9jb3VudBgIIAEoDSIyChNDcmVhdGVUZW5h", + "bnRSZXF1ZXN0EhsKBnRlbmFudBgBIAEoCzILLmFwaS5UZW5hbnQiIgoUQ3Jl", + "YXRlVGVuYW50UmVzcG9uc2USCgoCaWQYASABKAkiHgoQR2V0VGVuYW50UmVx", + "dWVzdBIKCgJpZBgBIAEoCSKQAQoRR2V0VGVuYW50UmVzcG9uc2USGwoGdGVu", + "YW50GAEgASgLMgsuYXBpLlRlbmFudBIuCgpjcmVhdGVkX2F0GAIgASgLMhou", + "Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAMgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCIyChNVcGRhdGVUZW5hbnRS", + "ZXF1ZXN0EhsKBnRlbmFudBgBIAEoCzILLmFwaS5UZW5hbnQiIQoTRGVsZXRl", + "VGVuYW50UmVxdWVzdBIKCgJpZBgBIAEoCSJUChJMaXN0VGVuYW50c1JlcXVl", + "c3QSDQoFbGltaXQYASABKA0SDgoGb2Zmc2V0GAIgASgNEg4KBnNlYXJjaBgD", + "IAEoCRIPCgd1c2VyX2lkGAQgASgJIk8KE0xpc3RUZW5hbnRzUmVzcG9uc2US", + "EwoLdG90YWxfY291bnQYASABKA0SIwoGcmVzdWx0GAIgAygLMhMuYXBpLlRl", + "bmFudExpc3RJdGVtIoQBCgpUZW5hbnRVc2VyEhEKCXRlbmFudF9pZBgBIAEo", + "CRIPCgd1c2VyX2lkGAIgASgJEhAKCGlzX2FkbWluGAMgASgIEhcKD2lzX2Rl", + "dmljZV9hZG1pbhgEIAEoCBIYChBpc19nYXRld2F5X2FkbWluGAUgASgIEg0K", + "BWVtYWlsGAYgASgJIuwBChJUZW5hbnRVc2VyTGlzdEl0ZW0SEQoJdGVuYW50", + "X2lkGAEgASgJEg8KB3VzZXJfaWQYAiABKAkSLgoKY3JlYXRlZF9hdBgDIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgE", + "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASDQoFZW1haWwYBSAB", + "KAkSEAoIaXNfYWRtaW4YBiABKAgSFwoPaXNfZGV2aWNlX2FkbWluGAcgASgI", + "EhgKEGlzX2dhdGV3YXlfYWRtaW4YCCABKAgiPAoUQWRkVGVuYW50VXNlclJl", + "cXVlc3QSJAoLdGVuYW50X3VzZXIYASABKAsyDy5hcGkuVGVuYW50VXNlciI6", + "ChRHZXRUZW5hbnRVc2VyUmVxdWVzdBIRCgl0ZW5hbnRfaWQYASABKAkSDwoH", + "dXNlcl9pZBgCIAEoCSKdAQoVR2V0VGVuYW50VXNlclJlc3BvbnNlEiQKC3Rl", + "bmFudF91c2VyGAEgASgLMg8uYXBpLlRlbmFudFVzZXISLgoKY3JlYXRlZF9h", + "dBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRl", + "ZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiPwoXVXBk", + "YXRlVGVuYW50VXNlclJlcXVlc3QSJAoLdGVuYW50X3VzZXIYASABKAsyDy5h", + "cGkuVGVuYW50VXNlciI9ChdEZWxldGVUZW5hbnRVc2VyUmVxdWVzdBIRCgl0", + "ZW5hbnRfaWQYASABKAkSDwoHdXNlcl9pZBgCIAEoCSJKChZMaXN0VGVuYW50", + "VXNlcnNSZXF1ZXN0EhEKCXRlbmFudF9pZBgBIAEoCRINCgVsaW1pdBgCIAEo", + "DRIOCgZvZmZzZXQYAyABKA0iVwoXTGlzdFRlbmFudFVzZXJzUmVzcG9uc2US", + "EwoLdG90YWxfY291bnQYASABKA0SJwoGcmVzdWx0GAIgAygLMhcuYXBpLlRl", + "bmFudFVzZXJMaXN0SXRlbTKiCAoNVGVuYW50U2VydmljZRJWCgZDcmVhdGUS", + "GC5hcGkuQ3JlYXRlVGVuYW50UmVxdWVzdBoZLmFwaS5DcmVhdGVUZW5hbnRS", + "ZXNwb25zZSIXgtPkkwIRIgwvYXBpL3RlbmFudHM6ASoSTwoDR2V0EhUuYXBp", + "LkdldFRlbmFudFJlcXVlc3QaFi5hcGkuR2V0VGVuYW50UmVzcG9uc2UiGYLT", + "5JMCExIRL2FwaS90ZW5hbnRzL3tpZH0SXwoGVXBkYXRlEhguYXBpLlVwZGF0", + "ZVRlbmFudFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiI4LT5JMC", + "HRoYL2FwaS90ZW5hbnRzL3t0ZW5hbnQuaWR9OgEqElUKBkRlbGV0ZRIYLmFw", + "aS5EZWxldGVUZW5hbnRSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", + "IhmC0+STAhMqES9hcGkvdGVuYW50cy97aWR9Ek8KBExpc3QSFy5hcGkuTGlz", + "dFRlbmFudHNSZXF1ZXN0GhguYXBpLkxpc3RUZW5hbnRzUmVzcG9uc2UiFILT", + "5JMCDhIML2FwaS90ZW5hbnRzEnMKB0FkZFVzZXISGS5hcGkuQWRkVGVuYW50", + "VXNlclJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiNYLT5JMCLyIq", + "L2FwaS90ZW5hbnRzL3t0ZW5hbnRfdXNlci50ZW5hbnRfaWR9L3VzZXJzOgEq", + "EnIKB0dldFVzZXISGS5hcGkuR2V0VGVuYW50VXNlclJlcXVlc3QaGi5hcGku", + "R2V0VGVuYW50VXNlclJlc3BvbnNlIjCC0+STAioSKC9hcGkvdGVuYW50cy97", + "dGVuYW50X2lkfS91c2Vycy97dXNlcl9pZH0SjwEKClVwZGF0ZVVzZXISHC5h", + "cGkuVXBkYXRlVGVuYW50VXNlclJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYu", + "RW1wdHkiS4LT5JMCRRpAL2FwaS90ZW5hbnRzL3t0ZW5hbnRfdXNlci50ZW5h", + "bnRfaWR9L3VzZXJzL3t0ZW5hbnRfdXNlci51c2VyX2lkfToBKhJ0CgpEZWxl", + "dGVVc2VyEhwuYXBpLkRlbGV0ZVRlbmFudFVzZXJSZXF1ZXN0GhYuZ29vZ2xl", + "LnByb3RvYnVmLkVtcHR5IjCC0+STAioqKC9hcGkvdGVuYW50cy97dGVuYW50", + "X2lkfS91c2Vycy97dXNlcl9pZH0SbgoJTGlzdFVzZXJzEhsuYXBpLkxpc3RU", + "ZW5hbnRVc2Vyc1JlcXVlc3QaHC5hcGkuTGlzdFRlbmFudFVzZXJzUmVzcG9u", + "c2UiJoLT5JMCIBIeL2FwaS90ZW5hbnRzL3t0ZW5hbnRfaWR9L3VzZXJzQmMK", + "EWlvLmNoaXJwc3RhY2suYXBpQgtUZW5hbnRQcm90b1ABWi5naXRodWIuY29t", + "L2NoaXJwc3RhY2svY2hpcnBzdGFjay9hcGkvZ28vdjQvYXBpqgIOQ2hpcnBz", + "dGFjay5BcGliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.Tenant), global::Chirpstack.Api.Tenant.Parser, new[]{ "Id", "Name", "Description", "CanHaveGateways", "MaxGatewayCount", "MaxDeviceCount", "PrivateGateways" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.TenantListItem), global::Chirpstack.Api.TenantListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Name", "CanHaveGateways", "PrivateGateways", "MaxGatewayCount", "MaxDeviceCount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateTenantRequest), global::Chirpstack.Api.CreateTenantRequest.Parser, new[]{ "Tenant" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateTenantResponse), global::Chirpstack.Api.CreateTenantResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetTenantRequest), global::Chirpstack.Api.GetTenantRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetTenantResponse), global::Chirpstack.Api.GetTenantResponse.Parser, new[]{ "Tenant", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateTenantRequest), global::Chirpstack.Api.UpdateTenantRequest.Parser, new[]{ "Tenant" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteTenantRequest), global::Chirpstack.Api.DeleteTenantRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListTenantsRequest), global::Chirpstack.Api.ListTenantsRequest.Parser, new[]{ "Limit", "Offset", "Search", "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListTenantsResponse), global::Chirpstack.Api.ListTenantsResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.TenantUser), global::Chirpstack.Api.TenantUser.Parser, new[]{ "TenantId", "UserId", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin", "Email" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.TenantUserListItem), global::Chirpstack.Api.TenantUserListItem.Parser, new[]{ "TenantId", "UserId", "CreatedAt", "UpdatedAt", "Email", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AddTenantUserRequest), global::Chirpstack.Api.AddTenantUserRequest.Parser, new[]{ "TenantUser" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetTenantUserRequest), global::Chirpstack.Api.GetTenantUserRequest.Parser, new[]{ "TenantId", "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetTenantUserResponse), global::Chirpstack.Api.GetTenantUserResponse.Parser, new[]{ "TenantUser", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateTenantUserRequest), global::Chirpstack.Api.UpdateTenantUserRequest.Parser, new[]{ "TenantUser" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteTenantUserRequest), global::Chirpstack.Api.DeleteTenantUserRequest.Parser, new[]{ "TenantId", "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListTenantUsersRequest), global::Chirpstack.Api.ListTenantUsersRequest.Parser, new[]{ "TenantId", "Limit", "Offset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListTenantUsersResponse), global::Chirpstack.Api.ListTenantUsersResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class Tenant : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Tenant()); + 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.Api.TenantReflection.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 Tenant() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Tenant(Tenant other) : this() { + id_ = other.id_; + name_ = other.name_; + description_ = other.description_; + canHaveGateways_ = other.canHaveGateways_; + maxGatewayCount_ = other.maxGatewayCount_; + maxDeviceCount_ = other.maxDeviceCount_; + privateGateways_ = other.privateGateways_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Tenant Clone() { + return new Tenant(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Tenant ID (UUID). + /// Note: this value will be automatically generated on create. + /// + [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 "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Tenant name, + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// Tenant description. + /// + [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 "can_have_gateways" field. + public const int CanHaveGatewaysFieldNumber = 4; + private bool canHaveGateways_; + /// + /// Can the tenant create and "own" Gateways? + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanHaveGateways { + get { return canHaveGateways_; } + set { + canHaveGateways_ = value; + } + } + + /// Field number for the "max_gateway_count" field. + public const int MaxGatewayCountFieldNumber = 5; + private uint maxGatewayCount_; + /// + /// Max. gateway count for tenant. + /// When set to 0, the tenant can have unlimited gateways. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxGatewayCount { + get { return maxGatewayCount_; } + set { + maxGatewayCount_ = value; + } + } + + /// Field number for the "max_device_count" field. + public const int MaxDeviceCountFieldNumber = 6; + private uint maxDeviceCount_; + /// + /// Max. device count for tenant. + /// When set to 0, the tenant can have unlimited devices. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxDeviceCount { + get { return maxDeviceCount_; } + set { + maxDeviceCount_ = value; + } + } + + /// Field number for the "private_gateways" field. + public const int PrivateGatewaysFieldNumber = 7; + private bool privateGateways_; + /// + /// Private gateways. + /// Gateways under this tenant are private. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PrivateGateways { + get { return privateGateways_; } + set { + privateGateways_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Tenant); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Tenant other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (CanHaveGateways != other.CanHaveGateways) return false; + if (MaxGatewayCount != other.MaxGatewayCount) return false; + if (MaxDeviceCount != other.MaxDeviceCount) return false; + if (PrivateGateways != other.PrivateGateways) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (CanHaveGateways != false) hash ^= CanHaveGateways.GetHashCode(); + if (MaxGatewayCount != 0) hash ^= MaxGatewayCount.GetHashCode(); + if (MaxDeviceCount != 0) hash ^= MaxDeviceCount.GetHashCode(); + if (PrivateGateways != false) hash ^= PrivateGateways.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 (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (CanHaveGateways != false) { + output.WriteRawTag(32); + output.WriteBool(CanHaveGateways); + } + if (MaxGatewayCount != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MaxGatewayCount); + } + if (MaxDeviceCount != 0) { + output.WriteRawTag(48); + output.WriteUInt32(MaxDeviceCount); + } + if (PrivateGateways != false) { + output.WriteRawTag(56); + output.WriteBool(PrivateGateways); + } + 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 (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (CanHaveGateways != false) { + output.WriteRawTag(32); + output.WriteBool(CanHaveGateways); + } + if (MaxGatewayCount != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MaxGatewayCount); + } + if (MaxDeviceCount != 0) { + output.WriteRawTag(48); + output.WriteUInt32(MaxDeviceCount); + } + if (PrivateGateways != false) { + output.WriteRawTag(56); + output.WriteBool(PrivateGateways); + } + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (CanHaveGateways != false) { + size += 1 + 1; + } + if (MaxGatewayCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxGatewayCount); + } + if (MaxDeviceCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxDeviceCount); + } + if (PrivateGateways != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Tenant other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.CanHaveGateways != false) { + CanHaveGateways = other.CanHaveGateways; + } + if (other.MaxGatewayCount != 0) { + MaxGatewayCount = other.MaxGatewayCount; + } + if (other.MaxDeviceCount != 0) { + MaxDeviceCount = other.MaxDeviceCount; + } + if (other.PrivateGateways != false) { + PrivateGateways = other.PrivateGateways; + } + _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: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 32: { + CanHaveGateways = input.ReadBool(); + break; + } + case 40: { + MaxGatewayCount = input.ReadUInt32(); + break; + } + case 48: { + MaxDeviceCount = input.ReadUInt32(); + break; + } + case 56: { + PrivateGateways = input.ReadBool(); + 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: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 32: { + CanHaveGateways = input.ReadBool(); + break; + } + case 40: { + MaxGatewayCount = input.ReadUInt32(); + break; + } + case 48: { + MaxDeviceCount = input.ReadUInt32(); + break; + } + case 56: { + PrivateGateways = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TenantListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TenantListItem()); + 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.Api.TenantReflection.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 TenantListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TenantListItem(TenantListItem other) : this() { + id_ = other.id_; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + name_ = other.name_; + canHaveGateways_ = other.canHaveGateways_; + privateGateways_ = other.privateGateways_; + maxGatewayCount_ = other.maxGatewayCount_; + maxDeviceCount_ = other.maxDeviceCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TenantListItem Clone() { + return new TenantListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Tenant ID (UUID). + /// + [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 "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + /// + /// Tenant name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "can_have_gateways" field. + public const int CanHaveGatewaysFieldNumber = 5; + private bool canHaveGateways_; + /// + /// Can the tenant create and "own" Gateways? + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanHaveGateways { + get { return canHaveGateways_; } + set { + canHaveGateways_ = value; + } + } + + /// Field number for the "private_gateways" field. + public const int PrivateGatewaysFieldNumber = 6; + private bool privateGateways_; + /// + /// Gateways are private to tenant. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PrivateGateways { + get { return privateGateways_; } + set { + privateGateways_ = value; + } + } + + /// Field number for the "max_gateway_count" field. + public const int MaxGatewayCountFieldNumber = 7; + private uint maxGatewayCount_; + /// + /// Max gateway count. + /// 0 = unlimited. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxGatewayCount { + get { return maxGatewayCount_; } + set { + maxGatewayCount_ = value; + } + } + + /// Field number for the "max_device_count" field. + public const int MaxDeviceCountFieldNumber = 8; + private uint maxDeviceCount_; + /// + /// Max device count. + /// 0 = unlimited. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxDeviceCount { + get { return maxDeviceCount_; } + set { + maxDeviceCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TenantListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TenantListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (Name != other.Name) return false; + if (CanHaveGateways != other.CanHaveGateways) return false; + if (PrivateGateways != other.PrivateGateways) return false; + if (MaxGatewayCount != other.MaxGatewayCount) return false; + if (MaxDeviceCount != other.MaxDeviceCount) 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 (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (CanHaveGateways != false) hash ^= CanHaveGateways.GetHashCode(); + if (PrivateGateways != false) hash ^= PrivateGateways.GetHashCode(); + if (MaxGatewayCount != 0) hash ^= MaxGatewayCount.GetHashCode(); + if (MaxDeviceCount != 0) hash ^= MaxDeviceCount.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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (CanHaveGateways != false) { + output.WriteRawTag(40); + output.WriteBool(CanHaveGateways); + } + if (PrivateGateways != false) { + output.WriteRawTag(48); + output.WriteBool(PrivateGateways); + } + if (MaxGatewayCount != 0) { + output.WriteRawTag(56); + output.WriteUInt32(MaxGatewayCount); + } + if (MaxDeviceCount != 0) { + output.WriteRawTag(64); + output.WriteUInt32(MaxDeviceCount); + } + 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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (CanHaveGateways != false) { + output.WriteRawTag(40); + output.WriteBool(CanHaveGateways); + } + if (PrivateGateways != false) { + output.WriteRawTag(48); + output.WriteBool(PrivateGateways); + } + if (MaxGatewayCount != 0) { + output.WriteRawTag(56); + output.WriteUInt32(MaxGatewayCount); + } + if (MaxDeviceCount != 0) { + output.WriteRawTag(64); + output.WriteUInt32(MaxDeviceCount); + } + 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 (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (CanHaveGateways != false) { + size += 1 + 1; + } + if (PrivateGateways != false) { + size += 1 + 1; + } + if (MaxGatewayCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxGatewayCount); + } + if (MaxDeviceCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxDeviceCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TenantListItem other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.CanHaveGateways != false) { + CanHaveGateways = other.CanHaveGateways; + } + if (other.PrivateGateways != false) { + PrivateGateways = other.PrivateGateways; + } + if (other.MaxGatewayCount != 0) { + MaxGatewayCount = other.MaxGatewayCount; + } + if (other.MaxDeviceCount != 0) { + MaxDeviceCount = other.MaxDeviceCount; + } + _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: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + CanHaveGateways = input.ReadBool(); + break; + } + case 48: { + PrivateGateways = input.ReadBool(); + break; + } + case 56: { + MaxGatewayCount = input.ReadUInt32(); + break; + } + case 64: { + MaxDeviceCount = 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: { + Id = input.ReadString(); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + CanHaveGateways = input.ReadBool(); + break; + } + case 48: { + PrivateGateways = input.ReadBool(); + break; + } + case 56: { + MaxGatewayCount = input.ReadUInt32(); + break; + } + case 64: { + MaxDeviceCount = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateTenantRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateTenantRequest()); + 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.Api.TenantReflection.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 CreateTenantRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTenantRequest(CreateTenantRequest other) : this() { + tenant_ = other.tenant_ != null ? other.tenant_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTenantRequest Clone() { + return new CreateTenantRequest(this); + } + + /// Field number for the "tenant" field. + public const int TenantFieldNumber = 1; + private global::Chirpstack.Api.Tenant tenant_; + /// + /// Tenant object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Tenant Tenant { + get { return tenant_; } + set { + tenant_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateTenantRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateTenantRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Tenant, other.Tenant)) 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 (tenant_ != null) hash ^= Tenant.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 (tenant_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Tenant); + } + 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 (tenant_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Tenant); + } + 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 (tenant_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tenant); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateTenantRequest other) { + if (other == null) { + return; + } + if (other.tenant_ != null) { + if (tenant_ == null) { + Tenant = new global::Chirpstack.Api.Tenant(); + } + Tenant.MergeFrom(other.Tenant); + } + _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 (tenant_ == null) { + Tenant = new global::Chirpstack.Api.Tenant(); + } + input.ReadMessage(Tenant); + 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 (tenant_ == null) { + Tenant = new global::Chirpstack.Api.Tenant(); + } + input.ReadMessage(Tenant); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateTenantResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateTenantResponse()); + 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.Api.TenantReflection.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 CreateTenantResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTenantResponse(CreateTenantResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTenantResponse Clone() { + return new CreateTenantResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Tenant ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateTenantResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateTenantResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateTenantResponse other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetTenantRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTenantRequest()); + 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.Api.TenantReflection.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 GetTenantRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTenantRequest(GetTenantRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTenantRequest Clone() { + return new GetTenantRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Tenant ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTenantRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTenantRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTenantRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetTenantResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTenantResponse()); + 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.Api.TenantReflection.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 GetTenantResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTenantResponse(GetTenantResponse other) : this() { + tenant_ = other.tenant_ != null ? other.tenant_.Clone() : null; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTenantResponse Clone() { + return new GetTenantResponse(this); + } + + /// Field number for the "tenant" field. + public const int TenantFieldNumber = 1; + private global::Chirpstack.Api.Tenant tenant_; + /// + /// Tenant object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Tenant Tenant { + get { return tenant_; } + set { + tenant_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTenantResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTenantResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Tenant, other.Tenant)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) 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 (tenant_ != null) hash ^= Tenant.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.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 (tenant_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Tenant); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (tenant_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Tenant); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (tenant_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tenant); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTenantResponse other) { + if (other == null) { + return; + } + if (other.tenant_ != null) { + if (tenant_ == null) { + Tenant = new global::Chirpstack.Api.Tenant(); + } + Tenant.MergeFrom(other.Tenant); + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + _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 (tenant_ == null) { + Tenant = new global::Chirpstack.Api.Tenant(); + } + input.ReadMessage(Tenant); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + 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 (tenant_ == null) { + Tenant = new global::Chirpstack.Api.Tenant(); + } + input.ReadMessage(Tenant); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateTenantRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateTenantRequest()); + 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.Api.TenantReflection.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 UpdateTenantRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTenantRequest(UpdateTenantRequest other) : this() { + tenant_ = other.tenant_ != null ? other.tenant_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTenantRequest Clone() { + return new UpdateTenantRequest(this); + } + + /// Field number for the "tenant" field. + public const int TenantFieldNumber = 1; + private global::Chirpstack.Api.Tenant tenant_; + /// + /// Tenant object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.Tenant Tenant { + get { return tenant_; } + set { + tenant_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateTenantRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateTenantRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Tenant, other.Tenant)) 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 (tenant_ != null) hash ^= Tenant.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 (tenant_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Tenant); + } + 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 (tenant_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Tenant); + } + 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 (tenant_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tenant); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateTenantRequest other) { + if (other == null) { + return; + } + if (other.tenant_ != null) { + if (tenant_ == null) { + Tenant = new global::Chirpstack.Api.Tenant(); + } + Tenant.MergeFrom(other.Tenant); + } + _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 (tenant_ == null) { + Tenant = new global::Chirpstack.Api.Tenant(); + } + input.ReadMessage(Tenant); + 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 (tenant_ == null) { + Tenant = new global::Chirpstack.Api.Tenant(); + } + input.ReadMessage(Tenant); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteTenantRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteTenantRequest()); + 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.Api.TenantReflection.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 DeleteTenantRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteTenantRequest(DeleteTenantRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteTenantRequest Clone() { + return new DeleteTenantRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Tenant ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteTenantRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteTenantRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteTenantRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class ListTenantsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListTenantsRequest()); + 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.Api.TenantReflection.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 ListTenantsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTenantsRequest(ListTenantsRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + search_ = other.search_; + userId_ = other.userId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTenantsRequest Clone() { + return new ListTenantsRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private uint limit_; + /// + /// Max number of tenants to return in the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 2; + private uint offset_; + /// + /// Offset in the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + /// Field number for the "search" field. + public const int SearchFieldNumber = 3; + private string search_ = ""; + /// + /// If set, the given string will be used to search on name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Search { + get { return search_; } + set { + search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 4; + private string userId_ = ""; + /// + /// If set, filters the result set to the tenants of the user. + /// Only global API keys are able to filter by this field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListTenantsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListTenantsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Limit != other.Limit) return false; + if (Offset != other.Offset) return false; + if (Search != other.Search) return false; + if (UserId != other.UserId) 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 (Limit != 0) hash ^= Limit.GetHashCode(); + if (Offset != 0) hash ^= Offset.GetHashCode(); + if (Search.Length != 0) hash ^= Search.GetHashCode(); + if (UserId.Length != 0) hash ^= UserId.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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (UserId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(UserId); + } + 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 (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (UserId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(UserId); + } + 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 (Limit != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); + } + if (Offset != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); + } + if (Search.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); + } + if (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListTenantsRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0) { + Limit = other.Limit; + } + if (other.Offset != 0) { + Offset = other.Offset; + } + if (other.Search.Length != 0) { + Search = other.Search; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + _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: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + case 34: { + UserId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + case 34: { + UserId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListTenantsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListTenantsResponse()); + 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.Api.TenantReflection.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 ListTenantsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTenantsResponse(ListTenantsResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTenantsResponse Clone() { + return new ListTenantsResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of tenants. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.TenantListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListTenantsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListTenantsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListTenantsResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TenantUser : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TenantUser()); + 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.Api.TenantReflection.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 TenantUser() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TenantUser(TenantUser other) : this() { + tenantId_ = other.tenantId_; + userId_ = other.userId_; + isAdmin_ = other.isAdmin_; + isDeviceAdmin_ = other.isDeviceAdmin_; + isGatewayAdmin_ = other.isGatewayAdmin_; + email_ = other.email_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TenantUser Clone() { + return new TenantUser(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 "user_id" field. + public const int UserIdFieldNumber = 2; + private string userId_ = ""; + /// + /// User ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_admin" field. + public const int IsAdminFieldNumber = 3; + private bool isAdmin_; + /// + /// User is admin within the context of the tenant. + /// There is no need to set the is_device_admin and is_gateway_admin flags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAdmin { + get { return isAdmin_; } + set { + isAdmin_ = value; + } + } + + /// Field number for the "is_device_admin" field. + public const int IsDeviceAdminFieldNumber = 4; + private bool isDeviceAdmin_; + /// + /// User is able to modify device related resources (applications, + /// device-profiles, devices, multicast-groups). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsDeviceAdmin { + get { return isDeviceAdmin_; } + set { + isDeviceAdmin_ = value; + } + } + + /// Field number for the "is_gateway_admin" field. + public const int IsGatewayAdminFieldNumber = 5; + private bool isGatewayAdmin_; + /// + /// User is able to modify gateways. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsGatewayAdmin { + get { return isGatewayAdmin_; } + set { + isGatewayAdmin_ = value; + } + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 6; + private string email_ = ""; + /// + /// Email (only used on get and when adding a user to a tenant). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Email { + get { return email_; } + set { + email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TenantUser); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TenantUser other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TenantId != other.TenantId) return false; + if (UserId != other.UserId) return false; + if (IsAdmin != other.IsAdmin) return false; + if (IsDeviceAdmin != other.IsDeviceAdmin) return false; + if (IsGatewayAdmin != other.IsGatewayAdmin) return false; + if (Email != other.Email) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); + if (IsDeviceAdmin != false) hash ^= IsDeviceAdmin.GetHashCode(); + if (IsGatewayAdmin != false) hash ^= IsGatewayAdmin.GetHashCode(); + if (Email.Length != 0) hash ^= Email.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 (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (IsDeviceAdmin != false) { + output.WriteRawTag(32); + output.WriteBool(IsDeviceAdmin); + } + if (IsGatewayAdmin != false) { + output.WriteRawTag(40); + output.WriteBool(IsGatewayAdmin); + } + if (Email.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Email); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (IsDeviceAdmin != false) { + output.WriteRawTag(32); + output.WriteBool(IsDeviceAdmin); + } + if (IsGatewayAdmin != false) { + output.WriteRawTag(40); + output.WriteBool(IsGatewayAdmin); + } + if (Email.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Email); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (IsAdmin != false) { + size += 1 + 1; + } + if (IsDeviceAdmin != false) { + size += 1 + 1; + } + if (IsGatewayAdmin != false) { + size += 1 + 1; + } + if (Email.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TenantUser other) { + if (other == null) { + return; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.IsAdmin != false) { + IsAdmin = other.IsAdmin; + } + if (other.IsDeviceAdmin != false) { + IsDeviceAdmin = other.IsDeviceAdmin; + } + if (other.IsGatewayAdmin != false) { + IsGatewayAdmin = other.IsGatewayAdmin; + } + if (other.Email.Length != 0) { + Email = other.Email; + } + _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: { + UserId = input.ReadString(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 32: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 40: { + IsGatewayAdmin = input.ReadBool(); + break; + } + case 50: { + Email = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TenantId = input.ReadString(); + break; + } + case 18: { + UserId = input.ReadString(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 32: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 40: { + IsGatewayAdmin = input.ReadBool(); + break; + } + case 50: { + Email = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TenantUserListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TenantUserListItem()); + 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.Api.TenantReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TenantUserListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TenantUserListItem(TenantUserListItem other) : this() { + tenantId_ = other.tenantId_; + userId_ = other.userId_; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + email_ = other.email_; + isAdmin_ = other.isAdmin_; + isDeviceAdmin_ = other.isDeviceAdmin_; + isGatewayAdmin_ = other.isGatewayAdmin_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TenantUserListItem Clone() { + return new TenantUserListItem(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 "user_id" field. + public const int UserIdFieldNumber = 2; + private string userId_ = ""; + /// + /// User ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 5; + private string email_ = ""; + /// + /// Email. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Email { + get { return email_; } + set { + email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_admin" field. + public const int IsAdminFieldNumber = 6; + private bool isAdmin_; + /// + /// User is admin within the context of the tenant. + /// There is no need to set the is_device_admin and is_gateway_admin flags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAdmin { + get { return isAdmin_; } + set { + isAdmin_ = value; + } + } + + /// Field number for the "is_device_admin" field. + public const int IsDeviceAdminFieldNumber = 7; + private bool isDeviceAdmin_; + /// + /// User is able to modify device related resources (applications, + /// device-profiles, devices, multicast-groups). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsDeviceAdmin { + get { return isDeviceAdmin_; } + set { + isDeviceAdmin_ = value; + } + } + + /// Field number for the "is_gateway_admin" field. + public const int IsGatewayAdminFieldNumber = 8; + private bool isGatewayAdmin_; + /// + /// User is able to modify gateways. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsGatewayAdmin { + get { return isGatewayAdmin_; } + set { + isGatewayAdmin_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TenantUserListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TenantUserListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TenantId != other.TenantId) return false; + if (UserId != other.UserId) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (Email != other.Email) return false; + if (IsAdmin != other.IsAdmin) return false; + if (IsDeviceAdmin != other.IsDeviceAdmin) return false; + if (IsGatewayAdmin != other.IsGatewayAdmin) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (Email.Length != 0) hash ^= Email.GetHashCode(); + if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); + if (IsDeviceAdmin != false) hash ^= IsDeviceAdmin.GetHashCode(); + if (IsGatewayAdmin != false) hash ^= IsGatewayAdmin.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 (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + if (createdAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(UpdatedAt); + } + if (Email.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Email); + } + if (IsAdmin != false) { + output.WriteRawTag(48); + output.WriteBool(IsAdmin); + } + if (IsDeviceAdmin != false) { + output.WriteRawTag(56); + output.WriteBool(IsDeviceAdmin); + } + if (IsGatewayAdmin != false) { + output.WriteRawTag(64); + output.WriteBool(IsGatewayAdmin); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + if (createdAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(UpdatedAt); + } + if (Email.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Email); + } + if (IsAdmin != false) { + output.WriteRawTag(48); + output.WriteBool(IsAdmin); + } + if (IsDeviceAdmin != false) { + output.WriteRawTag(56); + output.WriteBool(IsDeviceAdmin); + } + if (IsGatewayAdmin != false) { + output.WriteRawTag(64); + output.WriteBool(IsGatewayAdmin); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (Email.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + if (IsAdmin != false) { + size += 1 + 1; + } + if (IsDeviceAdmin != false) { + size += 1 + 1; + } + if (IsGatewayAdmin != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TenantUserListItem other) { + if (other == null) { + return; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + if (other.Email.Length != 0) { + Email = other.Email; + } + if (other.IsAdmin != false) { + IsAdmin = other.IsAdmin; + } + if (other.IsDeviceAdmin != false) { + IsDeviceAdmin = other.IsDeviceAdmin; + } + if (other.IsGatewayAdmin != false) { + IsGatewayAdmin = other.IsGatewayAdmin; + } + _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: { + UserId = input.ReadString(); + break; + } + case 26: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 34: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 42: { + Email = input.ReadString(); + break; + } + case 48: { + IsAdmin = input.ReadBool(); + break; + } + case 56: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 64: { + IsGatewayAdmin = input.ReadBool(); + 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: { + UserId = input.ReadString(); + break; + } + case 26: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 34: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 42: { + Email = input.ReadString(); + break; + } + case 48: { + IsAdmin = input.ReadBool(); + break; + } + case 56: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 64: { + IsGatewayAdmin = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AddTenantUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddTenantUserRequest()); + 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.Api.TenantReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddTenantUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddTenantUserRequest(AddTenantUserRequest other) : this() { + tenantUser_ = other.tenantUser_ != null ? other.tenantUser_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddTenantUserRequest Clone() { + return new AddTenantUserRequest(this); + } + + /// Field number for the "tenant_user" field. + public const int TenantUserFieldNumber = 1; + private global::Chirpstack.Api.TenantUser tenantUser_; + /// + /// Tenant user object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.TenantUser TenantUser { + get { return tenantUser_; } + set { + tenantUser_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddTenantUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddTenantUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TenantUser, other.TenantUser)) 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 (tenantUser_ != null) hash ^= TenantUser.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 (tenantUser_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TenantUser); + } + 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 (tenantUser_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TenantUser); + } + 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 (tenantUser_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TenantUser); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddTenantUserRequest other) { + if (other == null) { + return; + } + if (other.tenantUser_ != null) { + if (tenantUser_ == null) { + TenantUser = new global::Chirpstack.Api.TenantUser(); + } + TenantUser.MergeFrom(other.TenantUser); + } + _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 (tenantUser_ == null) { + TenantUser = new global::Chirpstack.Api.TenantUser(); + } + input.ReadMessage(TenantUser); + 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 (tenantUser_ == null) { + TenantUser = new global::Chirpstack.Api.TenantUser(); + } + input.ReadMessage(TenantUser); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTenantUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTenantUserRequest()); + 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.Api.TenantReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTenantUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTenantUserRequest(GetTenantUserRequest other) : this() { + tenantId_ = other.tenantId_; + userId_ = other.userId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTenantUserRequest Clone() { + return new GetTenantUserRequest(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 "user_id" field. + public const int UserIdFieldNumber = 2; + private string userId_ = ""; + /// + /// User ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTenantUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTenantUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TenantId != other.TenantId) return false; + if (UserId != other.UserId) 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 (UserId.Length != 0) hash ^= UserId.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 (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTenantUserRequest other) { + if (other == null) { + return; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + _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: { + UserId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TenantId = input.ReadString(); + break; + } + case 18: { + UserId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTenantUserResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTenantUserResponse()); + 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.Api.TenantReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTenantUserResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTenantUserResponse(GetTenantUserResponse other) : this() { + tenantUser_ = other.tenantUser_ != null ? other.tenantUser_.Clone() : null; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTenantUserResponse Clone() { + return new GetTenantUserResponse(this); + } + + /// Field number for the "tenant_user" field. + public const int TenantUserFieldNumber = 1; + private global::Chirpstack.Api.TenantUser tenantUser_; + /// + /// Tenant user object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.TenantUser TenantUser { + get { return tenantUser_; } + set { + tenantUser_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTenantUserResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTenantUserResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TenantUser, other.TenantUser)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) 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 (tenantUser_ != null) hash ^= TenantUser.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.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 (tenantUser_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TenantUser); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (tenantUser_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TenantUser); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (tenantUser_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TenantUser); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTenantUserResponse other) { + if (other == null) { + return; + } + if (other.tenantUser_ != null) { + if (tenantUser_ == null) { + TenantUser = new global::Chirpstack.Api.TenantUser(); + } + TenantUser.MergeFrom(other.TenantUser); + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + _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 (tenantUser_ == null) { + TenantUser = new global::Chirpstack.Api.TenantUser(); + } + input.ReadMessage(TenantUser); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + 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 (tenantUser_ == null) { + TenantUser = new global::Chirpstack.Api.TenantUser(); + } + input.ReadMessage(TenantUser); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateTenantUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateTenantUserRequest()); + 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.Api.TenantReflection.Descriptor.MessageTypes[15]; } + } + + [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 UpdateTenantUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTenantUserRequest(UpdateTenantUserRequest other) : this() { + tenantUser_ = other.tenantUser_ != null ? other.tenantUser_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTenantUserRequest Clone() { + return new UpdateTenantUserRequest(this); + } + + /// Field number for the "tenant_user" field. + public const int TenantUserFieldNumber = 1; + private global::Chirpstack.Api.TenantUser tenantUser_; + /// + /// Tenant user object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.TenantUser TenantUser { + get { return tenantUser_; } + set { + tenantUser_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateTenantUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateTenantUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TenantUser, other.TenantUser)) 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 (tenantUser_ != null) hash ^= TenantUser.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 (tenantUser_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TenantUser); + } + 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 (tenantUser_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TenantUser); + } + 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 (tenantUser_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TenantUser); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateTenantUserRequest other) { + if (other == null) { + return; + } + if (other.tenantUser_ != null) { + if (tenantUser_ == null) { + TenantUser = new global::Chirpstack.Api.TenantUser(); + } + TenantUser.MergeFrom(other.TenantUser); + } + _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 (tenantUser_ == null) { + TenantUser = new global::Chirpstack.Api.TenantUser(); + } + input.ReadMessage(TenantUser); + 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 (tenantUser_ == null) { + TenantUser = new global::Chirpstack.Api.TenantUser(); + } + input.ReadMessage(TenantUser); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteTenantUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteTenantUserRequest()); + 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.Api.TenantReflection.Descriptor.MessageTypes[16]; } + } + + [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 DeleteTenantUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteTenantUserRequest(DeleteTenantUserRequest other) : this() { + tenantId_ = other.tenantId_; + userId_ = other.userId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteTenantUserRequest Clone() { + return new DeleteTenantUserRequest(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 "user_id" field. + public const int UserIdFieldNumber = 2; + private string userId_ = ""; + /// + /// User ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteTenantUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteTenantUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TenantId != other.TenantId) return false; + if (UserId != other.UserId) 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 (UserId.Length != 0) hash ^= UserId.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 (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteTenantUserRequest other) { + if (other == null) { + return; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + _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: { + UserId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TenantId = input.ReadString(); + break; + } + case 18: { + UserId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListTenantUsersRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListTenantUsersRequest()); + 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.Api.TenantReflection.Descriptor.MessageTypes[17]; } + } + + [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 ListTenantUsersRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTenantUsersRequest(ListTenantUsersRequest other) : this() { + tenantId_ = other.tenantId_; + limit_ = other.limit_; + offset_ = other.offset_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTenantUsersRequest Clone() { + return new ListTenantUsersRequest(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 "limit" field. + public const int LimitFieldNumber = 2; + private uint limit_; + /// + /// Max number of tenants to return in the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 3; + private uint offset_; + /// + /// Offset in the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListTenantUsersRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListTenantUsersRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TenantId != other.TenantId) return false; + if (Limit != other.Limit) return false; + if (Offset != other.Offset) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); + if (Limit != 0) hash ^= Limit.GetHashCode(); + if (Offset != 0) hash ^= Offset.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TenantId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TenantId); + } + if (Limit != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Offset); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TenantId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TenantId); + } + if (Limit != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Offset); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TenantId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); + } + if (Limit != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); + } + if (Offset != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListTenantUsersRequest other) { + if (other == null) { + return; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + if (other.Limit != 0) { + Limit = other.Limit; + } + if (other.Offset != 0) { + Offset = other.Offset; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + TenantId = input.ReadString(); + break; + } + case 16: { + Limit = input.ReadUInt32(); + break; + } + case 24: { + Offset = 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: { + TenantId = input.ReadString(); + break; + } + case 16: { + Limit = input.ReadUInt32(); + break; + } + case 24: { + Offset = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListTenantUsersResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListTenantUsersResponse()); + 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.Api.TenantReflection.Descriptor.MessageTypes[18]; } + } + + [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 ListTenantUsersResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTenantUsersResponse(ListTenantUsersResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTenantUsersResponse Clone() { + return new ListTenantUsersResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of tenants. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.TenantUserListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListTenantUsersResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListTenantUsersResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListTenantUsersResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/TenantGrpc.cs b/api/csharp/Chirpstack/api/TenantGrpc.cs new file mode 100644 index 00000000..9b6958b3 --- /dev/null +++ b/api/csharp/Chirpstack/api/TenantGrpc.cs @@ -0,0 +1,855 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/tenant.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.Api { + /// + /// TenantService is the service providing API methods for managing tenants. + /// + public static partial class TenantService + { + static readonly string __ServiceName = "api.TenantService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateTenantRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateTenantRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateTenantResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateTenantResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetTenantRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetTenantRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetTenantResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetTenantResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateTenantRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateTenantRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteTenantRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteTenantRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListTenantsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListTenantsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListTenantsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListTenantsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_AddTenantUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.AddTenantUserRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetTenantUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetTenantUserRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetTenantUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetTenantUserResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateTenantUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateTenantUserRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteTenantUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteTenantUserRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListTenantUsersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListTenantUsersRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListTenantUsersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListTenantUsersResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Create = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Create", + __Marshaller_api_CreateTenantRequest, + __Marshaller_api_CreateTenantResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Get = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Get", + __Marshaller_api_GetTenantRequest, + __Marshaller_api_GetTenantResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Update = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Update", + __Marshaller_api_UpdateTenantRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Delete = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Delete", + __Marshaller_api_DeleteTenantRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_List = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "List", + __Marshaller_api_ListTenantsRequest, + __Marshaller_api_ListTenantsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_AddUser = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "AddUser", + __Marshaller_api_AddTenantUserRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetUser = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetUser", + __Marshaller_api_GetTenantUserRequest, + __Marshaller_api_GetTenantUserResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateUser = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateUser", + __Marshaller_api_UpdateTenantUserRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteUser = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteUser", + __Marshaller_api_DeleteTenantUserRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListUsers = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListUsers", + __Marshaller_api_ListTenantUsersRequest, + __Marshaller_api_ListTenantUsersResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.Api.TenantReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of TenantService + [grpc::BindServiceMethod(typeof(TenantService), "BindService")] + public abstract partial class TenantServiceBase + { + /// + /// Create a new tenant. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateTenantRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the tenant for the given ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetTenantRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update the given tenant. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateTenantRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete the tenant with the given ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteTenantRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the list of tenants. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListTenantsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Add an user to the tenant. + /// Note: the user must already exist. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task AddUser(global::Chirpstack.Api.AddTenantUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the the tenant user for the given tenant and user IDs. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetUser(global::Chirpstack.Api.GetTenantUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update the given tenant user. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateUser(global::Chirpstack.Api.UpdateTenantUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete the given tenant user. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteUser(global::Chirpstack.Api.DeleteTenantUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the list of tenant users. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListUsers(global::Chirpstack.Api.ListTenantUsersRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for TenantService + public partial class TenantServiceClient : grpc::ClientBase + { + /// Creates a new client for TenantService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public TenantServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for TenantService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public TenantServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected TenantServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected TenantServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Create a new tenant. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.CreateTenantResponse Create(global::Chirpstack.Api.CreateTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create a new tenant. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.CreateTenantResponse Create(global::Chirpstack.Api.CreateTenantRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create a new tenant. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create a new tenant. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateTenantRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get the tenant for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetTenantResponse Get(global::Chirpstack.Api.GetTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the tenant for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetTenantResponse Get(global::Chirpstack.Api.GetTenantRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get the tenant for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the tenant for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetTenantRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update the given tenant. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given tenant. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateTenantRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update the given tenant. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given tenant. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateTenantRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete the tenant with the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the tenant with the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteTenantRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete the tenant with the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the tenant with the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteTenantRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Get the list of tenants. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListTenantsResponse List(global::Chirpstack.Api.ListTenantsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the list of tenants. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListTenantsResponse List(global::Chirpstack.Api.ListTenantsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// Get the list of tenants. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListTenantsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the list of tenants. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListTenantsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// Add an user to the tenant. + /// Note: the user must already exist. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty AddUser(global::Chirpstack.Api.AddTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return AddUser(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Add an user to the tenant. + /// Note: the user must already exist. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty AddUser(global::Chirpstack.Api.AddTenantUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_AddUser, null, options, request); + } + /// + /// Add an user to the tenant. + /// Note: the user must already exist. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall AddUserAsync(global::Chirpstack.Api.AddTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return AddUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Add an user to the tenant. + /// Note: the user must already exist. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall AddUserAsync(global::Chirpstack.Api.AddTenantUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_AddUser, null, options, request); + } + /// + /// Get the the tenant user for the given tenant and user IDs. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetTenantUserResponse GetUser(global::Chirpstack.Api.GetTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetUser(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the the tenant user for the given tenant and user IDs. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetTenantUserResponse GetUser(global::Chirpstack.Api.GetTenantUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetUser, null, options, request); + } + /// + /// Get the the tenant user for the given tenant and user IDs. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetUserAsync(global::Chirpstack.Api.GetTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the the tenant user for the given tenant and user IDs. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetUserAsync(global::Chirpstack.Api.GetTenantUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetUser, null, options, request); + } + /// + /// Update the given tenant user. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateUser(global::Chirpstack.Api.UpdateTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateUser(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given tenant user. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateUser(global::Chirpstack.Api.UpdateTenantUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateUser, null, options, request); + } + /// + /// Update the given tenant user. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateUserAsync(global::Chirpstack.Api.UpdateTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given tenant user. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateUserAsync(global::Chirpstack.Api.UpdateTenantUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateUser, null, options, request); + } + /// + /// Delete the given tenant user. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteUser(global::Chirpstack.Api.DeleteTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteUser(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the given tenant user. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteUser(global::Chirpstack.Api.DeleteTenantUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteUser, null, options, request); + } + /// + /// Delete the given tenant user. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteUserAsync(global::Chirpstack.Api.DeleteTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the given tenant user. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteUserAsync(global::Chirpstack.Api.DeleteTenantUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteUser, null, options, request); + } + /// + /// Get the list of tenant users. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListTenantUsersResponse ListUsers(global::Chirpstack.Api.ListTenantUsersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListUsers(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the list of tenant users. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListTenantUsersResponse ListUsers(global::Chirpstack.Api.ListTenantUsersRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListUsers, null, options, request); + } + /// + /// Get the list of tenant users. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListUsersAsync(global::Chirpstack.Api.ListTenantUsersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListUsersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the list of tenant users. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListUsersAsync(global::Chirpstack.Api.ListTenantUsersRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListUsers, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override TenantServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new TenantServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(TenantServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_Create, serviceImpl.Create) + .AddMethod(__Method_Get, serviceImpl.Get) + .AddMethod(__Method_Update, serviceImpl.Update) + .AddMethod(__Method_Delete, serviceImpl.Delete) + .AddMethod(__Method_List, serviceImpl.List) + .AddMethod(__Method_AddUser, serviceImpl.AddUser) + .AddMethod(__Method_GetUser, serviceImpl.GetUser) + .AddMethod(__Method_UpdateUser, serviceImpl.UpdateUser) + .AddMethod(__Method_DeleteUser, serviceImpl.DeleteUser) + .AddMethod(__Method_ListUsers, serviceImpl.ListUsers).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, TenantServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); + serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); + serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); + serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); + serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); + serviceBinder.AddMethod(__Method_AddUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddUser)); + serviceBinder.AddMethod(__Method_GetUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetUser)); + serviceBinder.AddMethod(__Method_UpdateUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateUser)); + serviceBinder.AddMethod(__Method_DeleteUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteUser)); + serviceBinder.AddMethod(__Method_ListUsers, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListUsers)); + } + + } +} +#endregion diff --git a/api/csharp/Chirpstack/api/User.cs b/api/csharp/Chirpstack/api/User.cs new file mode 100644 index 00000000..87d1283a --- /dev/null +++ b/api/csharp/Chirpstack/api/User.cs @@ -0,0 +1,3198 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/user.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.Api { + + /// Holder for reflection information generated from api/user.proto + public static partial class UserReflection { + + #region Descriptor + /// File descriptor for api/user.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UserReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5hcGkvdXNlci5wcm90bxIDYXBpGhxnb29nbGUvYXBpL2Fubm90YXRpb25z", + "LnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGhtnb29n", + "bGUvcHJvdG9idWYvZW1wdHkucHJvdG8iVAoEVXNlchIKCgJpZBgBIAEoCRIQ", + "Cghpc19hZG1pbhgEIAEoCBIRCglpc19hY3RpdmUYBSABKAgSDQoFZW1haWwY", + "BiABKAkSDAoEbm90ZRgHIAEoCSKuAQoMVXNlckxpc3RJdGVtEgoKAmlkGAEg", + "ASgJEi4KCmNyZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", + "ZXN0YW1wEi4KCnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wEg0KBWVtYWlsGAQgASgJEhAKCGlzX2FkbWluGAUgASgIEhEK", + "CWlzX2FjdGl2ZRgGIAEoCCJkCgpVc2VyVGVuYW50EhEKCXRlbmFudF9pZBgB", + "IAEoCRIQCghpc19hZG1pbhgCIAEoCBIXCg9pc19kZXZpY2VfYWRtaW4YAyAB", + "KAgSGAoQaXNfZ2F0ZXdheV9hZG1pbhgEIAEoCCJgChFDcmVhdGVVc2VyUmVx", + "dWVzdBIXCgR1c2VyGAEgASgLMgkuYXBpLlVzZXISEAoIcGFzc3dvcmQYAiAB", + "KAkSIAoHdGVuYW50cxgDIAMoCzIPLmFwaS5Vc2VyVGVuYW50IiAKEkNyZWF0", + "ZVVzZXJSZXNwb25zZRIKCgJpZBgBIAEoCSIcCg5HZXRVc2VyUmVxdWVzdBIK", + "CgJpZBgBIAEoCSKKAQoPR2V0VXNlclJlc3BvbnNlEhcKBHVzZXIYASABKAsy", + "CS5hcGkuVXNlchIuCgpjcmVhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3Rv", + "YnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnBy", + "b3RvYnVmLlRpbWVzdGFtcCIsChFVcGRhdGVVc2VyUmVxdWVzdBIXCgR1c2Vy", + "GAEgASgLMgkuYXBpLlVzZXIiHwoRRGVsZXRlVXNlclJlcXVlc3QSCgoCaWQY", + "ASABKAkiMQoQTGlzdFVzZXJzUmVxdWVzdBINCgVsaW1pdBgBIAEoDRIOCgZv", + "ZmZzZXQYAiABKA0iSwoRTGlzdFVzZXJzUmVzcG9uc2USEwoLdG90YWxfY291", + "bnQYASABKA0SIQoGcmVzdWx0GAIgAygLMhEuYXBpLlVzZXJMaXN0SXRlbSI+", + "ChlVcGRhdGVVc2VyUGFzc3dvcmRSZXF1ZXN0Eg8KB3VzZXJfaWQYASABKAkS", + "EAoIcGFzc3dvcmQYAiABKAkylwQKC1VzZXJTZXJ2aWNlElAKBkNyZWF0ZRIW", + "LmFwaS5DcmVhdGVVc2VyUmVxdWVzdBoXLmFwaS5DcmVhdGVVc2VyUmVzcG9u", + "c2UiFYLT5JMCDyIKL2FwaS91c2VyczoBKhJJCgNHZXQSEy5hcGkuR2V0VXNl", + "clJlcXVlc3QaFC5hcGkuR2V0VXNlclJlc3BvbnNlIheC0+STAhESDy9hcGkv", + "dXNlcnMve2lkfRJZCgZVcGRhdGUSFi5hcGkuVXBkYXRlVXNlclJlcXVlc3Qa", + "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkiH4LT5JMCGRoUL2FwaS91c2Vycy97", + "dXNlci5pZH06ASoSUQoGRGVsZXRlEhYuYXBpLkRlbGV0ZVVzZXJSZXF1ZXN0", + "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IheC0+STAhEqDy9hcGkvdXNlcnMv", + "e2lkfRJJCgRMaXN0EhUuYXBpLkxpc3RVc2Vyc1JlcXVlc3QaFi5hcGkuTGlz", + "dFVzZXJzUmVzcG9uc2UiEoLT5JMCDBIKL2FwaS91c2VycxJyCg5VcGRhdGVQ", + "YXNzd29yZBIeLmFwaS5VcGRhdGVVc2VyUGFzc3dvcmRSZXF1ZXN0GhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5IiiC0+STAiIiHS9hcGkvdXNlcnMve3VzZXJf", + "aWR9L3Bhc3N3b3JkOgEqQmEKEWlvLmNoaXJwc3RhY2suYXBpQglVc2VyUHJv", + "dG9QAVouZ2l0aHViLmNvbS9jaGlycHN0YWNrL2NoaXJwc3RhY2svYXBpL2dv", + "L3Y0L2FwaaoCDkNoaXJwc3RhY2suQXBpYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.User), global::Chirpstack.Api.User.Parser, new[]{ "Id", "IsAdmin", "IsActive", "Email", "Note" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UserListItem), global::Chirpstack.Api.UserListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Email", "IsAdmin", "IsActive" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UserTenant), global::Chirpstack.Api.UserTenant.Parser, new[]{ "TenantId", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateUserRequest), global::Chirpstack.Api.CreateUserRequest.Parser, new[]{ "User", "Password", "Tenants" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateUserResponse), global::Chirpstack.Api.CreateUserResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetUserRequest), global::Chirpstack.Api.GetUserRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetUserResponse), global::Chirpstack.Api.GetUserResponse.Parser, new[]{ "User", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateUserRequest), global::Chirpstack.Api.UpdateUserRequest.Parser, new[]{ "User" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteUserRequest), global::Chirpstack.Api.DeleteUserRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListUsersRequest), global::Chirpstack.Api.ListUsersRequest.Parser, new[]{ "Limit", "Offset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListUsersResponse), global::Chirpstack.Api.ListUsersResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateUserPasswordRequest), global::Chirpstack.Api.UpdateUserPasswordRequest.Parser, new[]{ "UserId", "Password" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class User : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new User()); + 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.Api.UserReflection.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 User() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public User(User other) : this() { + id_ = other.id_; + isAdmin_ = other.isAdmin_; + isActive_ = other.isActive_; + email_ = other.email_; + note_ = other.note_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public User Clone() { + return new User(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// User ID (UUID). + /// Will be set automatically on create. + /// + [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 "is_admin" field. + public const int IsAdminFieldNumber = 4; + private bool isAdmin_; + /// + /// Set to true to make the user a global administrator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAdmin { + get { return isAdmin_; } + set { + isAdmin_ = value; + } + } + + /// Field number for the "is_active" field. + public const int IsActiveFieldNumber = 5; + private bool isActive_; + /// + /// Set to false to disable the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsActive { + get { return isActive_; } + set { + isActive_ = value; + } + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 6; + private string email_ = ""; + /// + /// E-mail of the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Email { + get { return email_; } + set { + email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "note" field. + public const int NoteFieldNumber = 7; + private string note_ = ""; + /// + /// Optional note to store with the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Note { + get { return note_; } + set { + note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as User); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(User other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (IsAdmin != other.IsAdmin) return false; + if (IsActive != other.IsActive) return false; + if (Email != other.Email) return false; + if (Note != other.Note) 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 (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); + if (IsActive != false) hash ^= IsActive.GetHashCode(); + if (Email.Length != 0) hash ^= Email.GetHashCode(); + if (Note.Length != 0) hash ^= Note.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 (IsAdmin != false) { + output.WriteRawTag(32); + output.WriteBool(IsAdmin); + } + if (IsActive != false) { + output.WriteRawTag(40); + output.WriteBool(IsActive); + } + if (Email.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Email); + } + if (Note.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Note); + } + 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 (IsAdmin != false) { + output.WriteRawTag(32); + output.WriteBool(IsAdmin); + } + if (IsActive != false) { + output.WriteRawTag(40); + output.WriteBool(IsActive); + } + if (Email.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Email); + } + if (Note.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Note); + } + 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 (IsAdmin != false) { + size += 1 + 1; + } + if (IsActive != false) { + size += 1 + 1; + } + if (Email.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + if (Note.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(User other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.IsAdmin != false) { + IsAdmin = other.IsAdmin; + } + if (other.IsActive != false) { + IsActive = other.IsActive; + } + if (other.Email.Length != 0) { + Email = other.Email; + } + if (other.Note.Length != 0) { + Note = other.Note; + } + _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 32: { + IsAdmin = input.ReadBool(); + break; + } + case 40: { + IsActive = input.ReadBool(); + break; + } + case 50: { + Email = input.ReadString(); + break; + } + case 58: { + Note = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 32: { + IsAdmin = input.ReadBool(); + break; + } + case 40: { + IsActive = input.ReadBool(); + break; + } + case 50: { + Email = input.ReadString(); + break; + } + case 58: { + Note = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UserListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserListItem()); + 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.Api.UserReflection.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 UserListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserListItem(UserListItem other) : this() { + id_ = other.id_; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + email_ = other.email_; + isAdmin_ = other.isAdmin_; + isActive_ = other.isActive_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserListItem Clone() { + return new UserListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// User ID (UUID). + /// + [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 "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 4; + private string email_ = ""; + /// + /// Email of the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Email { + get { return email_; } + set { + email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_admin" field. + public const int IsAdminFieldNumber = 5; + private bool isAdmin_; + /// + /// Set to true to make the user a global administrator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAdmin { + get { return isAdmin_; } + set { + isAdmin_ = value; + } + } + + /// Field number for the "is_active" field. + public const int IsActiveFieldNumber = 6; + private bool isActive_; + /// + /// Set to false to disable the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsActive { + get { return isActive_; } + set { + isActive_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (Email != other.Email) return false; + if (IsAdmin != other.IsAdmin) return false; + if (IsActive != other.IsActive) 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 (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (Email.Length != 0) hash ^= Email.GetHashCode(); + if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); + if (IsActive != false) hash ^= IsActive.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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Email.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Email); + } + if (IsAdmin != false) { + output.WriteRawTag(40); + output.WriteBool(IsAdmin); + } + if (IsActive != false) { + output.WriteRawTag(48); + output.WriteBool(IsActive); + } + 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 (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Email.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Email); + } + if (IsAdmin != false) { + output.WriteRawTag(40); + output.WriteBool(IsAdmin); + } + if (IsActive != false) { + output.WriteRawTag(48); + output.WriteBool(IsActive); + } + 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 (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (Email.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + if (IsAdmin != false) { + size += 1 + 1; + } + if (IsActive != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserListItem other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + if (other.Email.Length != 0) { + Email = other.Email; + } + if (other.IsAdmin != false) { + IsAdmin = other.IsAdmin; + } + if (other.IsActive != false) { + IsActive = other.IsActive; + } + _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: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + Email = input.ReadString(); + break; + } + case 40: { + IsAdmin = input.ReadBool(); + break; + } + case 48: { + IsActive = input.ReadBool(); + 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: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 34: { + Email = input.ReadString(); + break; + } + case 40: { + IsAdmin = input.ReadBool(); + break; + } + case 48: { + IsActive = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UserTenant : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserTenant()); + 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.Api.UserReflection.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 UserTenant() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserTenant(UserTenant other) : this() { + tenantId_ = other.tenantId_; + isAdmin_ = other.isAdmin_; + isDeviceAdmin_ = other.isDeviceAdmin_; + isGatewayAdmin_ = other.isGatewayAdmin_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserTenant Clone() { + return new UserTenant(this); + } + + /// Field number for the "tenant_id" field. + public const int TenantIdFieldNumber = 1; + private string tenantId_ = ""; + /// + /// Tenant ID. + /// + [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 "is_admin" field. + public const int IsAdminFieldNumber = 2; + private bool isAdmin_; + /// + /// User is admin within the context of the tenant. + /// There is no need to set the is_device_admin and is_gateway_admin flags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAdmin { + get { return isAdmin_; } + set { + isAdmin_ = value; + } + } + + /// Field number for the "is_device_admin" field. + public const int IsDeviceAdminFieldNumber = 3; + private bool isDeviceAdmin_; + /// + /// User is able to modify device related resources (applications, + /// device-profiles, devices, multicast-groups). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsDeviceAdmin { + get { return isDeviceAdmin_; } + set { + isDeviceAdmin_ = value; + } + } + + /// Field number for the "is_gateway_admin" field. + public const int IsGatewayAdminFieldNumber = 4; + private bool isGatewayAdmin_; + /// + /// User is able to modify gateways. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsGatewayAdmin { + get { return isGatewayAdmin_; } + set { + isGatewayAdmin_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserTenant); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserTenant other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TenantId != other.TenantId) return false; + if (IsAdmin != other.IsAdmin) return false; + if (IsDeviceAdmin != other.IsDeviceAdmin) return false; + if (IsGatewayAdmin != other.IsGatewayAdmin) 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 (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); + if (IsDeviceAdmin != false) hash ^= IsDeviceAdmin.GetHashCode(); + if (IsGatewayAdmin != false) hash ^= IsGatewayAdmin.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 (IsAdmin != false) { + output.WriteRawTag(16); + output.WriteBool(IsAdmin); + } + if (IsDeviceAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsDeviceAdmin); + } + if (IsGatewayAdmin != false) { + output.WriteRawTag(32); + output.WriteBool(IsGatewayAdmin); + } + 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 (IsAdmin != false) { + output.WriteRawTag(16); + output.WriteBool(IsAdmin); + } + if (IsDeviceAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsDeviceAdmin); + } + if (IsGatewayAdmin != false) { + output.WriteRawTag(32); + output.WriteBool(IsGatewayAdmin); + } + 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 (IsAdmin != false) { + size += 1 + 1; + } + if (IsDeviceAdmin != false) { + size += 1 + 1; + } + if (IsGatewayAdmin != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserTenant other) { + if (other == null) { + return; + } + if (other.TenantId.Length != 0) { + TenantId = other.TenantId; + } + if (other.IsAdmin != false) { + IsAdmin = other.IsAdmin; + } + if (other.IsDeviceAdmin != false) { + IsDeviceAdmin = other.IsDeviceAdmin; + } + if (other.IsGatewayAdmin != false) { + IsGatewayAdmin = other.IsGatewayAdmin; + } + _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 16: { + IsAdmin = input.ReadBool(); + break; + } + case 24: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 32: { + IsGatewayAdmin = input.ReadBool(); + 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 16: { + IsAdmin = input.ReadBool(); + break; + } + case 24: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 32: { + IsGatewayAdmin = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateUserRequest()); + 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.Api.UserReflection.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 CreateUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateUserRequest(CreateUserRequest other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + password_ = other.password_; + tenants_ = other.tenants_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateUserRequest Clone() { + return new CreateUserRequest(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Chirpstack.Api.User user_; + /// + /// User object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.User User { + get { return user_; } + set { + user_ = value; + } + } + + /// Field number for the "password" field. + public const int PasswordFieldNumber = 2; + private string password_ = ""; + /// + /// Password to set for the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Password { + get { return password_; } + set { + password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tenants" field. + public const int TenantsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_tenants_codec + = pb::FieldCodec.ForMessage(26, global::Chirpstack.Api.UserTenant.Parser); + private readonly pbc::RepeatedField tenants_ = new pbc::RepeatedField(); + /// + /// Add the user to the following tenants. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Tenants { + get { return tenants_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + if (Password != other.Password) return false; + if(!tenants_.Equals(other.tenants_)) 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 (user_ != null) hash ^= User.GetHashCode(); + if (Password.Length != 0) hash ^= Password.GetHashCode(); + hash ^= tenants_.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 (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (Password.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Password); + } + tenants_.WriteTo(output, _repeated_tenants_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 (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (Password.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Password); + } + tenants_.WriteTo(ref output, _repeated_tenants_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 (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (Password.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); + } + size += tenants_.CalculateSize(_repeated_tenants_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateUserRequest other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Chirpstack.Api.User(); + } + User.MergeFrom(other.User); + } + if (other.Password.Length != 0) { + Password = other.Password; + } + tenants_.Add(other.tenants_); + _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 (user_ == null) { + User = new global::Chirpstack.Api.User(); + } + input.ReadMessage(User); + break; + } + case 18: { + Password = input.ReadString(); + break; + } + case 26: { + tenants_.AddEntriesFrom(input, _repeated_tenants_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 (user_ == null) { + User = new global::Chirpstack.Api.User(); + } + input.ReadMessage(User); + break; + } + case 18: { + Password = input.ReadString(); + break; + } + case 26: { + tenants_.AddEntriesFrom(ref input, _repeated_tenants_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateUserResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateUserResponse()); + 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.Api.UserReflection.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 CreateUserResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateUserResponse(CreateUserResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateUserResponse Clone() { + return new CreateUserResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// User ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateUserResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateUserResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateUserResponse other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserRequest()); + 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.Api.UserReflection.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 GetUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserRequest(GetUserRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserRequest Clone() { + return new GetUserRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// User ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetUserRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetUserResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserResponse()); + 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.Api.UserReflection.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 GetUserResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserResponse(GetUserResponse other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserResponse Clone() { + return new GetUserResponse(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Chirpstack.Api.User user_; + /// + /// User object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.User User { + get { return user_; } + set { + user_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// + /// Last update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetUserResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetUserResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) 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 (user_ != null) hash ^= User.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.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 (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + 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 (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetUserResponse other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Chirpstack.Api.User(); + } + User.MergeFrom(other.User); + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); + } + _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 (user_ == null) { + User = new global::Chirpstack.Api.User(); + } + input.ReadMessage(User); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + 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 (user_ == null) { + User = new global::Chirpstack.Api.User(); + } + input.ReadMessage(User); + break; + } + case 18: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 26: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateUserRequest()); + 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.Api.UserReflection.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 UpdateUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserRequest(UpdateUserRequest other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserRequest Clone() { + return new UpdateUserRequest(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Chirpstack.Api.User user_; + /// + /// User object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Api.User User { + get { return user_; } + set { + user_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) 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 (user_ != null) hash ^= User.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 (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + 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 (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + 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 (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateUserRequest other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Chirpstack.Api.User(); + } + User.MergeFrom(other.User); + } + _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 (user_ == null) { + User = new global::Chirpstack.Api.User(); + } + input.ReadMessage(User); + 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 (user_ == null) { + User = new global::Chirpstack.Api.User(); + } + input.ReadMessage(User); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteUserRequest()); + 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.Api.UserReflection.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 DeleteUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteUserRequest(DeleteUserRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteUserRequest Clone() { + return new DeleteUserRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// User ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteUserRequest other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class ListUsersRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListUsersRequest()); + 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.Api.UserReflection.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 ListUsersRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListUsersRequest(ListUsersRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListUsersRequest Clone() { + return new ListUsersRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private uint limit_; + /// + /// Max number of tenants to return in the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 2; + private uint offset_; + /// + /// Offset in the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListUsersRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListUsersRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Limit != other.Limit) return false; + if (Offset != other.Offset) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Limit != 0) hash ^= Limit.GetHashCode(); + if (Offset != 0) hash ^= Offset.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Limit != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Offset); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Limit != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); + } + if (Offset != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListUsersRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0) { + Limit = other.Limit; + } + if (other.Offset != 0) { + Offset = other.Offset; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = 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 8: { + Limit = input.ReadUInt32(); + break; + } + case 16: { + Offset = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListUsersResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListUsersResponse()); + 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.Api.UserReflection.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 ListUsersResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListUsersResponse(ListUsersResponse other) : this() { + totalCount_ = other.totalCount_; + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListUsersResponse Clone() { + return new ListUsersResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private uint totalCount_; + /// + /// Total number of users. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_result_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.UserListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Result { + get { return result_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListUsersResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListUsersResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalCount != other.TotalCount) return false; + if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + hash ^= result_.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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(output, _repeated_result_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 (TotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalCount); + } + result_.WriteTo(ref output, _repeated_result_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + size += result_.CalculateSize(_repeated_result_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListUsersResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + result_.Add(other.result_); + _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: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(input, _repeated_result_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 8: { + TotalCount = input.ReadUInt32(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateUserPasswordRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateUserPasswordRequest()); + 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.Api.UserReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserPasswordRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserPasswordRequest(UpdateUserPasswordRequest other) : this() { + userId_ = other.userId_; + password_ = other.password_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserPasswordRequest Clone() { + return new UpdateUserPasswordRequest(this); + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; + /// + /// User ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "password" field. + public const int PasswordFieldNumber = 2; + private string password_ = ""; + /// + /// Password to set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Password { + get { return password_; } + set { + password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateUserPasswordRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateUserPasswordRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UserId != other.UserId) return false; + if (Password != other.Password) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (Password.Length != 0) hash ^= Password.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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (Password.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Password); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (Password.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Password); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (Password.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateUserPasswordRequest other) { + if (other == null) { + return; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.Password.Length != 0) { + Password = other.Password; + } + _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: { + UserId = input.ReadString(); + break; + } + case 18: { + Password = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + UserId = input.ReadString(); + break; + } + case 18: { + Password = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/UserGrpc.cs b/api/csharp/Chirpstack/api/UserGrpc.cs new file mode 100644 index 00000000..7a3617ee --- /dev/null +++ b/api/csharp/Chirpstack/api/UserGrpc.cs @@ -0,0 +1,558 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: api/user.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.Api { + /// + /// UserService is the service providing API methods for managing users. + /// + public static partial class UserService + { + static readonly string __ServiceName = "api.UserService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateUserRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateUserResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetUserRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetUserResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateUserRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteUserRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListUsersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListUsersRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListUsersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListUsersResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateUserPasswordRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateUserPasswordRequest.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Create = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Create", + __Marshaller_api_CreateUserRequest, + __Marshaller_api_CreateUserResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Get = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Get", + __Marshaller_api_GetUserRequest, + __Marshaller_api_GetUserResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Update = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Update", + __Marshaller_api_UpdateUserRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Delete = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Delete", + __Marshaller_api_DeleteUserRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_List = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "List", + __Marshaller_api_ListUsersRequest, + __Marshaller_api_ListUsersResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdatePassword = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdatePassword", + __Marshaller_api_UpdateUserPasswordRequest, + __Marshaller_google_protobuf_Empty); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.Api.UserReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of UserService + [grpc::BindServiceMethod(typeof(UserService), "BindService")] + public abstract partial class UserServiceBase + { + /// + /// Create a new user. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the user for the given ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update the given user. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete the user with the given ID. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get the list of users. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListUsersRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update the password for the given user. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdatePassword(global::Chirpstack.Api.UpdateUserPasswordRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for UserService + public partial class UserServiceClient : grpc::ClientBase + { + /// Creates a new client for UserService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public UserServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for UserService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public UserServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected UserServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected UserServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Create a new user. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.CreateUserResponse Create(global::Chirpstack.Api.CreateUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create a new user. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.CreateUserResponse Create(global::Chirpstack.Api.CreateUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create a new user. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create a new user. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get the user for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetUserResponse Get(global::Chirpstack.Api.GetUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the user for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.GetUserResponse Get(global::Chirpstack.Api.GetUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get the user for the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the user for the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update the given user. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given user. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update the given user. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the given user. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete the user with the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the user with the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete the user with the given ID. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete the user with the given ID. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Get the list of users. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListUsersResponse List(global::Chirpstack.Api.ListUsersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the list of users. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.Api.ListUsersResponse List(global::Chirpstack.Api.ListUsersRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// Get the list of users. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListUsersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get the list of users. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListUsersRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// Update the password for the given user. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdatePassword(global::Chirpstack.Api.UpdateUserPasswordRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdatePassword(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the password for the given user. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdatePassword(global::Chirpstack.Api.UpdateUserPasswordRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdatePassword, null, options, request); + } + /// + /// Update the password for the given user. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdatePasswordAsync(global::Chirpstack.Api.UpdateUserPasswordRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdatePasswordAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update the password for the given user. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdatePasswordAsync(global::Chirpstack.Api.UpdateUserPasswordRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdatePassword, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override UserServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new UserServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(UserServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_Create, serviceImpl.Create) + .AddMethod(__Method_Get, serviceImpl.Get) + .AddMethod(__Method_Update, serviceImpl.Update) + .AddMethod(__Method_Delete, serviceImpl.Delete) + .AddMethod(__Method_List, serviceImpl.List) + .AddMethod(__Method_UpdatePassword, serviceImpl.UpdatePassword).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, UserServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); + serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); + serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); + serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); + serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); + serviceBinder.AddMethod(__Method_UpdatePassword, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdatePassword)); + } + + } +} +#endregion diff --git a/api/csharp/Chirpstack/common/Common.cs b/api/csharp/Chirpstack/common/Common.cs new file mode 100644 index 00000000..255ea061 --- /dev/null +++ b/api/csharp/Chirpstack/common/Common.cs @@ -0,0 +1,1365 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: common/common.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Chirpstack.Common { + + /// Holder for reflection information generated from common/common.proto + public static partial class CommonReflection { + + #region Descriptor + /// File descriptor for common/common.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CommonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNjb21tb24vY29tbW9uLnByb3RvEgZjb21tb24aH2dvb2dsZS9wcm90b2J1", + "Zi90aW1lc3RhbXAucHJvdG8iewoITG9jYXRpb24SEAoIbGF0aXR1ZGUYASAB", + "KAESEQoJbG9uZ2l0dWRlGAIgASgBEhAKCGFsdGl0dWRlGAMgASgBEiYKBnNv", + "dXJjZRgEIAEoDjIWLmNvbW1vbi5Mb2NhdGlvblNvdXJjZRIQCghhY2N1cmFj", + "eRgFIAEoAiIxCgtLZXlFbnZlbG9wZRIRCglrZWtfbGFiZWwYASABKAkSDwoH", + "YWVzX2tleRgCIAEoDCKRAQoGTWV0cmljEgwKBG5hbWUYASABKAkSLgoKdGlt", + "ZXN0YW1wcxgCIAMoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASJwoI", + "ZGF0YXNldHMYAyADKAsyFS5jb21tb24uTWV0cmljRGF0YXNldBIgCgRraW5k", + "GAQgASgOMhIuY29tbW9uLk1ldHJpY0tpbmQiLAoNTWV0cmljRGF0YXNldBIN", + "CgVsYWJlbBgBIAEoCRIMCgRkYXRhGAIgAygCKiwKCk1vZHVsYXRpb24SCAoE", + "TE9SQRAAEgcKA0ZTSxABEgsKB0xSX0ZIU1MQAiqqAQoGUmVnaW9uEgkKBUVV", + "ODY4EAASCQoFVVM5MTUQAhIJCgVDTjc3ORADEgkKBUVVNDMzEAQSCQoFQVU5", + "MTUQBRIJCgVDTjQ3MBAGEgkKBUFTOTIzEAcSCwoHQVM5MjNfMhAMEgsKB0FT", + "OTIzXzMQDRILCgdBUzkyM180EA4SCQoFS1I5MjAQCBIJCgVJTjg2NRAJEgkK", + "BVJVODY0EAoSCwoHSVNNMjQwMBALKrMBCgVNVHlwZRIQCgxKT0lOX1JFUVVF", + "U1QQABIPCgtKT0lOX0FDQ0VQVBABEhcKE1VOQ09ORklSTUVEX0RBVEFfVVAQ", + "AhIZChVVTkNPTkZJUk1FRF9EQVRBX0RPV04QAxIVChFDT05GSVJNRURfREFU", + "QV9VUBAEEhcKE0NPTkZJUk1FRF9EQVRBX0RPV04QBRISCg5SRUpPSU5fUkVR", + "VUVTVBAGEg8KC1BST1BSSUVUQVJZEAcqfgoKTWFjVmVyc2lvbhIRCg1MT1JB", + "V0FOXzFfMF8wEAASEQoNTE9SQVdBTl8xXzBfMRABEhEKDUxPUkFXQU5fMV8w", + "XzIQAhIRCg1MT1JBV0FOXzFfMF8zEAMSEQoNTE9SQVdBTl8xXzBfNBAEEhEK", + "DUxPUkFXQU5fMV8xXzAQBSplChFSZWdQYXJhbXNSZXZpc2lvbhIFCgFBEAAS", + "BQoBQhABEg8KC1JQMDAyXzFfMF8wEAISDwoLUlAwMDJfMV8wXzEQAxIPCgtS", + "UDAwMl8xXzBfMhAEEg8KC1JQMDAyXzFfMF8zEAUqjgEKDkxvY2F0aW9uU291", + "cmNlEgsKB1VOS05PV04QABIHCgNHUFMQARIKCgZDT05GSUcQAhIVChFHRU9f", + "UkVTT0xWRVJfVERPQRADEhUKEUdFT19SRVNPTFZFUl9SU1NJEAQSFQoRR0VP", + "X1JFU09MVkVSX0dOU1MQBRIVChFHRU9fUkVTT0xWRVJfV0lGSRAGKisKC0Fn", + "Z3JlZ2F0aW9uEggKBEhPVVIQABIHCgNEQVkQARIJCgVNT05USBACKjIKCk1l", + "dHJpY0tpbmQSCwoHQ09VTlRFUhAAEgwKCEFCU09MVVRFEAESCQoFR0FVR0UQ", + "AkJpChFpby5jaGlycHN0YWNrLmFwaUILQ29tbW9uUHJvdG9QAVoxZ2l0aHVi", + "LmNvbS9jaGlycHN0YWNrL2NoaXJwc3RhY2svYXBpL2dvL3Y0L2NvbW1vbqoC", + "EUNoaXJwc3RhY2suQ29tbW9uYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Common.Modulation), typeof(global::Chirpstack.Common.Region), typeof(global::Chirpstack.Common.MType), typeof(global::Chirpstack.Common.MacVersion), typeof(global::Chirpstack.Common.RegParamsRevision), typeof(global::Chirpstack.Common.LocationSource), typeof(global::Chirpstack.Common.Aggregation), typeof(global::Chirpstack.Common.MetricKind), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.Location), global::Chirpstack.Common.Location.Parser, new[]{ "Latitude", "Longitude", "Altitude", "Source", "Accuracy" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.KeyEnvelope), global::Chirpstack.Common.KeyEnvelope.Parser, new[]{ "KekLabel", "AesKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.Metric), global::Chirpstack.Common.Metric.Parser, new[]{ "Name", "Timestamps", "Datasets", "Kind" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.MetricDataset), global::Chirpstack.Common.MetricDataset.Parser, new[]{ "Label", "Data" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum Modulation { + /// + /// LoRa + /// + [pbr::OriginalName("LORA")] Lora = 0, + /// + /// FSK + /// + [pbr::OriginalName("FSK")] Fsk = 1, + /// + /// LR-FHSS + /// + [pbr::OriginalName("LR_FHSS")] LrFhss = 2, + } + + public enum Region { + /// + /// EU868 + /// + [pbr::OriginalName("EU868")] Eu868 = 0, + /// + /// US915 + /// + [pbr::OriginalName("US915")] Us915 = 2, + /// + /// CN779 + /// + [pbr::OriginalName("CN779")] Cn779 = 3, + /// + /// EU433 + /// + [pbr::OriginalName("EU433")] Eu433 = 4, + /// + /// AU915 + /// + [pbr::OriginalName("AU915")] Au915 = 5, + /// + /// CN470 + /// + [pbr::OriginalName("CN470")] Cn470 = 6, + /// + /// AS923 + /// + [pbr::OriginalName("AS923")] As923 = 7, + /// + /// AS923 with -1.80 MHz frequency offset + /// + [pbr::OriginalName("AS923_2")] As9232 = 12, + /// + /// AS923 with -6.60 MHz frequency offset + /// + [pbr::OriginalName("AS923_3")] As9233 = 13, + /// + /// (AS923 with -5.90 MHz frequency offset). + /// + [pbr::OriginalName("AS923_4")] As9234 = 14, + /// + /// KR920 + /// + [pbr::OriginalName("KR920")] Kr920 = 8, + /// + /// IN865 + /// + [pbr::OriginalName("IN865")] In865 = 9, + /// + /// RU864 + /// + [pbr::OriginalName("RU864")] Ru864 = 10, + /// + /// ISM2400 (LoRaWAN 2.4 GHz) + /// + [pbr::OriginalName("ISM2400")] Ism2400 = 11, + } + + public enum MType { + /// + /// JoinRequest. + /// + [pbr::OriginalName("JOIN_REQUEST")] JoinRequest = 0, + /// + /// JoinAccept. + /// + [pbr::OriginalName("JOIN_ACCEPT")] JoinAccept = 1, + /// + /// UnconfirmedDataUp. + /// + [pbr::OriginalName("UNCONFIRMED_DATA_UP")] UnconfirmedDataUp = 2, + /// + /// UnconfirmedDataDown. + /// + [pbr::OriginalName("UNCONFIRMED_DATA_DOWN")] UnconfirmedDataDown = 3, + /// + /// ConfirmedDataUp. + /// + [pbr::OriginalName("CONFIRMED_DATA_UP")] ConfirmedDataUp = 4, + /// + /// ConfirmedDataDown. + /// + [pbr::OriginalName("CONFIRMED_DATA_DOWN")] ConfirmedDataDown = 5, + /// + /// RejoinRequest. + /// + [pbr::OriginalName("REJOIN_REQUEST")] RejoinRequest = 6, + /// + /// Proprietary. + /// + [pbr::OriginalName("PROPRIETARY")] Proprietary = 7, + } + + public enum MacVersion { + [pbr::OriginalName("LORAWAN_1_0_0")] Lorawan100 = 0, + [pbr::OriginalName("LORAWAN_1_0_1")] Lorawan101 = 1, + [pbr::OriginalName("LORAWAN_1_0_2")] Lorawan102 = 2, + [pbr::OriginalName("LORAWAN_1_0_3")] Lorawan103 = 3, + [pbr::OriginalName("LORAWAN_1_0_4")] Lorawan104 = 4, + [pbr::OriginalName("LORAWAN_1_1_0")] Lorawan110 = 5, + } + + public enum RegParamsRevision { + [pbr::OriginalName("A")] A = 0, + [pbr::OriginalName("B")] B = 1, + [pbr::OriginalName("RP002_1_0_0")] Rp002100 = 2, + [pbr::OriginalName("RP002_1_0_1")] Rp002101 = 3, + [pbr::OriginalName("RP002_1_0_2")] Rp002102 = 4, + [pbr::OriginalName("RP002_1_0_3")] Rp002103 = 5, + } + + public enum LocationSource { + /// + /// Unknown. + /// + [pbr::OriginalName("UNKNOWN")] Unknown = 0, + /// + /// GPS. + /// + [pbr::OriginalName("GPS")] Gps = 1, + /// + /// Manually configured. + /// + [pbr::OriginalName("CONFIG")] Config = 2, + /// + /// Geo resolver (TDOA). + /// + [pbr::OriginalName("GEO_RESOLVER_TDOA")] GeoResolverTdoa = 3, + /// + /// Geo resolver (RSSI). + /// + [pbr::OriginalName("GEO_RESOLVER_RSSI")] GeoResolverRssi = 4, + /// + /// Geo resolver (GNSS). + /// + [pbr::OriginalName("GEO_RESOLVER_GNSS")] GeoResolverGnss = 5, + /// + /// Geo resolver (WIFI). + /// + [pbr::OriginalName("GEO_RESOLVER_WIFI")] GeoResolverWifi = 6, + } + + public enum Aggregation { + /// + /// Hour. + /// + [pbr::OriginalName("HOUR")] Hour = 0, + /// + /// Day. + /// + [pbr::OriginalName("DAY")] Day = 1, + /// + /// Month. + /// + [pbr::OriginalName("MONTH")] Month = 2, + } + + public enum MetricKind { + /// + /// Incrementing counters that never decrease (these are not reset on each reading). + /// + [pbr::OriginalName("COUNTER")] Counter = 0, + /// + /// Counters that do get reset upon reading. + /// + [pbr::OriginalName("ABSOLUTE")] Absolute = 1, + /// + /// E.g. a temperature value. + /// + [pbr::OriginalName("GAUGE")] Gauge = 2, + } + + #endregion + + #region Messages + public sealed partial class Location : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Location()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Common.CommonReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Location() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Location(Location other) : this() { + latitude_ = other.latitude_; + longitude_ = other.longitude_; + altitude_ = other.altitude_; + source_ = other.source_; + accuracy_ = other.accuracy_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Location Clone() { + return new Location(this); + } + + /// Field number for the "latitude" field. + public const int LatitudeFieldNumber = 1; + private double latitude_; + /// + /// Latitude. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Latitude { + get { return latitude_; } + set { + latitude_ = value; + } + } + + /// Field number for the "longitude" field. + public const int LongitudeFieldNumber = 2; + private double longitude_; + /// + /// Longitude. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Longitude { + get { return longitude_; } + set { + longitude_ = value; + } + } + + /// Field number for the "altitude" field. + public const int AltitudeFieldNumber = 3; + private double altitude_; + /// + /// Altitude. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Altitude { + get { return altitude_; } + set { + altitude_ = value; + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 4; + private global::Chirpstack.Common.LocationSource source_ = global::Chirpstack.Common.LocationSource.Unknown; + /// + /// Location source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.LocationSource Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "accuracy" field. + public const int AccuracyFieldNumber = 5; + private float accuracy_; + /// + /// Accuracy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Accuracy { + get { return accuracy_; } + set { + accuracy_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Location); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Location other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latitude, other.Latitude)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Longitude, other.Longitude)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Altitude, other.Altitude)) return false; + if (Source != other.Source) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Accuracy, other.Accuracy)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Latitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude); + if (Longitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude); + if (Altitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Altitude); + if (Source != global::Chirpstack.Common.LocationSource.Unknown) hash ^= Source.GetHashCode(); + if (Accuracy != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Accuracy); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Latitude != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Latitude); + } + if (Longitude != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Longitude); + } + if (Altitude != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Altitude); + } + if (Source != global::Chirpstack.Common.LocationSource.Unknown) { + output.WriteRawTag(32); + output.WriteEnum((int) Source); + } + if (Accuracy != 0F) { + output.WriteRawTag(45); + output.WriteFloat(Accuracy); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Latitude != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Latitude); + } + if (Longitude != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Longitude); + } + if (Altitude != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Altitude); + } + if (Source != global::Chirpstack.Common.LocationSource.Unknown) { + output.WriteRawTag(32); + output.WriteEnum((int) Source); + } + if (Accuracy != 0F) { + output.WriteRawTag(45); + output.WriteFloat(Accuracy); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Latitude != 0D) { + size += 1 + 8; + } + if (Longitude != 0D) { + size += 1 + 8; + } + if (Altitude != 0D) { + size += 1 + 8; + } + if (Source != global::Chirpstack.Common.LocationSource.Unknown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); + } + if (Accuracy != 0F) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Location other) { + if (other == null) { + return; + } + if (other.Latitude != 0D) { + Latitude = other.Latitude; + } + if (other.Longitude != 0D) { + Longitude = other.Longitude; + } + if (other.Altitude != 0D) { + Altitude = other.Altitude; + } + if (other.Source != global::Chirpstack.Common.LocationSource.Unknown) { + Source = other.Source; + } + if (other.Accuracy != 0F) { + Accuracy = other.Accuracy; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + Latitude = input.ReadDouble(); + break; + } + case 17: { + Longitude = input.ReadDouble(); + break; + } + case 25: { + Altitude = input.ReadDouble(); + break; + } + case 32: { + Source = (global::Chirpstack.Common.LocationSource) input.ReadEnum(); + break; + } + case 45: { + Accuracy = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + Latitude = input.ReadDouble(); + break; + } + case 17: { + Longitude = input.ReadDouble(); + break; + } + case 25: { + Altitude = input.ReadDouble(); + break; + } + case 32: { + Source = (global::Chirpstack.Common.LocationSource) input.ReadEnum(); + break; + } + case 45: { + Accuracy = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class KeyEnvelope : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyEnvelope()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Common.CommonReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyEnvelope() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyEnvelope(KeyEnvelope other) : this() { + kekLabel_ = other.kekLabel_; + aesKey_ = other.aesKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyEnvelope Clone() { + return new KeyEnvelope(this); + } + + /// Field number for the "kek_label" field. + public const int KekLabelFieldNumber = 1; + private string kekLabel_ = ""; + /// + /// KEK label. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KekLabel { + get { return kekLabel_; } + set { + kekLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "aes_key" field. + public const int AesKeyFieldNumber = 2; + private pb::ByteString aesKey_ = pb::ByteString.Empty; + /// + /// AES key (when the kek_label is set, this value must first be decrypted). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString AesKey { + get { return aesKey_; } + set { + aesKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as KeyEnvelope); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(KeyEnvelope other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KekLabel != other.KekLabel) return false; + if (AesKey != other.AesKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (KekLabel.Length != 0) hash ^= KekLabel.GetHashCode(); + if (AesKey.Length != 0) hash ^= AesKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (KekLabel.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KekLabel); + } + if (AesKey.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(AesKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (KekLabel.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KekLabel); + } + if (AesKey.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(AesKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (KekLabel.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KekLabel); + } + if (AesKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(AesKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(KeyEnvelope other) { + if (other == null) { + return; + } + if (other.KekLabel.Length != 0) { + KekLabel = other.KekLabel; + } + if (other.AesKey.Length != 0) { + AesKey = other.AesKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + KekLabel = input.ReadString(); + break; + } + case 18: { + AesKey = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + KekLabel = input.ReadString(); + break; + } + case 18: { + AesKey = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Metric : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Metric()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Common.CommonReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Metric() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Metric(Metric other) : this() { + name_ = other.name_; + timestamps_ = other.timestamps_.Clone(); + datasets_ = other.datasets_.Clone(); + kind_ = other.kind_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Metric Clone() { + return new Metric(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "timestamps" field. + public const int TimestampsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_timestamps_codec + = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser); + private readonly pbc::RepeatedField timestamps_ = new pbc::RepeatedField(); + /// + /// Timestamps. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Timestamps { + get { return timestamps_; } + } + + /// Field number for the "datasets" field. + public const int DatasetsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_datasets_codec + = pb::FieldCodec.ForMessage(26, global::Chirpstack.Common.MetricDataset.Parser); + private readonly pbc::RepeatedField datasets_ = new pbc::RepeatedField(); + /// + /// Datasets. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Datasets { + get { return datasets_; } + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 4; + private global::Chirpstack.Common.MetricKind kind_ = global::Chirpstack.Common.MetricKind.Counter; + /// + /// Kind. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.MetricKind Kind { + get { return kind_; } + set { + kind_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Metric); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Metric other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!timestamps_.Equals(other.timestamps_)) return false; + if(!datasets_.Equals(other.datasets_)) return false; + if (Kind != other.Kind) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= timestamps_.GetHashCode(); + hash ^= datasets_.GetHashCode(); + if (Kind != global::Chirpstack.Common.MetricKind.Counter) hash ^= Kind.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + timestamps_.WriteTo(output, _repeated_timestamps_codec); + datasets_.WriteTo(output, _repeated_datasets_codec); + if (Kind != global::Chirpstack.Common.MetricKind.Counter) { + output.WriteRawTag(32); + output.WriteEnum((int) Kind); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + timestamps_.WriteTo(ref output, _repeated_timestamps_codec); + datasets_.WriteTo(ref output, _repeated_datasets_codec); + if (Kind != global::Chirpstack.Common.MetricKind.Counter) { + output.WriteRawTag(32); + output.WriteEnum((int) Kind); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += timestamps_.CalculateSize(_repeated_timestamps_codec); + size += datasets_.CalculateSize(_repeated_datasets_codec); + if (Kind != global::Chirpstack.Common.MetricKind.Counter) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Metric other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + timestamps_.Add(other.timestamps_); + datasets_.Add(other.datasets_); + if (other.Kind != global::Chirpstack.Common.MetricKind.Counter) { + Kind = other.Kind; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + timestamps_.AddEntriesFrom(input, _repeated_timestamps_codec); + break; + } + case 26: { + datasets_.AddEntriesFrom(input, _repeated_datasets_codec); + break; + } + case 32: { + Kind = (global::Chirpstack.Common.MetricKind) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + timestamps_.AddEntriesFrom(ref input, _repeated_timestamps_codec); + break; + } + case 26: { + datasets_.AddEntriesFrom(ref input, _repeated_datasets_codec); + break; + } + case 32: { + Kind = (global::Chirpstack.Common.MetricKind) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class MetricDataset : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetricDataset()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Common.CommonReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetricDataset() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetricDataset(MetricDataset other) : this() { + label_ = other.label_; + data_ = other.data_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetricDataset Clone() { + return new MetricDataset(this); + } + + /// Field number for the "label" field. + public const int LabelFieldNumber = 1; + private string label_ = ""; + /// + /// Label. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Label { + get { return label_; } + set { + label_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_data_codec + = pb::FieldCodec.ForFloat(18); + private readonly pbc::RepeatedField data_ = new pbc::RepeatedField(); + /// + /// Data. + /// Each value index corresponds with the same timestamp index of the Metric. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Data { + get { return data_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MetricDataset); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MetricDataset other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Label != other.Label) return false; + if(!data_.Equals(other.data_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Label.Length != 0) hash ^= Label.GetHashCode(); + hash ^= data_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Label.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Label); + } + data_.WriteTo(output, _repeated_data_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Label.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Label); + } + data_.WriteTo(ref output, _repeated_data_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Label.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Label); + } + size += data_.CalculateSize(_repeated_data_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MetricDataset other) { + if (other == null) { + return; + } + if (other.Label.Length != 0) { + Label = other.Label; + } + data_.Add(other.data_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Label = input.ReadString(); + break; + } + case 18: + case 21: { + data_.AddEntriesFrom(input, _repeated_data_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Label = input.ReadString(); + break; + } + case 18: + case 21: { + data_.AddEntriesFrom(ref input, _repeated_data_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/google/api/Annotations.cs b/api/csharp/Chirpstack/google/api/Annotations.cs new file mode 100644 index 00000000..b89a53c6 --- /dev/null +++ b/api/csharp/Chirpstack/google/api/Annotations.cs @@ -0,0 +1,52 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/annotations.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 Google.Api { + + /// Holder for reflection information generated from google/api/annotations.proto + public static partial class AnnotationsReflection { + + #region Descriptor + /// File descriptor for google/api/annotations.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AnnotationsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvEgpnb29nbGUuYXBpGhVn", + "b29nbGUvYXBpL2h0dHAucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9kZXNjcmlw", + "dG9yLnByb3RvOkUKBGh0dHASHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0", + "aW9ucxiwyrwiIAEoCzIULmdvb2dsZS5hcGkuSHR0cFJ1bGVCbgoOY29tLmdv", + "b2dsZS5hcGlCEEFubm90YXRpb25zUHJvdG9QAVpBZ29vZ2xlLmdvbGFuZy5v", + "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvYW5ub3RhdGlvbnM7YW5ub3Rh", + "dGlvbnOiAgRHQVBJYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.HttpReflection.Descriptor, global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { AnnotationsExtensions.Http }, null)); + } + #endregion + + } + /// Holder for extension identifiers generated from the top level of google/api/annotations.proto + public static partial class AnnotationsExtensions { + /// + /// See `HttpRule`. + /// + public static readonly pb::Extension Http = + new pb::Extension(72295728, pb::FieldCodec.ForMessage(578365826, global::Google.Api.HttpRule.Parser)); + } + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/google/api/Http.cs b/api/csharp/Chirpstack/google/api/Http.cs new file mode 100644 index 00000000..c9611753 --- /dev/null +++ b/api/csharp/Chirpstack/google/api/Http.cs @@ -0,0 +1,1411 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/http.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 Google.Api { + + /// Holder for reflection information generated from google/api/http.proto + public static partial class HttpReflection { + + #region Descriptor + /// File descriptor for google/api/http.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HttpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVnb29nbGUvYXBpL2h0dHAucHJvdG8SCmdvb2dsZS5hcGkiVAoESHR0cBIj", + "CgVydWxlcxgBIAMoCzIULmdvb2dsZS5hcGkuSHR0cFJ1bGUSJwofZnVsbHlf", + "ZGVjb2RlX3Jlc2VydmVkX2V4cGFuc2lvbhgCIAEoCCKBAgoISHR0cFJ1bGUS", + "EAoIc2VsZWN0b3IYASABKAkSDQoDZ2V0GAIgASgJSAASDQoDcHV0GAMgASgJ", + "SAASDgoEcG9zdBgEIAEoCUgAEhAKBmRlbGV0ZRgFIAEoCUgAEg8KBXBhdGNo", + "GAYgASgJSAASLwoGY3VzdG9tGAggASgLMh0uZ29vZ2xlLmFwaS5DdXN0b21I", + "dHRwUGF0dGVybkgAEgwKBGJvZHkYByABKAkSFQoNcmVzcG9uc2VfYm9keRgM", + "IAEoCRIxChNhZGRpdGlvbmFsX2JpbmRpbmdzGAsgAygLMhQuZ29vZ2xlLmFw", + "aS5IdHRwUnVsZUIJCgdwYXR0ZXJuIi8KEUN1c3RvbUh0dHBQYXR0ZXJuEgwK", + "BGtpbmQYASABKAkSDAoEcGF0aBgCIAEoCUJqCg5jb20uZ29vZ2xlLmFwaUIJ", + "SHR0cFByb3RvUAFaQWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", + "ZWFwaXMvYXBpL2Fubm90YXRpb25zO2Fubm90YXRpb25z+AEBogIER0FQSWIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Http), global::Google.Api.Http.Parser, new[]{ "Rules", "FullyDecodeReservedExpansion" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.HttpRule), global::Google.Api.HttpRule.Parser, new[]{ "Selector", "Get", "Put", "Post", "Delete", "Patch", "Custom", "Body", "ResponseBody", "AdditionalBindings" }, new[]{ "Pattern" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.CustomHttpPattern), global::Google.Api.CustomHttpPattern.Parser, new[]{ "Kind", "Path" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Defines the HTTP configuration for an API service. It contains a list of + /// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method + /// to one or more HTTP REST API methods. + /// + public sealed partial class Http : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Http()); + 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::Google.Api.HttpReflection.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 Http() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Http(Http other) : this() { + rules_ = other.rules_.Clone(); + fullyDecodeReservedExpansion_ = other.fullyDecodeReservedExpansion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Http Clone() { + return new Http(this); + } + + /// Field number for the "rules" field. + public const int RulesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_rules_codec + = pb::FieldCodec.ForMessage(10, global::Google.Api.HttpRule.Parser); + private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); + /// + /// A list of HTTP configuration rules that apply to individual API methods. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Rules { + get { return rules_; } + } + + /// Field number for the "fully_decode_reserved_expansion" field. + public const int FullyDecodeReservedExpansionFieldNumber = 2; + private bool fullyDecodeReservedExpansion_; + /// + /// When set to true, URL path parameters will be fully URI-decoded except in + /// cases of single segment matches in reserved expansion, where "%2F" will be + /// left encoded. + /// + /// The default behavior is to not decode RFC 6570 reserved characters in multi + /// segment matches. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool FullyDecodeReservedExpansion { + get { return fullyDecodeReservedExpansion_; } + set { + fullyDecodeReservedExpansion_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Http); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Http other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rules_.Equals(other.rules_)) return false; + if (FullyDecodeReservedExpansion != other.FullyDecodeReservedExpansion) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= rules_.GetHashCode(); + if (FullyDecodeReservedExpansion != false) hash ^= FullyDecodeReservedExpansion.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 + rules_.WriteTo(output, _repeated_rules_codec); + if (FullyDecodeReservedExpansion != false) { + output.WriteRawTag(16); + output.WriteBool(FullyDecodeReservedExpansion); + } + 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) { + rules_.WriteTo(ref output, _repeated_rules_codec); + if (FullyDecodeReservedExpansion != false) { + output.WriteRawTag(16); + output.WriteBool(FullyDecodeReservedExpansion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += rules_.CalculateSize(_repeated_rules_codec); + if (FullyDecodeReservedExpansion != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Http other) { + if (other == null) { + return; + } + rules_.Add(other.rules_); + if (other.FullyDecodeReservedExpansion != false) { + FullyDecodeReservedExpansion = other.FullyDecodeReservedExpansion; + } + _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: { + rules_.AddEntriesFrom(input, _repeated_rules_codec); + break; + } + case 16: { + FullyDecodeReservedExpansion = input.ReadBool(); + 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: { + rules_.AddEntriesFrom(ref input, _repeated_rules_codec); + break; + } + case 16: { + FullyDecodeReservedExpansion = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// # gRPC Transcoding + /// + /// gRPC Transcoding is a feature for mapping between a gRPC method and one or + /// more HTTP REST endpoints. It allows developers to build a single API service + /// that supports both gRPC APIs and REST APIs. Many systems, including [Google + /// APIs](https://github.com/googleapis/googleapis), + /// [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC + /// Gateway](https://github.com/grpc-ecosystem/grpc-gateway), + /// and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature + /// and use it for large scale production services. + /// + /// `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies + /// how different portions of the gRPC request message are mapped to the URL + /// path, URL query parameters, and HTTP request body. It also controls how the + /// gRPC response message is mapped to the HTTP response body. `HttpRule` is + /// typically specified as an `google.api.http` annotation on the gRPC method. + /// + /// Each mapping specifies a URL path template and an HTTP method. The path + /// template may refer to one or more fields in the gRPC request message, as long + /// as each field is a non-repeated field with a primitive (non-message) type. + /// The path template controls how fields of the request message are mapped to + /// the URL path. + /// + /// Example: + /// + /// service Messaging { + /// rpc GetMessage(GetMessageRequest) returns (Message) { + /// option (google.api.http) = { + /// get: "/v1/{name=messages/*}" + /// }; + /// } + /// } + /// message GetMessageRequest { + /// string name = 1; // Mapped to URL path. + /// } + /// message Message { + /// string text = 1; // The resource content. + /// } + /// + /// This enables an HTTP REST to gRPC mapping as below: + /// + /// HTTP | gRPC + /// -----|----- + /// `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` + /// + /// Any fields in the request message which are not bound by the path template + /// automatically become HTTP query parameters if there is no HTTP request body. + /// For example: + /// + /// service Messaging { + /// rpc GetMessage(GetMessageRequest) returns (Message) { + /// option (google.api.http) = { + /// get:"/v1/messages/{message_id}" + /// }; + /// } + /// } + /// message GetMessageRequest { + /// message SubMessage { + /// string subfield = 1; + /// } + /// string message_id = 1; // Mapped to URL path. + /// int64 revision = 2; // Mapped to URL query parameter `revision`. + /// SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. + /// } + /// + /// This enables a HTTP JSON to RPC mapping as below: + /// + /// HTTP | gRPC + /// -----|----- + /// `GET /v1/messages/123456?revision=2&sub.subfield=foo` | + /// `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: + /// "foo"))` + /// + /// Note that fields which are mapped to URL query parameters must have a + /// primitive type or a repeated primitive type or a non-repeated message type. + /// In the case of a repeated type, the parameter can be repeated in the URL + /// as `...?param=A&param=B`. In the case of a message type, each field of the + /// message is mapped to a separate parameter, such as + /// `...?foo.a=A&foo.b=B&foo.c=C`. + /// + /// For HTTP methods that allow a request body, the `body` field + /// specifies the mapping. Consider a REST update method on the + /// message resource collection: + /// + /// service Messaging { + /// rpc UpdateMessage(UpdateMessageRequest) returns (Message) { + /// option (google.api.http) = { + /// patch: "/v1/messages/{message_id}" + /// body: "message" + /// }; + /// } + /// } + /// message UpdateMessageRequest { + /// string message_id = 1; // mapped to the URL + /// Message message = 2; // mapped to the body + /// } + /// + /// The following HTTP JSON to RPC mapping is enabled, where the + /// representation of the JSON in the request body is determined by + /// protos JSON encoding: + /// + /// HTTP | gRPC + /// -----|----- + /// `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + /// "123456" message { text: "Hi!" })` + /// + /// The special name `*` can be used in the body mapping to define that + /// every field not bound by the path template should be mapped to the + /// request body. This enables the following alternative definition of + /// the update method: + /// + /// service Messaging { + /// rpc UpdateMessage(Message) returns (Message) { + /// option (google.api.http) = { + /// patch: "/v1/messages/{message_id}" + /// body: "*" + /// }; + /// } + /// } + /// message Message { + /// string message_id = 1; + /// string text = 2; + /// } + /// + /// The following HTTP JSON to RPC mapping is enabled: + /// + /// HTTP | gRPC + /// -----|----- + /// `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + /// "123456" text: "Hi!")` + /// + /// Note that when using `*` in the body mapping, it is not possible to + /// have HTTP parameters, as all fields not bound by the path end in + /// the body. This makes this option more rarely used in practice when + /// defining REST APIs. The common usage of `*` is in custom methods + /// which don't use the URL at all for transferring data. + /// + /// It is possible to define multiple HTTP methods for one RPC by using + /// the `additional_bindings` option. Example: + /// + /// service Messaging { + /// rpc GetMessage(GetMessageRequest) returns (Message) { + /// option (google.api.http) = { + /// get: "/v1/messages/{message_id}" + /// additional_bindings { + /// get: "/v1/users/{user_id}/messages/{message_id}" + /// } + /// }; + /// } + /// } + /// message GetMessageRequest { + /// string message_id = 1; + /// string user_id = 2; + /// } + /// + /// This enables the following two alternative HTTP JSON to RPC mappings: + /// + /// HTTP | gRPC + /// -----|----- + /// `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` + /// `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: + /// "123456")` + /// + /// ## Rules for HTTP mapping + /// + /// 1. Leaf request fields (recursive expansion nested messages in the request + /// message) are classified into three categories: + /// - Fields referred by the path template. They are passed via the URL path. + /// - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP + /// request body. + /// - All other fields are passed via the URL query parameters, and the + /// parameter name is the field path in the request message. A repeated + /// field can be represented as multiple query parameters under the same + /// name. + /// 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields + /// are passed via URL path and HTTP request body. + /// 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all + /// fields are passed via URL path and URL query parameters. + /// + /// ### Path template syntax + /// + /// Template = "/" Segments [ Verb ] ; + /// Segments = Segment { "/" Segment } ; + /// Segment = "*" | "**" | LITERAL | Variable ; + /// Variable = "{" FieldPath [ "=" Segments ] "}" ; + /// FieldPath = IDENT { "." IDENT } ; + /// Verb = ":" LITERAL ; + /// + /// The syntax `*` matches a single URL path segment. The syntax `**` matches + /// zero or more URL path segments, which must be the last part of the URL path + /// except the `Verb`. + /// + /// The syntax `Variable` matches part of the URL path as specified by its + /// template. A variable template must not contain other variables. If a variable + /// matches a single path segment, its template may be omitted, e.g. `{var}` + /// is equivalent to `{var=*}`. + /// + /// The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` + /// contains any reserved character, such characters should be percent-encoded + /// before the matching. + /// + /// If a variable contains exactly one path segment, such as `"{var}"` or + /// `"{var=*}"`, when such a variable is expanded into a URL path on the client + /// side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The + /// server side does the reverse decoding. Such variables show up in the + /// [Discovery + /// Document](https://developers.google.com/discovery/v1/reference/apis) as + /// `{var}`. + /// + /// If a variable contains multiple path segments, such as `"{var=foo/*}"` + /// or `"{var=**}"`, when such a variable is expanded into a URL path on the + /// client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. + /// The server side does the reverse decoding, except "%2F" and "%2f" are left + /// unchanged. Such variables show up in the + /// [Discovery + /// Document](https://developers.google.com/discovery/v1/reference/apis) as + /// `{+var}`. + /// + /// ## Using gRPC API Service Configuration + /// + /// gRPC API Service Configuration (service config) is a configuration language + /// for configuring a gRPC service to become a user-facing product. The + /// service config is simply the YAML representation of the `google.api.Service` + /// proto message. + /// + /// As an alternative to annotating your proto file, you can configure gRPC + /// transcoding in your service config YAML files. You do this by specifying a + /// `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same + /// effect as the proto annotation. This can be particularly useful if you + /// have a proto that is reused in multiple services. Note that any transcoding + /// specified in the service config will override any matching transcoding + /// configuration in the proto. + /// + /// Example: + /// + /// http: + /// rules: + /// # Selects a gRPC method and applies HttpRule to it. + /// - selector: example.v1.Messaging.GetMessage + /// get: /v1/messages/{message_id}/{sub.subfield} + /// + /// ## Special notes + /// + /// When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the + /// proto to JSON conversion must follow the [proto3 + /// specification](https://developers.google.com/protocol-buffers/docs/proto3#json). + /// + /// While the single segment variable follows the semantics of + /// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String + /// Expansion, the multi segment variable **does not** follow RFC 6570 Section + /// 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion + /// does not expand special characters like `?` and `#`, which would lead + /// to invalid URLs. As the result, gRPC Transcoding uses a custom encoding + /// for multi segment variables. + /// + /// The path variables **must not** refer to any repeated or mapped field, + /// because client libraries are not capable of handling such variable expansion. + /// + /// The path variables **must not** capture the leading "/" character. The reason + /// is that the most common use case "{var}" does not capture the leading "/" + /// character. For consistency, all path variables must share the same behavior. + /// + /// Repeated message fields must not be mapped to URL query parameters, because + /// no client library can support such complicated mapping. + /// + /// If an API needs to use a JSON array for request or response body, it can map + /// the request or response body to a repeated field. However, some gRPC + /// Transcoding implementations may not support this feature. + /// + public sealed partial class HttpRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HttpRule()); + 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::Google.Api.HttpReflection.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 HttpRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HttpRule(HttpRule other) : this() { + selector_ = other.selector_; + body_ = other.body_; + responseBody_ = other.responseBody_; + additionalBindings_ = other.additionalBindings_.Clone(); + switch (other.PatternCase) { + case PatternOneofCase.Get: + Get = other.Get; + break; + case PatternOneofCase.Put: + Put = other.Put; + break; + case PatternOneofCase.Post: + Post = other.Post; + break; + case PatternOneofCase.Delete: + Delete = other.Delete; + break; + case PatternOneofCase.Patch: + Patch = other.Patch; + break; + case PatternOneofCase.Custom: + Custom = other.Custom.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HttpRule Clone() { + return new HttpRule(this); + } + + /// Field number for the "selector" field. + public const int SelectorFieldNumber = 1; + private string selector_ = ""; + /// + /// Selects a method to which this rule applies. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Selector { + get { return selector_; } + set { + selector_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "get" field. + public const int GetFieldNumber = 2; + /// + /// Maps to HTTP GET. Used for listing and getting information about + /// resources. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Get { + get { return patternCase_ == PatternOneofCase.Get ? (string) pattern_ : ""; } + set { + pattern_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + patternCase_ = PatternOneofCase.Get; + } + } + + /// Field number for the "put" field. + public const int PutFieldNumber = 3; + /// + /// Maps to HTTP PUT. Used for replacing a resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Put { + get { return patternCase_ == PatternOneofCase.Put ? (string) pattern_ : ""; } + set { + pattern_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + patternCase_ = PatternOneofCase.Put; + } + } + + /// Field number for the "post" field. + public const int PostFieldNumber = 4; + /// + /// Maps to HTTP POST. Used for creating a resource or performing an action. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Post { + get { return patternCase_ == PatternOneofCase.Post ? (string) pattern_ : ""; } + set { + pattern_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + patternCase_ = PatternOneofCase.Post; + } + } + + /// Field number for the "delete" field. + public const int DeleteFieldNumber = 5; + /// + /// Maps to HTTP DELETE. Used for deleting a resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Delete { + get { return patternCase_ == PatternOneofCase.Delete ? (string) pattern_ : ""; } + set { + pattern_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + patternCase_ = PatternOneofCase.Delete; + } + } + + /// Field number for the "patch" field. + public const int PatchFieldNumber = 6; + /// + /// Maps to HTTP PATCH. Used for updating a resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Patch { + get { return patternCase_ == PatternOneofCase.Patch ? (string) pattern_ : ""; } + set { + pattern_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + patternCase_ = PatternOneofCase.Patch; + } + } + + /// Field number for the "custom" field. + public const int CustomFieldNumber = 8; + /// + /// The custom pattern is used for specifying an HTTP method that is not + /// included in the `pattern` field, such as HEAD, or "*" to leave the + /// HTTP method unspecified for this rule. The wild-card rule is useful + /// for services that provide content to Web (HTML) clients. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.CustomHttpPattern Custom { + get { return patternCase_ == PatternOneofCase.Custom ? (global::Google.Api.CustomHttpPattern) pattern_ : null; } + set { + pattern_ = value; + patternCase_ = value == null ? PatternOneofCase.None : PatternOneofCase.Custom; + } + } + + /// Field number for the "body" field. + public const int BodyFieldNumber = 7; + private string body_ = ""; + /// + /// The name of the request field whose value is mapped to the HTTP request + /// body, or `*` for mapping all request fields not captured by the path + /// pattern to the HTTP body, or omitted for not having any HTTP request body. + /// + /// NOTE: the referred field must be present at the top-level of the request + /// message type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Body { + get { return body_; } + set { + body_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "response_body" field. + public const int ResponseBodyFieldNumber = 12; + private string responseBody_ = ""; + /// + /// Optional. The name of the response field whose value is mapped to the HTTP + /// response body. When omitted, the entire response message will be used + /// as the HTTP response body. + /// + /// NOTE: The referred field must be present at the top-level of the response + /// message type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResponseBody { + get { return responseBody_; } + set { + responseBody_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "additional_bindings" field. + public const int AdditionalBindingsFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_additionalBindings_codec + = pb::FieldCodec.ForMessage(90, global::Google.Api.HttpRule.Parser); + private readonly pbc::RepeatedField additionalBindings_ = new pbc::RepeatedField(); + /// + /// Additional HTTP bindings for the selector. Nested bindings must + /// not contain an `additional_bindings` field themselves (that is, + /// the nesting may only be one level deep). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AdditionalBindings { + get { return additionalBindings_; } + } + + private object pattern_; + /// Enum of possible cases for the "pattern" oneof. + public enum PatternOneofCase { + None = 0, + Get = 2, + Put = 3, + Post = 4, + Delete = 5, + Patch = 6, + Custom = 8, + } + private PatternOneofCase patternCase_ = PatternOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PatternOneofCase PatternCase { + get { return patternCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPattern() { + patternCase_ = PatternOneofCase.None; + pattern_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HttpRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HttpRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Selector != other.Selector) return false; + if (Get != other.Get) return false; + if (Put != other.Put) return false; + if (Post != other.Post) return false; + if (Delete != other.Delete) return false; + if (Patch != other.Patch) return false; + if (!object.Equals(Custom, other.Custom)) return false; + if (Body != other.Body) return false; + if (ResponseBody != other.ResponseBody) return false; + if(!additionalBindings_.Equals(other.additionalBindings_)) return false; + if (PatternCase != other.PatternCase) 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 (Selector.Length != 0) hash ^= Selector.GetHashCode(); + if (patternCase_ == PatternOneofCase.Get) hash ^= Get.GetHashCode(); + if (patternCase_ == PatternOneofCase.Put) hash ^= Put.GetHashCode(); + if (patternCase_ == PatternOneofCase.Post) hash ^= Post.GetHashCode(); + if (patternCase_ == PatternOneofCase.Delete) hash ^= Delete.GetHashCode(); + if (patternCase_ == PatternOneofCase.Patch) hash ^= Patch.GetHashCode(); + if (patternCase_ == PatternOneofCase.Custom) hash ^= Custom.GetHashCode(); + if (Body.Length != 0) hash ^= Body.GetHashCode(); + if (ResponseBody.Length != 0) hash ^= ResponseBody.GetHashCode(); + hash ^= additionalBindings_.GetHashCode(); + hash ^= (int) patternCase_; + 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 (Selector.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Selector); + } + if (patternCase_ == PatternOneofCase.Get) { + output.WriteRawTag(18); + output.WriteString(Get); + } + if (patternCase_ == PatternOneofCase.Put) { + output.WriteRawTag(26); + output.WriteString(Put); + } + if (patternCase_ == PatternOneofCase.Post) { + output.WriteRawTag(34); + output.WriteString(Post); + } + if (patternCase_ == PatternOneofCase.Delete) { + output.WriteRawTag(42); + output.WriteString(Delete); + } + if (patternCase_ == PatternOneofCase.Patch) { + output.WriteRawTag(50); + output.WriteString(Patch); + } + if (Body.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Body); + } + if (patternCase_ == PatternOneofCase.Custom) { + output.WriteRawTag(66); + output.WriteMessage(Custom); + } + additionalBindings_.WriteTo(output, _repeated_additionalBindings_codec); + if (ResponseBody.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ResponseBody); + } + 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 (Selector.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Selector); + } + if (patternCase_ == PatternOneofCase.Get) { + output.WriteRawTag(18); + output.WriteString(Get); + } + if (patternCase_ == PatternOneofCase.Put) { + output.WriteRawTag(26); + output.WriteString(Put); + } + if (patternCase_ == PatternOneofCase.Post) { + output.WriteRawTag(34); + output.WriteString(Post); + } + if (patternCase_ == PatternOneofCase.Delete) { + output.WriteRawTag(42); + output.WriteString(Delete); + } + if (patternCase_ == PatternOneofCase.Patch) { + output.WriteRawTag(50); + output.WriteString(Patch); + } + if (Body.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Body); + } + if (patternCase_ == PatternOneofCase.Custom) { + output.WriteRawTag(66); + output.WriteMessage(Custom); + } + additionalBindings_.WriteTo(ref output, _repeated_additionalBindings_codec); + if (ResponseBody.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ResponseBody); + } + 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 (Selector.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Selector); + } + if (patternCase_ == PatternOneofCase.Get) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Get); + } + if (patternCase_ == PatternOneofCase.Put) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Put); + } + if (patternCase_ == PatternOneofCase.Post) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Post); + } + if (patternCase_ == PatternOneofCase.Delete) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Delete); + } + if (patternCase_ == PatternOneofCase.Patch) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Patch); + } + if (patternCase_ == PatternOneofCase.Custom) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Custom); + } + if (Body.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Body); + } + if (ResponseBody.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResponseBody); + } + size += additionalBindings_.CalculateSize(_repeated_additionalBindings_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HttpRule other) { + if (other == null) { + return; + } + if (other.Selector.Length != 0) { + Selector = other.Selector; + } + if (other.Body.Length != 0) { + Body = other.Body; + } + if (other.ResponseBody.Length != 0) { + ResponseBody = other.ResponseBody; + } + additionalBindings_.Add(other.additionalBindings_); + switch (other.PatternCase) { + case PatternOneofCase.Get: + Get = other.Get; + break; + case PatternOneofCase.Put: + Put = other.Put; + break; + case PatternOneofCase.Post: + Post = other.Post; + break; + case PatternOneofCase.Delete: + Delete = other.Delete; + break; + case PatternOneofCase.Patch: + Patch = other.Patch; + break; + case PatternOneofCase.Custom: + if (Custom == null) { + Custom = new global::Google.Api.CustomHttpPattern(); + } + Custom.MergeFrom(other.Custom); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Selector = input.ReadString(); + break; + } + case 18: { + Get = input.ReadString(); + break; + } + case 26: { + Put = input.ReadString(); + break; + } + case 34: { + Post = input.ReadString(); + break; + } + case 42: { + Delete = input.ReadString(); + break; + } + case 50: { + Patch = input.ReadString(); + break; + } + case 58: { + Body = input.ReadString(); + break; + } + case 66: { + global::Google.Api.CustomHttpPattern subBuilder = new global::Google.Api.CustomHttpPattern(); + if (patternCase_ == PatternOneofCase.Custom) { + subBuilder.MergeFrom(Custom); + } + input.ReadMessage(subBuilder); + Custom = subBuilder; + break; + } + case 90: { + additionalBindings_.AddEntriesFrom(input, _repeated_additionalBindings_codec); + break; + } + case 98: { + ResponseBody = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Selector = input.ReadString(); + break; + } + case 18: { + Get = input.ReadString(); + break; + } + case 26: { + Put = input.ReadString(); + break; + } + case 34: { + Post = input.ReadString(); + break; + } + case 42: { + Delete = input.ReadString(); + break; + } + case 50: { + Patch = input.ReadString(); + break; + } + case 58: { + Body = input.ReadString(); + break; + } + case 66: { + global::Google.Api.CustomHttpPattern subBuilder = new global::Google.Api.CustomHttpPattern(); + if (patternCase_ == PatternOneofCase.Custom) { + subBuilder.MergeFrom(Custom); + } + input.ReadMessage(subBuilder); + Custom = subBuilder; + break; + } + case 90: { + additionalBindings_.AddEntriesFrom(ref input, _repeated_additionalBindings_codec); + break; + } + case 98: { + ResponseBody = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A custom pattern is used for defining custom HTTP verb. + /// + public sealed partial class CustomHttpPattern : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomHttpPattern()); + 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::Google.Api.HttpReflection.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 CustomHttpPattern() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomHttpPattern(CustomHttpPattern other) : this() { + kind_ = other.kind_; + path_ = other.path_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomHttpPattern Clone() { + return new CustomHttpPattern(this); + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 1; + private string kind_ = ""; + /// + /// The name of this custom HTTP verb. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Kind { + get { return kind_; } + set { + kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "path" field. + public const int PathFieldNumber = 2; + private string path_ = ""; + /// + /// The path matched by this custom verb. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Path { + get { return path_; } + set { + path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CustomHttpPattern); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CustomHttpPattern other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Kind != other.Kind) return false; + if (Path != other.Path) 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 (Kind.Length != 0) hash ^= Kind.GetHashCode(); + if (Path.Length != 0) hash ^= Path.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 (Kind.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Kind); + } + if (Path.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Path); + } + 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 (Kind.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Kind); + } + if (Path.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Path); + } + 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 (Kind.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); + } + if (Path.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CustomHttpPattern other) { + if (other == null) { + return; + } + if (other.Kind.Length != 0) { + Kind = other.Kind; + } + if (other.Path.Length != 0) { + Path = other.Path; + } + _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: { + Kind = input.ReadString(); + break; + } + case 18: { + Path = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Kind = input.ReadString(); + break; + } + case 18: { + Path = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/gw/Gw.cs b/api/csharp/Chirpstack/gw/Gw.cs new file mode 100644 index 00000000..ef08690c --- /dev/null +++ b/api/csharp/Chirpstack/gw/Gw.cs @@ -0,0 +1,12325 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: gw/gw.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.Gateway { + + /// Holder for reflection information generated from gw/gw.proto + public static partial class GwReflection { + + #region Descriptor + /// File descriptor for gw/gw.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GwReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cgtndy9ndy5wcm90bxICZ3caE2NvbW1vbi9jb21tb24ucHJvdG8aH2dvb2ds", + "ZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi9k", + "dXJhdGlvbi5wcm90bxocZ29vZ2xlL3Byb3RvYnVmL3N0cnVjdC5wcm90byKV", + "AQoKTW9kdWxhdGlvbhImCgRsb3JhGAMgASgLMhYuZ3cuTG9yYU1vZHVsYXRp", + "b25JbmZvSAASJAoDZnNrGAQgASgLMhUuZ3cuRnNrTW9kdWxhdGlvbkluZm9I", + "ABIrCgdscl9maHNzGAUgASgLMhguZ3cuTHJGaHNzTW9kdWxhdGlvbkluZm9I", + "AEIMCgpwYXJhbWV0ZXJzIo0CChJVcGxpbmtUeEluZm9MZWdhY3kSEQoJZnJl", + "cXVlbmN5GAEgASgNEiYKCm1vZHVsYXRpb24YAiABKA4yEi5jb21tb24uTW9k", + "dWxhdGlvbhI2ChRsb3JhX21vZHVsYXRpb25faW5mbxgDIAEoCzIWLmd3Lkxv", + "cmFNb2R1bGF0aW9uSW5mb0gAEjQKE2Zza19tb2R1bGF0aW9uX2luZm8YBCAB", + "KAsyFS5ndy5Gc2tNb2R1bGF0aW9uSW5mb0gAEjsKF2xyX2Zoc3NfbW9kdWxh", + "dGlvbl9pbmZvGAUgASgLMhguZ3cuTHJGaHNzTW9kdWxhdGlvbkluZm9IAEIR", + "Cg9tb2R1bGF0aW9uX2luZm8iRQoMVXBsaW5rVHhJbmZvEhEKCWZyZXF1ZW5j", + "eRgBIAEoDRIiCgptb2R1bGF0aW9uGAIgASgLMg4uZ3cuTW9kdWxhdGlvbiKc", + "AQoSTG9yYU1vZHVsYXRpb25JbmZvEhEKCWJhbmR3aWR0aBgBIAEoDRIYChBz", + "cHJlYWRpbmdfZmFjdG9yGAIgASgNEhgKEGNvZGVfcmF0ZV9sZWdhY3kYAyAB", + "KAkSHwoJY29kZV9yYXRlGAUgASgOMgwuZ3cuQ29kZVJhdGUSHgoWcG9sYXJp", + "emF0aW9uX2ludmVyc2lvbhgEIAEoCCJCChFGc2tNb2R1bGF0aW9uSW5mbxIb", + "ChNmcmVxdWVuY3lfZGV2aWF0aW9uGAEgASgNEhAKCGRhdGFyYXRlGAIgASgN", + "IoYBChRMckZoc3NNb2R1bGF0aW9uSW5mbxIfChdvcGVyYXRpbmdfY2hhbm5l", + "bF93aWR0aBgBIAEoDRIYChBjb2RlX3JhdGVfbGVnYWN5GAIgASgJEh8KCWNv", + "ZGVfcmF0ZRgEIAEoDjIMLmd3LkNvZGVSYXRlEhIKCmdyaWRfc3RlcHMYAyAB", + "KA0iVgoWRW5jcnlwdGVkRmluZVRpbWVzdGFtcBIVCg1hZXNfa2V5X2luZGV4", + "GAEgASgNEhQKDGVuY3J5cHRlZF9ucxgCIAEoDBIPCgdmcGdhX2lkGAMgASgM", + "Ij4KElBsYWluRmluZVRpbWVzdGFtcBIoCgR0aW1lGAEgASgLMhouZ29vZ2xl", + "LnByb3RvYnVmLlRpbWVzdGFtcCKQBwoMR2F0ZXdheVN0YXRzEhkKEWdhdGV3", + "YXlfaWRfbGVnYWN5GAEgASgMEhIKCmdhdGV3YXlfaWQYESABKAkSKAoEdGlt", + "ZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASIgoIbG9jYXRp", + "b24YAyABKAsyEC5jb21tb24uTG9jYXRpb24SFgoOY29uZmlnX3ZlcnNpb24Y", + "BCABKAkSGwoTcnhfcGFja2V0c19yZWNlaXZlZBgFIAEoDRIeChZyeF9wYWNr", + "ZXRzX3JlY2VpdmVkX29rGAYgASgNEhsKE3R4X3BhY2tldHNfcmVjZWl2ZWQY", + "ByABKA0SGgoSdHhfcGFja2V0c19lbWl0dGVkGAggASgNEjAKCG1ldGFkYXRh", + "GAogAygLMh4uZ3cuR2F0ZXdheVN0YXRzLk1ldGFkYXRhRW50cnkSTQoYdHhf", + "cGFja2V0c19wZXJfZnJlcXVlbmN5GAwgAygLMisuZ3cuR2F0ZXdheVN0YXRz", + "LlR4UGFja2V0c1BlckZyZXF1ZW5jeUVudHJ5Ek0KGHJ4X3BhY2tldHNfcGVy", + "X2ZyZXF1ZW5jeRgNIAMoCzIrLmd3LkdhdGV3YXlTdGF0cy5SeFBhY2tldHNQ", + "ZXJGcmVxdWVuY3lFbnRyeRI5Chl0eF9wYWNrZXRzX3Blcl9tb2R1bGF0aW9u", + "GA4gAygLMhYuZ3cuUGVyTW9kdWxhdGlvbkNvdW50EjkKGXJ4X3BhY2tldHNf", + "cGVyX21vZHVsYXRpb24YDyADKAsyFi5ndy5QZXJNb2R1bGF0aW9uQ291bnQS", + "RwoVdHhfcGFja2V0c19wZXJfc3RhdHVzGBAgAygLMiguZ3cuR2F0ZXdheVN0", + "YXRzLlR4UGFja2V0c1BlclN0YXR1c0VudHJ5Gi8KDU1ldGFkYXRhRW50cnkS", + "CwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARo8ChpUeFBhY2tldHNQ", + "ZXJGcmVxdWVuY3lFbnRyeRILCgNrZXkYASABKA0SDQoFdmFsdWUYAiABKA06", + "AjgBGjwKGlJ4UGFja2V0c1BlckZyZXF1ZW5jeUVudHJ5EgsKA2tleRgBIAEo", + "DRINCgV2YWx1ZRgCIAEoDToCOAEaOQoXVHhQYWNrZXRzUGVyU3RhdHVzRW50", + "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgNOgI4ASJHChJQZXJNb2R1", + "bGF0aW9uQ291bnQSIgoKbW9kdWxhdGlvbhgBIAEoCzIOLmd3Lk1vZHVsYXRp", + "b24SDQoFY291bnQYAiABKA0igAUKElVwbGlua1J4SW5mb0xlZ2FjeRISCgpn", + "YXRld2F5X2lkGAEgASgMEigKBHRpbWUYAiABKAsyGi5nb29nbGUucHJvdG9i", + "dWYuVGltZXN0YW1wEjcKFHRpbWVfc2luY2VfZ3BzX2Vwb2NoGAMgASgLMhku", + "Z29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEgwKBHJzc2kYBSABKAUSEAoIbG9y", + "YV9zbnIYBiABKAESDwoHY2hhbm5lbBgHIAEoDRIQCghyZl9jaGFpbhgIIAEo", + "DRINCgVib2FyZBgJIAEoDRIPCgdhbnRlbm5hGAogASgNEiIKCGxvY2F0aW9u", + "GAsgASgLMhAuY29tbW9uLkxvY2F0aW9uEjIKE2ZpbmVfdGltZXN0YW1wX3R5", + "cGUYDCABKA4yFS5ndy5GaW5lVGltZXN0YW1wVHlwZRI+ChhlbmNyeXB0ZWRf", + "ZmluZV90aW1lc3RhbXAYDSABKAsyGi5ndy5FbmNyeXB0ZWRGaW5lVGltZXN0", + "YW1wSAASNgoUcGxhaW5fZmluZV90aW1lc3RhbXAYDiABKAsyFi5ndy5QbGFp", + "bkZpbmVUaW1lc3RhbXBIABIPCgdjb250ZXh0GA8gASgMEhEKCXVwbGlua19p", + "ZBgQIAEoDBIhCgpjcmNfc3RhdHVzGBEgASgOMg0uZ3cuQ1JDU3RhdHVzEjYK", + "CG1ldGFkYXRhGBIgAygLMiQuZ3cuVXBsaW5rUnhJbmZvTGVnYWN5Lk1ldGFk", + "YXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFs", + "dWUYAiABKAk6AjgBQhAKDmZpbmVfdGltZXN0YW1wIu8DCgxVcGxpbmtSeElu", + "Zm8SEgoKZ2F0ZXdheV9pZBgBIAEoCRIRCgl1cGxpbmtfaWQYAiABKA0SKAoE", + "dGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASNwoUdGlt", + "ZV9zaW5jZV9ncHNfZXBvY2gYBCABKAsyGS5nb29nbGUucHJvdG9idWYuRHVy", + "YXRpb24SPAoZZmluZV90aW1lX3NpbmNlX2dwc19lcG9jaBgFIAEoCzIZLmdv", + "b2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIMCgRyc3NpGAYgASgFEgsKA3NuchgH", + "IAEoAhIPCgdjaGFubmVsGAggASgNEhAKCHJmX2NoYWluGAkgASgNEg0KBWJv", + "YXJkGAogASgNEg8KB2FudGVubmEYCyABKA0SIgoIbG9jYXRpb24YDCABKAsy", + "EC5jb21tb24uTG9jYXRpb24SDwoHY29udGV4dBgNIAEoDBIwCghtZXRhZGF0", + "YRgPIAMoCzIeLmd3LlVwbGlua1J4SW5mby5NZXRhZGF0YUVudHJ5EiEKCmNy", + "Y19zdGF0dXMYECABKA4yDS5ndy5DUkNTdGF0dXMaLwoNTWV0YWRhdGFFbnRy", + "eRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIoIEChREb3dubGlu", + "a1R4SW5mb0xlZ2FjeRISCgpnYXRld2F5X2lkGAEgASgMEhEKCWZyZXF1ZW5j", + "eRgFIAEoDRINCgVwb3dlchgGIAEoBRImCgptb2R1bGF0aW9uGAcgASgOMhIu", + "Y29tbW9uLk1vZHVsYXRpb24SNgoUbG9yYV9tb2R1bGF0aW9uX2luZm8YCCAB", + "KAsyFi5ndy5Mb3JhTW9kdWxhdGlvbkluZm9IABI0ChNmc2tfbW9kdWxhdGlv", + "bl9pbmZvGAkgASgLMhUuZ3cuRnNrTW9kdWxhdGlvbkluZm9IABINCgVib2Fy", + "ZBgKIAEoDRIPCgdhbnRlbm5hGAsgASgNEiIKBnRpbWluZxgMIAEoDjISLmd3", + "LkRvd25saW5rVGltaW5nEjwKF2ltbWVkaWF0ZWx5X3RpbWluZ19pbmZvGA0g", + "ASgLMhkuZ3cuSW1tZWRpYXRlbHlUaW1pbmdJbmZvSAESMAoRZGVsYXlfdGlt", + "aW5nX2luZm8YDiABKAsyEy5ndy5EZWxheVRpbWluZ0luZm9IARI3ChVncHNf", + "ZXBvY2hfdGltaW5nX2luZm8YDyABKAsyFi5ndy5HUFNFcG9jaFRpbWluZ0lu", + "Zm9IARIPCgdjb250ZXh0GBAgASgMQhEKD21vZHVsYXRpb25faW5mb0INCgt0", + "aW1pbmdfaW5mbyKjAQoORG93bmxpbmtUeEluZm8SEQoJZnJlcXVlbmN5GAEg", + "ASgNEg0KBXBvd2VyGAIgASgFEiIKCm1vZHVsYXRpb24YAyABKAsyDi5ndy5N", + "b2R1bGF0aW9uEg0KBWJvYXJkGAQgASgNEg8KB2FudGVubmEYBSABKA0SGgoG", + "dGltaW5nGAYgASgLMgouZ3cuVGltaW5nEg8KB2NvbnRleHQYByABKAwimwEK", + "BlRpbWluZxIwCgtpbW1lZGlhdGVseRgBIAEoCzIZLmd3LkltbWVkaWF0ZWx5", + "VGltaW5nSW5mb0gAEiQKBWRlbGF5GAIgASgLMhMuZ3cuRGVsYXlUaW1pbmdJ", + "bmZvSAASKwoJZ3BzX2Vwb2NoGAMgASgLMhYuZ3cuR1BTRXBvY2hUaW1pbmdJ", + "bmZvSABCDAoKcGFyYW1ldGVycyIXChVJbW1lZGlhdGVseVRpbWluZ0luZm8i", + "OwoPRGVsYXlUaW1pbmdJbmZvEigKBWRlbGF5GAEgASgLMhkuZ29vZ2xlLnBy", + "b3RvYnVmLkR1cmF0aW9uIk0KEkdQU0Vwb2NoVGltaW5nSW5mbxI3ChR0aW1l", + "X3NpbmNlX2dwc19lcG9jaBgBIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJh", + "dGlvbiLIAQoLVXBsaW5rRnJhbWUSEwoLcGh5X3BheWxvYWQYASABKAwSLgoO", + "dHhfaW5mb19sZWdhY3kYAiABKAsyFi5ndy5VcGxpbmtUeEluZm9MZWdhY3kS", + "LgoOcnhfaW5mb19sZWdhY3kYAyABKAsyFi5ndy5VcGxpbmtSeEluZm9MZWdh", + "Y3kSIQoHdHhfaW5mbxgEIAEoCzIQLmd3LlVwbGlua1R4SW5mbxIhCgdyeF9p", + "bmZvGAUgASgLMhAuZ3cuVXBsaW5rUnhJbmZvImsKDlVwbGlua0ZyYW1lU2V0", + "EhMKC3BoeV9wYXlsb2FkGAEgASgMEiEKB3R4X2luZm8YAiABKAsyEC5ndy5V", + "cGxpbmtUeEluZm8SIQoHcnhfaW5mbxgDIAMoCzIQLmd3LlVwbGlua1J4SW5m", + "byKVAQoNRG93bmxpbmtGcmFtZRITCgtkb3dubGlua19pZBgDIAEoDRIaChJk", + "b3dubGlua19pZF9sZWdhY3kYBCABKAwSJAoFaXRlbXMYBSADKAsyFS5ndy5E", + "b3dubGlua0ZyYW1lSXRlbRIZChFnYXRld2F5X2lkX2xlZ2FjeRgGIAEoDBIS", + "CgpnYXRld2F5X2lkGAcgASgJIn8KEURvd25saW5rRnJhbWVJdGVtEhMKC3Bo", + "eV9wYXlsb2FkGAEgASgMEjAKDnR4X2luZm9fbGVnYWN5GAIgASgLMhguZ3cu", + "RG93bmxpbmtUeEluZm9MZWdhY3kSIwoHdHhfaW5mbxgDIAEoCzISLmd3LkRv", + "d25saW5rVHhJbmZvIpUBCg1Eb3dubGlua1R4QWNrEhkKEWdhdGV3YXlfaWRf", + "bGVnYWN5GAEgASgMEhIKCmdhdGV3YXlfaWQYBiABKAkSEwoLZG93bmxpbmtf", + "aWQYAiABKA0SGgoSZG93bmxpbmtfaWRfbGVnYWN5GAQgASgMEiQKBWl0ZW1z", + "GAUgAygLMhUuZ3cuRG93bmxpbmtUeEFja0l0ZW0iNAoRRG93bmxpbmtUeEFj", + "a0l0ZW0SHwoGc3RhdHVzGAEgASgOMg8uZ3cuVHhBY2tTdGF0dXMitQEKFEdh", + "dGV3YXlDb25maWd1cmF0aW9uEhkKEWdhdGV3YXlfaWRfbGVnYWN5GAEgASgM", + "EhIKCmdhdGV3YXlfaWQYBSABKAkSDwoHdmVyc2lvbhgCIAEoCRIqCghjaGFu", + "bmVscxgDIAMoCzIYLmd3LkNoYW5uZWxDb25maWd1cmF0aW9uEjEKDnN0YXRz", + "X2ludGVydmFsGAQgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uIocC", + "ChRDaGFubmVsQ29uZmlndXJhdGlvbhIRCglmcmVxdWVuY3kYASABKA0SLQoR", + "bW9kdWxhdGlvbl9sZWdhY3kYAiABKA4yEi5jb21tb24uTW9kdWxhdGlvbhI6", + "ChZsb3JhX21vZHVsYXRpb25fY29uZmlnGAMgASgLMhguZ3cuTG9yYU1vZHVs", + "YXRpb25Db25maWdIABI4ChVmc2tfbW9kdWxhdGlvbl9jb25maWcYBCABKAsy", + "Fy5ndy5Gc2tNb2R1bGF0aW9uQ29uZmlnSAASDQoFYm9hcmQYBSABKA0SEwoL", + "ZGVtb2R1bGF0b3IYBiABKA1CEwoRbW9kdWxhdGlvbl9jb25maWciXgoUTG9y", + "YU1vZHVsYXRpb25Db25maWcSGAoQYmFuZHdpZHRoX2xlZ2FjeRgBIAEoDRIR", + "CgliYW5kd2lkdGgYAyABKA0SGQoRc3ByZWFkaW5nX2ZhY3RvcnMYAiADKA0i", + "UwoTRnNrTW9kdWxhdGlvbkNvbmZpZxIYChBiYW5kd2lkdGhfbGVnYWN5GAEg", + "ASgNEhEKCWJhbmR3aWR0aBgDIAEoDRIPCgdiaXRyYXRlGAIgASgNIvQBChlH", + "YXRld2F5Q29tbWFuZEV4ZWNSZXF1ZXN0EhkKEWdhdGV3YXlfaWRfbGVnYWN5", + "GAEgASgMEhIKCmdhdGV3YXlfaWQYBiABKAkSDwoHY29tbWFuZBgCIAEoCRIP", + "CgdleGVjX2lkGAcgASgNEg0KBXN0ZGluGAQgASgMEkMKC2Vudmlyb25tZW50", + "GAUgAygLMi4uZ3cuR2F0ZXdheUNvbW1hbmRFeGVjUmVxdWVzdC5FbnZpcm9u", + "bWVudEVudHJ5GjIKEEVudmlyb25tZW50RW50cnkSCwoDa2V5GAEgASgJEg0K", + "BXZhbHVlGAIgASgJOgI4ASKLAQoaR2F0ZXdheUNvbW1hbmRFeGVjUmVzcG9u", + "c2USGQoRZ2F0ZXdheV9pZF9sZWdhY3kYASABKAwSEgoKZ2F0ZXdheV9pZBgG", + "IAEoCRIPCgdleGVjX2lkGAcgASgNEg4KBnN0ZG91dBgDIAEoDBIOCgZzdGRl", + "cnIYBCABKAwSDQoFZXJyb3IYBSABKAkiWQoXUmF3UGFja2V0Rm9yd2FyZGVy", + "RXZlbnQSGQoRZ2F0ZXdheV9pZF9sZWdhY3kYASABKAwSEgoKZ2F0ZXdheV9p", + "ZBgEIAEoCRIPCgdwYXlsb2FkGAMgASgMIlsKGVJhd1BhY2tldEZvcndhcmRl", + "ckNvbW1hbmQSGQoRZ2F0ZXdheV9pZF9sZWdhY3kYASABKAwSEgoKZ2F0ZXdh", + "eV9pZBgEIAEoCRIPCgdwYXlsb2FkGAMgASgMIoABCglDb25uU3RhdGUSGQoR", + "Z2F0ZXdheV9pZF9sZWdhY3kYASABKAwSEgoKZ2F0ZXdheV9pZBgDIAEoCRIi", + "CgVzdGF0ZRgCIAEoDjITLmd3LkNvbm5TdGF0ZS5TdGF0ZSIgCgVTdGF0ZRIL", + "CgdPRkZMSU5FEAASCgoGT05MSU5FEAEqtQEKCENvZGVSYXRlEhAKDENSX1VO", + "REVGSU5FRBAAEgoKBkNSXzRfNRABEgoKBkNSXzRfNhACEgoKBkNSXzRfNxAD", + "EgoKBkNSXzRfOBAEEgoKBkNSXzNfOBAFEgoKBkNSXzJfNhAGEgoKBkNSXzFf", + "NBAHEgoKBkNSXzFfNhAIEgoKBkNSXzVfNhAJEg0KCUNSX0xJXzRfNRAKEg0K", + "CUNSX0xJXzRfNhALEg0KCUNSX0xJXzRfOBAMKjsKDkRvd25saW5rVGltaW5n", + "Eg8KC0lNTUVESUFURUxZEAASCQoFREVMQVkQARINCglHUFNfRVBPQ0gQAio3", + "ChFGaW5lVGltZXN0YW1wVHlwZRIICgROT05FEAASDQoJRU5DUllQVEVEEAES", + "CQoFUExBSU4QAiowCglDUkNTdGF0dXMSCgoGTk9fQ1JDEAASCwoHQkFEX0NS", + "QxABEgoKBkNSQ19PSxACKrwBCgtUeEFja1N0YXR1cxILCgdJR05PUkVEEAAS", + "BgoCT0sQARIMCghUT09fTEFURRACEg0KCVRPT19FQVJMWRADEhQKEENPTExJ", + "U0lPTl9QQUNLRVQQBBIUChBDT0xMSVNJT05fQkVBQ09OEAUSCwoHVFhfRlJF", + "URAGEgwKCFRYX1BPV0VSEAcSEAoMR1BTX1VOTE9DS0VEEAgSDgoKUVVFVUVf", + "RlVMTBAJEhIKDklOVEVSTkFMX0VSUk9SEApCagoUaW8uY2hpcnBzdGFjay5h", + "cGkuZ3dCDEdhdGV3YXlQcm90b1ABWi1naXRodWIuY29tL2NoaXJwc3RhY2sv", + "Y2hpcnBzdGFjay9hcGkvZ28vdjQvZ3eqAhJDaGlycHN0YWNrLkdhdGV3YXli", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Chirpstack.Common.CommonReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Gateway.CodeRate), typeof(global::Chirpstack.Gateway.DownlinkTiming), typeof(global::Chirpstack.Gateway.FineTimestampType), typeof(global::Chirpstack.Gateway.CRCStatus), typeof(global::Chirpstack.Gateway.TxAckStatus), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.Modulation), global::Chirpstack.Gateway.Modulation.Parser, new[]{ "Lora", "Fsk", "LrFhss" }, new[]{ "Parameters" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.UplinkTxInfoLegacy), global::Chirpstack.Gateway.UplinkTxInfoLegacy.Parser, new[]{ "Frequency", "Modulation", "LoraModulationInfo", "FskModulationInfo", "LrFhssModulationInfo" }, new[]{ "ModulationInfo" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.UplinkTxInfo), global::Chirpstack.Gateway.UplinkTxInfo.Parser, new[]{ "Frequency", "Modulation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.LoraModulationInfo), global::Chirpstack.Gateway.LoraModulationInfo.Parser, new[]{ "Bandwidth", "SpreadingFactor", "CodeRateLegacy", "CodeRate", "PolarizationInversion" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.FskModulationInfo), global::Chirpstack.Gateway.FskModulationInfo.Parser, new[]{ "FrequencyDeviation", "Datarate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.LrFhssModulationInfo), global::Chirpstack.Gateway.LrFhssModulationInfo.Parser, new[]{ "OperatingChannelWidth", "CodeRateLegacy", "CodeRate", "GridSteps" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.EncryptedFineTimestamp), global::Chirpstack.Gateway.EncryptedFineTimestamp.Parser, new[]{ "AesKeyIndex", "EncryptedNs", "FpgaId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.PlainFineTimestamp), global::Chirpstack.Gateway.PlainFineTimestamp.Parser, new[]{ "Time" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.GatewayStats), global::Chirpstack.Gateway.GatewayStats.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "Time", "Location", "ConfigVersion", "RxPacketsReceived", "RxPacketsReceivedOk", "TxPacketsReceived", "TxPacketsEmitted", "Metadata", "TxPacketsPerFrequency", "RxPacketsPerFrequency", "TxPacketsPerModulation", "RxPacketsPerModulation", "TxPacketsPerStatus" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.PerModulationCount), global::Chirpstack.Gateway.PerModulationCount.Parser, new[]{ "Modulation", "Count" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.UplinkRxInfoLegacy), global::Chirpstack.Gateway.UplinkRxInfoLegacy.Parser, new[]{ "GatewayId", "Time", "TimeSinceGpsEpoch", "Rssi", "LoraSnr", "Channel", "RfChain", "Board", "Antenna", "Location", "FineTimestampType", "EncryptedFineTimestamp", "PlainFineTimestamp", "Context", "UplinkId", "CrcStatus", "Metadata" }, new[]{ "FineTimestamp" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.UplinkRxInfo), global::Chirpstack.Gateway.UplinkRxInfo.Parser, new[]{ "GatewayId", "UplinkId", "Time", "TimeSinceGpsEpoch", "FineTimeSinceGpsEpoch", "Rssi", "Snr", "Channel", "RfChain", "Board", "Antenna", "Location", "Context", "Metadata", "CrcStatus" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkTxInfoLegacy), global::Chirpstack.Gateway.DownlinkTxInfoLegacy.Parser, new[]{ "GatewayId", "Frequency", "Power", "Modulation", "LoraModulationInfo", "FskModulationInfo", "Board", "Antenna", "Timing", "ImmediatelyTimingInfo", "DelayTimingInfo", "GpsEpochTimingInfo", "Context" }, new[]{ "ModulationInfo", "TimingInfo" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkTxInfo), global::Chirpstack.Gateway.DownlinkTxInfo.Parser, new[]{ "Frequency", "Power", "Modulation", "Board", "Antenna", "Timing", "Context" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.Timing), global::Chirpstack.Gateway.Timing.Parser, new[]{ "Immediately", "Delay", "GpsEpoch" }, new[]{ "Parameters" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.ImmediatelyTimingInfo), global::Chirpstack.Gateway.ImmediatelyTimingInfo.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DelayTimingInfo), global::Chirpstack.Gateway.DelayTimingInfo.Parser, new[]{ "Delay" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.GPSEpochTimingInfo), global::Chirpstack.Gateway.GPSEpochTimingInfo.Parser, new[]{ "TimeSinceGpsEpoch" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.UplinkFrame), global::Chirpstack.Gateway.UplinkFrame.Parser, new[]{ "PhyPayload", "TxInfoLegacy", "RxInfoLegacy", "TxInfo", "RxInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.UplinkFrameSet), global::Chirpstack.Gateway.UplinkFrameSet.Parser, new[]{ "PhyPayload", "TxInfo", "RxInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkFrame), global::Chirpstack.Gateway.DownlinkFrame.Parser, new[]{ "DownlinkId", "DownlinkIdLegacy", "Items", "GatewayIdLegacy", "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkFrameItem), global::Chirpstack.Gateway.DownlinkFrameItem.Parser, new[]{ "PhyPayload", "TxInfoLegacy", "TxInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkTxAck), global::Chirpstack.Gateway.DownlinkTxAck.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "DownlinkId", "DownlinkIdLegacy", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkTxAckItem), global::Chirpstack.Gateway.DownlinkTxAckItem.Parser, new[]{ "Status" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.GatewayConfiguration), global::Chirpstack.Gateway.GatewayConfiguration.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "Version", "Channels", "StatsInterval" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.ChannelConfiguration), global::Chirpstack.Gateway.ChannelConfiguration.Parser, new[]{ "Frequency", "ModulationLegacy", "LoraModulationConfig", "FskModulationConfig", "Board", "Demodulator" }, new[]{ "ModulationConfig" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.LoraModulationConfig), global::Chirpstack.Gateway.LoraModulationConfig.Parser, new[]{ "BandwidthLegacy", "Bandwidth", "SpreadingFactors" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.FskModulationConfig), global::Chirpstack.Gateway.FskModulationConfig.Parser, new[]{ "BandwidthLegacy", "Bandwidth", "Bitrate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.GatewayCommandExecRequest), global::Chirpstack.Gateway.GatewayCommandExecRequest.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "Command", "ExecId", "Stdin", "Environment" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.GatewayCommandExecResponse), global::Chirpstack.Gateway.GatewayCommandExecResponse.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "ExecId", "Stdout", "Stderr", "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.RawPacketForwarderEvent), global::Chirpstack.Gateway.RawPacketForwarderEvent.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.RawPacketForwarderCommand), global::Chirpstack.Gateway.RawPacketForwarderCommand.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.ConnState), global::Chirpstack.Gateway.ConnState.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "State" }, null, new[]{ typeof(global::Chirpstack.Gateway.ConnState.Types.State) }, null, null) + })); + } + #endregion + + } + #region Enums + public enum CodeRate { + [pbr::OriginalName("CR_UNDEFINED")] CrUndefined = 0, + /// + /// LoRa + /// + [pbr::OriginalName("CR_4_5")] Cr45 = 1, + [pbr::OriginalName("CR_4_6")] Cr46 = 2, + [pbr::OriginalName("CR_4_7")] Cr47 = 3, + [pbr::OriginalName("CR_4_8")] Cr48 = 4, + /// + /// LR-FHSS + /// + [pbr::OriginalName("CR_3_8")] Cr38 = 5, + [pbr::OriginalName("CR_2_6")] Cr26 = 6, + [pbr::OriginalName("CR_1_4")] Cr14 = 7, + [pbr::OriginalName("CR_1_6")] Cr16 = 8, + [pbr::OriginalName("CR_5_6")] Cr56 = 9, + /// + /// LoRa 2.4 gHz + /// + [pbr::OriginalName("CR_LI_4_5")] CrLi45 = 10, + [pbr::OriginalName("CR_LI_4_6")] CrLi46 = 11, + [pbr::OriginalName("CR_LI_4_8")] CrLi48 = 12, + } + + public enum DownlinkTiming { + /// + /// Send the downlink immediately. + /// + [pbr::OriginalName("IMMEDIATELY")] Immediately = 0, + /// + /// Send downlink at the given delay (based on provided context). + /// + [pbr::OriginalName("DELAY")] Delay = 1, + /// + /// Send at given GPS epoch value. + /// + [pbr::OriginalName("GPS_EPOCH")] GpsEpoch = 2, + } + + public enum FineTimestampType { + /// + /// No fine-timestamp available. + /// + [pbr::OriginalName("NONE")] None = 0, + /// + /// Encrypted fine-timestamp. + /// + [pbr::OriginalName("ENCRYPTED")] Encrypted = 1, + /// + /// Plain fine-timestamp. + /// + [pbr::OriginalName("PLAIN")] Plain = 2, + } + + public enum CRCStatus { + /// + /// No CRC. + /// + [pbr::OriginalName("NO_CRC")] NoCrc = 0, + /// + /// Bad CRC. + /// + [pbr::OriginalName("BAD_CRC")] BadCrc = 1, + /// + /// CRC OK. + /// + [pbr::OriginalName("CRC_OK")] CrcOk = 2, + } + + public enum TxAckStatus { + /// + /// Ignored (when a previous item was already emitted). + /// + [pbr::OriginalName("IGNORED")] Ignored = 0, + /// + /// Packet has been programmed for downlink. + /// + [pbr::OriginalName("OK")] Ok = 1, + /// + /// Rejected because it was already too late to program this packet for downlink. + /// + [pbr::OriginalName("TOO_LATE")] TooLate = 2, + /// + /// Rejected because downlink packet timestamp is too much in advance. + /// + [pbr::OriginalName("TOO_EARLY")] TooEarly = 3, + /// + /// Rejected because there was already a packet programmed in requested timeframe. + /// + [pbr::OriginalName("COLLISION_PACKET")] CollisionPacket = 4, + /// + /// Rejected because there was already a beacon planned in requested timeframe. + /// + [pbr::OriginalName("COLLISION_BEACON")] CollisionBeacon = 5, + /// + /// Rejected because requested frequency is not supported by TX RF chain. + /// + [pbr::OriginalName("TX_FREQ")] TxFreq = 6, + /// + /// Rejected because requested power is not supported by gateway. + /// + [pbr::OriginalName("TX_POWER")] TxPower = 7, + /// + /// Rejected because GPS is unlocked, so GPS timestamp cannot be used. + /// + [pbr::OriginalName("GPS_UNLOCKED")] GpsUnlocked = 8, + /// + /// Downlink queue is full. + /// + [pbr::OriginalName("QUEUE_FULL")] QueueFull = 9, + /// + /// Internal error. + /// + [pbr::OriginalName("INTERNAL_ERROR")] InternalError = 10, + } + + #endregion + + #region Messages + public sealed partial class Modulation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Modulation()); + 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.Gateway.GwReflection.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 Modulation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Modulation(Modulation other) : this() { + switch (other.ParametersCase) { + case ParametersOneofCase.Lora: + Lora = other.Lora.Clone(); + break; + case ParametersOneofCase.Fsk: + Fsk = other.Fsk.Clone(); + break; + case ParametersOneofCase.LrFhss: + LrFhss = other.LrFhss.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Modulation Clone() { + return new Modulation(this); + } + + /// Field number for the "lora" field. + public const int LoraFieldNumber = 3; + /// + /// LoRa modulation information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.LoraModulationInfo Lora { + get { return parametersCase_ == ParametersOneofCase.Lora ? (global::Chirpstack.Gateway.LoraModulationInfo) parameters_ : null; } + set { + parameters_ = value; + parametersCase_ = value == null ? ParametersOneofCase.None : ParametersOneofCase.Lora; + } + } + + /// Field number for the "fsk" field. + public const int FskFieldNumber = 4; + /// + /// FSK modulation information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.FskModulationInfo Fsk { + get { return parametersCase_ == ParametersOneofCase.Fsk ? (global::Chirpstack.Gateway.FskModulationInfo) parameters_ : null; } + set { + parameters_ = value; + parametersCase_ = value == null ? ParametersOneofCase.None : ParametersOneofCase.Fsk; + } + } + + /// Field number for the "lr_fhss" field. + public const int LrFhssFieldNumber = 5; + /// + /// LR-FHSS modulation information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.LrFhssModulationInfo LrFhss { + get { return parametersCase_ == ParametersOneofCase.LrFhss ? (global::Chirpstack.Gateway.LrFhssModulationInfo) parameters_ : null; } + set { + parameters_ = value; + parametersCase_ = value == null ? ParametersOneofCase.None : ParametersOneofCase.LrFhss; + } + } + + private object parameters_; + /// Enum of possible cases for the "parameters" oneof. + public enum ParametersOneofCase { + None = 0, + Lora = 3, + Fsk = 4, + LrFhss = 5, + } + private ParametersOneofCase parametersCase_ = ParametersOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ParametersOneofCase ParametersCase { + get { return parametersCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParameters() { + parametersCase_ = ParametersOneofCase.None; + parameters_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Modulation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Modulation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Lora, other.Lora)) return false; + if (!object.Equals(Fsk, other.Fsk)) return false; + if (!object.Equals(LrFhss, other.LrFhss)) return false; + if (ParametersCase != other.ParametersCase) 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 (parametersCase_ == ParametersOneofCase.Lora) hash ^= Lora.GetHashCode(); + if (parametersCase_ == ParametersOneofCase.Fsk) hash ^= Fsk.GetHashCode(); + if (parametersCase_ == ParametersOneofCase.LrFhss) hash ^= LrFhss.GetHashCode(); + hash ^= (int) parametersCase_; + 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 (parametersCase_ == ParametersOneofCase.Lora) { + output.WriteRawTag(26); + output.WriteMessage(Lora); + } + if (parametersCase_ == ParametersOneofCase.Fsk) { + output.WriteRawTag(34); + output.WriteMessage(Fsk); + } + if (parametersCase_ == ParametersOneofCase.LrFhss) { + output.WriteRawTag(42); + output.WriteMessage(LrFhss); + } + 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 (parametersCase_ == ParametersOneofCase.Lora) { + output.WriteRawTag(26); + output.WriteMessage(Lora); + } + if (parametersCase_ == ParametersOneofCase.Fsk) { + output.WriteRawTag(34); + output.WriteMessage(Fsk); + } + if (parametersCase_ == ParametersOneofCase.LrFhss) { + output.WriteRawTag(42); + output.WriteMessage(LrFhss); + } + 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 (parametersCase_ == ParametersOneofCase.Lora) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lora); + } + if (parametersCase_ == ParametersOneofCase.Fsk) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Fsk); + } + if (parametersCase_ == ParametersOneofCase.LrFhss) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LrFhss); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Modulation other) { + if (other == null) { + return; + } + switch (other.ParametersCase) { + case ParametersOneofCase.Lora: + if (Lora == null) { + Lora = new global::Chirpstack.Gateway.LoraModulationInfo(); + } + Lora.MergeFrom(other.Lora); + break; + case ParametersOneofCase.Fsk: + if (Fsk == null) { + Fsk = new global::Chirpstack.Gateway.FskModulationInfo(); + } + Fsk.MergeFrom(other.Fsk); + break; + case ParametersOneofCase.LrFhss: + if (LrFhss == null) { + LrFhss = new global::Chirpstack.Gateway.LrFhssModulationInfo(); + } + LrFhss.MergeFrom(other.LrFhss); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + global::Chirpstack.Gateway.LoraModulationInfo subBuilder = new global::Chirpstack.Gateway.LoraModulationInfo(); + if (parametersCase_ == ParametersOneofCase.Lora) { + subBuilder.MergeFrom(Lora); + } + input.ReadMessage(subBuilder); + Lora = subBuilder; + break; + } + case 34: { + global::Chirpstack.Gateway.FskModulationInfo subBuilder = new global::Chirpstack.Gateway.FskModulationInfo(); + if (parametersCase_ == ParametersOneofCase.Fsk) { + subBuilder.MergeFrom(Fsk); + } + input.ReadMessage(subBuilder); + Fsk = subBuilder; + break; + } + case 42: { + global::Chirpstack.Gateway.LrFhssModulationInfo subBuilder = new global::Chirpstack.Gateway.LrFhssModulationInfo(); + if (parametersCase_ == ParametersOneofCase.LrFhss) { + subBuilder.MergeFrom(LrFhss); + } + input.ReadMessage(subBuilder); + LrFhss = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + global::Chirpstack.Gateway.LoraModulationInfo subBuilder = new global::Chirpstack.Gateway.LoraModulationInfo(); + if (parametersCase_ == ParametersOneofCase.Lora) { + subBuilder.MergeFrom(Lora); + } + input.ReadMessage(subBuilder); + Lora = subBuilder; + break; + } + case 34: { + global::Chirpstack.Gateway.FskModulationInfo subBuilder = new global::Chirpstack.Gateway.FskModulationInfo(); + if (parametersCase_ == ParametersOneofCase.Fsk) { + subBuilder.MergeFrom(Fsk); + } + input.ReadMessage(subBuilder); + Fsk = subBuilder; + break; + } + case 42: { + global::Chirpstack.Gateway.LrFhssModulationInfo subBuilder = new global::Chirpstack.Gateway.LrFhssModulationInfo(); + if (parametersCase_ == ParametersOneofCase.LrFhss) { + subBuilder.MergeFrom(LrFhss); + } + input.ReadMessage(subBuilder); + LrFhss = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class UplinkTxInfoLegacy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkTxInfoLegacy()); + 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.Gateway.GwReflection.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 UplinkTxInfoLegacy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkTxInfoLegacy(UplinkTxInfoLegacy other) : this() { + frequency_ = other.frequency_; + modulation_ = other.modulation_; + switch (other.ModulationInfoCase) { + case ModulationInfoOneofCase.LoraModulationInfo: + LoraModulationInfo = other.LoraModulationInfo.Clone(); + break; + case ModulationInfoOneofCase.FskModulationInfo: + FskModulationInfo = other.FskModulationInfo.Clone(); + break; + case ModulationInfoOneofCase.LrFhssModulationInfo: + LrFhssModulationInfo = other.LrFhssModulationInfo.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkTxInfoLegacy Clone() { + return new UplinkTxInfoLegacy(this); + } + + /// Field number for the "frequency" field. + public const int FrequencyFieldNumber = 1; + private uint frequency_; + /// + /// Frequency (Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Frequency { + get { return frequency_; } + set { + frequency_ = value; + } + } + + /// Field number for the "modulation" field. + public const int ModulationFieldNumber = 2; + private global::Chirpstack.Common.Modulation modulation_ = global::Chirpstack.Common.Modulation.Lora; + /// + /// Modulation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Modulation Modulation { + get { return modulation_; } + set { + modulation_ = value; + } + } + + /// Field number for the "lora_modulation_info" field. + public const int LoraModulationInfoFieldNumber = 3; + /// + /// LoRa modulation information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.LoraModulationInfo LoraModulationInfo { + get { return modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo ? (global::Chirpstack.Gateway.LoraModulationInfo) modulationInfo_ : null; } + set { + modulationInfo_ = value; + modulationInfoCase_ = value == null ? ModulationInfoOneofCase.None : ModulationInfoOneofCase.LoraModulationInfo; + } + } + + /// Field number for the "fsk_modulation_info" field. + public const int FskModulationInfoFieldNumber = 4; + /// + /// FSK modulation information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.FskModulationInfo FskModulationInfo { + get { return modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo ? (global::Chirpstack.Gateway.FskModulationInfo) modulationInfo_ : null; } + set { + modulationInfo_ = value; + modulationInfoCase_ = value == null ? ModulationInfoOneofCase.None : ModulationInfoOneofCase.FskModulationInfo; + } + } + + /// Field number for the "lr_fhss_modulation_info" field. + public const int LrFhssModulationInfoFieldNumber = 5; + /// + /// LR-FHSS modulation information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.LrFhssModulationInfo LrFhssModulationInfo { + get { return modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo ? (global::Chirpstack.Gateway.LrFhssModulationInfo) modulationInfo_ : null; } + set { + modulationInfo_ = value; + modulationInfoCase_ = value == null ? ModulationInfoOneofCase.None : ModulationInfoOneofCase.LrFhssModulationInfo; + } + } + + private object modulationInfo_; + /// Enum of possible cases for the "modulation_info" oneof. + public enum ModulationInfoOneofCase { + None = 0, + LoraModulationInfo = 3, + FskModulationInfo = 4, + LrFhssModulationInfo = 5, + } + private ModulationInfoOneofCase modulationInfoCase_ = ModulationInfoOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModulationInfoOneofCase ModulationInfoCase { + get { return modulationInfoCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearModulationInfo() { + modulationInfoCase_ = ModulationInfoOneofCase.None; + modulationInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UplinkTxInfoLegacy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UplinkTxInfoLegacy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Frequency != other.Frequency) return false; + if (Modulation != other.Modulation) return false; + if (!object.Equals(LoraModulationInfo, other.LoraModulationInfo)) return false; + if (!object.Equals(FskModulationInfo, other.FskModulationInfo)) return false; + if (!object.Equals(LrFhssModulationInfo, other.LrFhssModulationInfo)) return false; + if (ModulationInfoCase != other.ModulationInfoCase) 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 (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (Modulation != global::Chirpstack.Common.Modulation.Lora) hash ^= Modulation.GetHashCode(); + if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) hash ^= LoraModulationInfo.GetHashCode(); + if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) hash ^= FskModulationInfo.GetHashCode(); + if (modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo) hash ^= LrFhssModulationInfo.GetHashCode(); + hash ^= (int) modulationInfoCase_; + 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 (Frequency != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Frequency); + } + if (Modulation != global::Chirpstack.Common.Modulation.Lora) { + output.WriteRawTag(16); + output.WriteEnum((int) Modulation); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { + output.WriteRawTag(26); + output.WriteMessage(LoraModulationInfo); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { + output.WriteRawTag(34); + output.WriteMessage(FskModulationInfo); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo) { + output.WriteRawTag(42); + output.WriteMessage(LrFhssModulationInfo); + } + 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 (Frequency != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Frequency); + } + if (Modulation != global::Chirpstack.Common.Modulation.Lora) { + output.WriteRawTag(16); + output.WriteEnum((int) Modulation); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { + output.WriteRawTag(26); + output.WriteMessage(LoraModulationInfo); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { + output.WriteRawTag(34); + output.WriteMessage(FskModulationInfo); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo) { + output.WriteRawTag(42); + output.WriteMessage(LrFhssModulationInfo); + } + 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 (Frequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); + } + if (Modulation != global::Chirpstack.Common.Modulation.Lora) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Modulation); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoraModulationInfo); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FskModulationInfo); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LrFhssModulationInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UplinkTxInfoLegacy other) { + if (other == null) { + return; + } + if (other.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.Modulation != global::Chirpstack.Common.Modulation.Lora) { + Modulation = other.Modulation; + } + switch (other.ModulationInfoCase) { + case ModulationInfoOneofCase.LoraModulationInfo: + if (LoraModulationInfo == null) { + LoraModulationInfo = new global::Chirpstack.Gateway.LoraModulationInfo(); + } + LoraModulationInfo.MergeFrom(other.LoraModulationInfo); + break; + case ModulationInfoOneofCase.FskModulationInfo: + if (FskModulationInfo == null) { + FskModulationInfo = new global::Chirpstack.Gateway.FskModulationInfo(); + } + FskModulationInfo.MergeFrom(other.FskModulationInfo); + break; + case ModulationInfoOneofCase.LrFhssModulationInfo: + if (LrFhssModulationInfo == null) { + LrFhssModulationInfo = new global::Chirpstack.Gateway.LrFhssModulationInfo(); + } + LrFhssModulationInfo.MergeFrom(other.LrFhssModulationInfo); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Frequency = input.ReadUInt32(); + break; + } + case 16: { + Modulation = (global::Chirpstack.Common.Modulation) input.ReadEnum(); + break; + } + case 26: { + global::Chirpstack.Gateway.LoraModulationInfo subBuilder = new global::Chirpstack.Gateway.LoraModulationInfo(); + if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { + subBuilder.MergeFrom(LoraModulationInfo); + } + input.ReadMessage(subBuilder); + LoraModulationInfo = subBuilder; + break; + } + case 34: { + global::Chirpstack.Gateway.FskModulationInfo subBuilder = new global::Chirpstack.Gateway.FskModulationInfo(); + if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { + subBuilder.MergeFrom(FskModulationInfo); + } + input.ReadMessage(subBuilder); + FskModulationInfo = subBuilder; + break; + } + case 42: { + global::Chirpstack.Gateway.LrFhssModulationInfo subBuilder = new global::Chirpstack.Gateway.LrFhssModulationInfo(); + if (modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo) { + subBuilder.MergeFrom(LrFhssModulationInfo); + } + input.ReadMessage(subBuilder); + LrFhssModulationInfo = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Frequency = input.ReadUInt32(); + break; + } + case 16: { + Modulation = (global::Chirpstack.Common.Modulation) input.ReadEnum(); + break; + } + case 26: { + global::Chirpstack.Gateway.LoraModulationInfo subBuilder = new global::Chirpstack.Gateway.LoraModulationInfo(); + if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { + subBuilder.MergeFrom(LoraModulationInfo); + } + input.ReadMessage(subBuilder); + LoraModulationInfo = subBuilder; + break; + } + case 34: { + global::Chirpstack.Gateway.FskModulationInfo subBuilder = new global::Chirpstack.Gateway.FskModulationInfo(); + if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { + subBuilder.MergeFrom(FskModulationInfo); + } + input.ReadMessage(subBuilder); + FskModulationInfo = subBuilder; + break; + } + case 42: { + global::Chirpstack.Gateway.LrFhssModulationInfo subBuilder = new global::Chirpstack.Gateway.LrFhssModulationInfo(); + if (modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo) { + subBuilder.MergeFrom(LrFhssModulationInfo); + } + input.ReadMessage(subBuilder); + LrFhssModulationInfo = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class UplinkTxInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkTxInfo()); + 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.Gateway.GwReflection.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 UplinkTxInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkTxInfo(UplinkTxInfo other) : this() { + frequency_ = other.frequency_; + modulation_ = other.modulation_ != null ? other.modulation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkTxInfo Clone() { + return new UplinkTxInfo(this); + } + + /// Field number for the "frequency" field. + public const int FrequencyFieldNumber = 1; + private uint frequency_; + /// + /// Frequency (Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Frequency { + get { return frequency_; } + set { + frequency_ = value; + } + } + + /// Field number for the "modulation" field. + public const int ModulationFieldNumber = 2; + private global::Chirpstack.Gateway.Modulation modulation_; + /// + /// Modulation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.Modulation Modulation { + get { return modulation_; } + set { + modulation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UplinkTxInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UplinkTxInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Frequency != other.Frequency) return false; + if (!object.Equals(Modulation, other.Modulation)) 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 (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (modulation_ != null) hash ^= Modulation.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 (Frequency != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Frequency); + } + if (modulation_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Modulation); + } + 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 (Frequency != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Frequency); + } + if (modulation_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Modulation); + } + 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 (Frequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); + } + if (modulation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Modulation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UplinkTxInfo other) { + if (other == null) { + return; + } + if (other.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.modulation_ != null) { + if (modulation_ == null) { + Modulation = new global::Chirpstack.Gateway.Modulation(); + } + Modulation.MergeFrom(other.Modulation); + } + _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: { + Frequency = input.ReadUInt32(); + break; + } + case 18: { + if (modulation_ == null) { + Modulation = new global::Chirpstack.Gateway.Modulation(); + } + input.ReadMessage(Modulation); + 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: { + Frequency = input.ReadUInt32(); + break; + } + case 18: { + if (modulation_ == null) { + Modulation = new global::Chirpstack.Gateway.Modulation(); + } + input.ReadMessage(Modulation); + break; + } + } + } + } + #endif + + } + + public sealed partial class LoraModulationInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoraModulationInfo()); + 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.Gateway.GwReflection.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 LoraModulationInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoraModulationInfo(LoraModulationInfo other) : this() { + bandwidth_ = other.bandwidth_; + spreadingFactor_ = other.spreadingFactor_; + codeRateLegacy_ = other.codeRateLegacy_; + codeRate_ = other.codeRate_; + polarizationInversion_ = other.polarizationInversion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoraModulationInfo Clone() { + return new LoraModulationInfo(this); + } + + /// Field number for the "bandwidth" field. + public const int BandwidthFieldNumber = 1; + private uint bandwidth_; + /// + /// Bandwidth. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Bandwidth { + get { return bandwidth_; } + set { + bandwidth_ = value; + } + } + + /// Field number for the "spreading_factor" field. + public const int SpreadingFactorFieldNumber = 2; + private uint spreadingFactor_; + /// + /// Speading-factor. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SpreadingFactor { + get { return spreadingFactor_; } + set { + spreadingFactor_ = value; + } + } + + /// Field number for the "code_rate_legacy" field. + public const int CodeRateLegacyFieldNumber = 3; + private string codeRateLegacy_ = ""; + /// + /// Code-rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CodeRateLegacy { + get { return codeRateLegacy_; } + set { + codeRateLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "code_rate" field. + public const int CodeRateFieldNumber = 5; + private global::Chirpstack.Gateway.CodeRate codeRate_ = global::Chirpstack.Gateway.CodeRate.CrUndefined; + /// + /// Code-rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.CodeRate CodeRate { + get { return codeRate_; } + set { + codeRate_ = value; + } + } + + /// Field number for the "polarization_inversion" field. + public const int PolarizationInversionFieldNumber = 4; + private bool polarizationInversion_; + /// + /// Polarization inversion. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PolarizationInversion { + get { return polarizationInversion_; } + set { + polarizationInversion_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LoraModulationInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LoraModulationInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Bandwidth != other.Bandwidth) return false; + if (SpreadingFactor != other.SpreadingFactor) return false; + if (CodeRateLegacy != other.CodeRateLegacy) return false; + if (CodeRate != other.CodeRate) return false; + if (PolarizationInversion != other.PolarizationInversion) 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 (Bandwidth != 0) hash ^= Bandwidth.GetHashCode(); + if (SpreadingFactor != 0) hash ^= SpreadingFactor.GetHashCode(); + if (CodeRateLegacy.Length != 0) hash ^= CodeRateLegacy.GetHashCode(); + if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) hash ^= CodeRate.GetHashCode(); + if (PolarizationInversion != false) hash ^= PolarizationInversion.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 (Bandwidth != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Bandwidth); + } + if (SpreadingFactor != 0) { + output.WriteRawTag(16); + output.WriteUInt32(SpreadingFactor); + } + if (CodeRateLegacy.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CodeRateLegacy); + } + if (PolarizationInversion != false) { + output.WriteRawTag(32); + output.WriteBool(PolarizationInversion); + } + if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { + output.WriteRawTag(40); + output.WriteEnum((int) CodeRate); + } + 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 (Bandwidth != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Bandwidth); + } + if (SpreadingFactor != 0) { + output.WriteRawTag(16); + output.WriteUInt32(SpreadingFactor); + } + if (CodeRateLegacy.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CodeRateLegacy); + } + if (PolarizationInversion != false) { + output.WriteRawTag(32); + output.WriteBool(PolarizationInversion); + } + if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { + output.WriteRawTag(40); + output.WriteEnum((int) CodeRate); + } + 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 (Bandwidth != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Bandwidth); + } + if (SpreadingFactor != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SpreadingFactor); + } + if (CodeRateLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CodeRateLegacy); + } + if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CodeRate); + } + if (PolarizationInversion != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LoraModulationInfo other) { + if (other == null) { + return; + } + if (other.Bandwidth != 0) { + Bandwidth = other.Bandwidth; + } + if (other.SpreadingFactor != 0) { + SpreadingFactor = other.SpreadingFactor; + } + if (other.CodeRateLegacy.Length != 0) { + CodeRateLegacy = other.CodeRateLegacy; + } + if (other.CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { + CodeRate = other.CodeRate; + } + if (other.PolarizationInversion != false) { + PolarizationInversion = other.PolarizationInversion; + } + _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: { + Bandwidth = input.ReadUInt32(); + break; + } + case 16: { + SpreadingFactor = input.ReadUInt32(); + break; + } + case 26: { + CodeRateLegacy = input.ReadString(); + break; + } + case 32: { + PolarizationInversion = input.ReadBool(); + break; + } + case 40: { + CodeRate = (global::Chirpstack.Gateway.CodeRate) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Bandwidth = input.ReadUInt32(); + break; + } + case 16: { + SpreadingFactor = input.ReadUInt32(); + break; + } + case 26: { + CodeRateLegacy = input.ReadString(); + break; + } + case 32: { + PolarizationInversion = input.ReadBool(); + break; + } + case 40: { + CodeRate = (global::Chirpstack.Gateway.CodeRate) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class FskModulationInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FskModulationInfo()); + 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.Gateway.GwReflection.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 FskModulationInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FskModulationInfo(FskModulationInfo other) : this() { + frequencyDeviation_ = other.frequencyDeviation_; + datarate_ = other.datarate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FskModulationInfo Clone() { + return new FskModulationInfo(this); + } + + /// Field number for the "frequency_deviation" field. + public const int FrequencyDeviationFieldNumber = 1; + private uint frequencyDeviation_; + /// + /// Frequency deviation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FrequencyDeviation { + get { return frequencyDeviation_; } + set { + frequencyDeviation_ = value; + } + } + + /// Field number for the "datarate" field. + public const int DatarateFieldNumber = 2; + private uint datarate_; + /// + /// FSK datarate (bits / sec). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Datarate { + get { return datarate_; } + set { + datarate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FskModulationInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FskModulationInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FrequencyDeviation != other.FrequencyDeviation) return false; + if (Datarate != other.Datarate) 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 (FrequencyDeviation != 0) hash ^= FrequencyDeviation.GetHashCode(); + if (Datarate != 0) hash ^= Datarate.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 (FrequencyDeviation != 0) { + output.WriteRawTag(8); + output.WriteUInt32(FrequencyDeviation); + } + if (Datarate != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Datarate); + } + 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 (FrequencyDeviation != 0) { + output.WriteRawTag(8); + output.WriteUInt32(FrequencyDeviation); + } + if (Datarate != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Datarate); + } + 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 (FrequencyDeviation != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrequencyDeviation); + } + if (Datarate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Datarate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FskModulationInfo other) { + if (other == null) { + return; + } + if (other.FrequencyDeviation != 0) { + FrequencyDeviation = other.FrequencyDeviation; + } + if (other.Datarate != 0) { + Datarate = other.Datarate; + } + _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: { + FrequencyDeviation = input.ReadUInt32(); + break; + } + case 16: { + Datarate = 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 8: { + FrequencyDeviation = input.ReadUInt32(); + break; + } + case 16: { + Datarate = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class LrFhssModulationInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LrFhssModulationInfo()); + 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.Gateway.GwReflection.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 LrFhssModulationInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LrFhssModulationInfo(LrFhssModulationInfo other) : this() { + operatingChannelWidth_ = other.operatingChannelWidth_; + codeRateLegacy_ = other.codeRateLegacy_; + codeRate_ = other.codeRate_; + gridSteps_ = other.gridSteps_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LrFhssModulationInfo Clone() { + return new LrFhssModulationInfo(this); + } + + /// Field number for the "operating_channel_width" field. + public const int OperatingChannelWidthFieldNumber = 1; + private uint operatingChannelWidth_; + /// + /// Operating channel width (OCW) in Hz. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OperatingChannelWidth { + get { return operatingChannelWidth_; } + set { + operatingChannelWidth_ = value; + } + } + + /// Field number for the "code_rate_legacy" field. + public const int CodeRateLegacyFieldNumber = 2; + private string codeRateLegacy_ = ""; + /// + /// Code-rate. + /// Deprecated: use code_rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CodeRateLegacy { + get { return codeRateLegacy_; } + set { + codeRateLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "code_rate" field. + public const int CodeRateFieldNumber = 4; + private global::Chirpstack.Gateway.CodeRate codeRate_ = global::Chirpstack.Gateway.CodeRate.CrUndefined; + /// + /// Code-rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.CodeRate CodeRate { + get { return codeRate_; } + set { + codeRate_ = value; + } + } + + /// Field number for the "grid_steps" field. + public const int GridStepsFieldNumber = 3; + private uint gridSteps_; + /// + /// Hopping grid number of steps. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GridSteps { + get { return gridSteps_; } + set { + gridSteps_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LrFhssModulationInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LrFhssModulationInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OperatingChannelWidth != other.OperatingChannelWidth) return false; + if (CodeRateLegacy != other.CodeRateLegacy) return false; + if (CodeRate != other.CodeRate) return false; + if (GridSteps != other.GridSteps) 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 (OperatingChannelWidth != 0) hash ^= OperatingChannelWidth.GetHashCode(); + if (CodeRateLegacy.Length != 0) hash ^= CodeRateLegacy.GetHashCode(); + if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) hash ^= CodeRate.GetHashCode(); + if (GridSteps != 0) hash ^= GridSteps.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 (OperatingChannelWidth != 0) { + output.WriteRawTag(8); + output.WriteUInt32(OperatingChannelWidth); + } + if (CodeRateLegacy.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CodeRateLegacy); + } + if (GridSteps != 0) { + output.WriteRawTag(24); + output.WriteUInt32(GridSteps); + } + if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { + output.WriteRawTag(32); + output.WriteEnum((int) CodeRate); + } + 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 (OperatingChannelWidth != 0) { + output.WriteRawTag(8); + output.WriteUInt32(OperatingChannelWidth); + } + if (CodeRateLegacy.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CodeRateLegacy); + } + if (GridSteps != 0) { + output.WriteRawTag(24); + output.WriteUInt32(GridSteps); + } + if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { + output.WriteRawTag(32); + output.WriteEnum((int) CodeRate); + } + 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 (OperatingChannelWidth != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OperatingChannelWidth); + } + if (CodeRateLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CodeRateLegacy); + } + if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CodeRate); + } + if (GridSteps != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GridSteps); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LrFhssModulationInfo other) { + if (other == null) { + return; + } + if (other.OperatingChannelWidth != 0) { + OperatingChannelWidth = other.OperatingChannelWidth; + } + if (other.CodeRateLegacy.Length != 0) { + CodeRateLegacy = other.CodeRateLegacy; + } + if (other.CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { + CodeRate = other.CodeRate; + } + if (other.GridSteps != 0) { + GridSteps = other.GridSteps; + } + _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: { + OperatingChannelWidth = input.ReadUInt32(); + break; + } + case 18: { + CodeRateLegacy = input.ReadString(); + break; + } + case 24: { + GridSteps = input.ReadUInt32(); + break; + } + case 32: { + CodeRate = (global::Chirpstack.Gateway.CodeRate) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + OperatingChannelWidth = input.ReadUInt32(); + break; + } + case 18: { + CodeRateLegacy = input.ReadString(); + break; + } + case 24: { + GridSteps = input.ReadUInt32(); + break; + } + case 32: { + CodeRate = (global::Chirpstack.Gateway.CodeRate) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class EncryptedFineTimestamp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptedFineTimestamp()); + 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.Gateway.GwReflection.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 EncryptedFineTimestamp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptedFineTimestamp(EncryptedFineTimestamp other) : this() { + aesKeyIndex_ = other.aesKeyIndex_; + encryptedNs_ = other.encryptedNs_; + fpgaId_ = other.fpgaId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptedFineTimestamp Clone() { + return new EncryptedFineTimestamp(this); + } + + /// Field number for the "aes_key_index" field. + public const int AesKeyIndexFieldNumber = 1; + private uint aesKeyIndex_; + /// + /// AES key index used for encrypting the fine timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AesKeyIndex { + get { return aesKeyIndex_; } + set { + aesKeyIndex_ = value; + } + } + + /// Field number for the "encrypted_ns" field. + public const int EncryptedNsFieldNumber = 2; + private pb::ByteString encryptedNs_ = pb::ByteString.Empty; + /// + /// Encrypted 'main' fine-timestamp (ns precision part of the timestamp). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString EncryptedNs { + get { return encryptedNs_; } + set { + encryptedNs_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "fpga_id" field. + public const int FpgaIdFieldNumber = 3; + private pb::ByteString fpgaId_ = pb::ByteString.Empty; + /// + /// FPGA ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString FpgaId { + get { return fpgaId_; } + set { + fpgaId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EncryptedFineTimestamp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EncryptedFineTimestamp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AesKeyIndex != other.AesKeyIndex) return false; + if (EncryptedNs != other.EncryptedNs) return false; + if (FpgaId != other.FpgaId) 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 (AesKeyIndex != 0) hash ^= AesKeyIndex.GetHashCode(); + if (EncryptedNs.Length != 0) hash ^= EncryptedNs.GetHashCode(); + if (FpgaId.Length != 0) hash ^= FpgaId.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 (AesKeyIndex != 0) { + output.WriteRawTag(8); + output.WriteUInt32(AesKeyIndex); + } + if (EncryptedNs.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(EncryptedNs); + } + if (FpgaId.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(FpgaId); + } + 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 (AesKeyIndex != 0) { + output.WriteRawTag(8); + output.WriteUInt32(AesKeyIndex); + } + if (EncryptedNs.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(EncryptedNs); + } + if (FpgaId.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(FpgaId); + } + 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 (AesKeyIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AesKeyIndex); + } + if (EncryptedNs.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(EncryptedNs); + } + if (FpgaId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(FpgaId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EncryptedFineTimestamp other) { + if (other == null) { + return; + } + if (other.AesKeyIndex != 0) { + AesKeyIndex = other.AesKeyIndex; + } + if (other.EncryptedNs.Length != 0) { + EncryptedNs = other.EncryptedNs; + } + if (other.FpgaId.Length != 0) { + FpgaId = other.FpgaId; + } + _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: { + AesKeyIndex = input.ReadUInt32(); + break; + } + case 18: { + EncryptedNs = input.ReadBytes(); + break; + } + case 26: { + FpgaId = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + AesKeyIndex = input.ReadUInt32(); + break; + } + case 18: { + EncryptedNs = input.ReadBytes(); + break; + } + case 26: { + FpgaId = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class PlainFineTimestamp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlainFineTimestamp()); + 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.Gateway.GwReflection.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 PlainFineTimestamp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlainFineTimestamp(PlainFineTimestamp other) : this() { + time_ = other.time_ != null ? other.time_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlainFineTimestamp Clone() { + return new PlainFineTimestamp(this); + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp time_; + /// + /// Full 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; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlainFineTimestamp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlainFineTimestamp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Time, other.Time)) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlainFineTimestamp other) { + if (other == null) { + return; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Time.MergeFrom(other.Time); + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GatewayStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayStats()); + 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.Gateway.GwReflection.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 GatewayStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayStats(GatewayStats other) : this() { + gatewayIdLegacy_ = other.gatewayIdLegacy_; + gatewayId_ = other.gatewayId_; + time_ = other.time_ != null ? other.time_.Clone() : null; + location_ = other.location_ != null ? other.location_.Clone() : null; + configVersion_ = other.configVersion_; + rxPacketsReceived_ = other.rxPacketsReceived_; + rxPacketsReceivedOk_ = other.rxPacketsReceivedOk_; + txPacketsReceived_ = other.txPacketsReceived_; + txPacketsEmitted_ = other.txPacketsEmitted_; + metadata_ = other.metadata_.Clone(); + txPacketsPerFrequency_ = other.txPacketsPerFrequency_.Clone(); + rxPacketsPerFrequency_ = other.rxPacketsPerFrequency_.Clone(); + txPacketsPerModulation_ = other.txPacketsPerModulation_.Clone(); + rxPacketsPerModulation_ = other.rxPacketsPerModulation_.Clone(); + txPacketsPerStatus_ = other.txPacketsPerStatus_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayStats Clone() { + return new GatewayStats(this); + } + + /// Field number for the "gateway_id_legacy" field. + public const int GatewayIdLegacyFieldNumber = 1; + private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// Deprecated: use gateway_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString GatewayIdLegacy { + get { return gatewayIdLegacy_; } + set { + gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 17; + 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 "time" field. + public const int TimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp time_; + /// + /// Gateway time. + /// + [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 "location" field. + public const int LocationFieldNumber = 3; + private global::Chirpstack.Common.Location location_; + /// + /// Gateway location. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Location Location { + get { return location_; } + set { + location_ = value; + } + } + + /// Field number for the "config_version" field. + public const int ConfigVersionFieldNumber = 4; + private string configVersion_ = ""; + /// + /// Gateway configuration version (this maps to the config_version sent + /// by ChirpStack to the gateway). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConfigVersion { + get { return configVersion_; } + set { + configVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "rx_packets_received" field. + public const int RxPacketsReceivedFieldNumber = 5; + private uint rxPacketsReceived_; + /// + /// Number of radio packets received. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RxPacketsReceived { + get { return rxPacketsReceived_; } + set { + rxPacketsReceived_ = value; + } + } + + /// Field number for the "rx_packets_received_ok" field. + public const int RxPacketsReceivedOkFieldNumber = 6; + private uint rxPacketsReceivedOk_; + /// + /// Number of radio packets received with valid PHY CRC. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RxPacketsReceivedOk { + get { return rxPacketsReceivedOk_; } + set { + rxPacketsReceivedOk_ = value; + } + } + + /// Field number for the "tx_packets_received" field. + public const int TxPacketsReceivedFieldNumber = 7; + private uint txPacketsReceived_; + /// + /// Number of downlink packets received for transmission. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TxPacketsReceived { + get { return txPacketsReceived_; } + set { + txPacketsReceived_ = value; + } + } + + /// Field number for the "tx_packets_emitted" field. + public const int TxPacketsEmittedFieldNumber = 8; + private uint txPacketsEmitted_; + /// + /// Number of downlink packets emitted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TxPacketsEmitted { + get { return txPacketsEmitted_; } + set { + txPacketsEmitted_ = value; + } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 10; + private static readonly pbc::MapField.Codec _map_metadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 82); + private readonly pbc::MapField metadata_ = new pbc::MapField(); + /// + /// Additional gateway meta-data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Metadata { + get { return metadata_; } + } + + /// Field number for the "tx_packets_per_frequency" field. + public const int TxPacketsPerFrequencyFieldNumber = 12; + private static readonly pbc::MapField.Codec _map_txPacketsPerFrequency_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 98); + private readonly pbc::MapField txPacketsPerFrequency_ = new pbc::MapField(); + /// + /// Tx packets per frequency. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField TxPacketsPerFrequency { + get { return txPacketsPerFrequency_; } + } + + /// Field number for the "rx_packets_per_frequency" field. + public const int RxPacketsPerFrequencyFieldNumber = 13; + private static readonly pbc::MapField.Codec _map_rxPacketsPerFrequency_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 106); + private readonly pbc::MapField rxPacketsPerFrequency_ = new pbc::MapField(); + /// + /// Rx packets per frequency. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField RxPacketsPerFrequency { + get { return rxPacketsPerFrequency_; } + } + + /// Field number for the "tx_packets_per_modulation" field. + public const int TxPacketsPerModulationFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_txPacketsPerModulation_codec + = pb::FieldCodec.ForMessage(114, global::Chirpstack.Gateway.PerModulationCount.Parser); + private readonly pbc::RepeatedField txPacketsPerModulation_ = new pbc::RepeatedField(); + /// + /// Tx packets per modulation parameters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TxPacketsPerModulation { + get { return txPacketsPerModulation_; } + } + + /// Field number for the "rx_packets_per_modulation" field. + public const int RxPacketsPerModulationFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_rxPacketsPerModulation_codec + = pb::FieldCodec.ForMessage(122, global::Chirpstack.Gateway.PerModulationCount.Parser); + private readonly pbc::RepeatedField rxPacketsPerModulation_ = new pbc::RepeatedField(); + /// + /// Rx packets per modulation parameters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RxPacketsPerModulation { + get { return rxPacketsPerModulation_; } + } + + /// Field number for the "tx_packets_per_status" field. + public const int TxPacketsPerStatusFieldNumber = 16; + private static readonly pbc::MapField.Codec _map_txPacketsPerStatus_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForUInt32(16, 0), 130); + private readonly pbc::MapField txPacketsPerStatus_ = new pbc::MapField(); + /// + /// Tx packets per status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField TxPacketsPerStatus { + get { return txPacketsPerStatus_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GatewayStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayIdLegacy != other.GatewayIdLegacy) return false; + if (GatewayId != other.GatewayId) return false; + if (!object.Equals(Time, other.Time)) return false; + if (!object.Equals(Location, other.Location)) return false; + if (ConfigVersion != other.ConfigVersion) return false; + if (RxPacketsReceived != other.RxPacketsReceived) return false; + if (RxPacketsReceivedOk != other.RxPacketsReceivedOk) return false; + if (TxPacketsReceived != other.TxPacketsReceived) return false; + if (TxPacketsEmitted != other.TxPacketsEmitted) return false; + if (!Metadata.Equals(other.Metadata)) return false; + if (!TxPacketsPerFrequency.Equals(other.TxPacketsPerFrequency)) return false; + if (!RxPacketsPerFrequency.Equals(other.RxPacketsPerFrequency)) return false; + if(!txPacketsPerModulation_.Equals(other.txPacketsPerModulation_)) return false; + if(!rxPacketsPerModulation_.Equals(other.rxPacketsPerModulation_)) return false; + if (!TxPacketsPerStatus.Equals(other.TxPacketsPerStatus)) 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 (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (location_ != null) hash ^= Location.GetHashCode(); + if (ConfigVersion.Length != 0) hash ^= ConfigVersion.GetHashCode(); + if (RxPacketsReceived != 0) hash ^= RxPacketsReceived.GetHashCode(); + if (RxPacketsReceivedOk != 0) hash ^= RxPacketsReceivedOk.GetHashCode(); + if (TxPacketsReceived != 0) hash ^= TxPacketsReceived.GetHashCode(); + if (TxPacketsEmitted != 0) hash ^= TxPacketsEmitted.GetHashCode(); + hash ^= Metadata.GetHashCode(); + hash ^= TxPacketsPerFrequency.GetHashCode(); + hash ^= RxPacketsPerFrequency.GetHashCode(); + hash ^= txPacketsPerModulation_.GetHashCode(); + hash ^= rxPacketsPerModulation_.GetHashCode(); + hash ^= TxPacketsPerStatus.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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (location_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Location); + } + if (ConfigVersion.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ConfigVersion); + } + if (RxPacketsReceived != 0) { + output.WriteRawTag(40); + output.WriteUInt32(RxPacketsReceived); + } + if (RxPacketsReceivedOk != 0) { + output.WriteRawTag(48); + output.WriteUInt32(RxPacketsReceivedOk); + } + if (TxPacketsReceived != 0) { + output.WriteRawTag(56); + output.WriteUInt32(TxPacketsReceived); + } + if (TxPacketsEmitted != 0) { + output.WriteRawTag(64); + output.WriteUInt32(TxPacketsEmitted); + } + metadata_.WriteTo(output, _map_metadata_codec); + txPacketsPerFrequency_.WriteTo(output, _map_txPacketsPerFrequency_codec); + rxPacketsPerFrequency_.WriteTo(output, _map_rxPacketsPerFrequency_codec); + txPacketsPerModulation_.WriteTo(output, _repeated_txPacketsPerModulation_codec); + rxPacketsPerModulation_.WriteTo(output, _repeated_rxPacketsPerModulation_codec); + txPacketsPerStatus_.WriteTo(output, _map_txPacketsPerStatus_codec); + if (GatewayId.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(GatewayId); + } + 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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (location_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Location); + } + if (ConfigVersion.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ConfigVersion); + } + if (RxPacketsReceived != 0) { + output.WriteRawTag(40); + output.WriteUInt32(RxPacketsReceived); + } + if (RxPacketsReceivedOk != 0) { + output.WriteRawTag(48); + output.WriteUInt32(RxPacketsReceivedOk); + } + if (TxPacketsReceived != 0) { + output.WriteRawTag(56); + output.WriteUInt32(TxPacketsReceived); + } + if (TxPacketsEmitted != 0) { + output.WriteRawTag(64); + output.WriteUInt32(TxPacketsEmitted); + } + metadata_.WriteTo(ref output, _map_metadata_codec); + txPacketsPerFrequency_.WriteTo(ref output, _map_txPacketsPerFrequency_codec); + rxPacketsPerFrequency_.WriteTo(ref output, _map_rxPacketsPerFrequency_codec); + txPacketsPerModulation_.WriteTo(ref output, _repeated_txPacketsPerModulation_codec); + rxPacketsPerModulation_.WriteTo(ref output, _repeated_rxPacketsPerModulation_codec); + txPacketsPerStatus_.WriteTo(ref output, _map_txPacketsPerStatus_codec); + if (GatewayId.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(GatewayId); + } + 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 (GatewayIdLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); + } + if (GatewayId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + if (ConfigVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigVersion); + } + if (RxPacketsReceived != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxPacketsReceived); + } + if (RxPacketsReceivedOk != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxPacketsReceivedOk); + } + if (TxPacketsReceived != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TxPacketsReceived); + } + if (TxPacketsEmitted != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TxPacketsEmitted); + } + size += metadata_.CalculateSize(_map_metadata_codec); + size += txPacketsPerFrequency_.CalculateSize(_map_txPacketsPerFrequency_codec); + size += rxPacketsPerFrequency_.CalculateSize(_map_rxPacketsPerFrequency_codec); + size += txPacketsPerModulation_.CalculateSize(_repeated_txPacketsPerModulation_codec); + size += rxPacketsPerModulation_.CalculateSize(_repeated_rxPacketsPerModulation_codec); + size += txPacketsPerStatus_.CalculateSize(_map_txPacketsPerStatus_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GatewayStats other) { + if (other == null) { + return; + } + if (other.GatewayIdLegacy.Length != 0) { + GatewayIdLegacy = other.GatewayIdLegacy; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Time.MergeFrom(other.Time); + } + if (other.location_ != null) { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + Location.MergeFrom(other.Location); + } + if (other.ConfigVersion.Length != 0) { + ConfigVersion = other.ConfigVersion; + } + if (other.RxPacketsReceived != 0) { + RxPacketsReceived = other.RxPacketsReceived; + } + if (other.RxPacketsReceivedOk != 0) { + RxPacketsReceivedOk = other.RxPacketsReceivedOk; + } + if (other.TxPacketsReceived != 0) { + TxPacketsReceived = other.TxPacketsReceived; + } + if (other.TxPacketsEmitted != 0) { + TxPacketsEmitted = other.TxPacketsEmitted; + } + metadata_.Add(other.metadata_); + txPacketsPerFrequency_.Add(other.txPacketsPerFrequency_); + rxPacketsPerFrequency_.Add(other.rxPacketsPerFrequency_); + txPacketsPerModulation_.Add(other.txPacketsPerModulation_); + rxPacketsPerModulation_.Add(other.rxPacketsPerModulation_); + txPacketsPerStatus_.Add(other.txPacketsPerStatus_); + _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: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 26: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 34: { + ConfigVersion = input.ReadString(); + break; + } + case 40: { + RxPacketsReceived = input.ReadUInt32(); + break; + } + case 48: { + RxPacketsReceivedOk = input.ReadUInt32(); + break; + } + case 56: { + TxPacketsReceived = input.ReadUInt32(); + break; + } + case 64: { + TxPacketsEmitted = input.ReadUInt32(); + break; + } + case 82: { + metadata_.AddEntriesFrom(input, _map_metadata_codec); + break; + } + case 98: { + txPacketsPerFrequency_.AddEntriesFrom(input, _map_txPacketsPerFrequency_codec); + break; + } + case 106: { + rxPacketsPerFrequency_.AddEntriesFrom(input, _map_rxPacketsPerFrequency_codec); + break; + } + case 114: { + txPacketsPerModulation_.AddEntriesFrom(input, _repeated_txPacketsPerModulation_codec); + break; + } + case 122: { + rxPacketsPerModulation_.AddEntriesFrom(input, _repeated_rxPacketsPerModulation_codec); + break; + } + case 130: { + txPacketsPerStatus_.AddEntriesFrom(input, _map_txPacketsPerStatus_codec); + break; + } + case 138: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 26: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 34: { + ConfigVersion = input.ReadString(); + break; + } + case 40: { + RxPacketsReceived = input.ReadUInt32(); + break; + } + case 48: { + RxPacketsReceivedOk = input.ReadUInt32(); + break; + } + case 56: { + TxPacketsReceived = input.ReadUInt32(); + break; + } + case 64: { + TxPacketsEmitted = input.ReadUInt32(); + break; + } + case 82: { + metadata_.AddEntriesFrom(ref input, _map_metadata_codec); + break; + } + case 98: { + txPacketsPerFrequency_.AddEntriesFrom(ref input, _map_txPacketsPerFrequency_codec); + break; + } + case 106: { + rxPacketsPerFrequency_.AddEntriesFrom(ref input, _map_rxPacketsPerFrequency_codec); + break; + } + case 114: { + txPacketsPerModulation_.AddEntriesFrom(ref input, _repeated_txPacketsPerModulation_codec); + break; + } + case 122: { + rxPacketsPerModulation_.AddEntriesFrom(ref input, _repeated_rxPacketsPerModulation_codec); + break; + } + case 130: { + txPacketsPerStatus_.AddEntriesFrom(ref input, _map_txPacketsPerStatus_codec); + break; + } + case 138: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class PerModulationCount : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PerModulationCount()); + 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.Gateway.GwReflection.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 PerModulationCount() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerModulationCount(PerModulationCount other) : this() { + modulation_ = other.modulation_ != null ? other.modulation_.Clone() : null; + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerModulationCount Clone() { + return new PerModulationCount(this); + } + + /// Field number for the "modulation" field. + public const int ModulationFieldNumber = 1; + private global::Chirpstack.Gateway.Modulation modulation_; + /// + /// Modulation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.Modulation Modulation { + get { return modulation_; } + set { + modulation_ = value; + } + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 2; + private uint count_; + /// + /// Count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Count { + get { return count_; } + set { + count_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PerModulationCount); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PerModulationCount other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Modulation, other.Modulation)) return false; + if (Count != other.Count) 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 (modulation_ != null) hash ^= Modulation.GetHashCode(); + if (Count != 0) hash ^= Count.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 (modulation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Modulation); + } + if (Count != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Count); + } + 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 (modulation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Modulation); + } + if (Count != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Count); + } + 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 (modulation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Modulation); + } + if (Count != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PerModulationCount other) { + if (other == null) { + return; + } + if (other.modulation_ != null) { + if (modulation_ == null) { + Modulation = new global::Chirpstack.Gateway.Modulation(); + } + Modulation.MergeFrom(other.Modulation); + } + if (other.Count != 0) { + Count = other.Count; + } + _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 (modulation_ == null) { + Modulation = new global::Chirpstack.Gateway.Modulation(); + } + input.ReadMessage(Modulation); + break; + } + case 16: { + Count = 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: { + if (modulation_ == null) { + Modulation = new global::Chirpstack.Gateway.Modulation(); + } + input.ReadMessage(Modulation); + break; + } + case 16: { + Count = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UplinkRxInfoLegacy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkRxInfoLegacy()); + 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.Gateway.GwReflection.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 UplinkRxInfoLegacy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkRxInfoLegacy(UplinkRxInfoLegacy other) : this() { + gatewayId_ = other.gatewayId_; + time_ = other.time_ != null ? other.time_.Clone() : null; + timeSinceGpsEpoch_ = other.timeSinceGpsEpoch_ != null ? other.timeSinceGpsEpoch_.Clone() : null; + rssi_ = other.rssi_; + loraSnr_ = other.loraSnr_; + channel_ = other.channel_; + rfChain_ = other.rfChain_; + board_ = other.board_; + antenna_ = other.antenna_; + location_ = other.location_ != null ? other.location_.Clone() : null; + fineTimestampType_ = other.fineTimestampType_; + context_ = other.context_; + uplinkId_ = other.uplinkId_; + crcStatus_ = other.crcStatus_; + metadata_ = other.metadata_.Clone(); + switch (other.FineTimestampCase) { + case FineTimestampOneofCase.EncryptedFineTimestamp: + EncryptedFineTimestamp = other.EncryptedFineTimestamp.Clone(); + break; + case FineTimestampOneofCase.PlainFineTimestamp: + PlainFineTimestamp = other.PlainFineTimestamp.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkRxInfoLegacy Clone() { + return new UplinkRxInfoLegacy(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + private pb::ByteString gatewayId_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString GatewayId { + get { return gatewayId_; } + set { + gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp time_; + /// + /// RX time (only set when the gateway has a GPS module). + /// + [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 "time_since_gps_epoch" field. + public const int TimeSinceGpsEpochFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Duration timeSinceGpsEpoch_; + /// + /// RX time since GPS epoch (only set when the gateway has a GPS module). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration TimeSinceGpsEpoch { + get { return timeSinceGpsEpoch_; } + set { + timeSinceGpsEpoch_ = 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 "lora_snr" field. + public const int LoraSnrFieldNumber = 6; + private double loraSnr_; + /// + /// LoRa SNR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double LoraSnr { + get { return loraSnr_; } + set { + loraSnr_ = value; + } + } + + /// Field number for the "channel" field. + public const int ChannelFieldNumber = 7; + private uint channel_; + /// + /// Channel. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Channel { + get { return channel_; } + set { + channel_ = value; + } + } + + /// Field number for the "rf_chain" field. + public const int RfChainFieldNumber = 8; + private uint rfChain_; + /// + /// RF Chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RfChain { + get { return rfChain_; } + set { + rfChain_ = value; + } + } + + /// Field number for the "board" field. + public const int BoardFieldNumber = 9; + private uint board_; + /// + /// Board. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Board { + get { return board_; } + set { + board_ = value; + } + } + + /// Field number for the "antenna" field. + public const int AntennaFieldNumber = 10; + private uint antenna_; + /// + /// Antenna. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Antenna { + get { return antenna_; } + set { + antenna_ = value; + } + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 11; + 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; + } + } + + /// Field number for the "fine_timestamp_type" field. + public const int FineTimestampTypeFieldNumber = 12; + private global::Chirpstack.Gateway.FineTimestampType fineTimestampType_ = global::Chirpstack.Gateway.FineTimestampType.None; + /// + /// Fine-timestamp type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.FineTimestampType FineTimestampType { + get { return fineTimestampType_; } + set { + fineTimestampType_ = value; + } + } + + /// Field number for the "encrypted_fine_timestamp" field. + public const int EncryptedFineTimestampFieldNumber = 13; + /// + /// Encrypted fine-timestamp data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.EncryptedFineTimestamp EncryptedFineTimestamp { + get { return fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp ? (global::Chirpstack.Gateway.EncryptedFineTimestamp) fineTimestamp_ : null; } + set { + fineTimestamp_ = value; + fineTimestampCase_ = value == null ? FineTimestampOneofCase.None : FineTimestampOneofCase.EncryptedFineTimestamp; + } + } + + /// Field number for the "plain_fine_timestamp" field. + public const int PlainFineTimestampFieldNumber = 14; + /// + /// Plain fine-timestamp data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.PlainFineTimestamp PlainFineTimestamp { + get { return fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp ? (global::Chirpstack.Gateway.PlainFineTimestamp) fineTimestamp_ : null; } + set { + fineTimestamp_ = value; + fineTimestampCase_ = value == null ? FineTimestampOneofCase.None : FineTimestampOneofCase.PlainFineTimestamp; + } + } + + /// Field number for the "context" field. + public const int ContextFieldNumber = 15; + private pb::ByteString context_ = pb::ByteString.Empty; + /// + /// Gateway specific context. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Context { + get { return context_; } + set { + context_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uplink_id" field. + public const int UplinkIdFieldNumber = 16; + private pb::ByteString uplinkId_ = pb::ByteString.Empty; + /// + /// Uplink ID (UUID bytes). + /// Unique and random ID which can be used to correlate the uplink across multiple logs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString UplinkId { + get { return uplinkId_; } + set { + uplinkId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "crc_status" field. + public const int CrcStatusFieldNumber = 17; + private global::Chirpstack.Gateway.CRCStatus crcStatus_ = global::Chirpstack.Gateway.CRCStatus.NoCrc; + /// + /// CRC status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.CRCStatus CrcStatus { + get { return crcStatus_; } + set { + crcStatus_ = value; + } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 18; + private static readonly pbc::MapField.Codec _map_metadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 146); + private readonly pbc::MapField metadata_ = new pbc::MapField(); + /// + /// Optional meta-data map. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Metadata { + get { return metadata_; } + } + + private object fineTimestamp_; + /// Enum of possible cases for the "fine_timestamp" oneof. + public enum FineTimestampOneofCase { + None = 0, + EncryptedFineTimestamp = 13, + PlainFineTimestamp = 14, + } + private FineTimestampOneofCase fineTimestampCase_ = FineTimestampOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FineTimestampOneofCase FineTimestampCase { + get { return fineTimestampCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFineTimestamp() { + fineTimestampCase_ = FineTimestampOneofCase.None; + fineTimestamp_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UplinkRxInfoLegacy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UplinkRxInfoLegacy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) return false; + if (!object.Equals(Time, other.Time)) return false; + if (!object.Equals(TimeSinceGpsEpoch, other.TimeSinceGpsEpoch)) return false; + if (Rssi != other.Rssi) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LoraSnr, other.LoraSnr)) return false; + if (Channel != other.Channel) return false; + if (RfChain != other.RfChain) return false; + if (Board != other.Board) return false; + if (Antenna != other.Antenna) return false; + if (!object.Equals(Location, other.Location)) return false; + if (FineTimestampType != other.FineTimestampType) return false; + if (!object.Equals(EncryptedFineTimestamp, other.EncryptedFineTimestamp)) return false; + if (!object.Equals(PlainFineTimestamp, other.PlainFineTimestamp)) return false; + if (Context != other.Context) return false; + if (UplinkId != other.UplinkId) return false; + if (CrcStatus != other.CrcStatus) return false; + if (!Metadata.Equals(other.Metadata)) return false; + if (FineTimestampCase != other.FineTimestampCase) 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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (timeSinceGpsEpoch_ != null) hash ^= TimeSinceGpsEpoch.GetHashCode(); + if (Rssi != 0) hash ^= Rssi.GetHashCode(); + if (LoraSnr != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LoraSnr); + if (Channel != 0) hash ^= Channel.GetHashCode(); + if (RfChain != 0) hash ^= RfChain.GetHashCode(); + if (Board != 0) hash ^= Board.GetHashCode(); + if (Antenna != 0) hash ^= Antenna.GetHashCode(); + if (location_ != null) hash ^= Location.GetHashCode(); + if (FineTimestampType != global::Chirpstack.Gateway.FineTimestampType.None) hash ^= FineTimestampType.GetHashCode(); + if (fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp) hash ^= EncryptedFineTimestamp.GetHashCode(); + if (fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp) hash ^= PlainFineTimestamp.GetHashCode(); + if (Context.Length != 0) hash ^= Context.GetHashCode(); + if (UplinkId.Length != 0) hash ^= UplinkId.GetHashCode(); + if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) hash ^= CrcStatus.GetHashCode(); + hash ^= Metadata.GetHashCode(); + hash ^= (int) fineTimestampCase_; + 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (timeSinceGpsEpoch_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TimeSinceGpsEpoch); + } + if (Rssi != 0) { + output.WriteRawTag(40); + output.WriteInt32(Rssi); + } + if (LoraSnr != 0D) { + output.WriteRawTag(49); + output.WriteDouble(LoraSnr); + } + if (Channel != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Channel); + } + if (RfChain != 0) { + output.WriteRawTag(64); + output.WriteUInt32(RfChain); + } + if (Board != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Board); + } + if (Antenna != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Antenna); + } + if (location_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Location); + } + if (FineTimestampType != global::Chirpstack.Gateway.FineTimestampType.None) { + output.WriteRawTag(96); + output.WriteEnum((int) FineTimestampType); + } + if (fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp) { + output.WriteRawTag(106); + output.WriteMessage(EncryptedFineTimestamp); + } + if (fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp) { + output.WriteRawTag(114); + output.WriteMessage(PlainFineTimestamp); + } + if (Context.Length != 0) { + output.WriteRawTag(122); + output.WriteBytes(Context); + } + if (UplinkId.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteBytes(UplinkId); + } + if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { + output.WriteRawTag(136, 1); + output.WriteEnum((int) CrcStatus); + } + metadata_.WriteTo(output, _map_metadata_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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (timeSinceGpsEpoch_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TimeSinceGpsEpoch); + } + if (Rssi != 0) { + output.WriteRawTag(40); + output.WriteInt32(Rssi); + } + if (LoraSnr != 0D) { + output.WriteRawTag(49); + output.WriteDouble(LoraSnr); + } + if (Channel != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Channel); + } + if (RfChain != 0) { + output.WriteRawTag(64); + output.WriteUInt32(RfChain); + } + if (Board != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Board); + } + if (Antenna != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Antenna); + } + if (location_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Location); + } + if (FineTimestampType != global::Chirpstack.Gateway.FineTimestampType.None) { + output.WriteRawTag(96); + output.WriteEnum((int) FineTimestampType); + } + if (fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp) { + output.WriteRawTag(106); + output.WriteMessage(EncryptedFineTimestamp); + } + if (fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp) { + output.WriteRawTag(114); + output.WriteMessage(PlainFineTimestamp); + } + if (Context.Length != 0) { + output.WriteRawTag(122); + output.WriteBytes(Context); + } + if (UplinkId.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteBytes(UplinkId); + } + if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { + output.WriteRawTag(136, 1); + output.WriteEnum((int) CrcStatus); + } + metadata_.WriteTo(ref output, _map_metadata_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 (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayId); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (timeSinceGpsEpoch_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeSinceGpsEpoch); + } + if (Rssi != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rssi); + } + if (LoraSnr != 0D) { + size += 1 + 8; + } + if (Channel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Channel); + } + if (RfChain != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RfChain); + } + if (Board != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Board); + } + if (Antenna != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Antenna); + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + if (FineTimestampType != global::Chirpstack.Gateway.FineTimestampType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FineTimestampType); + } + if (fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EncryptedFineTimestamp); + } + if (fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlainFineTimestamp); + } + if (Context.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Context); + } + if (UplinkId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeBytesSize(UplinkId); + } + if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CrcStatus); + } + size += metadata_.CalculateSize(_map_metadata_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UplinkRxInfoLegacy other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Time.MergeFrom(other.Time); + } + if (other.timeSinceGpsEpoch_ != null) { + if (timeSinceGpsEpoch_ == null) { + TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + TimeSinceGpsEpoch.MergeFrom(other.TimeSinceGpsEpoch); + } + if (other.Rssi != 0) { + Rssi = other.Rssi; + } + if (other.LoraSnr != 0D) { + LoraSnr = other.LoraSnr; + } + if (other.Channel != 0) { + Channel = other.Channel; + } + if (other.RfChain != 0) { + RfChain = other.RfChain; + } + if (other.Board != 0) { + Board = other.Board; + } + if (other.Antenna != 0) { + Antenna = other.Antenna; + } + if (other.location_ != null) { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + Location.MergeFrom(other.Location); + } + if (other.FineTimestampType != global::Chirpstack.Gateway.FineTimestampType.None) { + FineTimestampType = other.FineTimestampType; + } + if (other.Context.Length != 0) { + Context = other.Context; + } + if (other.UplinkId.Length != 0) { + UplinkId = other.UplinkId; + } + if (other.CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { + CrcStatus = other.CrcStatus; + } + metadata_.Add(other.metadata_); + switch (other.FineTimestampCase) { + case FineTimestampOneofCase.EncryptedFineTimestamp: + if (EncryptedFineTimestamp == null) { + EncryptedFineTimestamp = new global::Chirpstack.Gateway.EncryptedFineTimestamp(); + } + EncryptedFineTimestamp.MergeFrom(other.EncryptedFineTimestamp); + break; + case FineTimestampOneofCase.PlainFineTimestamp: + if (PlainFineTimestamp == null) { + PlainFineTimestamp = new global::Chirpstack.Gateway.PlainFineTimestamp(); + } + PlainFineTimestamp.MergeFrom(other.PlainFineTimestamp); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + GatewayId = input.ReadBytes(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 26: { + if (timeSinceGpsEpoch_ == null) { + TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(TimeSinceGpsEpoch); + break; + } + case 40: { + Rssi = input.ReadInt32(); + break; + } + case 49: { + LoraSnr = input.ReadDouble(); + break; + } + case 56: { + Channel = input.ReadUInt32(); + break; + } + case 64: { + RfChain = input.ReadUInt32(); + break; + } + case 72: { + Board = input.ReadUInt32(); + break; + } + case 80: { + Antenna = input.ReadUInt32(); + break; + } + case 90: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 96: { + FineTimestampType = (global::Chirpstack.Gateway.FineTimestampType) input.ReadEnum(); + break; + } + case 106: { + global::Chirpstack.Gateway.EncryptedFineTimestamp subBuilder = new global::Chirpstack.Gateway.EncryptedFineTimestamp(); + if (fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp) { + subBuilder.MergeFrom(EncryptedFineTimestamp); + } + input.ReadMessage(subBuilder); + EncryptedFineTimestamp = subBuilder; + break; + } + case 114: { + global::Chirpstack.Gateway.PlainFineTimestamp subBuilder = new global::Chirpstack.Gateway.PlainFineTimestamp(); + if (fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp) { + subBuilder.MergeFrom(PlainFineTimestamp); + } + input.ReadMessage(subBuilder); + PlainFineTimestamp = subBuilder; + break; + } + case 122: { + Context = input.ReadBytes(); + break; + } + case 130: { + UplinkId = input.ReadBytes(); + break; + } + case 136: { + CrcStatus = (global::Chirpstack.Gateway.CRCStatus) input.ReadEnum(); + break; + } + case 146: { + metadata_.AddEntriesFrom(input, _map_metadata_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: { + GatewayId = input.ReadBytes(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 26: { + if (timeSinceGpsEpoch_ == null) { + TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(TimeSinceGpsEpoch); + break; + } + case 40: { + Rssi = input.ReadInt32(); + break; + } + case 49: { + LoraSnr = input.ReadDouble(); + break; + } + case 56: { + Channel = input.ReadUInt32(); + break; + } + case 64: { + RfChain = input.ReadUInt32(); + break; + } + case 72: { + Board = input.ReadUInt32(); + break; + } + case 80: { + Antenna = input.ReadUInt32(); + break; + } + case 90: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 96: { + FineTimestampType = (global::Chirpstack.Gateway.FineTimestampType) input.ReadEnum(); + break; + } + case 106: { + global::Chirpstack.Gateway.EncryptedFineTimestamp subBuilder = new global::Chirpstack.Gateway.EncryptedFineTimestamp(); + if (fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp) { + subBuilder.MergeFrom(EncryptedFineTimestamp); + } + input.ReadMessage(subBuilder); + EncryptedFineTimestamp = subBuilder; + break; + } + case 114: { + global::Chirpstack.Gateway.PlainFineTimestamp subBuilder = new global::Chirpstack.Gateway.PlainFineTimestamp(); + if (fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp) { + subBuilder.MergeFrom(PlainFineTimestamp); + } + input.ReadMessage(subBuilder); + PlainFineTimestamp = subBuilder; + break; + } + case 122: { + Context = input.ReadBytes(); + break; + } + case 130: { + UplinkId = input.ReadBytes(); + break; + } + case 136: { + CrcStatus = (global::Chirpstack.Gateway.CRCStatus) input.ReadEnum(); + break; + } + case 146: { + metadata_.AddEntriesFrom(ref input, _map_metadata_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class UplinkRxInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkRxInfo()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkRxInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkRxInfo(UplinkRxInfo other) : this() { + gatewayId_ = other.gatewayId_; + uplinkId_ = other.uplinkId_; + time_ = other.time_ != null ? other.time_.Clone() : null; + timeSinceGpsEpoch_ = other.timeSinceGpsEpoch_ != null ? other.timeSinceGpsEpoch_.Clone() : null; + fineTimeSinceGpsEpoch_ = other.fineTimeSinceGpsEpoch_ != null ? other.fineTimeSinceGpsEpoch_.Clone() : null; + rssi_ = other.rssi_; + snr_ = other.snr_; + channel_ = other.channel_; + rfChain_ = other.rfChain_; + board_ = other.board_; + antenna_ = other.antenna_; + location_ = other.location_ != null ? other.location_.Clone() : null; + context_ = other.context_; + metadata_ = other.metadata_.Clone(); + crcStatus_ = other.crcStatus_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkRxInfo Clone() { + return new UplinkRxInfo(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + 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 "uplink_id" field. + public const int UplinkIdFieldNumber = 2; + private uint uplinkId_; + /// + /// Uplink ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UplinkId { + get { return uplinkId_; } + set { + uplinkId_ = value; + } + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp time_; + /// + /// RX time (only set when the gateway has a GPS module). + /// + [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 "time_since_gps_epoch" field. + public const int TimeSinceGpsEpochFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration timeSinceGpsEpoch_; + /// + /// RX time since GPS epoch (only set when the gateway has a GPS module). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration TimeSinceGpsEpoch { + get { return timeSinceGpsEpoch_; } + set { + timeSinceGpsEpoch_ = value; + } + } + + /// Field number for the "fine_time_since_gps_epoch" field. + public const int FineTimeSinceGpsEpochFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Duration fineTimeSinceGpsEpoch_; + /// + /// Fine-timestamp. + /// This timestamp can be used for TDOA based geolocation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration FineTimeSinceGpsEpoch { + get { return fineTimeSinceGpsEpoch_; } + set { + fineTimeSinceGpsEpoch_ = value; + } + } + + /// Field number for the "rssi" field. + public const int RssiFieldNumber = 6; + 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 "snr" field. + public const int SnrFieldNumber = 7; + private float snr_; + /// + /// SNR. + /// Note: only available for LoRa modulation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Snr { + get { return snr_; } + set { + snr_ = value; + } + } + + /// Field number for the "channel" field. + public const int ChannelFieldNumber = 8; + private uint channel_; + /// + /// Channel. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Channel { + get { return channel_; } + set { + channel_ = value; + } + } + + /// Field number for the "rf_chain" field. + public const int RfChainFieldNumber = 9; + private uint rfChain_; + /// + /// RF chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RfChain { + get { return rfChain_; } + set { + rfChain_ = value; + } + } + + /// Field number for the "board" field. + public const int BoardFieldNumber = 10; + private uint board_; + /// + /// Board. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Board { + get { return board_; } + set { + board_ = value; + } + } + + /// Field number for the "antenna" field. + public const int AntennaFieldNumber = 11; + private uint antenna_; + /// + /// Antenna. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Antenna { + get { return antenna_; } + set { + antenna_ = value; + } + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 12; + 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; + } + } + + /// Field number for the "context" field. + public const int ContextFieldNumber = 13; + private pb::ByteString context_ = pb::ByteString.Empty; + /// + /// Gateway specific context. + /// This value must be returned to the gateway on (Class-A) downlink. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Context { + get { return context_; } + set { + context_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 15; + private static readonly pbc::MapField.Codec _map_metadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 122); + private readonly pbc::MapField metadata_ = new pbc::MapField(); + /// + /// Additional gateway meta-data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Metadata { + get { return metadata_; } + } + + /// Field number for the "crc_status" field. + public const int CrcStatusFieldNumber = 16; + private global::Chirpstack.Gateway.CRCStatus crcStatus_ = global::Chirpstack.Gateway.CRCStatus.NoCrc; + /// + /// CRC status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.CRCStatus CrcStatus { + get { return crcStatus_; } + set { + crcStatus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UplinkRxInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UplinkRxInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) return false; + if (UplinkId != other.UplinkId) return false; + if (!object.Equals(Time, other.Time)) return false; + if (!object.Equals(TimeSinceGpsEpoch, other.TimeSinceGpsEpoch)) return false; + if (!object.Equals(FineTimeSinceGpsEpoch, other.FineTimeSinceGpsEpoch)) return false; + if (Rssi != other.Rssi) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Snr, other.Snr)) return false; + if (Channel != other.Channel) return false; + if (RfChain != other.RfChain) return false; + if (Board != other.Board) return false; + if (Antenna != other.Antenna) return false; + if (!object.Equals(Location, other.Location)) return false; + if (Context != other.Context) return false; + if (!Metadata.Equals(other.Metadata)) return false; + if (CrcStatus != other.CrcStatus) 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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (UplinkId != 0) hash ^= UplinkId.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (timeSinceGpsEpoch_ != null) hash ^= TimeSinceGpsEpoch.GetHashCode(); + if (fineTimeSinceGpsEpoch_ != null) hash ^= FineTimeSinceGpsEpoch.GetHashCode(); + if (Rssi != 0) hash ^= Rssi.GetHashCode(); + if (Snr != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Snr); + if (Channel != 0) hash ^= Channel.GetHashCode(); + if (RfChain != 0) hash ^= RfChain.GetHashCode(); + if (Board != 0) hash ^= Board.GetHashCode(); + if (Antenna != 0) hash ^= Antenna.GetHashCode(); + if (location_ != null) hash ^= Location.GetHashCode(); + if (Context.Length != 0) hash ^= Context.GetHashCode(); + hash ^= Metadata.GetHashCode(); + if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) hash ^= CrcStatus.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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + if (UplinkId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(UplinkId); + } + if (time_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Time); + } + if (timeSinceGpsEpoch_ != null) { + output.WriteRawTag(34); + output.WriteMessage(TimeSinceGpsEpoch); + } + if (fineTimeSinceGpsEpoch_ != null) { + output.WriteRawTag(42); + output.WriteMessage(FineTimeSinceGpsEpoch); + } + if (Rssi != 0) { + output.WriteRawTag(48); + output.WriteInt32(Rssi); + } + if (Snr != 0F) { + output.WriteRawTag(61); + output.WriteFloat(Snr); + } + if (Channel != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Channel); + } + if (RfChain != 0) { + output.WriteRawTag(72); + output.WriteUInt32(RfChain); + } + if (Board != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Board); + } + if (Antenna != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Antenna); + } + if (location_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Location); + } + if (Context.Length != 0) { + output.WriteRawTag(106); + output.WriteBytes(Context); + } + metadata_.WriteTo(output, _map_metadata_codec); + if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { + output.WriteRawTag(128, 1); + output.WriteEnum((int) CrcStatus); + } + 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GatewayId); + } + if (UplinkId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(UplinkId); + } + if (time_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Time); + } + if (timeSinceGpsEpoch_ != null) { + output.WriteRawTag(34); + output.WriteMessage(TimeSinceGpsEpoch); + } + if (fineTimeSinceGpsEpoch_ != null) { + output.WriteRawTag(42); + output.WriteMessage(FineTimeSinceGpsEpoch); + } + if (Rssi != 0) { + output.WriteRawTag(48); + output.WriteInt32(Rssi); + } + if (Snr != 0F) { + output.WriteRawTag(61); + output.WriteFloat(Snr); + } + if (Channel != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Channel); + } + if (RfChain != 0) { + output.WriteRawTag(72); + output.WriteUInt32(RfChain); + } + if (Board != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Board); + } + if (Antenna != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Antenna); + } + if (location_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Location); + } + if (Context.Length != 0) { + output.WriteRawTag(106); + output.WriteBytes(Context); + } + metadata_.WriteTo(ref output, _map_metadata_codec); + if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { + output.WriteRawTag(128, 1); + output.WriteEnum((int) CrcStatus); + } + 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 (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (UplinkId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UplinkId); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (timeSinceGpsEpoch_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeSinceGpsEpoch); + } + if (fineTimeSinceGpsEpoch_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FineTimeSinceGpsEpoch); + } + if (Rssi != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rssi); + } + if (Snr != 0F) { + size += 1 + 4; + } + if (Channel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Channel); + } + if (RfChain != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RfChain); + } + if (Board != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Board); + } + if (Antenna != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Antenna); + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + if (Context.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Context); + } + size += metadata_.CalculateSize(_map_metadata_codec); + if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CrcStatus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UplinkRxInfo other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.UplinkId != 0) { + UplinkId = other.UplinkId; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Time.MergeFrom(other.Time); + } + if (other.timeSinceGpsEpoch_ != null) { + if (timeSinceGpsEpoch_ == null) { + TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + TimeSinceGpsEpoch.MergeFrom(other.TimeSinceGpsEpoch); + } + if (other.fineTimeSinceGpsEpoch_ != null) { + if (fineTimeSinceGpsEpoch_ == null) { + FineTimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + FineTimeSinceGpsEpoch.MergeFrom(other.FineTimeSinceGpsEpoch); + } + if (other.Rssi != 0) { + Rssi = other.Rssi; + } + if (other.Snr != 0F) { + Snr = other.Snr; + } + if (other.Channel != 0) { + Channel = other.Channel; + } + if (other.RfChain != 0) { + RfChain = other.RfChain; + } + if (other.Board != 0) { + Board = other.Board; + } + if (other.Antenna != 0) { + Antenna = other.Antenna; + } + if (other.location_ != null) { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + Location.MergeFrom(other.Location); + } + if (other.Context.Length != 0) { + Context = other.Context; + } + metadata_.Add(other.metadata_); + if (other.CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { + CrcStatus = other.CrcStatus; + } + _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: { + GatewayId = input.ReadString(); + break; + } + case 16: { + UplinkId = input.ReadUInt32(); + break; + } + case 26: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 34: { + if (timeSinceGpsEpoch_ == null) { + TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(TimeSinceGpsEpoch); + break; + } + case 42: { + if (fineTimeSinceGpsEpoch_ == null) { + FineTimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(FineTimeSinceGpsEpoch); + break; + } + case 48: { + Rssi = input.ReadInt32(); + break; + } + case 61: { + Snr = input.ReadFloat(); + break; + } + case 64: { + Channel = input.ReadUInt32(); + break; + } + case 72: { + RfChain = input.ReadUInt32(); + break; + } + case 80: { + Board = input.ReadUInt32(); + break; + } + case 88: { + Antenna = input.ReadUInt32(); + break; + } + case 98: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 106: { + Context = input.ReadBytes(); + break; + } + case 122: { + metadata_.AddEntriesFrom(input, _map_metadata_codec); + break; + } + case 128: { + CrcStatus = (global::Chirpstack.Gateway.CRCStatus) 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: { + GatewayId = input.ReadString(); + break; + } + case 16: { + UplinkId = input.ReadUInt32(); + break; + } + case 26: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 34: { + if (timeSinceGpsEpoch_ == null) { + TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(TimeSinceGpsEpoch); + break; + } + case 42: { + if (fineTimeSinceGpsEpoch_ == null) { + FineTimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(FineTimeSinceGpsEpoch); + break; + } + case 48: { + Rssi = input.ReadInt32(); + break; + } + case 61: { + Snr = input.ReadFloat(); + break; + } + case 64: { + Channel = input.ReadUInt32(); + break; + } + case 72: { + RfChain = input.ReadUInt32(); + break; + } + case 80: { + Board = input.ReadUInt32(); + break; + } + case 88: { + Antenna = input.ReadUInt32(); + break; + } + case 98: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 106: { + Context = input.ReadBytes(); + break; + } + case 122: { + metadata_.AddEntriesFrom(ref input, _map_metadata_codec); + break; + } + case 128: { + CrcStatus = (global::Chirpstack.Gateway.CRCStatus) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DownlinkTxInfoLegacy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkTxInfoLegacy()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkTxInfoLegacy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkTxInfoLegacy(DownlinkTxInfoLegacy other) : this() { + gatewayId_ = other.gatewayId_; + frequency_ = other.frequency_; + power_ = other.power_; + modulation_ = other.modulation_; + board_ = other.board_; + antenna_ = other.antenna_; + timing_ = other.timing_; + context_ = other.context_; + switch (other.ModulationInfoCase) { + case ModulationInfoOneofCase.LoraModulationInfo: + LoraModulationInfo = other.LoraModulationInfo.Clone(); + break; + case ModulationInfoOneofCase.FskModulationInfo: + FskModulationInfo = other.FskModulationInfo.Clone(); + break; + } + + switch (other.TimingInfoCase) { + case TimingInfoOneofCase.ImmediatelyTimingInfo: + ImmediatelyTimingInfo = other.ImmediatelyTimingInfo.Clone(); + break; + case TimingInfoOneofCase.DelayTimingInfo: + DelayTimingInfo = other.DelayTimingInfo.Clone(); + break; + case TimingInfoOneofCase.GpsEpochTimingInfo: + GpsEpochTimingInfo = other.GpsEpochTimingInfo.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkTxInfoLegacy Clone() { + return new DownlinkTxInfoLegacy(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + private pb::ByteString gatewayId_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// Deprecated: replaced by gateway_id in DownlinkFrame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString GatewayId { + get { return gatewayId_; } + set { + gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "frequency" field. + public const int FrequencyFieldNumber = 5; + private uint frequency_; + /// + /// TX frequency (in Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Frequency { + get { return frequency_; } + set { + frequency_ = value; + } + } + + /// Field number for the "power" field. + public const int PowerFieldNumber = 6; + private int power_; + /// + /// TX power (in dBm). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Power { + get { return power_; } + set { + power_ = value; + } + } + + /// Field number for the "modulation" field. + public const int ModulationFieldNumber = 7; + private global::Chirpstack.Common.Modulation modulation_ = global::Chirpstack.Common.Modulation.Lora; + /// + /// Modulation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Modulation Modulation { + get { return modulation_; } + set { + modulation_ = value; + } + } + + /// Field number for the "lora_modulation_info" field. + public const int LoraModulationInfoFieldNumber = 8; + /// + /// LoRa modulation information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.LoraModulationInfo LoraModulationInfo { + get { return modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo ? (global::Chirpstack.Gateway.LoraModulationInfo) modulationInfo_ : null; } + set { + modulationInfo_ = value; + modulationInfoCase_ = value == null ? ModulationInfoOneofCase.None : ModulationInfoOneofCase.LoraModulationInfo; + } + } + + /// Field number for the "fsk_modulation_info" field. + public const int FskModulationInfoFieldNumber = 9; + /// + /// FSK modulation information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.FskModulationInfo FskModulationInfo { + get { return modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo ? (global::Chirpstack.Gateway.FskModulationInfo) modulationInfo_ : null; } + set { + modulationInfo_ = value; + modulationInfoCase_ = value == null ? ModulationInfoOneofCase.None : ModulationInfoOneofCase.FskModulationInfo; + } + } + + /// Field number for the "board" field. + public const int BoardFieldNumber = 10; + private uint board_; + /// + /// The board identifier for emitting the frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Board { + get { return board_; } + set { + board_ = value; + } + } + + /// Field number for the "antenna" field. + public const int AntennaFieldNumber = 11; + private uint antenna_; + /// + /// The antenna identifier for emitting the frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Antenna { + get { return antenna_; } + set { + antenna_ = value; + } + } + + /// Field number for the "timing" field. + public const int TimingFieldNumber = 12; + private global::Chirpstack.Gateway.DownlinkTiming timing_ = global::Chirpstack.Gateway.DownlinkTiming.Immediately; + /// + /// Timing defines the downlink timing to use. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.DownlinkTiming Timing { + get { return timing_; } + set { + timing_ = value; + } + } + + /// Field number for the "immediately_timing_info" field. + public const int ImmediatelyTimingInfoFieldNumber = 13; + /// + /// Immediately timing information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.ImmediatelyTimingInfo ImmediatelyTimingInfo { + get { return timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo ? (global::Chirpstack.Gateway.ImmediatelyTimingInfo) timingInfo_ : null; } + set { + timingInfo_ = value; + timingInfoCase_ = value == null ? TimingInfoOneofCase.None : TimingInfoOneofCase.ImmediatelyTimingInfo; + } + } + + /// Field number for the "delay_timing_info" field. + public const int DelayTimingInfoFieldNumber = 14; + /// + /// Context based delay timing information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.DelayTimingInfo DelayTimingInfo { + get { return timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo ? (global::Chirpstack.Gateway.DelayTimingInfo) timingInfo_ : null; } + set { + timingInfo_ = value; + timingInfoCase_ = value == null ? TimingInfoOneofCase.None : TimingInfoOneofCase.DelayTimingInfo; + } + } + + /// Field number for the "gps_epoch_timing_info" field. + public const int GpsEpochTimingInfoFieldNumber = 15; + /// + /// GPS Epoch timing information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.GPSEpochTimingInfo GpsEpochTimingInfo { + get { return timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo ? (global::Chirpstack.Gateway.GPSEpochTimingInfo) timingInfo_ : null; } + set { + timingInfo_ = value; + timingInfoCase_ = value == null ? TimingInfoOneofCase.None : TimingInfoOneofCase.GpsEpochTimingInfo; + } + } + + /// Field number for the "context" field. + public const int ContextFieldNumber = 16; + private pb::ByteString context_ = pb::ByteString.Empty; + /// + /// Gateway specific context. + /// In case of a Class-A downlink, this contains a copy of the uplink context. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Context { + get { return context_; } + set { + context_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + private object modulationInfo_; + /// Enum of possible cases for the "modulation_info" oneof. + public enum ModulationInfoOneofCase { + None = 0, + LoraModulationInfo = 8, + FskModulationInfo = 9, + } + private ModulationInfoOneofCase modulationInfoCase_ = ModulationInfoOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModulationInfoOneofCase ModulationInfoCase { + get { return modulationInfoCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearModulationInfo() { + modulationInfoCase_ = ModulationInfoOneofCase.None; + modulationInfo_ = null; + } + + private object timingInfo_; + /// Enum of possible cases for the "timing_info" oneof. + public enum TimingInfoOneofCase { + None = 0, + ImmediatelyTimingInfo = 13, + DelayTimingInfo = 14, + GpsEpochTimingInfo = 15, + } + private TimingInfoOneofCase timingInfoCase_ = TimingInfoOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimingInfoOneofCase TimingInfoCase { + get { return timingInfoCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTimingInfo() { + timingInfoCase_ = TimingInfoOneofCase.None; + timingInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DownlinkTxInfoLegacy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DownlinkTxInfoLegacy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) return false; + if (Frequency != other.Frequency) return false; + if (Power != other.Power) return false; + if (Modulation != other.Modulation) return false; + if (!object.Equals(LoraModulationInfo, other.LoraModulationInfo)) return false; + if (!object.Equals(FskModulationInfo, other.FskModulationInfo)) return false; + if (Board != other.Board) return false; + if (Antenna != other.Antenna) return false; + if (Timing != other.Timing) return false; + if (!object.Equals(ImmediatelyTimingInfo, other.ImmediatelyTimingInfo)) return false; + if (!object.Equals(DelayTimingInfo, other.DelayTimingInfo)) return false; + if (!object.Equals(GpsEpochTimingInfo, other.GpsEpochTimingInfo)) return false; + if (Context != other.Context) return false; + if (ModulationInfoCase != other.ModulationInfoCase) return false; + if (TimingInfoCase != other.TimingInfoCase) 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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (Power != 0) hash ^= Power.GetHashCode(); + if (Modulation != global::Chirpstack.Common.Modulation.Lora) hash ^= Modulation.GetHashCode(); + if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) hash ^= LoraModulationInfo.GetHashCode(); + if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) hash ^= FskModulationInfo.GetHashCode(); + if (Board != 0) hash ^= Board.GetHashCode(); + if (Antenna != 0) hash ^= Antenna.GetHashCode(); + if (Timing != global::Chirpstack.Gateway.DownlinkTiming.Immediately) hash ^= Timing.GetHashCode(); + if (timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo) hash ^= ImmediatelyTimingInfo.GetHashCode(); + if (timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo) hash ^= DelayTimingInfo.GetHashCode(); + if (timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo) hash ^= GpsEpochTimingInfo.GetHashCode(); + if (Context.Length != 0) hash ^= Context.GetHashCode(); + hash ^= (int) modulationInfoCase_; + hash ^= (int) timingInfoCase_; + 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (Frequency != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Frequency); + } + if (Power != 0) { + output.WriteRawTag(48); + output.WriteInt32(Power); + } + if (Modulation != global::Chirpstack.Common.Modulation.Lora) { + output.WriteRawTag(56); + output.WriteEnum((int) Modulation); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { + output.WriteRawTag(66); + output.WriteMessage(LoraModulationInfo); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { + output.WriteRawTag(74); + output.WriteMessage(FskModulationInfo); + } + if (Board != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Board); + } + if (Antenna != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Antenna); + } + if (Timing != global::Chirpstack.Gateway.DownlinkTiming.Immediately) { + output.WriteRawTag(96); + output.WriteEnum((int) Timing); + } + if (timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo) { + output.WriteRawTag(106); + output.WriteMessage(ImmediatelyTimingInfo); + } + if (timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo) { + output.WriteRawTag(114); + output.WriteMessage(DelayTimingInfo); + } + if (timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo) { + output.WriteRawTag(122); + output.WriteMessage(GpsEpochTimingInfo); + } + if (Context.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteBytes(Context); + } + 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (Frequency != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Frequency); + } + if (Power != 0) { + output.WriteRawTag(48); + output.WriteInt32(Power); + } + if (Modulation != global::Chirpstack.Common.Modulation.Lora) { + output.WriteRawTag(56); + output.WriteEnum((int) Modulation); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { + output.WriteRawTag(66); + output.WriteMessage(LoraModulationInfo); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { + output.WriteRawTag(74); + output.WriteMessage(FskModulationInfo); + } + if (Board != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Board); + } + if (Antenna != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Antenna); + } + if (Timing != global::Chirpstack.Gateway.DownlinkTiming.Immediately) { + output.WriteRawTag(96); + output.WriteEnum((int) Timing); + } + if (timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo) { + output.WriteRawTag(106); + output.WriteMessage(ImmediatelyTimingInfo); + } + if (timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo) { + output.WriteRawTag(114); + output.WriteMessage(DelayTimingInfo); + } + if (timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo) { + output.WriteRawTag(122); + output.WriteMessage(GpsEpochTimingInfo); + } + if (Context.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteBytes(Context); + } + 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 (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayId); + } + if (Frequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); + } + if (Power != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Power); + } + if (Modulation != global::Chirpstack.Common.Modulation.Lora) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Modulation); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoraModulationInfo); + } + if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FskModulationInfo); + } + if (Board != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Board); + } + if (Antenna != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Antenna); + } + if (Timing != global::Chirpstack.Gateway.DownlinkTiming.Immediately) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Timing); + } + if (timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ImmediatelyTimingInfo); + } + if (timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelayTimingInfo); + } + if (timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GpsEpochTimingInfo); + } + if (Context.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeBytesSize(Context); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DownlinkTxInfoLegacy other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.Power != 0) { + Power = other.Power; + } + if (other.Modulation != global::Chirpstack.Common.Modulation.Lora) { + Modulation = other.Modulation; + } + if (other.Board != 0) { + Board = other.Board; + } + if (other.Antenna != 0) { + Antenna = other.Antenna; + } + if (other.Timing != global::Chirpstack.Gateway.DownlinkTiming.Immediately) { + Timing = other.Timing; + } + if (other.Context.Length != 0) { + Context = other.Context; + } + switch (other.ModulationInfoCase) { + case ModulationInfoOneofCase.LoraModulationInfo: + if (LoraModulationInfo == null) { + LoraModulationInfo = new global::Chirpstack.Gateway.LoraModulationInfo(); + } + LoraModulationInfo.MergeFrom(other.LoraModulationInfo); + break; + case ModulationInfoOneofCase.FskModulationInfo: + if (FskModulationInfo == null) { + FskModulationInfo = new global::Chirpstack.Gateway.FskModulationInfo(); + } + FskModulationInfo.MergeFrom(other.FskModulationInfo); + break; + } + + switch (other.TimingInfoCase) { + case TimingInfoOneofCase.ImmediatelyTimingInfo: + if (ImmediatelyTimingInfo == null) { + ImmediatelyTimingInfo = new global::Chirpstack.Gateway.ImmediatelyTimingInfo(); + } + ImmediatelyTimingInfo.MergeFrom(other.ImmediatelyTimingInfo); + break; + case TimingInfoOneofCase.DelayTimingInfo: + if (DelayTimingInfo == null) { + DelayTimingInfo = new global::Chirpstack.Gateway.DelayTimingInfo(); + } + DelayTimingInfo.MergeFrom(other.DelayTimingInfo); + break; + case TimingInfoOneofCase.GpsEpochTimingInfo: + if (GpsEpochTimingInfo == null) { + GpsEpochTimingInfo = new global::Chirpstack.Gateway.GPSEpochTimingInfo(); + } + GpsEpochTimingInfo.MergeFrom(other.GpsEpochTimingInfo); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + GatewayId = input.ReadBytes(); + break; + } + case 40: { + Frequency = input.ReadUInt32(); + break; + } + case 48: { + Power = input.ReadInt32(); + break; + } + case 56: { + Modulation = (global::Chirpstack.Common.Modulation) input.ReadEnum(); + break; + } + case 66: { + global::Chirpstack.Gateway.LoraModulationInfo subBuilder = new global::Chirpstack.Gateway.LoraModulationInfo(); + if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { + subBuilder.MergeFrom(LoraModulationInfo); + } + input.ReadMessage(subBuilder); + LoraModulationInfo = subBuilder; + break; + } + case 74: { + global::Chirpstack.Gateway.FskModulationInfo subBuilder = new global::Chirpstack.Gateway.FskModulationInfo(); + if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { + subBuilder.MergeFrom(FskModulationInfo); + } + input.ReadMessage(subBuilder); + FskModulationInfo = subBuilder; + break; + } + case 80: { + Board = input.ReadUInt32(); + break; + } + case 88: { + Antenna = input.ReadUInt32(); + break; + } + case 96: { + Timing = (global::Chirpstack.Gateway.DownlinkTiming) input.ReadEnum(); + break; + } + case 106: { + global::Chirpstack.Gateway.ImmediatelyTimingInfo subBuilder = new global::Chirpstack.Gateway.ImmediatelyTimingInfo(); + if (timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo) { + subBuilder.MergeFrom(ImmediatelyTimingInfo); + } + input.ReadMessage(subBuilder); + ImmediatelyTimingInfo = subBuilder; + break; + } + case 114: { + global::Chirpstack.Gateway.DelayTimingInfo subBuilder = new global::Chirpstack.Gateway.DelayTimingInfo(); + if (timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo) { + subBuilder.MergeFrom(DelayTimingInfo); + } + input.ReadMessage(subBuilder); + DelayTimingInfo = subBuilder; + break; + } + case 122: { + global::Chirpstack.Gateway.GPSEpochTimingInfo subBuilder = new global::Chirpstack.Gateway.GPSEpochTimingInfo(); + if (timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo) { + subBuilder.MergeFrom(GpsEpochTimingInfo); + } + input.ReadMessage(subBuilder); + GpsEpochTimingInfo = subBuilder; + break; + } + case 130: { + Context = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + GatewayId = input.ReadBytes(); + break; + } + case 40: { + Frequency = input.ReadUInt32(); + break; + } + case 48: { + Power = input.ReadInt32(); + break; + } + case 56: { + Modulation = (global::Chirpstack.Common.Modulation) input.ReadEnum(); + break; + } + case 66: { + global::Chirpstack.Gateway.LoraModulationInfo subBuilder = new global::Chirpstack.Gateway.LoraModulationInfo(); + if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { + subBuilder.MergeFrom(LoraModulationInfo); + } + input.ReadMessage(subBuilder); + LoraModulationInfo = subBuilder; + break; + } + case 74: { + global::Chirpstack.Gateway.FskModulationInfo subBuilder = new global::Chirpstack.Gateway.FskModulationInfo(); + if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { + subBuilder.MergeFrom(FskModulationInfo); + } + input.ReadMessage(subBuilder); + FskModulationInfo = subBuilder; + break; + } + case 80: { + Board = input.ReadUInt32(); + break; + } + case 88: { + Antenna = input.ReadUInt32(); + break; + } + case 96: { + Timing = (global::Chirpstack.Gateway.DownlinkTiming) input.ReadEnum(); + break; + } + case 106: { + global::Chirpstack.Gateway.ImmediatelyTimingInfo subBuilder = new global::Chirpstack.Gateway.ImmediatelyTimingInfo(); + if (timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo) { + subBuilder.MergeFrom(ImmediatelyTimingInfo); + } + input.ReadMessage(subBuilder); + ImmediatelyTimingInfo = subBuilder; + break; + } + case 114: { + global::Chirpstack.Gateway.DelayTimingInfo subBuilder = new global::Chirpstack.Gateway.DelayTimingInfo(); + if (timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo) { + subBuilder.MergeFrom(DelayTimingInfo); + } + input.ReadMessage(subBuilder); + DelayTimingInfo = subBuilder; + break; + } + case 122: { + global::Chirpstack.Gateway.GPSEpochTimingInfo subBuilder = new global::Chirpstack.Gateway.GPSEpochTimingInfo(); + if (timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo) { + subBuilder.MergeFrom(GpsEpochTimingInfo); + } + input.ReadMessage(subBuilder); + GpsEpochTimingInfo = subBuilder; + break; + } + case 130: { + Context = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DownlinkTxInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkTxInfo()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkTxInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkTxInfo(DownlinkTxInfo other) : this() { + frequency_ = other.frequency_; + power_ = other.power_; + modulation_ = other.modulation_ != null ? other.modulation_.Clone() : null; + board_ = other.board_; + antenna_ = other.antenna_; + timing_ = other.timing_ != null ? other.timing_.Clone() : null; + context_ = other.context_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkTxInfo Clone() { + return new DownlinkTxInfo(this); + } + + /// Field number for the "frequency" field. + public const int FrequencyFieldNumber = 1; + private uint frequency_; + /// + /// TX frequency (in Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Frequency { + get { return frequency_; } + set { + frequency_ = value; + } + } + + /// Field number for the "power" field. + public const int PowerFieldNumber = 2; + private int power_; + /// + /// TX power (in dBm). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Power { + get { return power_; } + set { + power_ = value; + } + } + + /// Field number for the "modulation" field. + public const int ModulationFieldNumber = 3; + private global::Chirpstack.Gateway.Modulation modulation_; + /// + /// Modulation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.Modulation Modulation { + get { return modulation_; } + set { + modulation_ = value; + } + } + + /// Field number for the "board" field. + public const int BoardFieldNumber = 4; + private uint board_; + /// + /// The board identifier for emitting the frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Board { + get { return board_; } + set { + board_ = value; + } + } + + /// Field number for the "antenna" field. + public const int AntennaFieldNumber = 5; + private uint antenna_; + /// + /// The antenna identifier for emitting the frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Antenna { + get { return antenna_; } + set { + antenna_ = value; + } + } + + /// Field number for the "timing" field. + public const int TimingFieldNumber = 6; + private global::Chirpstack.Gateway.Timing timing_; + /// + /// Timing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.Timing Timing { + get { return timing_; } + set { + timing_ = value; + } + } + + /// Field number for the "context" field. + public const int ContextFieldNumber = 7; + private pb::ByteString context_ = pb::ByteString.Empty; + /// + /// Gateway specific context. + /// In case of a Class-A downlink, this contains a copy of the uplink context. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Context { + get { return context_; } + set { + context_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DownlinkTxInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DownlinkTxInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Frequency != other.Frequency) return false; + if (Power != other.Power) return false; + if (!object.Equals(Modulation, other.Modulation)) return false; + if (Board != other.Board) return false; + if (Antenna != other.Antenna) return false; + if (!object.Equals(Timing, other.Timing)) return false; + if (Context != 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 (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (Power != 0) hash ^= Power.GetHashCode(); + if (modulation_ != null) hash ^= Modulation.GetHashCode(); + if (Board != 0) hash ^= Board.GetHashCode(); + if (Antenna != 0) hash ^= Antenna.GetHashCode(); + if (timing_ != null) hash ^= Timing.GetHashCode(); + if (Context.Length != 0) 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 (Frequency != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Frequency); + } + if (Power != 0) { + output.WriteRawTag(16); + output.WriteInt32(Power); + } + if (modulation_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Modulation); + } + if (Board != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Board); + } + if (Antenna != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Antenna); + } + if (timing_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Timing); + } + if (Context.Length != 0) { + output.WriteRawTag(58); + output.WriteBytes(Context); + } + 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 (Frequency != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Frequency); + } + if (Power != 0) { + output.WriteRawTag(16); + output.WriteInt32(Power); + } + if (modulation_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Modulation); + } + if (Board != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Board); + } + if (Antenna != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Antenna); + } + if (timing_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Timing); + } + if (Context.Length != 0) { + output.WriteRawTag(58); + output.WriteBytes(Context); + } + 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 (Frequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); + } + if (Power != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Power); + } + if (modulation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Modulation); + } + if (Board != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Board); + } + if (Antenna != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Antenna); + } + if (timing_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Timing); + } + if (Context.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Context); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DownlinkTxInfo other) { + if (other == null) { + return; + } + if (other.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.Power != 0) { + Power = other.Power; + } + if (other.modulation_ != null) { + if (modulation_ == null) { + Modulation = new global::Chirpstack.Gateway.Modulation(); + } + Modulation.MergeFrom(other.Modulation); + } + if (other.Board != 0) { + Board = other.Board; + } + if (other.Antenna != 0) { + Antenna = other.Antenna; + } + if (other.timing_ != null) { + if (timing_ == null) { + Timing = new global::Chirpstack.Gateway.Timing(); + } + Timing.MergeFrom(other.Timing); + } + if (other.Context.Length != 0) { + Context = 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 8: { + Frequency = input.ReadUInt32(); + break; + } + case 16: { + Power = input.ReadInt32(); + break; + } + case 26: { + if (modulation_ == null) { + Modulation = new global::Chirpstack.Gateway.Modulation(); + } + input.ReadMessage(Modulation); + break; + } + case 32: { + Board = input.ReadUInt32(); + break; + } + case 40: { + Antenna = input.ReadUInt32(); + break; + } + case 50: { + if (timing_ == null) { + Timing = new global::Chirpstack.Gateway.Timing(); + } + input.ReadMessage(Timing); + break; + } + case 58: { + Context = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Frequency = input.ReadUInt32(); + break; + } + case 16: { + Power = input.ReadInt32(); + break; + } + case 26: { + if (modulation_ == null) { + Modulation = new global::Chirpstack.Gateway.Modulation(); + } + input.ReadMessage(Modulation); + break; + } + case 32: { + Board = input.ReadUInt32(); + break; + } + case 40: { + Antenna = input.ReadUInt32(); + break; + } + case 50: { + if (timing_ == null) { + Timing = new global::Chirpstack.Gateway.Timing(); + } + input.ReadMessage(Timing); + break; + } + case 58: { + Context = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Timing : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Timing()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Timing() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Timing(Timing other) : this() { + switch (other.ParametersCase) { + case ParametersOneofCase.Immediately: + Immediately = other.Immediately.Clone(); + break; + case ParametersOneofCase.Delay: + Delay = other.Delay.Clone(); + break; + case ParametersOneofCase.GpsEpoch: + GpsEpoch = other.GpsEpoch.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Timing Clone() { + return new Timing(this); + } + + /// Field number for the "immediately" field. + public const int ImmediatelyFieldNumber = 1; + /// + /// Immediately timing information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.ImmediatelyTimingInfo Immediately { + get { return parametersCase_ == ParametersOneofCase.Immediately ? (global::Chirpstack.Gateway.ImmediatelyTimingInfo) parameters_ : null; } + set { + parameters_ = value; + parametersCase_ = value == null ? ParametersOneofCase.None : ParametersOneofCase.Immediately; + } + } + + /// Field number for the "delay" field. + public const int DelayFieldNumber = 2; + /// + /// Context based delay timing information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.DelayTimingInfo Delay { + get { return parametersCase_ == ParametersOneofCase.Delay ? (global::Chirpstack.Gateway.DelayTimingInfo) parameters_ : null; } + set { + parameters_ = value; + parametersCase_ = value == null ? ParametersOneofCase.None : ParametersOneofCase.Delay; + } + } + + /// Field number for the "gps_epoch" field. + public const int GpsEpochFieldNumber = 3; + /// + /// GPS Epoch timing information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.GPSEpochTimingInfo GpsEpoch { + get { return parametersCase_ == ParametersOneofCase.GpsEpoch ? (global::Chirpstack.Gateway.GPSEpochTimingInfo) parameters_ : null; } + set { + parameters_ = value; + parametersCase_ = value == null ? ParametersOneofCase.None : ParametersOneofCase.GpsEpoch; + } + } + + private object parameters_; + /// Enum of possible cases for the "parameters" oneof. + public enum ParametersOneofCase { + None = 0, + Immediately = 1, + Delay = 2, + GpsEpoch = 3, + } + private ParametersOneofCase parametersCase_ = ParametersOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ParametersOneofCase ParametersCase { + get { return parametersCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParameters() { + parametersCase_ = ParametersOneofCase.None; + parameters_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Timing); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Timing other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Immediately, other.Immediately)) return false; + if (!object.Equals(Delay, other.Delay)) return false; + if (!object.Equals(GpsEpoch, other.GpsEpoch)) return false; + if (ParametersCase != other.ParametersCase) 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 (parametersCase_ == ParametersOneofCase.Immediately) hash ^= Immediately.GetHashCode(); + if (parametersCase_ == ParametersOneofCase.Delay) hash ^= Delay.GetHashCode(); + if (parametersCase_ == ParametersOneofCase.GpsEpoch) hash ^= GpsEpoch.GetHashCode(); + hash ^= (int) parametersCase_; + 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 (parametersCase_ == ParametersOneofCase.Immediately) { + output.WriteRawTag(10); + output.WriteMessage(Immediately); + } + if (parametersCase_ == ParametersOneofCase.Delay) { + output.WriteRawTag(18); + output.WriteMessage(Delay); + } + if (parametersCase_ == ParametersOneofCase.GpsEpoch) { + output.WriteRawTag(26); + output.WriteMessage(GpsEpoch); + } + 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 (parametersCase_ == ParametersOneofCase.Immediately) { + output.WriteRawTag(10); + output.WriteMessage(Immediately); + } + if (parametersCase_ == ParametersOneofCase.Delay) { + output.WriteRawTag(18); + output.WriteMessage(Delay); + } + if (parametersCase_ == ParametersOneofCase.GpsEpoch) { + output.WriteRawTag(26); + output.WriteMessage(GpsEpoch); + } + 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 (parametersCase_ == ParametersOneofCase.Immediately) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Immediately); + } + if (parametersCase_ == ParametersOneofCase.Delay) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delay); + } + if (parametersCase_ == ParametersOneofCase.GpsEpoch) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GpsEpoch); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Timing other) { + if (other == null) { + return; + } + switch (other.ParametersCase) { + case ParametersOneofCase.Immediately: + if (Immediately == null) { + Immediately = new global::Chirpstack.Gateway.ImmediatelyTimingInfo(); + } + Immediately.MergeFrom(other.Immediately); + break; + case ParametersOneofCase.Delay: + if (Delay == null) { + Delay = new global::Chirpstack.Gateway.DelayTimingInfo(); + } + Delay.MergeFrom(other.Delay); + break; + case ParametersOneofCase.GpsEpoch: + if (GpsEpoch == null) { + GpsEpoch = new global::Chirpstack.Gateway.GPSEpochTimingInfo(); + } + GpsEpoch.MergeFrom(other.GpsEpoch); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Chirpstack.Gateway.ImmediatelyTimingInfo subBuilder = new global::Chirpstack.Gateway.ImmediatelyTimingInfo(); + if (parametersCase_ == ParametersOneofCase.Immediately) { + subBuilder.MergeFrom(Immediately); + } + input.ReadMessage(subBuilder); + Immediately = subBuilder; + break; + } + case 18: { + global::Chirpstack.Gateway.DelayTimingInfo subBuilder = new global::Chirpstack.Gateway.DelayTimingInfo(); + if (parametersCase_ == ParametersOneofCase.Delay) { + subBuilder.MergeFrom(Delay); + } + input.ReadMessage(subBuilder); + Delay = subBuilder; + break; + } + case 26: { + global::Chirpstack.Gateway.GPSEpochTimingInfo subBuilder = new global::Chirpstack.Gateway.GPSEpochTimingInfo(); + if (parametersCase_ == ParametersOneofCase.GpsEpoch) { + subBuilder.MergeFrom(GpsEpoch); + } + input.ReadMessage(subBuilder); + GpsEpoch = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Chirpstack.Gateway.ImmediatelyTimingInfo subBuilder = new global::Chirpstack.Gateway.ImmediatelyTimingInfo(); + if (parametersCase_ == ParametersOneofCase.Immediately) { + subBuilder.MergeFrom(Immediately); + } + input.ReadMessage(subBuilder); + Immediately = subBuilder; + break; + } + case 18: { + global::Chirpstack.Gateway.DelayTimingInfo subBuilder = new global::Chirpstack.Gateway.DelayTimingInfo(); + if (parametersCase_ == ParametersOneofCase.Delay) { + subBuilder.MergeFrom(Delay); + } + input.ReadMessage(subBuilder); + Delay = subBuilder; + break; + } + case 26: { + global::Chirpstack.Gateway.GPSEpochTimingInfo subBuilder = new global::Chirpstack.Gateway.GPSEpochTimingInfo(); + if (parametersCase_ == ParametersOneofCase.GpsEpoch) { + subBuilder.MergeFrom(GpsEpoch); + } + input.ReadMessage(subBuilder); + GpsEpoch = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// Not implemented yet. + /// + public sealed partial class ImmediatelyTimingInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImmediatelyTimingInfo()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[15]; } + } + + [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 ImmediatelyTimingInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ImmediatelyTimingInfo(ImmediatelyTimingInfo other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ImmediatelyTimingInfo Clone() { + return new ImmediatelyTimingInfo(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ImmediatelyTimingInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ImmediatelyTimingInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ImmediatelyTimingInfo other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class DelayTimingInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DelayTimingInfo()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[16]; } + } + + [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 DelayTimingInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelayTimingInfo(DelayTimingInfo other) : this() { + delay_ = other.delay_ != null ? other.delay_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelayTimingInfo Clone() { + return new DelayTimingInfo(this); + } + + /// Field number for the "delay" field. + public const int DelayFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration delay_; + /// + /// Delay (duration). + /// The delay will be added to the gateway internal timing, provided by the context object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration Delay { + get { return delay_; } + set { + delay_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DelayTimingInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DelayTimingInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Delay, other.Delay)) 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 (delay_ != null) hash ^= Delay.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 (delay_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delay); + } + 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 (delay_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delay); + } + 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 (delay_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delay); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DelayTimingInfo other) { + if (other == null) { + return; + } + if (other.delay_ != null) { + if (delay_ == null) { + Delay = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + Delay.MergeFrom(other.Delay); + } + _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 (delay_ == null) { + Delay = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Delay); + 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 (delay_ == null) { + Delay = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Delay); + break; + } + } + } + } + #endif + + } + + public sealed partial class GPSEpochTimingInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GPSEpochTimingInfo()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[17]; } + } + + [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 GPSEpochTimingInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GPSEpochTimingInfo(GPSEpochTimingInfo other) : this() { + timeSinceGpsEpoch_ = other.timeSinceGpsEpoch_ != null ? other.timeSinceGpsEpoch_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GPSEpochTimingInfo Clone() { + return new GPSEpochTimingInfo(this); + } + + /// Field number for the "time_since_gps_epoch" field. + public const int TimeSinceGpsEpochFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration timeSinceGpsEpoch_; + /// + /// Duration since GPS Epoch. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration TimeSinceGpsEpoch { + get { return timeSinceGpsEpoch_; } + set { + timeSinceGpsEpoch_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GPSEpochTimingInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GPSEpochTimingInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TimeSinceGpsEpoch, other.TimeSinceGpsEpoch)) 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 (timeSinceGpsEpoch_ != null) hash ^= TimeSinceGpsEpoch.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 (timeSinceGpsEpoch_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TimeSinceGpsEpoch); + } + 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 (timeSinceGpsEpoch_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TimeSinceGpsEpoch); + } + 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 (timeSinceGpsEpoch_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeSinceGpsEpoch); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GPSEpochTimingInfo other) { + if (other == null) { + return; + } + if (other.timeSinceGpsEpoch_ != null) { + if (timeSinceGpsEpoch_ == null) { + TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + TimeSinceGpsEpoch.MergeFrom(other.TimeSinceGpsEpoch); + } + _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 (timeSinceGpsEpoch_ == null) { + TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(TimeSinceGpsEpoch); + 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 (timeSinceGpsEpoch_ == null) { + TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(TimeSinceGpsEpoch); + break; + } + } + } + } + #endif + + } + + public sealed partial class UplinkFrame : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkFrame()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[18]; } + } + + [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 UplinkFrame() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkFrame(UplinkFrame other) : this() { + phyPayload_ = other.phyPayload_; + txInfoLegacy_ = other.txInfoLegacy_ != null ? other.txInfoLegacy_.Clone() : null; + rxInfoLegacy_ = other.rxInfoLegacy_ != null ? other.rxInfoLegacy_.Clone() : null; + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + rxInfo_ = other.rxInfo_ != null ? other.rxInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkFrame Clone() { + return new UplinkFrame(this); + } + + /// Field number for the "phy_payload" field. + public const int PhyPayloadFieldNumber = 1; + private pb::ByteString phyPayload_ = pb::ByteString.Empty; + /// + /// PHYPayload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString PhyPayload { + get { return phyPayload_; } + set { + phyPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tx_info_legacy" field. + public const int TxInfoLegacyFieldNumber = 2; + private global::Chirpstack.Gateway.UplinkTxInfoLegacy txInfoLegacy_; + /// + /// TX meta-data (deprecated). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.UplinkTxInfoLegacy TxInfoLegacy { + get { return txInfoLegacy_; } + set { + txInfoLegacy_ = value; + } + } + + /// Field number for the "rx_info_legacy" field. + public const int RxInfoLegacyFieldNumber = 3; + private global::Chirpstack.Gateway.UplinkRxInfoLegacy rxInfoLegacy_; + /// + /// RX meta-data (deprecated). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.UplinkRxInfoLegacy RxInfoLegacy { + get { return rxInfoLegacy_; } + set { + rxInfoLegacy_ = value; + } + } + + /// Field number for the "tx_info" field. + public const int TxInfoFieldNumber = 4; + private global::Chirpstack.Gateway.UplinkTxInfo txInfo_; + /// + /// Tx meta-data. + /// + [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 "rx_info" field. + public const int RxInfoFieldNumber = 5; + private global::Chirpstack.Gateway.UplinkRxInfo rxInfo_; + /// + /// Rx meta-data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.UplinkRxInfo RxInfo { + get { return rxInfo_; } + set { + rxInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UplinkFrame); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UplinkFrame other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PhyPayload != other.PhyPayload) return false; + if (!object.Equals(TxInfoLegacy, other.TxInfoLegacy)) return false; + if (!object.Equals(RxInfoLegacy, other.RxInfoLegacy)) return false; + if (!object.Equals(TxInfo, other.TxInfo)) return false; + if (!object.Equals(RxInfo, other.RxInfo)) 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 (PhyPayload.Length != 0) hash ^= PhyPayload.GetHashCode(); + if (txInfoLegacy_ != null) hash ^= TxInfoLegacy.GetHashCode(); + if (rxInfoLegacy_ != null) hash ^= RxInfoLegacy.GetHashCode(); + if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); + if (rxInfo_ != null) hash ^= RxInfo.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 (PhyPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(PhyPayload); + } + if (txInfoLegacy_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfoLegacy); + } + if (rxInfoLegacy_ != null) { + output.WriteRawTag(26); + output.WriteMessage(RxInfoLegacy); + } + if (txInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(TxInfo); + } + if (rxInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(RxInfo); + } + 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 (PhyPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(PhyPayload); + } + if (txInfoLegacy_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfoLegacy); + } + if (rxInfoLegacy_ != null) { + output.WriteRawTag(26); + output.WriteMessage(RxInfoLegacy); + } + if (txInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(TxInfo); + } + if (rxInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(RxInfo); + } + 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 (PhyPayload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(PhyPayload); + } + if (txInfoLegacy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfoLegacy); + } + if (rxInfoLegacy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxInfoLegacy); + } + if (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + if (rxInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UplinkFrame other) { + if (other == null) { + return; + } + if (other.PhyPayload.Length != 0) { + PhyPayload = other.PhyPayload; + } + if (other.txInfoLegacy_ != null) { + if (txInfoLegacy_ == null) { + TxInfoLegacy = new global::Chirpstack.Gateway.UplinkTxInfoLegacy(); + } + TxInfoLegacy.MergeFrom(other.TxInfoLegacy); + } + if (other.rxInfoLegacy_ != null) { + if (rxInfoLegacy_ == null) { + RxInfoLegacy = new global::Chirpstack.Gateway.UplinkRxInfoLegacy(); + } + RxInfoLegacy.MergeFrom(other.RxInfoLegacy); + } + if (other.txInfo_ != null) { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); + } + TxInfo.MergeFrom(other.TxInfo); + } + if (other.rxInfo_ != null) { + if (rxInfo_ == null) { + RxInfo = new global::Chirpstack.Gateway.UplinkRxInfo(); + } + RxInfo.MergeFrom(other.RxInfo); + } + _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: { + PhyPayload = input.ReadBytes(); + break; + } + case 18: { + if (txInfoLegacy_ == null) { + TxInfoLegacy = new global::Chirpstack.Gateway.UplinkTxInfoLegacy(); + } + input.ReadMessage(TxInfoLegacy); + break; + } + case 26: { + if (rxInfoLegacy_ == null) { + RxInfoLegacy = new global::Chirpstack.Gateway.UplinkRxInfoLegacy(); + } + input.ReadMessage(RxInfoLegacy); + break; + } + case 34: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 42: { + if (rxInfo_ == null) { + RxInfo = new global::Chirpstack.Gateway.UplinkRxInfo(); + } + input.ReadMessage(RxInfo); + 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: { + PhyPayload = input.ReadBytes(); + break; + } + case 18: { + if (txInfoLegacy_ == null) { + TxInfoLegacy = new global::Chirpstack.Gateway.UplinkTxInfoLegacy(); + } + input.ReadMessage(TxInfoLegacy); + break; + } + case 26: { + if (rxInfoLegacy_ == null) { + RxInfoLegacy = new global::Chirpstack.Gateway.UplinkRxInfoLegacy(); + } + input.ReadMessage(RxInfoLegacy); + break; + } + case 34: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 42: { + if (rxInfo_ == null) { + RxInfo = new global::Chirpstack.Gateway.UplinkRxInfo(); + } + input.ReadMessage(RxInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class UplinkFrameSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkFrameSet()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[19]; } + } + + [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 UplinkFrameSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkFrameSet(UplinkFrameSet other) : this() { + phyPayload_ = other.phyPayload_; + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + rxInfo_ = other.rxInfo_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkFrameSet Clone() { + return new UplinkFrameSet(this); + } + + /// Field number for the "phy_payload" field. + public const int PhyPayloadFieldNumber = 1; + private pb::ByteString phyPayload_ = pb::ByteString.Empty; + /// + /// PHYPayload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString PhyPayload { + get { return phyPayload_; } + set { + phyPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tx_info" field. + public const int TxInfoFieldNumber = 2; + private global::Chirpstack.Gateway.UplinkTxInfo txInfo_; + /// + /// TX meta-data. + /// + [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 "rx_info" field. + public const int RxInfoFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_rxInfo_codec + = pb::FieldCodec.ForMessage(26, global::Chirpstack.Gateway.UplinkRxInfo.Parser); + private readonly pbc::RepeatedField rxInfo_ = new pbc::RepeatedField(); + /// + /// RX meta-data set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RxInfo { + get { return rxInfo_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UplinkFrameSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UplinkFrameSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PhyPayload != other.PhyPayload) return false; + if (!object.Equals(TxInfo, other.TxInfo)) return false; + if(!rxInfo_.Equals(other.rxInfo_)) 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 (PhyPayload.Length != 0) hash ^= PhyPayload.GetHashCode(); + if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); + hash ^= rxInfo_.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 (PhyPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(PhyPayload); + } + if (txInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfo); + } + rxInfo_.WriteTo(output, _repeated_rxInfo_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 (PhyPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(PhyPayload); + } + if (txInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfo); + } + rxInfo_.WriteTo(ref output, _repeated_rxInfo_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 (PhyPayload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(PhyPayload); + } + if (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + size += rxInfo_.CalculateSize(_repeated_rxInfo_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UplinkFrameSet other) { + if (other == null) { + return; + } + if (other.PhyPayload.Length != 0) { + PhyPayload = other.PhyPayload; + } + if (other.txInfo_ != null) { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); + } + TxInfo.MergeFrom(other.TxInfo); + } + rxInfo_.Add(other.rxInfo_); + _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: { + PhyPayload = input.ReadBytes(); + break; + } + case 18: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 26: { + rxInfo_.AddEntriesFrom(input, _repeated_rxInfo_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: { + PhyPayload = input.ReadBytes(); + break; + } + case 18: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 26: { + rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class DownlinkFrame : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkFrame()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[20]; } + } + + [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 DownlinkFrame() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkFrame(DownlinkFrame other) : this() { + downlinkId_ = other.downlinkId_; + downlinkIdLegacy_ = other.downlinkIdLegacy_; + items_ = other.items_.Clone(); + gatewayIdLegacy_ = other.gatewayIdLegacy_; + gatewayId_ = other.gatewayId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkFrame Clone() { + return new DownlinkFrame(this); + } + + /// Field number for the "downlink_id" field. + public const int DownlinkIdFieldNumber = 3; + 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 "downlink_id_legacy" field. + public const int DownlinkIdLegacyFieldNumber = 4; + private pb::ByteString downlinkIdLegacy_ = pb::ByteString.Empty; + /// + /// Downlink ID (UUID). + /// Deprecated: use downlink_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DownlinkIdLegacy { + get { return downlinkIdLegacy_; } + set { + downlinkIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(42, global::Chirpstack.Gateway.DownlinkFrameItem.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + /// + /// Downlink frame items. + /// This makes it possible to send multiple downlink opportunities to the + /// gateway at once (e.g. RX1 and RX2 in LoRaWAN). The first item has the + /// highest priority, the last the lowest. The gateway will emit at most + /// one item. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + /// Field number for the "gateway_id_legacy" field. + public const int GatewayIdLegacyFieldNumber = 6; + private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// Deprecated: use gateway_id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString GatewayIdLegacy { + get { return gatewayIdLegacy_; } + set { + gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 7; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DownlinkFrame); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DownlinkFrame other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DownlinkId != other.DownlinkId) return false; + if (DownlinkIdLegacy != other.DownlinkIdLegacy) return false; + if(!items_.Equals(other.items_)) return false; + if (GatewayIdLegacy != other.GatewayIdLegacy) return false; + if (GatewayId != other.GatewayId) 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 (DownlinkIdLegacy.Length != 0) hash ^= DownlinkIdLegacy.GetHashCode(); + hash ^= items_.GetHashCode(); + if (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.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(24); + output.WriteUInt32(DownlinkId); + } + if (DownlinkIdLegacy.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DownlinkIdLegacy); + } + items_.WriteTo(output, _repeated_items_codec); + if (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(GatewayIdLegacy); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(GatewayId); + } + 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(24); + output.WriteUInt32(DownlinkId); + } + if (DownlinkIdLegacy.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DownlinkIdLegacy); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(GatewayIdLegacy); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(GatewayId); + } + 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 (DownlinkIdLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DownlinkIdLegacy); + } + size += items_.CalculateSize(_repeated_items_codec); + if (GatewayIdLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DownlinkFrame other) { + if (other == null) { + return; + } + if (other.DownlinkId != 0) { + DownlinkId = other.DownlinkId; + } + if (other.DownlinkIdLegacy.Length != 0) { + DownlinkIdLegacy = other.DownlinkIdLegacy; + } + items_.Add(other.items_); + if (other.GatewayIdLegacy.Length != 0) { + GatewayIdLegacy = other.GatewayIdLegacy; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + _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 24: { + DownlinkId = input.ReadUInt32(); + break; + } + case 34: { + DownlinkIdLegacy = input.ReadBytes(); + break; + } + case 42: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + case 50: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 58: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + DownlinkId = input.ReadUInt32(); + break; + } + case 34: { + DownlinkIdLegacy = input.ReadBytes(); + break; + } + case 42: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + case 50: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 58: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DownlinkFrameItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkFrameItem()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[21]; } + } + + [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 DownlinkFrameItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkFrameItem(DownlinkFrameItem other) : this() { + phyPayload_ = other.phyPayload_; + txInfoLegacy_ = other.txInfoLegacy_ != null ? other.txInfoLegacy_.Clone() : null; + 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 DownlinkFrameItem Clone() { + return new DownlinkFrameItem(this); + } + + /// Field number for the "phy_payload" field. + public const int PhyPayloadFieldNumber = 1; + private pb::ByteString phyPayload_ = pb::ByteString.Empty; + /// + /// PHYPayload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString PhyPayload { + get { return phyPayload_; } + set { + phyPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tx_info_legacy" field. + public const int TxInfoLegacyFieldNumber = 2; + private global::Chirpstack.Gateway.DownlinkTxInfoLegacy txInfoLegacy_; + /// + /// TX meta-data (deprecated). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.DownlinkTxInfoLegacy TxInfoLegacy { + get { return txInfoLegacy_; } + set { + txInfoLegacy_ = value; + } + } + + /// Field number for the "tx_info" field. + public const int TxInfoFieldNumber = 3; + private global::Chirpstack.Gateway.DownlinkTxInfo txInfo_; + /// + /// Tx meta-data. + /// + [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 DownlinkFrameItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DownlinkFrameItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PhyPayload != other.PhyPayload) return false; + if (!object.Equals(TxInfoLegacy, other.TxInfoLegacy)) 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 (PhyPayload.Length != 0) hash ^= PhyPayload.GetHashCode(); + if (txInfoLegacy_ != null) hash ^= TxInfoLegacy.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 (PhyPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(PhyPayload); + } + if (txInfoLegacy_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfoLegacy); + } + if (txInfo_ != null) { + output.WriteRawTag(26); + 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 (PhyPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(PhyPayload); + } + if (txInfoLegacy_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfoLegacy); + } + if (txInfo_ != null) { + output.WriteRawTag(26); + 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 (PhyPayload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(PhyPayload); + } + if (txInfoLegacy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfoLegacy); + } + 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(DownlinkFrameItem other) { + if (other == null) { + return; + } + if (other.PhyPayload.Length != 0) { + PhyPayload = other.PhyPayload; + } + if (other.txInfoLegacy_ != null) { + if (txInfoLegacy_ == null) { + TxInfoLegacy = new global::Chirpstack.Gateway.DownlinkTxInfoLegacy(); + } + TxInfoLegacy.MergeFrom(other.TxInfoLegacy); + } + 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 10: { + PhyPayload = input.ReadBytes(); + break; + } + case 18: { + if (txInfoLegacy_ == null) { + TxInfoLegacy = new global::Chirpstack.Gateway.DownlinkTxInfoLegacy(); + } + input.ReadMessage(TxInfoLegacy); + break; + } + case 26: { + 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 10: { + PhyPayload = input.ReadBytes(); + break; + } + case 18: { + if (txInfoLegacy_ == null) { + TxInfoLegacy = new global::Chirpstack.Gateway.DownlinkTxInfoLegacy(); + } + input.ReadMessage(TxInfoLegacy); + break; + } + case 26: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class DownlinkTxAck : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkTxAck()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[22]; } + } + + [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 DownlinkTxAck() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkTxAck(DownlinkTxAck other) : this() { + gatewayIdLegacy_ = other.gatewayIdLegacy_; + gatewayId_ = other.gatewayId_; + downlinkId_ = other.downlinkId_; + downlinkIdLegacy_ = other.downlinkIdLegacy_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkTxAck Clone() { + return new DownlinkTxAck(this); + } + + /// Field number for the "gateway_id_legacy" field. + public const int GatewayIdLegacyFieldNumber = 1; + private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; + /// + /// Gateway ID (deprecated). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString GatewayIdLegacy { + get { return gatewayIdLegacy_; } + set { + gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "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 "downlink_id" field. + public const int DownlinkIdFieldNumber = 2; + 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 "downlink_id_legacy" field. + public const int DownlinkIdLegacyFieldNumber = 4; + private pb::ByteString downlinkIdLegacy_ = pb::ByteString.Empty; + /// + /// Downlink ID (deprecated). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DownlinkIdLegacy { + get { return downlinkIdLegacy_; } + set { + downlinkIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(42, global::Chirpstack.Gateway.DownlinkTxAckItem.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + /// + /// Downlink frame items. + /// This list has the same length as the request and indicates which + /// downlink frame has been emitted of the requested list (or why it failed). + /// Note that at most one item has a positive acknowledgement. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DownlinkTxAck); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DownlinkTxAck other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayIdLegacy != other.GatewayIdLegacy) return false; + if (GatewayId != other.GatewayId) return false; + if (DownlinkId != other.DownlinkId) return false; + if (DownlinkIdLegacy != other.DownlinkIdLegacy) return false; + if(!items_.Equals(other.items_)) 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 (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (DownlinkId != 0) hash ^= DownlinkId.GetHashCode(); + if (DownlinkIdLegacy.Length != 0) hash ^= DownlinkIdLegacy.GetHashCode(); + hash ^= items_.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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (DownlinkId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(DownlinkId); + } + if (DownlinkIdLegacy.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DownlinkIdLegacy); + } + items_.WriteTo(output, _repeated_items_codec); + if (GatewayId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(GatewayId); + } + 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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (DownlinkId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(DownlinkId); + } + if (DownlinkIdLegacy.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DownlinkIdLegacy); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (GatewayId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(GatewayId); + } + 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 (GatewayIdLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (DownlinkId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DownlinkId); + } + if (DownlinkIdLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DownlinkIdLegacy); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DownlinkTxAck other) { + if (other == null) { + return; + } + if (other.GatewayIdLegacy.Length != 0) { + GatewayIdLegacy = other.GatewayIdLegacy; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.DownlinkId != 0) { + DownlinkId = other.DownlinkId; + } + if (other.DownlinkIdLegacy.Length != 0) { + DownlinkIdLegacy = other.DownlinkIdLegacy; + } + items_.Add(other.items_); + _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: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 16: { + DownlinkId = input.ReadUInt32(); + break; + } + case 34: { + DownlinkIdLegacy = input.ReadBytes(); + break; + } + case 42: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + case 50: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 16: { + DownlinkId = input.ReadUInt32(); + break; + } + case 34: { + DownlinkIdLegacy = input.ReadBytes(); + break; + } + case 42: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + case 50: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DownlinkTxAckItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkTxAckItem()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[23]; } + } + + [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 DownlinkTxAckItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkTxAckItem(DownlinkTxAckItem other) : this() { + status_ = other.status_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkTxAckItem Clone() { + return new DownlinkTxAckItem(this); + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 1; + private global::Chirpstack.Gateway.TxAckStatus status_ = global::Chirpstack.Gateway.TxAckStatus.Ignored; + /// + /// The Ack status of this item. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.TxAckStatus Status { + get { return status_; } + set { + status_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DownlinkTxAckItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DownlinkTxAckItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Status != other.Status) 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 (Status != global::Chirpstack.Gateway.TxAckStatus.Ignored) hash ^= Status.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 (Status != global::Chirpstack.Gateway.TxAckStatus.Ignored) { + output.WriteRawTag(8); + output.WriteEnum((int) Status); + } + 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 (Status != global::Chirpstack.Gateway.TxAckStatus.Ignored) { + output.WriteRawTag(8); + output.WriteEnum((int) Status); + } + 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 (Status != global::Chirpstack.Gateway.TxAckStatus.Ignored) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DownlinkTxAckItem other) { + if (other == null) { + return; + } + if (other.Status != global::Chirpstack.Gateway.TxAckStatus.Ignored) { + Status = other.Status; + } + _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: { + Status = (global::Chirpstack.Gateway.TxAckStatus) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Status = (global::Chirpstack.Gateway.TxAckStatus) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GatewayConfiguration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayConfiguration()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[24]; } + } + + [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 GatewayConfiguration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayConfiguration(GatewayConfiguration other) : this() { + gatewayIdLegacy_ = other.gatewayIdLegacy_; + gatewayId_ = other.gatewayId_; + version_ = other.version_; + channels_ = other.channels_.Clone(); + statsInterval_ = other.statsInterval_ != null ? other.statsInterval_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayConfiguration Clone() { + return new GatewayConfiguration(this); + } + + /// Field number for the "gateway_id_legacy" field. + public const int GatewayIdLegacyFieldNumber = 1; + private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// Deprecated: use gateway_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString GatewayIdLegacy { + get { return gatewayIdLegacy_; } + set { + gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 5; + 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 "version" field. + public const int VersionFieldNumber = 2; + private string version_ = ""; + /// + /// Configuration version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "channels" field. + public const int ChannelsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_channels_codec + = pb::FieldCodec.ForMessage(26, global::Chirpstack.Gateway.ChannelConfiguration.Parser); + private readonly pbc::RepeatedField channels_ = new pbc::RepeatedField(); + /// + /// Channels. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Channels { + get { return channels_; } + } + + /// Field number for the "stats_interval" field. + public const int StatsIntervalFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration statsInterval_; + /// + /// Stats interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StatsInterval { + get { return statsInterval_; } + set { + statsInterval_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GatewayConfiguration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayConfiguration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayIdLegacy != other.GatewayIdLegacy) return false; + if (GatewayId != other.GatewayId) return false; + if (Version != other.Version) return false; + if(!channels_.Equals(other.channels_)) return false; + if (!object.Equals(StatsInterval, other.StatsInterval)) 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 (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); + hash ^= channels_.GetHashCode(); + if (statsInterval_ != null) hash ^= StatsInterval.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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (Version.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Version); + } + channels_.WriteTo(output, _repeated_channels_codec); + if (statsInterval_ != null) { + output.WriteRawTag(34); + output.WriteMessage(StatsInterval); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(GatewayId); + } + 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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (Version.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Version); + } + channels_.WriteTo(ref output, _repeated_channels_codec); + if (statsInterval_ != null) { + output.WriteRawTag(34); + output.WriteMessage(StatsInterval); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(GatewayId); + } + 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 (GatewayIdLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + size += channels_.CalculateSize(_repeated_channels_codec); + if (statsInterval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StatsInterval); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GatewayConfiguration other) { + if (other == null) { + return; + } + if (other.GatewayIdLegacy.Length != 0) { + GatewayIdLegacy = other.GatewayIdLegacy; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + channels_.Add(other.channels_); + if (other.statsInterval_ != null) { + if (statsInterval_ == null) { + StatsInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StatsInterval.MergeFrom(other.StatsInterval); + } + _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: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 18: { + Version = input.ReadString(); + break; + } + case 26: { + channels_.AddEntriesFrom(input, _repeated_channels_codec); + break; + } + case 34: { + if (statsInterval_ == null) { + StatsInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StatsInterval); + break; + } + case 42: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 18: { + Version = input.ReadString(); + break; + } + case 26: { + channels_.AddEntriesFrom(ref input, _repeated_channels_codec); + break; + } + case 34: { + if (statsInterval_ == null) { + StatsInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StatsInterval); + break; + } + case 42: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ChannelConfiguration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChannelConfiguration()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[25]; } + } + + [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 ChannelConfiguration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChannelConfiguration(ChannelConfiguration other) : this() { + frequency_ = other.frequency_; + modulationLegacy_ = other.modulationLegacy_; + board_ = other.board_; + demodulator_ = other.demodulator_; + switch (other.ModulationConfigCase) { + case ModulationConfigOneofCase.LoraModulationConfig: + LoraModulationConfig = other.LoraModulationConfig.Clone(); + break; + case ModulationConfigOneofCase.FskModulationConfig: + FskModulationConfig = other.FskModulationConfig.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChannelConfiguration Clone() { + return new ChannelConfiguration(this); + } + + /// Field number for the "frequency" field. + public const int FrequencyFieldNumber = 1; + private uint frequency_; + /// + /// Frequency (Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Frequency { + get { return frequency_; } + set { + frequency_ = value; + } + } + + /// Field number for the "modulation_legacy" field. + public const int ModulationLegacyFieldNumber = 2; + private global::Chirpstack.Common.Modulation modulationLegacy_ = global::Chirpstack.Common.Modulation.Lora; + /// + /// Modulation (deprecated). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Modulation ModulationLegacy { + get { return modulationLegacy_; } + set { + modulationLegacy_ = value; + } + } + + /// Field number for the "lora_modulation_config" field. + public const int LoraModulationConfigFieldNumber = 3; + /// + /// LoRa modulation config. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.LoraModulationConfig LoraModulationConfig { + get { return modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig ? (global::Chirpstack.Gateway.LoraModulationConfig) modulationConfig_ : null; } + set { + modulationConfig_ = value; + modulationConfigCase_ = value == null ? ModulationConfigOneofCase.None : ModulationConfigOneofCase.LoraModulationConfig; + } + } + + /// Field number for the "fsk_modulation_config" field. + public const int FskModulationConfigFieldNumber = 4; + /// + /// FSK modulation config. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.FskModulationConfig FskModulationConfig { + get { return modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig ? (global::Chirpstack.Gateway.FskModulationConfig) modulationConfig_ : null; } + set { + modulationConfig_ = value; + modulationConfigCase_ = value == null ? ModulationConfigOneofCase.None : ModulationConfigOneofCase.FskModulationConfig; + } + } + + /// Field number for the "board" field. + public const int BoardFieldNumber = 5; + private uint board_; + /// + /// Board index. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Board { + get { return board_; } + set { + board_ = value; + } + } + + /// Field number for the "demodulator" field. + public const int DemodulatorFieldNumber = 6; + private uint demodulator_; + /// + /// Demodulator index (of the given board). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Demodulator { + get { return demodulator_; } + set { + demodulator_ = value; + } + } + + private object modulationConfig_; + /// Enum of possible cases for the "modulation_config" oneof. + public enum ModulationConfigOneofCase { + None = 0, + LoraModulationConfig = 3, + FskModulationConfig = 4, + } + private ModulationConfigOneofCase modulationConfigCase_ = ModulationConfigOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModulationConfigOneofCase ModulationConfigCase { + get { return modulationConfigCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearModulationConfig() { + modulationConfigCase_ = ModulationConfigOneofCase.None; + modulationConfig_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChannelConfiguration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChannelConfiguration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Frequency != other.Frequency) return false; + if (ModulationLegacy != other.ModulationLegacy) return false; + if (!object.Equals(LoraModulationConfig, other.LoraModulationConfig)) return false; + if (!object.Equals(FskModulationConfig, other.FskModulationConfig)) return false; + if (Board != other.Board) return false; + if (Demodulator != other.Demodulator) return false; + if (ModulationConfigCase != other.ModulationConfigCase) 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 (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (ModulationLegacy != global::Chirpstack.Common.Modulation.Lora) hash ^= ModulationLegacy.GetHashCode(); + if (modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig) hash ^= LoraModulationConfig.GetHashCode(); + if (modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig) hash ^= FskModulationConfig.GetHashCode(); + if (Board != 0) hash ^= Board.GetHashCode(); + if (Demodulator != 0) hash ^= Demodulator.GetHashCode(); + hash ^= (int) modulationConfigCase_; + 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 (Frequency != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Frequency); + } + if (ModulationLegacy != global::Chirpstack.Common.Modulation.Lora) { + output.WriteRawTag(16); + output.WriteEnum((int) ModulationLegacy); + } + if (modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig) { + output.WriteRawTag(26); + output.WriteMessage(LoraModulationConfig); + } + if (modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig) { + output.WriteRawTag(34); + output.WriteMessage(FskModulationConfig); + } + if (Board != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Board); + } + if (Demodulator != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Demodulator); + } + 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 (Frequency != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Frequency); + } + if (ModulationLegacy != global::Chirpstack.Common.Modulation.Lora) { + output.WriteRawTag(16); + output.WriteEnum((int) ModulationLegacy); + } + if (modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig) { + output.WriteRawTag(26); + output.WriteMessage(LoraModulationConfig); + } + if (modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig) { + output.WriteRawTag(34); + output.WriteMessage(FskModulationConfig); + } + if (Board != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Board); + } + if (Demodulator != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Demodulator); + } + 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 (Frequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); + } + if (ModulationLegacy != global::Chirpstack.Common.Modulation.Lora) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModulationLegacy); + } + if (modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoraModulationConfig); + } + if (modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FskModulationConfig); + } + if (Board != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Board); + } + if (Demodulator != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Demodulator); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChannelConfiguration other) { + if (other == null) { + return; + } + if (other.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.ModulationLegacy != global::Chirpstack.Common.Modulation.Lora) { + ModulationLegacy = other.ModulationLegacy; + } + if (other.Board != 0) { + Board = other.Board; + } + if (other.Demodulator != 0) { + Demodulator = other.Demodulator; + } + switch (other.ModulationConfigCase) { + case ModulationConfigOneofCase.LoraModulationConfig: + if (LoraModulationConfig == null) { + LoraModulationConfig = new global::Chirpstack.Gateway.LoraModulationConfig(); + } + LoraModulationConfig.MergeFrom(other.LoraModulationConfig); + break; + case ModulationConfigOneofCase.FskModulationConfig: + if (FskModulationConfig == null) { + FskModulationConfig = new global::Chirpstack.Gateway.FskModulationConfig(); + } + FskModulationConfig.MergeFrom(other.FskModulationConfig); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Frequency = input.ReadUInt32(); + break; + } + case 16: { + ModulationLegacy = (global::Chirpstack.Common.Modulation) input.ReadEnum(); + break; + } + case 26: { + global::Chirpstack.Gateway.LoraModulationConfig subBuilder = new global::Chirpstack.Gateway.LoraModulationConfig(); + if (modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig) { + subBuilder.MergeFrom(LoraModulationConfig); + } + input.ReadMessage(subBuilder); + LoraModulationConfig = subBuilder; + break; + } + case 34: { + global::Chirpstack.Gateway.FskModulationConfig subBuilder = new global::Chirpstack.Gateway.FskModulationConfig(); + if (modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig) { + subBuilder.MergeFrom(FskModulationConfig); + } + input.ReadMessage(subBuilder); + FskModulationConfig = subBuilder; + break; + } + case 40: { + Board = input.ReadUInt32(); + break; + } + case 48: { + Demodulator = 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 8: { + Frequency = input.ReadUInt32(); + break; + } + case 16: { + ModulationLegacy = (global::Chirpstack.Common.Modulation) input.ReadEnum(); + break; + } + case 26: { + global::Chirpstack.Gateway.LoraModulationConfig subBuilder = new global::Chirpstack.Gateway.LoraModulationConfig(); + if (modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig) { + subBuilder.MergeFrom(LoraModulationConfig); + } + input.ReadMessage(subBuilder); + LoraModulationConfig = subBuilder; + break; + } + case 34: { + global::Chirpstack.Gateway.FskModulationConfig subBuilder = new global::Chirpstack.Gateway.FskModulationConfig(); + if (modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig) { + subBuilder.MergeFrom(FskModulationConfig); + } + input.ReadMessage(subBuilder); + FskModulationConfig = subBuilder; + break; + } + case 40: { + Board = input.ReadUInt32(); + break; + } + case 48: { + Demodulator = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class LoraModulationConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoraModulationConfig()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[26]; } + } + + [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 LoraModulationConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoraModulationConfig(LoraModulationConfig other) : this() { + bandwidthLegacy_ = other.bandwidthLegacy_; + bandwidth_ = other.bandwidth_; + spreadingFactors_ = other.spreadingFactors_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoraModulationConfig Clone() { + return new LoraModulationConfig(this); + } + + /// Field number for the "bandwidth_legacy" field. + public const int BandwidthLegacyFieldNumber = 1; + private uint bandwidthLegacy_; + /// + /// Bandwidth (kHz). + /// Deprecated: use bandwidth. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BandwidthLegacy { + get { return bandwidthLegacy_; } + set { + bandwidthLegacy_ = value; + } + } + + /// Field number for the "bandwidth" field. + public const int BandwidthFieldNumber = 3; + private uint bandwidth_; + /// + /// Bandwidth (Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Bandwidth { + get { return bandwidth_; } + set { + bandwidth_ = value; + } + } + + /// Field number for the "spreading_factors" field. + public const int SpreadingFactorsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_spreadingFactors_codec + = pb::FieldCodec.ForUInt32(18); + private readonly pbc::RepeatedField spreadingFactors_ = new pbc::RepeatedField(); + /// + /// Spreading-factors. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SpreadingFactors { + get { return spreadingFactors_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LoraModulationConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LoraModulationConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BandwidthLegacy != other.BandwidthLegacy) return false; + if (Bandwidth != other.Bandwidth) return false; + if(!spreadingFactors_.Equals(other.spreadingFactors_)) 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 (BandwidthLegacy != 0) hash ^= BandwidthLegacy.GetHashCode(); + if (Bandwidth != 0) hash ^= Bandwidth.GetHashCode(); + hash ^= spreadingFactors_.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 (BandwidthLegacy != 0) { + output.WriteRawTag(8); + output.WriteUInt32(BandwidthLegacy); + } + spreadingFactors_.WriteTo(output, _repeated_spreadingFactors_codec); + if (Bandwidth != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Bandwidth); + } + 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 (BandwidthLegacy != 0) { + output.WriteRawTag(8); + output.WriteUInt32(BandwidthLegacy); + } + spreadingFactors_.WriteTo(ref output, _repeated_spreadingFactors_codec); + if (Bandwidth != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Bandwidth); + } + 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 (BandwidthLegacy != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BandwidthLegacy); + } + if (Bandwidth != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Bandwidth); + } + size += spreadingFactors_.CalculateSize(_repeated_spreadingFactors_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LoraModulationConfig other) { + if (other == null) { + return; + } + if (other.BandwidthLegacy != 0) { + BandwidthLegacy = other.BandwidthLegacy; + } + if (other.Bandwidth != 0) { + Bandwidth = other.Bandwidth; + } + spreadingFactors_.Add(other.spreadingFactors_); + _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: { + BandwidthLegacy = input.ReadUInt32(); + break; + } + case 18: + case 16: { + spreadingFactors_.AddEntriesFrom(input, _repeated_spreadingFactors_codec); + break; + } + case 24: { + Bandwidth = 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 8: { + BandwidthLegacy = input.ReadUInt32(); + break; + } + case 18: + case 16: { + spreadingFactors_.AddEntriesFrom(ref input, _repeated_spreadingFactors_codec); + break; + } + case 24: { + Bandwidth = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class FskModulationConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FskModulationConfig()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[27]; } + } + + [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 FskModulationConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FskModulationConfig(FskModulationConfig other) : this() { + bandwidthLegacy_ = other.bandwidthLegacy_; + bandwidth_ = other.bandwidth_; + bitrate_ = other.bitrate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FskModulationConfig Clone() { + return new FskModulationConfig(this); + } + + /// Field number for the "bandwidth_legacy" field. + public const int BandwidthLegacyFieldNumber = 1; + private uint bandwidthLegacy_; + /// + /// Bandwidth (kHz). + /// Deprecated: use bandwidth. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BandwidthLegacy { + get { return bandwidthLegacy_; } + set { + bandwidthLegacy_ = value; + } + } + + /// Field number for the "bandwidth" field. + public const int BandwidthFieldNumber = 3; + private uint bandwidth_; + /// + /// Bandwidth (Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Bandwidth { + get { return bandwidth_; } + set { + bandwidth_ = value; + } + } + + /// Field number for the "bitrate" field. + public const int BitrateFieldNumber = 2; + private uint bitrate_; + /// + /// Bitrate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Bitrate { + get { return bitrate_; } + set { + bitrate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FskModulationConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FskModulationConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BandwidthLegacy != other.BandwidthLegacy) return false; + if (Bandwidth != other.Bandwidth) return false; + if (Bitrate != other.Bitrate) 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 (BandwidthLegacy != 0) hash ^= BandwidthLegacy.GetHashCode(); + if (Bandwidth != 0) hash ^= Bandwidth.GetHashCode(); + if (Bitrate != 0) hash ^= Bitrate.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 (BandwidthLegacy != 0) { + output.WriteRawTag(8); + output.WriteUInt32(BandwidthLegacy); + } + if (Bitrate != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Bitrate); + } + if (Bandwidth != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Bandwidth); + } + 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 (BandwidthLegacy != 0) { + output.WriteRawTag(8); + output.WriteUInt32(BandwidthLegacy); + } + if (Bitrate != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Bitrate); + } + if (Bandwidth != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Bandwidth); + } + 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 (BandwidthLegacy != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BandwidthLegacy); + } + if (Bandwidth != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Bandwidth); + } + if (Bitrate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Bitrate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FskModulationConfig other) { + if (other == null) { + return; + } + if (other.BandwidthLegacy != 0) { + BandwidthLegacy = other.BandwidthLegacy; + } + if (other.Bandwidth != 0) { + Bandwidth = other.Bandwidth; + } + if (other.Bitrate != 0) { + Bitrate = other.Bitrate; + } + _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: { + BandwidthLegacy = input.ReadUInt32(); + break; + } + case 16: { + Bitrate = input.ReadUInt32(); + break; + } + case 24: { + Bandwidth = 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 8: { + BandwidthLegacy = input.ReadUInt32(); + break; + } + case 16: { + Bitrate = input.ReadUInt32(); + break; + } + case 24: { + Bandwidth = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GatewayCommandExecRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayCommandExecRequest()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[28]; } + } + + [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 GatewayCommandExecRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayCommandExecRequest(GatewayCommandExecRequest other) : this() { + gatewayIdLegacy_ = other.gatewayIdLegacy_; + gatewayId_ = other.gatewayId_; + command_ = other.command_; + execId_ = other.execId_; + stdin_ = other.stdin_; + environment_ = other.environment_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayCommandExecRequest Clone() { + return new GatewayCommandExecRequest(this); + } + + /// Field number for the "gateway_id_legacy" field. + public const int GatewayIdLegacyFieldNumber = 1; + private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// Deprecated: use gateway_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString GatewayIdLegacy { + get { return gatewayIdLegacy_; } + set { + gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "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 "command" field. + public const int CommandFieldNumber = 2; + private string command_ = ""; + /// + /// Command to execute. + /// This command must be pre-configured in the LoRa Gateway Bridge configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Command { + get { return command_; } + set { + command_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "exec_id" field. + public const int ExecIdFieldNumber = 7; + private uint execId_; + /// + /// Execution request ID. + /// The same will be returned when the execution of the command has + /// completed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ExecId { + get { return execId_; } + set { + execId_ = value; + } + } + + /// Field number for the "stdin" field. + public const int StdinFieldNumber = 4; + private pb::ByteString stdin_ = pb::ByteString.Empty; + /// + /// Standard input. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Stdin { + get { return stdin_; } + set { + stdin_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "environment" field. + public const int EnvironmentFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_environment_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); + private readonly pbc::MapField environment_ = new pbc::MapField(); + /// + /// Environment variables. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Environment { + get { return environment_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GatewayCommandExecRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayCommandExecRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayIdLegacy != other.GatewayIdLegacy) return false; + if (GatewayId != other.GatewayId) return false; + if (Command != other.Command) return false; + if (ExecId != other.ExecId) return false; + if (Stdin != other.Stdin) return false; + if (!Environment.Equals(other.Environment)) 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 (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (Command.Length != 0) hash ^= Command.GetHashCode(); + if (ExecId != 0) hash ^= ExecId.GetHashCode(); + if (Stdin.Length != 0) hash ^= Stdin.GetHashCode(); + hash ^= Environment.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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (Command.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Command); + } + if (Stdin.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(Stdin); + } + environment_.WriteTo(output, _map_environment_codec); + if (GatewayId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(GatewayId); + } + if (ExecId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ExecId); + } + 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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (Command.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Command); + } + if (Stdin.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(Stdin); + } + environment_.WriteTo(ref output, _map_environment_codec); + if (GatewayId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(GatewayId); + } + if (ExecId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ExecId); + } + 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 (GatewayIdLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (Command.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Command); + } + if (ExecId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ExecId); + } + if (Stdin.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Stdin); + } + size += environment_.CalculateSize(_map_environment_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GatewayCommandExecRequest other) { + if (other == null) { + return; + } + if (other.GatewayIdLegacy.Length != 0) { + GatewayIdLegacy = other.GatewayIdLegacy; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Command.Length != 0) { + Command = other.Command; + } + if (other.ExecId != 0) { + ExecId = other.ExecId; + } + if (other.Stdin.Length != 0) { + Stdin = other.Stdin; + } + environment_.Add(other.environment_); + _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: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 18: { + Command = input.ReadString(); + break; + } + case 34: { + Stdin = input.ReadBytes(); + break; + } + case 42: { + environment_.AddEntriesFrom(input, _map_environment_codec); + break; + } + case 50: { + GatewayId = input.ReadString(); + break; + } + case 56: { + ExecId = 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: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 18: { + Command = input.ReadString(); + break; + } + case 34: { + Stdin = input.ReadBytes(); + break; + } + case 42: { + environment_.AddEntriesFrom(ref input, _map_environment_codec); + break; + } + case 50: { + GatewayId = input.ReadString(); + break; + } + case 56: { + ExecId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GatewayCommandExecResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayCommandExecResponse()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[29]; } + } + + [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 GatewayCommandExecResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayCommandExecResponse(GatewayCommandExecResponse other) : this() { + gatewayIdLegacy_ = other.gatewayIdLegacy_; + gatewayId_ = other.gatewayId_; + execId_ = other.execId_; + stdout_ = other.stdout_; + stderr_ = other.stderr_; + error_ = other.error_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayCommandExecResponse Clone() { + return new GatewayCommandExecResponse(this); + } + + /// Field number for the "gateway_id_legacy" field. + public const int GatewayIdLegacyFieldNumber = 1; + private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// Deprecated: use gateway_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString GatewayIdLegacy { + get { return gatewayIdLegacy_; } + set { + gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "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 "exec_id" field. + public const int ExecIdFieldNumber = 7; + private uint execId_; + /// + /// Execution request ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ExecId { + get { return execId_; } + set { + execId_ = value; + } + } + + /// Field number for the "stdout" field. + public const int StdoutFieldNumber = 3; + private pb::ByteString stdout_ = pb::ByteString.Empty; + /// + /// Standard output. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Stdout { + get { return stdout_; } + set { + stdout_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "stderr" field. + public const int StderrFieldNumber = 4; + private pb::ByteString stderr_ = pb::ByteString.Empty; + /// + /// Standard error. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Stderr { + get { return stderr_; } + set { + stderr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 5; + private string error_ = ""; + /// + /// Error message. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Error { + get { return error_; } + set { + error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GatewayCommandExecResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayCommandExecResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayIdLegacy != other.GatewayIdLegacy) return false; + if (GatewayId != other.GatewayId) return false; + if (ExecId != other.ExecId) return false; + if (Stdout != other.Stdout) return false; + if (Stderr != other.Stderr) return false; + if (Error != other.Error) 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 (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (ExecId != 0) hash ^= ExecId.GetHashCode(); + if (Stdout.Length != 0) hash ^= Stdout.GetHashCode(); + if (Stderr.Length != 0) hash ^= Stderr.GetHashCode(); + if (Error.Length != 0) hash ^= Error.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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (Stdout.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Stdout); + } + if (Stderr.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(Stderr); + } + if (Error.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Error); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(GatewayId); + } + if (ExecId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ExecId); + } + 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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (Stdout.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Stdout); + } + if (Stderr.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(Stderr); + } + if (Error.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Error); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(GatewayId); + } + if (ExecId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ExecId); + } + 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 (GatewayIdLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (ExecId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ExecId); + } + if (Stdout.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Stdout); + } + if (Stderr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Stderr); + } + if (Error.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GatewayCommandExecResponse other) { + if (other == null) { + return; + } + if (other.GatewayIdLegacy.Length != 0) { + GatewayIdLegacy = other.GatewayIdLegacy; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.ExecId != 0) { + ExecId = other.ExecId; + } + if (other.Stdout.Length != 0) { + Stdout = other.Stdout; + } + if (other.Stderr.Length != 0) { + Stderr = other.Stderr; + } + if (other.Error.Length != 0) { + Error = other.Error; + } + _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: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 26: { + Stdout = input.ReadBytes(); + break; + } + case 34: { + Stderr = input.ReadBytes(); + break; + } + case 42: { + Error = input.ReadString(); + break; + } + case 50: { + GatewayId = input.ReadString(); + break; + } + case 56: { + ExecId = 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: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 26: { + Stdout = input.ReadBytes(); + break; + } + case 34: { + Stderr = input.ReadBytes(); + break; + } + case 42: { + Error = input.ReadString(); + break; + } + case 50: { + GatewayId = input.ReadString(); + break; + } + case 56: { + ExecId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// RawPacketForwarderEvent contains a raw packet-forwarder event. + /// It can be used to access packet-forwarder features that are not (fully) + /// integrated with the ChirpStack Gateway Bridge. + /// + public sealed partial class RawPacketForwarderEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RawPacketForwarderEvent()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[30]; } + } + + [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 RawPacketForwarderEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RawPacketForwarderEvent(RawPacketForwarderEvent other) : this() { + gatewayIdLegacy_ = other.gatewayIdLegacy_; + gatewayId_ = other.gatewayId_; + payload_ = other.payload_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RawPacketForwarderEvent Clone() { + return new RawPacketForwarderEvent(this); + } + + /// Field number for the "gateway_id_legacy" field. + public const int GatewayIdLegacyFieldNumber = 1; + private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// Deprecated: use gateway_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString GatewayIdLegacy { + get { return gatewayIdLegacy_; } + set { + gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 4; + 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 "payload" field. + public const int PayloadFieldNumber = 3; + private pb::ByteString payload_ = pb::ByteString.Empty; + /// + /// Payload contains the raw payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Payload { + get { return payload_; } + set { + payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RawPacketForwarderEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RawPacketForwarderEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayIdLegacy != other.GatewayIdLegacy) return false; + if (GatewayId != other.GatewayId) return false; + if (Payload != other.Payload) 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 (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (Payload.Length != 0) hash ^= Payload.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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (Payload.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Payload); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(GatewayId); + } + 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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (Payload.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Payload); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(GatewayId); + } + 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 (GatewayIdLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (Payload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RawPacketForwarderEvent other) { + if (other == null) { + return; + } + if (other.GatewayIdLegacy.Length != 0) { + GatewayIdLegacy = other.GatewayIdLegacy; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Payload.Length != 0) { + Payload = other.Payload; + } + _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: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 26: { + Payload = input.ReadBytes(); + break; + } + case 34: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 26: { + Payload = input.ReadBytes(); + break; + } + case 34: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// RawPacketForwarderEvent contains a raw packet-forwarder command. + /// It can be used to access packet-forwarder features that are not (fully) + /// integrated with the ChirpStack Gateway Bridge. + /// + public sealed partial class RawPacketForwarderCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RawPacketForwarderCommand()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[31]; } + } + + [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 RawPacketForwarderCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RawPacketForwarderCommand(RawPacketForwarderCommand other) : this() { + gatewayIdLegacy_ = other.gatewayIdLegacy_; + gatewayId_ = other.gatewayId_; + payload_ = other.payload_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RawPacketForwarderCommand Clone() { + return new RawPacketForwarderCommand(this); + } + + /// Field number for the "gateway_id_legacy" field. + public const int GatewayIdLegacyFieldNumber = 1; + private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// Deprecated: use gateway_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString GatewayIdLegacy { + get { return gatewayIdLegacy_; } + set { + gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 4; + 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 "payload" field. + public const int PayloadFieldNumber = 3; + private pb::ByteString payload_ = pb::ByteString.Empty; + /// + /// Payload contains the raw payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Payload { + get { return payload_; } + set { + payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RawPacketForwarderCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RawPacketForwarderCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayIdLegacy != other.GatewayIdLegacy) return false; + if (GatewayId != other.GatewayId) return false; + if (Payload != other.Payload) 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 (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (Payload.Length != 0) hash ^= Payload.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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (Payload.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Payload); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(GatewayId); + } + 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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (Payload.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Payload); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(GatewayId); + } + 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 (GatewayIdLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (Payload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RawPacketForwarderCommand other) { + if (other == null) { + return; + } + if (other.GatewayIdLegacy.Length != 0) { + GatewayIdLegacy = other.GatewayIdLegacy; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Payload.Length != 0) { + Payload = other.Payload; + } + _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: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 26: { + Payload = input.ReadBytes(); + break; + } + case 34: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 26: { + Payload = input.ReadBytes(); + break; + } + case 34: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// ConnState contains the connection state of a gateway. + /// + public sealed partial class ConnState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnState()); + 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.Gateway.GwReflection.Descriptor.MessageTypes[32]; } + } + + [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 ConnState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConnState(ConnState other) : this() { + gatewayIdLegacy_ = other.gatewayIdLegacy_; + gatewayId_ = other.gatewayId_; + state_ = other.state_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConnState Clone() { + return new ConnState(this); + } + + /// Field number for the "gateway_id_legacy" field. + public const int GatewayIdLegacyFieldNumber = 1; + private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// Deprecated: use gateway_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString GatewayIdLegacy { + get { return gatewayIdLegacy_; } + set { + gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 3; + 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 "state" field. + public const int StateFieldNumber = 2; + private global::Chirpstack.Gateway.ConnState.Types.State state_ = global::Chirpstack.Gateway.ConnState.Types.State.Offline; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.ConnState.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConnState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConnState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayIdLegacy != other.GatewayIdLegacy) return false; + if (GatewayId != other.GatewayId) return false; + if (State != other.State) 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 (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (State != global::Chirpstack.Gateway.ConnState.Types.State.Offline) hash ^= State.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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (State != global::Chirpstack.Gateway.ConnState.Types.State.Offline) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GatewayId); + } + 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 (GatewayIdLegacy.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayIdLegacy); + } + if (State != global::Chirpstack.Gateway.ConnState.Types.State.Offline) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GatewayId); + } + 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 (GatewayIdLegacy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (State != global::Chirpstack.Gateway.ConnState.Types.State.Offline) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConnState other) { + if (other == null) { + return; + } + if (other.GatewayIdLegacy.Length != 0) { + GatewayIdLegacy = other.GatewayIdLegacy; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.State != global::Chirpstack.Gateway.ConnState.Types.State.Offline) { + State = other.State; + } + _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: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 16: { + State = (global::Chirpstack.Gateway.ConnState.Types.State) input.ReadEnum(); + break; + } + case 26: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + GatewayIdLegacy = input.ReadBytes(); + break; + } + case 16: { + State = (global::Chirpstack.Gateway.ConnState.Types.State) input.ReadEnum(); + break; + } + case 26: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ConnState message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum State { + [pbr::OriginalName("OFFLINE")] Offline = 0, + [pbr::OriginalName("ONLINE")] Online = 1, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/api/csharp/Chirpstack/integration/Integration.cs b/api/csharp/Chirpstack/integration/Integration.cs new file mode 100644 index 00000000..1a011d90 --- /dev/null +++ b/api/csharp/Chirpstack/integration/Integration.cs @@ -0,0 +1,4617 @@ +// +// 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", + "LnByb3RvIqICCgpEZXZpY2VJbmZvEhEKCXRlbmFudF9pZBgBIAEoCRITCgt0", + "ZW5hbnRfbmFtZRgCIAEoCRIWCg5hcHBsaWNhdGlvbl9pZBgDIAEoCRIYChBh", + "cHBsaWNhdGlvbl9uYW1lGAQgASgJEhkKEWRldmljZV9wcm9maWxlX2lkGAUg", + "ASgJEhsKE2RldmljZV9wcm9maWxlX25hbWUYBiABKAkSEwoLZGV2aWNlX25h", + "bWUYByABKAkSDwoHZGV2X2V1aRgIIAEoCRIvCgR0YWdzGAkgAygLMiEuaW50", + "ZWdyYXRpb24uRGV2aWNlSW5mby5UYWdzRW50cnkaKwoJVGFnc0VudHJ5EgsK", + "A2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEi2QIKC1VwbGlua0V2ZW50", + "EhgKEGRlZHVwbGljYXRpb25faWQYASABKAkSKAoEdGltZRgCIAEoCzIaLmdv", + "b2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLAoLZGV2aWNlX2luZm8YAyABKAsy", + "Fy5pbnRlZ3JhdGlvbi5EZXZpY2VJbmZvEhAKCGRldl9hZGRyGAQgASgJEgsK", + "A2FkchgFIAEoCBIKCgJkchgGIAEoDRINCgVmX2NudBgHIAEoDRIOCgZmX3Bv", + "cnQYCCABKA0SEQoJY29uZmlybWVkGAkgASgIEgwKBGRhdGEYCiABKAwSJwoG", + "b2JqZWN0GAsgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBIhCgdyeF9p", + "bmZvGAwgAygLMhAuZ3cuVXBsaW5rUnhJbmZvEiEKB3R4X2luZm8YDSABKAsy", + "EC5ndy5VcGxpbmtUeEluZm8ijwEKCUpvaW5FdmVudBIYChBkZWR1cGxpY2F0", + "aW9uX2lkGAEgASgJEigKBHRpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wEiwKC2RldmljZV9pbmZvGAMgASgLMhcuaW50ZWdyYXRpb24u", + "RGV2aWNlSW5mbxIQCghkZXZfYWRkchgEIAEoCSK9AQoIQWNrRXZlbnQSGAoQ", + "ZGVkdXBsaWNhdGlvbl9pZBgBIAEoCRIoCgR0aW1lGAIgASgLMhouZ29vZ2xl", + "LnByb3RvYnVmLlRpbWVzdGFtcBIsCgtkZXZpY2VfaW5mbxgDIAEoCzIXLmlu", + "dGVncmF0aW9uLkRldmljZUluZm8SFQoNcXVldWVfaXRlbV9pZBgEIAEoCRIU", + "CgxhY2tub3dsZWRnZWQYBSABKAgSEgoKZl9jbnRfZG93bhgGIAEoDSLdAQoK", + "VHhBY2tFdmVudBITCgtkb3dubGlua19pZBgBIAEoDRIoCgR0aW1lGAIgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIsCgtkZXZpY2VfaW5mbxgD", + "IAEoCzIXLmludGVncmF0aW9uLkRldmljZUluZm8SFQoNcXVldWVfaXRlbV9p", + "ZBgEIAEoCRISCgpmX2NudF9kb3duGAUgASgNEhIKCmdhdGV3YXlfaWQYBiAB", + "KAkSIwoHdHhfaW5mbxgHIAEoCzISLmd3LkRvd25saW5rVHhJbmZvIqYCCghM", + "b2dFdmVudBIoCgR0aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", + "dGFtcBIsCgtkZXZpY2VfaW5mbxgCIAEoCzIXLmludGVncmF0aW9uLkRldmlj", + "ZUluZm8SJAoFbGV2ZWwYAyABKA4yFS5pbnRlZ3JhdGlvbi5Mb2dMZXZlbBIi", + "CgRjb2RlGAQgASgOMhQuaW50ZWdyYXRpb24uTG9nQ29kZRITCgtkZXNjcmlw", + "dGlvbhgFIAEoCRIzCgdjb250ZXh0GAYgAygLMiIuaW50ZWdyYXRpb24uTG9n", + "RXZlbnQuQ29udGV4dEVudHJ5Gi4KDENvbnRleHRFbnRyeRILCgNrZXkYASAB", + "KAkSDQoFdmFsdWUYAiABKAk6AjgBIugBCgtTdGF0dXNFdmVudBIYChBkZWR1", + "cGxpY2F0aW9uX2lkGAEgASgJEigKBHRpbWUYAiABKAsyGi5nb29nbGUucHJv", + "dG9idWYuVGltZXN0YW1wEiwKC2RldmljZV9pbmZvGAMgASgLMhcuaW50ZWdy", + "YXRpb24uRGV2aWNlSW5mbxIOCgZtYXJnaW4YBSABKAUSHQoVZXh0ZXJuYWxf", + "cG93ZXJfc291cmNlGAYgASgIEiEKGWJhdHRlcnlfbGV2ZWxfdW5hdmFpbGFi", + "bGUYByABKAgSFQoNYmF0dGVyeV9sZXZlbBgIIAEoAiKlAQoNTG9jYXRpb25F", + "dmVudBIYChBkZWR1cGxpY2F0aW9uX2lkGAEgASgJEigKBHRpbWUYAiABKAsy", + "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiwKC2RldmljZV9pbmZvGAMg", + "ASgLMhcuaW50ZWdyYXRpb24uRGV2aWNlSW5mbxIiCghsb2NhdGlvbhgEIAEo", + "CzIQLmNvbW1vbi5Mb2NhdGlvbiLbAQoQSW50ZWdyYXRpb25FdmVudBIYChBk", + "ZWR1cGxpY2F0aW9uX2lkGAEgASgJEigKBHRpbWUYAiABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wEiwKC2RldmljZV9pbmZvGAMgASgLMhcuaW50", + "ZWdyYXRpb24uRGV2aWNlSW5mbxIYChBpbnRlZ3JhdGlvbl9uYW1lGAQgASgJ", + "EhIKCmV2ZW50X3R5cGUYBSABKAkSJwoGb2JqZWN0GAYgASgLMhcuZ29vZ2xl", + "LnByb3RvYnVmLlN0cnVjdCKIAQoPRG93bmxpbmtDb21tYW5kEgoKAmlkGAEg", + "ASgJEg8KB2Rldl9ldWkYAiABKAkSEQoJY29uZmlybWVkGAMgASgIEg4KBmZf", + "cG9ydBgEIAEoDRIMCgRkYXRhGAUgASgMEicKBm9iamVjdBgGIAEoCzIXLmdv", + "b2dsZS5wcm90b2J1Zi5TdHJ1Y3QqLAoITG9nTGV2ZWwSCAoESU5GTxAAEgsK", + "B1dBUk5JTkcQARIJCgVFUlJPUhACKsABCgdMb2dDb2RlEgsKB1VOS05PV04Q", + "ABIZChVET1dOTElOS19QQVlMT0FEX1NJWkUQARIQCgxVUExJTktfQ09ERUMQ", + "AhISCg5ET1dOTElOS19DT0RFQxADEggKBE9UQUEQBBIWChJVUExJTktfRl9D", + "TlRfUkVTRVQQBRIOCgpVUExJTktfTUlDEAYSHwobVVBMSU5LX0ZfQ05UX1JF", + "VFJBTlNNSVNTSU9OEAcSFAoQRE9XTkxJTktfR0FURVdBWRAIQoEBCh1pby5j", + "aGlycHN0YWNrLmFwaS5pbnRlZ3JhdGlvbkIQSW50ZWdyYXRpb25Qcm90b1AB", + "WjNnaXRodWIuY29tL2Jyb2NhYXIvY2hpcnBzdGFjay9hcGkvZ28vdjQvaW50", + "ZWdyYXRpb26qAhZDaGlycHN0YWNrLkludGVncmF0aW9uYgZwcm90bzM=")); + 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", "Tags" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { 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" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.JoinEvent), global::Chirpstack.Integration.JoinEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "DevAddr" }, 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, + } + + #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_; + 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 "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 (!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(); + 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 (_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 (_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); + } + 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; + } + 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; + } + } + } + #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; + } + } + } + } + #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[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 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; + _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; + } + } + + [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; + 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 (_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 (_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 (_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 (_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); + } + _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; + } + } + } + #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; + } + } + } + } + #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[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 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_; + _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"); + } + } + + [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; + 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 (_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 (_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 (_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 (_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; + } + _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; + } + } + } + #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; + } + } + } + } + #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[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 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[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 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[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 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[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 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[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 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[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 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[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 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 diff --git a/api/csharp/Chirpstack/meta/Meta.cs b/api/csharp/Chirpstack/meta/Meta.cs new file mode 100644 index 00000000..4bf0fc70 --- /dev/null +++ b/api/csharp/Chirpstack/meta/Meta.cs @@ -0,0 +1,968 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: meta/meta.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.Meta { + + /// Holder for reflection information generated from meta/meta.proto + public static partial class MetaReflection { + + #region Descriptor + /// File descriptor for meta/meta.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MetaReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9tZXRhL21ldGEucHJvdG8SBG1ldGEaE2NvbW1vbi9jb21tb24ucHJvdG8a", + "C2d3L2d3LnByb3RvIvABCgpVcGxpbmtNZXRhEg8KB2Rldl9ldWkYASABKAkS", + "IQoHdHhfaW5mbxgCIAEoCzIQLmd3LlVwbGlua1R4SW5mbxIhCgdyeF9pbmZv", + "GAMgAygLMhAuZ3cuVXBsaW5rUnhJbmZvEh4KFnBoeV9wYXlsb2FkX2J5dGVf", + "Y291bnQYBCABKA0SHgoWbWFjX2NvbW1hbmRfYnl0ZV9jb3VudBgFIAEoDRIm", + "Ch5hcHBsaWNhdGlvbl9wYXlsb2FkX2J5dGVfY291bnQYBiABKA0SIwoMbWVz", + "c2FnZV90eXBlGAcgASgOMg0uY29tbW9uLk1UeXBlIoECCgxEb3dubGlua01l", + "dGESDwoHZGV2X2V1aRgBIAEoCRIaChJtdWx0aWNhc3RfZ3JvdXBfaWQYAiAB", + "KAkSIwoHdHhfaW5mbxgDIAEoCzISLmd3LkRvd25saW5rVHhJbmZvEh4KFnBo", + "eV9wYXlsb2FkX2J5dGVfY291bnQYBCABKA0SHgoWbWFjX2NvbW1hbmRfYnl0", + "ZV9jb3VudBgFIAEoDRImCh5hcHBsaWNhdGlvbl9wYXlsb2FkX2J5dGVfY291", + "bnQYBiABKA0SIwoMbWVzc2FnZV90eXBlGAcgASgOMg0uY29tbW9uLk1UeXBl", + "EhIKCmdhdGV3YXlfaWQYCCABKAlCaAoWaW8uY2hpcnBzdGFjay5hcGkubWV0", + "YUIJTWV0YVByb3RvUAFaL2dpdGh1Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0", + "YWNrL2FwaS9nby92NC9tZXRhqgIPQ2hpcnBzdGFjay5NZXRhYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Meta.UplinkMeta), global::Chirpstack.Meta.UplinkMeta.Parser, new[]{ "DevEui", "TxInfo", "RxInfo", "PhyPayloadByteCount", "MacCommandByteCount", "ApplicationPayloadByteCount", "MessageType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Meta.DownlinkMeta), global::Chirpstack.Meta.DownlinkMeta.Parser, new[]{ "DevEui", "MulticastGroupId", "TxInfo", "PhyPayloadByteCount", "MacCommandByteCount", "ApplicationPayloadByteCount", "MessageType", "GatewayId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class UplinkMeta : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkMeta()); + 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.Meta.MetaReflection.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 UplinkMeta() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkMeta(UplinkMeta other) : this() { + devEui_ = other.devEui_; + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + rxInfo_ = other.rxInfo_.Clone(); + phyPayloadByteCount_ = other.phyPayloadByteCount_; + macCommandByteCount_ = other.macCommandByteCount_; + applicationPayloadByteCount_ = other.applicationPayloadByteCount_; + messageType_ = other.messageType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkMeta Clone() { + return new UplinkMeta(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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 "tx_info" field. + public const int TxInfoFieldNumber = 2; + private global::Chirpstack.Gateway.UplinkTxInfo txInfo_; + /// + /// TX meta-data. + /// + [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 "rx_info" field. + public const int RxInfoFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_rxInfo_codec + = pb::FieldCodec.ForMessage(26, global::Chirpstack.Gateway.UplinkRxInfo.Parser); + private readonly pbc::RepeatedField rxInfo_ = new pbc::RepeatedField(); + /// + /// RX meta-data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RxInfo { + get { return rxInfo_; } + } + + /// Field number for the "phy_payload_byte_count" field. + public const int PhyPayloadByteCountFieldNumber = 4; + private uint phyPayloadByteCount_; + /// + /// PHYPayload byte count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PhyPayloadByteCount { + get { return phyPayloadByteCount_; } + set { + phyPayloadByteCount_ = value; + } + } + + /// Field number for the "mac_command_byte_count" field. + public const int MacCommandByteCountFieldNumber = 5; + private uint macCommandByteCount_; + /// + /// MAC-Command byte count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MacCommandByteCount { + get { return macCommandByteCount_; } + set { + macCommandByteCount_ = value; + } + } + + /// Field number for the "application_payload_byte_count" field. + public const int ApplicationPayloadByteCountFieldNumber = 6; + private uint applicationPayloadByteCount_; + /// + /// Application payload byte count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ApplicationPayloadByteCount { + get { return applicationPayloadByteCount_; } + set { + applicationPayloadByteCount_ = value; + } + } + + /// Field number for the "message_type" field. + public const int MessageTypeFieldNumber = 7; + private global::Chirpstack.Common.MType messageType_ = global::Chirpstack.Common.MType.JoinRequest; + /// + /// Message type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.MType MessageType { + get { return messageType_; } + set { + messageType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UplinkMeta); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UplinkMeta other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (!object.Equals(TxInfo, other.TxInfo)) return false; + if(!rxInfo_.Equals(other.rxInfo_)) return false; + if (PhyPayloadByteCount != other.PhyPayloadByteCount) return false; + if (MacCommandByteCount != other.MacCommandByteCount) return false; + if (ApplicationPayloadByteCount != other.ApplicationPayloadByteCount) return false; + if (MessageType != other.MessageType) 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 (txInfo_ != null) hash ^= TxInfo.GetHashCode(); + hash ^= rxInfo_.GetHashCode(); + if (PhyPayloadByteCount != 0) hash ^= PhyPayloadByteCount.GetHashCode(); + if (MacCommandByteCount != 0) hash ^= MacCommandByteCount.GetHashCode(); + if (ApplicationPayloadByteCount != 0) hash ^= ApplicationPayloadByteCount.GetHashCode(); + if (MessageType != global::Chirpstack.Common.MType.JoinRequest) hash ^= MessageType.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 (txInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfo); + } + rxInfo_.WriteTo(output, _repeated_rxInfo_codec); + if (PhyPayloadByteCount != 0) { + output.WriteRawTag(32); + output.WriteUInt32(PhyPayloadByteCount); + } + if (MacCommandByteCount != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MacCommandByteCount); + } + if (ApplicationPayloadByteCount != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ApplicationPayloadByteCount); + } + if (MessageType != global::Chirpstack.Common.MType.JoinRequest) { + output.WriteRawTag(56); + output.WriteEnum((int) MessageType); + } + 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 (txInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfo); + } + rxInfo_.WriteTo(ref output, _repeated_rxInfo_codec); + if (PhyPayloadByteCount != 0) { + output.WriteRawTag(32); + output.WriteUInt32(PhyPayloadByteCount); + } + if (MacCommandByteCount != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MacCommandByteCount); + } + if (ApplicationPayloadByteCount != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ApplicationPayloadByteCount); + } + if (MessageType != global::Chirpstack.Common.MType.JoinRequest) { + output.WriteRawTag(56); + output.WriteEnum((int) MessageType); + } + 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 (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + size += rxInfo_.CalculateSize(_repeated_rxInfo_codec); + if (PhyPayloadByteCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PhyPayloadByteCount); + } + if (MacCommandByteCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MacCommandByteCount); + } + if (ApplicationPayloadByteCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ApplicationPayloadByteCount); + } + if (MessageType != global::Chirpstack.Common.MType.JoinRequest) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UplinkMeta other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.txInfo_ != null) { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); + } + TxInfo.MergeFrom(other.TxInfo); + } + rxInfo_.Add(other.rxInfo_); + if (other.PhyPayloadByteCount != 0) { + PhyPayloadByteCount = other.PhyPayloadByteCount; + } + if (other.MacCommandByteCount != 0) { + MacCommandByteCount = other.MacCommandByteCount; + } + if (other.ApplicationPayloadByteCount != 0) { + ApplicationPayloadByteCount = other.ApplicationPayloadByteCount; + } + if (other.MessageType != global::Chirpstack.Common.MType.JoinRequest) { + MessageType = other.MessageType; + } + _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 18: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 26: { + rxInfo_.AddEntriesFrom(input, _repeated_rxInfo_codec); + break; + } + case 32: { + PhyPayloadByteCount = input.ReadUInt32(); + break; + } + case 40: { + MacCommandByteCount = input.ReadUInt32(); + break; + } + case 48: { + ApplicationPayloadByteCount = input.ReadUInt32(); + break; + } + case 56: { + MessageType = (global::Chirpstack.Common.MType) 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: { + DevEui = input.ReadString(); + break; + } + case 18: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 26: { + rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); + break; + } + case 32: { + PhyPayloadByteCount = input.ReadUInt32(); + break; + } + case 40: { + MacCommandByteCount = input.ReadUInt32(); + break; + } + case 48: { + ApplicationPayloadByteCount = input.ReadUInt32(); + break; + } + case 56: { + MessageType = (global::Chirpstack.Common.MType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DownlinkMeta : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkMeta()); + 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.Meta.MetaReflection.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 DownlinkMeta() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkMeta(DownlinkMeta other) : this() { + devEui_ = other.devEui_; + multicastGroupId_ = other.multicastGroupId_; + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + phyPayloadByteCount_ = other.phyPayloadByteCount_; + macCommandByteCount_ = other.macCommandByteCount_; + applicationPayloadByteCount_ = other.applicationPayloadByteCount_; + messageType_ = other.messageType_; + gatewayId_ = other.gatewayId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkMeta Clone() { + return new DownlinkMeta(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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 "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 2; + private string multicastGroupId_ = ""; + /// + /// Multicast Group ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MulticastGroupId { + get { return multicastGroupId_; } + set { + multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tx_info" field. + public const int TxInfoFieldNumber = 3; + private global::Chirpstack.Gateway.DownlinkTxInfo txInfo_; + /// + /// TX meta-data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.DownlinkTxInfo TxInfo { + get { return txInfo_; } + set { + txInfo_ = value; + } + } + + /// Field number for the "phy_payload_byte_count" field. + public const int PhyPayloadByteCountFieldNumber = 4; + private uint phyPayloadByteCount_; + /// + /// PHYPayload byte count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PhyPayloadByteCount { + get { return phyPayloadByteCount_; } + set { + phyPayloadByteCount_ = value; + } + } + + /// Field number for the "mac_command_byte_count" field. + public const int MacCommandByteCountFieldNumber = 5; + private uint macCommandByteCount_; + /// + /// MAC-Command byte count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MacCommandByteCount { + get { return macCommandByteCount_; } + set { + macCommandByteCount_ = value; + } + } + + /// Field number for the "application_payload_byte_count" field. + public const int ApplicationPayloadByteCountFieldNumber = 6; + private uint applicationPayloadByteCount_; + /// + /// Application payload byte count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ApplicationPayloadByteCount { + get { return applicationPayloadByteCount_; } + set { + applicationPayloadByteCount_ = value; + } + } + + /// Field number for the "message_type" field. + public const int MessageTypeFieldNumber = 7; + private global::Chirpstack.Common.MType messageType_ = global::Chirpstack.Common.MType.JoinRequest; + /// + /// Message type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.MType MessageType { + get { return messageType_; } + set { + messageType_ = value; + } + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 8; + private string gatewayId_ = ""; + /// + /// Gateway ID (EUI64). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GatewayId { + get { return gatewayId_; } + set { + gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DownlinkMeta); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DownlinkMeta other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (MulticastGroupId != other.MulticastGroupId) return false; + if (!object.Equals(TxInfo, other.TxInfo)) return false; + if (PhyPayloadByteCount != other.PhyPayloadByteCount) return false; + if (MacCommandByteCount != other.MacCommandByteCount) return false; + if (ApplicationPayloadByteCount != other.ApplicationPayloadByteCount) return false; + if (MessageType != other.MessageType) return false; + if (GatewayId != other.GatewayId) 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 (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); + if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); + if (PhyPayloadByteCount != 0) hash ^= PhyPayloadByteCount.GetHashCode(); + if (MacCommandByteCount != 0) hash ^= MacCommandByteCount.GetHashCode(); + if (ApplicationPayloadByteCount != 0) hash ^= ApplicationPayloadByteCount.GetHashCode(); + if (MessageType != global::Chirpstack.Common.MType.JoinRequest) hash ^= MessageType.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MulticastGroupId); + } + if (txInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TxInfo); + } + if (PhyPayloadByteCount != 0) { + output.WriteRawTag(32); + output.WriteUInt32(PhyPayloadByteCount); + } + if (MacCommandByteCount != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MacCommandByteCount); + } + if (ApplicationPayloadByteCount != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ApplicationPayloadByteCount); + } + if (MessageType != global::Chirpstack.Common.MType.JoinRequest) { + output.WriteRawTag(56); + output.WriteEnum((int) MessageType); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(66); + output.WriteString(GatewayId); + } + 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 (MulticastGroupId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MulticastGroupId); + } + if (txInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TxInfo); + } + if (PhyPayloadByteCount != 0) { + output.WriteRawTag(32); + output.WriteUInt32(PhyPayloadByteCount); + } + if (MacCommandByteCount != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MacCommandByteCount); + } + if (ApplicationPayloadByteCount != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ApplicationPayloadByteCount); + } + if (MessageType != global::Chirpstack.Common.MType.JoinRequest) { + output.WriteRawTag(56); + output.WriteEnum((int) MessageType); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(66); + output.WriteString(GatewayId); + } + 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 (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); + } + if (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + if (PhyPayloadByteCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PhyPayloadByteCount); + } + if (MacCommandByteCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MacCommandByteCount); + } + if (ApplicationPayloadByteCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ApplicationPayloadByteCount); + } + if (MessageType != global::Chirpstack.Common.MType.JoinRequest) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageType); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DownlinkMeta other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.MulticastGroupId.Length != 0) { + MulticastGroupId = other.MulticastGroupId; + } + if (other.txInfo_ != null) { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); + } + TxInfo.MergeFrom(other.TxInfo); + } + if (other.PhyPayloadByteCount != 0) { + PhyPayloadByteCount = other.PhyPayloadByteCount; + } + if (other.MacCommandByteCount != 0) { + MacCommandByteCount = other.MacCommandByteCount; + } + if (other.ApplicationPayloadByteCount != 0) { + ApplicationPayloadByteCount = other.ApplicationPayloadByteCount; + } + if (other.MessageType != global::Chirpstack.Common.MType.JoinRequest) { + MessageType = other.MessageType; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + _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 18: { + MulticastGroupId = input.ReadString(); + break; + } + case 26: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 32: { + PhyPayloadByteCount = input.ReadUInt32(); + break; + } + case 40: { + MacCommandByteCount = input.ReadUInt32(); + break; + } + case 48: { + ApplicationPayloadByteCount = input.ReadUInt32(); + break; + } + case 56: { + MessageType = (global::Chirpstack.Common.MType) input.ReadEnum(); + break; + } + case 66: { + GatewayId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + DevEui = input.ReadString(); + break; + } + case 18: { + MulticastGroupId = input.ReadString(); + break; + } + case 26: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 32: { + PhyPayloadByteCount = input.ReadUInt32(); + break; + } + case 40: { + MacCommandByteCount = input.ReadUInt32(); + break; + } + case 48: { + ApplicationPayloadByteCount = input.ReadUInt32(); + break; + } + case 56: { + MessageType = (global::Chirpstack.Common.MType) input.ReadEnum(); + break; + } + case 66: { + GatewayId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code