From f6c0079a48cc825db327248c061d7e4e37f71cf1 Mon Sep 17 00:00:00 2001 From: Max Reble Date: Tue, 1 Nov 2022 15:48:23 +0100 Subject: [PATCH 1/4] adds csharp_namespace --- protobuf/as/as.proto | 1 + protobuf/as/external/api/application.proto | 1 + protobuf/as/external/api/device.proto | 1 + protobuf/as/external/api/deviceProfile.proto | 1 + protobuf/as/external/api/deviceQueue.proto | 1 + protobuf/as/external/api/frameLog.proto | 1 + protobuf/as/external/api/gateway.proto | 1 + protobuf/as/external/api/gatewayProfile.proto | 1 + protobuf/as/external/api/internal.proto | 1 + protobuf/as/external/api/multicastGroup.proto | 1 + protobuf/as/external/api/networkServer.proto | 1 + protobuf/as/external/api/organization.proto | 1 + protobuf/as/external/api/profiles.proto | 1 + protobuf/as/external/api/serviceProfile.proto | 1 + protobuf/as/external/api/user.proto | 1 + protobuf/as/integration/integration.proto | 1 + protobuf/common/common.proto | 1 + protobuf/fuota/fuota.proto | 1 + protobuf/geo/geo.proto | 1 + protobuf/gw/gw.proto | 1 + protobuf/nc/nc.proto | 1 + protobuf/ns/ns.proto | 1 + protobuf/ns/profiles.proto | 1 + 23 files changed, 23 insertions(+) diff --git a/protobuf/as/as.proto b/protobuf/as/as.proto index 25379106..77654242 100644 --- a/protobuf/as/as.proto +++ b/protobuf/as/as.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as"; option java_package = "io.chirpstack.api.as"; option java_multiple_files = true; option java_outer_classname = "ApplicationServerProto"; +option csharp_namespace = "Chirpstack.ApplicationServer"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; diff --git a/protobuf/as/external/api/application.proto b/protobuf/as/external/api/application.proto index 2d69a9b4..93a96b69 100644 --- a/protobuf/as/external/api/application.proto +++ b/protobuf/as/external/api/application.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "ApplicationProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; diff --git a/protobuf/as/external/api/device.proto b/protobuf/as/external/api/device.proto index b37f96b2..3a94b700 100644 --- a/protobuf/as/external/api/device.proto +++ b/protobuf/as/external/api/device.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "DeviceProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; diff --git a/protobuf/as/external/api/deviceProfile.proto b/protobuf/as/external/api/deviceProfile.proto index cd81e674..bcee867c 100644 --- a/protobuf/as/external/api/deviceProfile.proto +++ b/protobuf/as/external/api/deviceProfile.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "DeviceProfileProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; diff --git a/protobuf/as/external/api/deviceQueue.proto b/protobuf/as/external/api/deviceQueue.proto index 05851484..925d5fa2 100644 --- a/protobuf/as/external/api/deviceQueue.proto +++ b/protobuf/as/external/api/deviceQueue.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "DeviceQueueProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/api/annotations.proto"; import "google/protobuf/empty.proto"; diff --git a/protobuf/as/external/api/frameLog.proto b/protobuf/as/external/api/frameLog.proto index b1519163..f42741cb 100644 --- a/protobuf/as/external/api/frameLog.proto +++ b/protobuf/as/external/api/frameLog.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "FrameLogProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/protobuf/timestamp.proto"; import "google/protobuf/duration.proto"; diff --git a/protobuf/as/external/api/gateway.proto b/protobuf/as/external/api/gateway.proto index 297cb00a..c2d732aa 100644 --- a/protobuf/as/external/api/gateway.proto +++ b/protobuf/as/external/api/gateway.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "GatewayProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; diff --git a/protobuf/as/external/api/gatewayProfile.proto b/protobuf/as/external/api/gatewayProfile.proto index 2281b4fe..5ddf6d7a 100644 --- a/protobuf/as/external/api/gatewayProfile.proto +++ b/protobuf/as/external/api/gatewayProfile.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "GatewayProfileProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; diff --git a/protobuf/as/external/api/internal.proto b/protobuf/as/external/api/internal.proto index a5dd68a0..dcf1627f 100644 --- a/protobuf/as/external/api/internal.proto +++ b/protobuf/as/external/api/internal.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "InternalProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; diff --git a/protobuf/as/external/api/multicastGroup.proto b/protobuf/as/external/api/multicastGroup.proto index 6b88b2d0..3f3606aa 100644 --- a/protobuf/as/external/api/multicastGroup.proto +++ b/protobuf/as/external/api/multicastGroup.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "MulticastGroupProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; diff --git a/protobuf/as/external/api/networkServer.proto b/protobuf/as/external/api/networkServer.proto index 26e1035b..57f84e53 100644 --- a/protobuf/as/external/api/networkServer.proto +++ b/protobuf/as/external/api/networkServer.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "NetworkServerProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; diff --git a/protobuf/as/external/api/organization.proto b/protobuf/as/external/api/organization.proto index 7c84bd48..bfd6b089 100644 --- a/protobuf/as/external/api/organization.proto +++ b/protobuf/as/external/api/organization.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "OrganizationProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; diff --git a/protobuf/as/external/api/profiles.proto b/protobuf/as/external/api/profiles.proto index 31f3ba1c..502f9ba9 100644 --- a/protobuf/as/external/api/profiles.proto +++ b/protobuf/as/external/api/profiles.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "ProfilesProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/protobuf/duration.proto"; diff --git a/protobuf/as/external/api/serviceProfile.proto b/protobuf/as/external/api/serviceProfile.proto index f8a4aee9..d82e1490 100644 --- a/protobuf/as/external/api/serviceProfile.proto +++ b/protobuf/as/external/api/serviceProfile.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "ServiceProfileProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; diff --git a/protobuf/as/external/api/user.proto b/protobuf/as/external/api/user.proto index 042e9318..88b610f8 100644 --- a/protobuf/as/external/api/user.proto +++ b/protobuf/as/external/api/user.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/external/api"; option java_package = "io.chirpstack.api.as.external.api"; option java_multiple_files = true; option java_outer_classname = "UserProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.External.Api"; import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; diff --git a/protobuf/as/integration/integration.proto b/protobuf/as/integration/integration.proto index eb101c0c..9c995ab4 100644 --- a/protobuf/as/integration/integration.proto +++ b/protobuf/as/integration/integration.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/as/integration"; option java_package = "io.chirpstack.api.as.integration"; option java_multiple_files = true; option java_outer_classname = "IntegrationProto"; +option csharp_namespace = "Chirpstack.ApplicationServer.Integration"; import "common/common.proto"; import "gw/gw.proto"; diff --git a/protobuf/common/common.proto b/protobuf/common/common.proto index 28863125..29baccb7 100644 --- a/protobuf/common/common.proto +++ b/protobuf/common/common.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/common"; option java_package = "io.chirpstack.api.common"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; +option csharp_namespace = "Chirpstack.Common"; enum Modulation { // LoRa diff --git a/protobuf/fuota/fuota.proto b/protobuf/fuota/fuota.proto index b5900b6c..fd56e5e9 100644 --- a/protobuf/fuota/fuota.proto +++ b/protobuf/fuota/fuota.proto @@ -4,6 +4,7 @@ package fuota; option go_package = "github.com/brocaar/chirpstack-api/go/v3/fuota"; option java_package = "io.chirpstack.api.fuota"; +option csharp_namespace = "Chirpstack.Fuota"; import "google/protobuf/timestamp.proto"; import "google/protobuf/duration.proto"; diff --git a/protobuf/geo/geo.proto b/protobuf/geo/geo.proto index ba04fb5f..ef0509f2 100644 --- a/protobuf/geo/geo.proto +++ b/protobuf/geo/geo.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/geo"; option java_package = "io.chirpstack.api.geo"; option java_multiple_files = true; option java_outer_classname = "GeolocationServerProto"; +option csharp_namespace = "Chirpstack.Geo"; import "gw/gw.proto"; import "common/common.proto"; diff --git a/protobuf/gw/gw.proto b/protobuf/gw/gw.proto index ede49ca0..fa12d7a5 100644 --- a/protobuf/gw/gw.proto +++ b/protobuf/gw/gw.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/gw"; option java_package = "io.chirpstack.api.gw"; option java_multiple_files = true; option java_outer_classname = "GatewayProto"; +option csharp_namespace = "Chirpstack.Gateway"; import "common/common.proto"; import "google/protobuf/timestamp.proto"; diff --git a/protobuf/nc/nc.proto b/protobuf/nc/nc.proto index b659c7ba..9a4fa2e8 100644 --- a/protobuf/nc/nc.proto +++ b/protobuf/nc/nc.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/go/v3/nc"; option java_package = "io.chirpstack.api.nc"; option java_multiple_files = true; option java_outer_classname = "NetworkControllerProto"; +option csharp_namespace = "Chirpstack.NetworkController"; import "google/protobuf/empty.proto"; import "gw/gw.proto"; diff --git a/protobuf/ns/ns.proto b/protobuf/ns/ns.proto index 716dde7a..225b42ba 100644 --- a/protobuf/ns/ns.proto +++ b/protobuf/ns/ns.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/ns"; option java_package = "io.chirpstack.api.ns"; option java_multiple_files = true; option java_outer_classname = "NetworkServerProto"; +option csharp_namespace = "Chirpstack.NetworkServer"; import "google/protobuf/timestamp.proto"; import "google/protobuf/duration.proto"; diff --git a/protobuf/ns/profiles.proto b/protobuf/ns/profiles.proto index e7e50c69..5a337e77 100644 --- a/protobuf/ns/profiles.proto +++ b/protobuf/ns/profiles.proto @@ -6,6 +6,7 @@ option go_package = "github.com/brocaar/chirpstack-api/ns"; option java_package = "io.chirpstack.api.ns"; option java_multiple_files = true; option java_outer_classname = "ProfilesProto"; +option csharp_namespace = "Chirpstack.NetworkServer"; enum RatePolicy { // Drop From d3fb2a47f270c926fba123fcb4fc977a26101852 Mon Sep 17 00:00:00 2001 From: Max Reble Date: Tue, 1 Nov 2022 15:53:33 +0100 Subject: [PATCH 2/4] adds csharp docker build --- Dockerfile-csharp | 14 ++++++++++++++ csharp/Chirpstack.Api.csproj | 20 ++++++++++++++++++++ csharp/Makefile | 14 ++++++++++++++ docker-compose.yml | 7 +++++++ 4 files changed, 55 insertions(+) create mode 100644 Dockerfile-csharp create mode 100644 csharp/Chirpstack.Api.csproj create mode 100644 csharp/Makefile diff --git a/Dockerfile-csharp b/Dockerfile-csharp new file mode 100644 index 00000000..1075f88f --- /dev/null +++ b/Dockerfile-csharp @@ -0,0 +1,14 @@ +FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build + +RUN apt update && apt install -y make git +RUN git clone --depth=1 --branch=master https://github.com/googleapis/googleapis.git /googleapis +RUN mkdir -p /src/protobuf/google/api +RUN cp -r /googleapis/google/api/*.proto /src/protobuf/google/api/ + +WORKDIR /src +COPY csharp . +COPY protobuf /src/protobuf/ + + +#RUN dotnet restore "Chirpstack.Api.csproj" +#RUN dotnet build "Chirpstack.Api.csproj" -c Release -o /app/build \ No newline at end of file diff --git a/csharp/Chirpstack.Api.csproj b/csharp/Chirpstack.Api.csproj new file mode 100644 index 00000000..b6afbe9b --- /dev/null +++ b/csharp/Chirpstack.Api.csproj @@ -0,0 +1,20 @@ + + + + net6.0 + enable + enable + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + diff --git a/csharp/Makefile b/csharp/Makefile new file mode 100644 index 00000000..3171dab2 --- /dev/null +++ b/csharp/Makefile @@ -0,0 +1,14 @@ +.PHONY: requirements + +all: requirements install + +requirements: + rm -rf /src/obj + dotnet clean "/src/Chirpstack.Api.csproj" + +install: + dotnet build "/src/Chirpstack.Api.csproj" -c Release -o /app/build + +copy: + mkdir -p /chirpstack-api/c-sharp/protobuf/ + cp -r .. /chirpstack-api/c-sharp/protobuf/ diff --git a/docker-compose.yml b/docker-compose.yml index 94262972..ba7a3aaa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,12 @@ version: "2" services: + chirpstack-api-csharp: + build: + context: . + dockerfile: Dockerfile-csharp + command: bash -c "cd /src && make" + volumes: + - ./:/chirpstack-api chirpstack-api-go: build: context: . From c282889e2ef617d8d06195b00f3bbc53ef5be025 Mon Sep 17 00:00:00 2001 From: Max Reble Date: Fri, 4 Nov 2022 12:01:22 +0100 Subject: [PATCH 3/4] adds csharp generated files --- csharp/protobuf/as/As.cs | 4676 ++++ csharp/protobuf/as/AsGrpc.cs | 805 + .../protobuf/as/external/api/Application.cs | 17227 +++++++++++++ .../as/external/api/ApplicationGrpc.cs | 3249 +++ csharp/protobuf/as/external/api/Device.cs | 8295 ++++++ csharp/protobuf/as/external/api/DeviceGrpc.cs | 1336 + .../protobuf/as/external/api/DeviceProfile.cs | 2347 ++ .../as/external/api/DeviceProfileGrpc.cs | 486 + .../protobuf/as/external/api/DeviceQueue.cs | 1507 ++ .../as/external/api/DeviceQueueGrpc.cs | 340 + csharp/protobuf/as/external/api/FrameLog.cs | 715 + csharp/protobuf/as/external/api/Gateway.cs | 6271 +++++ .../protobuf/as/external/api/GatewayGrpc.cs | 781 + .../as/external/api/GatewayProfile.cs | 3005 +++ .../as/external/api/GatewayProfileGrpc.cs | 486 + csharp/protobuf/as/external/api/Internal.cs | 5981 +++++ .../protobuf/as/external/api/InternalGrpc.cs | 854 + .../as/external/api/MulticastGroup.cs | 4679 ++++ .../as/external/api/MulticastGroupGrpc.cs | 850 + .../protobuf/as/external/api/NetworkServer.cs | 3609 +++ .../as/external/api/NetworkServerGrpc.cs | 560 + .../protobuf/as/external/api/Organization.cs | 5219 ++++ .../as/external/api/OrganizationGrpc.cs | 850 + csharp/protobuf/as/external/api/Profiles.cs | 2609 ++ .../as/external/api/ServiceProfile.cs | 2348 ++ .../as/external/api/ServiceProfileGrpc.cs | 486 + csharp/protobuf/as/external/api/User.cs | 3283 +++ csharp/protobuf/as/external/api/UserGrpc.cs | 558 + csharp/protobuf/as/integration/Integration.cs | 4694 ++++ csharp/protobuf/common/Common.cs | 792 + csharp/protobuf/fuota/Fuota.cs | 3577 +++ csharp/protobuf/fuota/FuotaGrpc.cs | 341 + csharp/protobuf/geo/Geo.cs | 1392 ++ csharp/protobuf/geo/GeoGrpc.cs | 271 + csharp/protobuf/google/api/Annotations.cs | 52 + csharp/protobuf/google/api/Auth.cs | 1847 ++ csharp/protobuf/google/api/Backend.cs | 904 + csharp/protobuf/google/api/Billing.cs | 500 + csharp/protobuf/google/api/Client.cs | 124 + csharp/protobuf/google/api/ConfigChange.cs | 638 + csharp/protobuf/google/api/Consumer.cs | 568 + csharp/protobuf/google/api/Context.cs | 587 + csharp/protobuf/google/api/Control.cs | 244 + csharp/protobuf/google/api/Distribution.cs | 2208 ++ csharp/protobuf/google/api/Documentation.cs | 1061 + csharp/protobuf/google/api/Endpoint.cs | 382 + csharp/protobuf/google/api/ErrorReason.cs | 453 + csharp/protobuf/google/api/FieldBehavior.cs | 130 + csharp/protobuf/google/api/Http.cs | 1411 ++ csharp/protobuf/google/api/Httpbody.cs | 353 + csharp/protobuf/google/api/Label.cs | 349 + csharp/protobuf/google/api/LaunchStage.cs | 106 + csharp/protobuf/google/api/Log.cs | 366 + csharp/protobuf/google/api/Logging.cs | 534 + csharp/protobuf/google/api/Metric.cs | 1372 + .../protobuf/google/api/MonitoredResource.cs | 952 + csharp/protobuf/google/api/Monitoring.cs | 559 + csharp/protobuf/google/api/Quota.cs | 1146 + csharp/protobuf/google/api/Resource.cs | 914 + csharp/protobuf/google/api/Routing.cs | 895 + csharp/protobuf/google/api/Service.cs | 1333 + csharp/protobuf/google/api/SourceInfo.cs | 231 + csharp/protobuf/google/api/SystemParameter.cs | 780 + csharp/protobuf/google/api/Usage.cs | 625 + csharp/protobuf/google/api/Visibility.cs | 554 + csharp/protobuf/gw/Gw.cs | 10036 ++++++++ csharp/protobuf/nc/Nc.cs | 1461 ++ csharp/protobuf/nc/NcGrpc.cs | 433 + csharp/protobuf/ns/Ns.cs | 20803 ++++++++++++++++ csharp/protobuf/ns/NsGrpc.cs | 3754 +++ csharp/protobuf/ns/Profiles.cs | 2420 ++ 71 files changed, 155564 insertions(+) create mode 100644 csharp/protobuf/as/As.cs create mode 100644 csharp/protobuf/as/AsGrpc.cs create mode 100644 csharp/protobuf/as/external/api/Application.cs create mode 100644 csharp/protobuf/as/external/api/ApplicationGrpc.cs create mode 100644 csharp/protobuf/as/external/api/Device.cs create mode 100644 csharp/protobuf/as/external/api/DeviceGrpc.cs create mode 100644 csharp/protobuf/as/external/api/DeviceProfile.cs create mode 100644 csharp/protobuf/as/external/api/DeviceProfileGrpc.cs create mode 100644 csharp/protobuf/as/external/api/DeviceQueue.cs create mode 100644 csharp/protobuf/as/external/api/DeviceQueueGrpc.cs create mode 100644 csharp/protobuf/as/external/api/FrameLog.cs create mode 100644 csharp/protobuf/as/external/api/Gateway.cs create mode 100644 csharp/protobuf/as/external/api/GatewayGrpc.cs create mode 100644 csharp/protobuf/as/external/api/GatewayProfile.cs create mode 100644 csharp/protobuf/as/external/api/GatewayProfileGrpc.cs create mode 100644 csharp/protobuf/as/external/api/Internal.cs create mode 100644 csharp/protobuf/as/external/api/InternalGrpc.cs create mode 100644 csharp/protobuf/as/external/api/MulticastGroup.cs create mode 100644 csharp/protobuf/as/external/api/MulticastGroupGrpc.cs create mode 100644 csharp/protobuf/as/external/api/NetworkServer.cs create mode 100644 csharp/protobuf/as/external/api/NetworkServerGrpc.cs create mode 100644 csharp/protobuf/as/external/api/Organization.cs create mode 100644 csharp/protobuf/as/external/api/OrganizationGrpc.cs create mode 100644 csharp/protobuf/as/external/api/Profiles.cs create mode 100644 csharp/protobuf/as/external/api/ServiceProfile.cs create mode 100644 csharp/protobuf/as/external/api/ServiceProfileGrpc.cs create mode 100644 csharp/protobuf/as/external/api/User.cs create mode 100644 csharp/protobuf/as/external/api/UserGrpc.cs create mode 100644 csharp/protobuf/as/integration/Integration.cs create mode 100644 csharp/protobuf/common/Common.cs create mode 100644 csharp/protobuf/fuota/Fuota.cs create mode 100644 csharp/protobuf/fuota/FuotaGrpc.cs create mode 100644 csharp/protobuf/geo/Geo.cs create mode 100644 csharp/protobuf/geo/GeoGrpc.cs create mode 100644 csharp/protobuf/google/api/Annotations.cs create mode 100644 csharp/protobuf/google/api/Auth.cs create mode 100644 csharp/protobuf/google/api/Backend.cs create mode 100644 csharp/protobuf/google/api/Billing.cs create mode 100644 csharp/protobuf/google/api/Client.cs create mode 100644 csharp/protobuf/google/api/ConfigChange.cs create mode 100644 csharp/protobuf/google/api/Consumer.cs create mode 100644 csharp/protobuf/google/api/Context.cs create mode 100644 csharp/protobuf/google/api/Control.cs create mode 100644 csharp/protobuf/google/api/Distribution.cs create mode 100644 csharp/protobuf/google/api/Documentation.cs create mode 100644 csharp/protobuf/google/api/Endpoint.cs create mode 100644 csharp/protobuf/google/api/ErrorReason.cs create mode 100644 csharp/protobuf/google/api/FieldBehavior.cs create mode 100644 csharp/protobuf/google/api/Http.cs create mode 100644 csharp/protobuf/google/api/Httpbody.cs create mode 100644 csharp/protobuf/google/api/Label.cs create mode 100644 csharp/protobuf/google/api/LaunchStage.cs create mode 100644 csharp/protobuf/google/api/Log.cs create mode 100644 csharp/protobuf/google/api/Logging.cs create mode 100644 csharp/protobuf/google/api/Metric.cs create mode 100644 csharp/protobuf/google/api/MonitoredResource.cs create mode 100644 csharp/protobuf/google/api/Monitoring.cs create mode 100644 csharp/protobuf/google/api/Quota.cs create mode 100644 csharp/protobuf/google/api/Resource.cs create mode 100644 csharp/protobuf/google/api/Routing.cs create mode 100644 csharp/protobuf/google/api/Service.cs create mode 100644 csharp/protobuf/google/api/SourceInfo.cs create mode 100644 csharp/protobuf/google/api/SystemParameter.cs create mode 100644 csharp/protobuf/google/api/Usage.cs create mode 100644 csharp/protobuf/google/api/Visibility.cs create mode 100644 csharp/protobuf/gw/Gw.cs create mode 100644 csharp/protobuf/nc/Nc.cs create mode 100644 csharp/protobuf/nc/NcGrpc.cs create mode 100644 csharp/protobuf/ns/Ns.cs create mode 100644 csharp/protobuf/ns/NsGrpc.cs create mode 100644 csharp/protobuf/ns/Profiles.cs diff --git a/csharp/protobuf/as/As.cs b/csharp/protobuf/as/As.cs new file mode 100644 index 00000000..8a72f824 --- /dev/null +++ b/csharp/protobuf/as/As.cs @@ -0,0 +1,4676 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/as.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.ApplicationServer { + + /// Holder for reflection information generated from as/as.proto + public static partial class AsReflection { + + #region Descriptor + /// File descriptor for as/as.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cgthcy9hcy5wcm90bxICYXMaG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90", + "bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90bxoTY29tbW9uL2Nv", + "bW1vbi5wcm90bxoLZ3cvZ3cucHJvdG8iUwoXRGV2aWNlQWN0aXZhdGlvbkNv", + "bnRleHQSEAoIZGV2X2FkZHIYASABKAwSJgoJYXBwX3Nfa2V5GAIgASgLMhMu", + "Y29tbW9uLktleUVudmVsb3BlIqICChdIYW5kbGVVcGxpbmtEYXRhUmVxdWVz", + "dBIPCgdkZXZfZXVpGAEgASgMEhAKCGpvaW5fZXVpGAIgASgMEg0KBWZfY250", + "GAMgASgNEg4KBmZfcG9ydBgEIAEoDRILCgNhZHIYBSABKAgSCgoCZHIYBiAB", + "KA0SIQoHdHhfaW5mbxgHIAEoCzIQLmd3LlVwbGlua1RYSW5mbxIhCgdyeF9p", + "bmZvGAggAygLMhAuZ3cuVXBsaW5rUlhJbmZvEgwKBGRhdGEYCSABKAwSPgoZ", + "ZGV2aWNlX2FjdGl2YXRpb25fY29udGV4dBgKIAEoCzIbLmFzLkRldmljZUFj", + "dGl2YXRpb25Db250ZXh0EhgKEGNvbmZpcm1lZF91cGxpbmsYCyABKAgiiAEK", + "HkhhbmRsZVByb3ByaWV0YXJ5VXBsaW5rUmVxdWVzdBITCgttYWNfcGF5bG9h", + "ZBgBIAEoDBILCgNtaWMYAiABKAwSIQoHdHhfaW5mbxgDIAEoCzIQLmd3LlVw", + "bGlua1RYSW5mbxIhCgdyeF9pbmZvGAQgAygLMhAuZ3cuVXBsaW5rUlhJbmZv", + "ImAKEkhhbmRsZUVycm9yUmVxdWVzdBIPCgdkZXZfZXVpGAEgASgMEhsKBHR5", + "cGUYAyABKA4yDS5hcy5FcnJvclR5cGUSDQoFZXJyb3IYBCABKAkSDQoFZl9j", + "bnQYBSABKA0iUAoYSGFuZGxlRG93bmxpbmtBQ0tSZXF1ZXN0Eg8KB2Rldl9l", + "dWkYASABKAwSDQoFZl9jbnQYAiABKA0SFAoMYWNrbm93bGVkZ2VkGAMgASgI", + "IqMBChZTZXREZXZpY2VTdGF0dXNSZXF1ZXN0Eg8KB2Rldl9ldWkYASABKAwS", + "DwoHYmF0dGVyeRgCIAEoDRIOCgZtYXJnaW4YAyABKAUSHQoVZXh0ZXJuYWxf", + "cG93ZXJfc291cmNlGAQgASgIEiEKGWJhdHRlcnlfbGV2ZWxfdW5hdmFpbGFi", + "bGUYBSABKAgSFQoNYmF0dGVyeV9sZXZlbBgGIAEoAiJjChhTZXREZXZpY2VM", + "b2NhdGlvblJlcXVlc3QSDwoHZGV2X2V1aRgBIAEoDBIiCghsb2NhdGlvbhgC", + "IAEoCzIQLmNvbW1vbi5Mb2NhdGlvbhISCgp1cGxpbmtfaWRzGAMgAygMIsQI", + "ChlIYW5kbGVHYXRld2F5U3RhdHNSZXF1ZXN0EhIKCmdhdGV3YXlfaWQYASAB", + "KAwSEAoIc3RhdHNfaWQYAiABKAwSKAoEdGltZRgDIAEoCzIaLmdvb2dsZS5w", + "cm90b2J1Zi5UaW1lc3RhbXASIgoIbG9jYXRpb24YBCABKAsyEC5jb21tb24u", + "TG9jYXRpb24SGwoTcnhfcGFja2V0c19yZWNlaXZlZBgFIAEoDRIeChZyeF9w", + "YWNrZXRzX3JlY2VpdmVkX29rGAYgASgNEhsKE3R4X3BhY2tldHNfcmVjZWl2", + "ZWQYByABKA0SGgoSdHhfcGFja2V0c19lbWl0dGVkGAggASgNEj0KCG1ldGFk", + "YXRhGAkgAygLMisuYXMuSGFuZGxlR2F0ZXdheVN0YXRzUmVxdWVzdC5NZXRh", + "ZGF0YUVudHJ5EloKGHR4X3BhY2tldHNfcGVyX2ZyZXF1ZW5jeRgKIAMoCzI4", + "LmFzLkhhbmRsZUdhdGV3YXlTdGF0c1JlcXVlc3QuVHhQYWNrZXRzUGVyRnJl", + "cXVlbmN5RW50cnkSWgoYcnhfcGFja2V0c19wZXJfZnJlcXVlbmN5GAsgAygL", + "MjguYXMuSGFuZGxlR2F0ZXdheVN0YXRzUmVxdWVzdC5SeFBhY2tldHNQZXJG", + "cmVxdWVuY3lFbnRyeRJMChF0eF9wYWNrZXRzX3Blcl9kchgMIAMoCzIxLmFz", + "LkhhbmRsZUdhdGV3YXlTdGF0c1JlcXVlc3QuVHhQYWNrZXRzUGVyRHJFbnRy", + "eRJMChFyeF9wYWNrZXRzX3Blcl9kchgNIAMoCzIxLmFzLkhhbmRsZUdhdGV3", + "YXlTdGF0c1JlcXVlc3QuUnhQYWNrZXRzUGVyRHJFbnRyeRJUChV0eF9wYWNr", + "ZXRzX3Blcl9zdGF0dXMYDiADKAsyNS5hcy5IYW5kbGVHYXRld2F5U3RhdHNS", + "ZXF1ZXN0LlR4UGFja2V0c1BlclN0YXR1c0VudHJ5Gi8KDU1ldGFkYXRhRW50", + "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARo8ChpUeFBhY2tl", + "dHNQZXJGcmVxdWVuY3lFbnRyeRILCgNrZXkYASABKA0SDQoFdmFsdWUYAiAB", + "KA06AjgBGjwKGlJ4UGFja2V0c1BlckZyZXF1ZW5jeUVudHJ5EgsKA2tleRgB", + "IAEoDRINCgV2YWx1ZRgCIAEoDToCOAEaNQoTVHhQYWNrZXRzUGVyRHJFbnRy", + "eRILCgNrZXkYASABKA0SDQoFdmFsdWUYAiABKA06AjgBGjUKE1J4UGFja2V0", + "c1BlckRyRW50cnkSCwoDa2V5GAEgASgNEg0KBXZhbHVlGAIgASgNOgI4ARo5", + "ChdUeFBhY2tldHNQZXJTdGF0dXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFs", + "dWUYAiABKA06AjgBIm0KEkhhbmRsZVR4QWNrUmVxdWVzdBIPCgdkZXZfZXVp", + "GAEgASgMEg0KBWZfY250GAIgASgNEhIKCmdhdGV3YXlfaWQYAyABKAwSIwoH", + "dHhfaW5mbxgEIAEoCzISLmd3LkRvd25saW5rVFhJbmZvIocBCiBSZUVuY3J5", + "cHREZXZpY2VRdWV1ZUl0ZW1zUmVxdWVzdBIPCgdkZXZfZXVpGAEgASgMEhAK", + "CGRldl9hZGRyGAIgASgMEhMKC2ZfY250X3N0YXJ0GAMgASgNEisKBWl0ZW1z", + "GAQgAygLMhwuYXMuUmVFbmNyeXB0RGV2aWNlUXVldWVJdGVtIlIKIVJlRW5j", + "cnlwdERldmljZVF1ZXVlSXRlbXNSZXNwb25zZRItCgVpdGVtcxgBIAMoCzIe", + "LmFzLlJlRW5jcnlwdGVkRGV2aWNlUXVldWVJdGVtImEKGFJlRW5jcnlwdERl", + "dmljZVF1ZXVlSXRlbRITCgtmcm1fcGF5bG9hZBgBIAEoDBINCgVmX2NudBgC", + "IAEoDRIOCgZmX3BvcnQYAyABKA0SEQoJY29uZmlybWVkGAQgASgIImMKGlJl", + "RW5jcnlwdGVkRGV2aWNlUXVldWVJdGVtEhMKC2ZybV9wYXlsb2FkGAEgASgM", + "Eg0KBWZfY250GAIgASgNEg4KBmZfcG9ydBgDIAEoDRIRCgljb25maXJtZWQY", + "BCABKAgqHAoIUlhXaW5kb3cSBwoDUlgxEAASBwoDUlgyEAEquwEKCUVycm9y", + "VHlwZRILCgdHRU5FUklDEAASCAoET1RBQRABEhYKEkRBVEFfVVBfRkNOVF9S", + "RVNFVBACEg8KC0RBVEFfVVBfTUlDEAMSGgoWREVWSUNFX1FVRVVFX0lURU1f", + "U0laRRAEEhoKFkRFVklDRV9RVUVVRV9JVEVNX0ZDTlQQBRIfChtEQVRBX1VQ", + "X0ZDTlRfUkVUUkFOU01JU1NJT04QBhIVChFEQVRBX0RPV05fR0FURVdBWRAH", + "Mt4FChhBcHBsaWNhdGlvblNlcnZlclNlcnZpY2USSQoQSGFuZGxlVXBsaW5r", + "RGF0YRIbLmFzLkhhbmRsZVVwbGlua0RhdGFSZXF1ZXN0GhYuZ29vZ2xlLnBy", + "b3RvYnVmLkVtcHR5IgASVwoXSGFuZGxlUHJvcHJpZXRhcnlVcGxpbmsSIi5h", + "cy5IYW5kbGVQcm9wcmlldGFyeVVwbGlua1JlcXVlc3QaFi5nb29nbGUucHJv", + "dG9idWYuRW1wdHkiABI/CgtIYW5kbGVFcnJvchIWLmFzLkhhbmRsZUVycm9y", + "UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEksKEUhhbmRsZURv", + "d25saW5rQUNLEhwuYXMuSGFuZGxlRG93bmxpbmtBQ0tSZXF1ZXN0GhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5IgASTQoSSGFuZGxlR2F0ZXdheVN0YXRzEh0u", + "YXMuSGFuZGxlR2F0ZXdheVN0YXRzUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1", + "Zi5FbXB0eSIAEj8KC0hhbmRsZVR4QWNrEhYuYXMuSGFuZGxlVHhBY2tSZXF1", + "ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASRwoPU2V0RGV2aWNlU3Rh", + "dHVzEhouYXMuU2V0RGV2aWNlU3RhdHVzUmVxdWVzdBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIAEksKEVNldERldmljZUxvY2F0aW9uEhwuYXMuU2V0RGV2", + "aWNlTG9jYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgAS", + "agoZUmVFbmNyeXB0RGV2aWNlUXVldWVJdGVtcxIkLmFzLlJlRW5jcnlwdERl", + "dmljZVF1ZXVlSXRlbXNSZXF1ZXN0GiUuYXMuUmVFbmNyeXB0RGV2aWNlUXVl", + "dWVJdGVtc1Jlc3BvbnNlIgBCewoUaW8uY2hpcnBzdGFjay5hcGkuYXNCFkFw", + "cGxpY2F0aW9uU2VydmVyUHJvdG9QAVoqZ2l0aHViLmNvbS9icm9jYWFyL2No", + "aXJwc3RhY2stYXBpL2dvL3YzL2FzqgIcQ2hpcnBzdGFjay5BcHBsaWNhdGlv", + "blNlcnZlcmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.ApplicationServer.RXWindow), typeof(global::Chirpstack.ApplicationServer.ErrorType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.DeviceActivationContext), global::Chirpstack.ApplicationServer.DeviceActivationContext.Parser, new[]{ "DevAddr", "AppSKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.HandleUplinkDataRequest), global::Chirpstack.ApplicationServer.HandleUplinkDataRequest.Parser, new[]{ "DevEui", "JoinEui", "FCnt", "FPort", "Adr", "Dr", "TxInfo", "RxInfo", "Data", "DeviceActivationContext", "ConfirmedUplink" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.HandleProprietaryUplinkRequest), global::Chirpstack.ApplicationServer.HandleProprietaryUplinkRequest.Parser, new[]{ "MacPayload", "Mic", "TxInfo", "RxInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.HandleErrorRequest), global::Chirpstack.ApplicationServer.HandleErrorRequest.Parser, new[]{ "DevEui", "Type", "Error", "FCnt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.HandleDownlinkACKRequest), global::Chirpstack.ApplicationServer.HandleDownlinkACKRequest.Parser, new[]{ "DevEui", "FCnt", "Acknowledged" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.SetDeviceStatusRequest), global::Chirpstack.ApplicationServer.SetDeviceStatusRequest.Parser, new[]{ "DevEui", "Battery", "Margin", "ExternalPowerSource", "BatteryLevelUnavailable", "BatteryLevel" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.SetDeviceLocationRequest), global::Chirpstack.ApplicationServer.SetDeviceLocationRequest.Parser, new[]{ "DevEui", "Location", "UplinkIds" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.HandleGatewayStatsRequest), global::Chirpstack.ApplicationServer.HandleGatewayStatsRequest.Parser, new[]{ "GatewayId", "StatsId", "Time", "Location", "RxPacketsReceived", "RxPacketsReceivedOk", "TxPacketsReceived", "TxPacketsEmitted", "Metadata", "TxPacketsPerFrequency", "RxPacketsPerFrequency", "TxPacketsPerDr", "RxPacketsPerDr", "TxPacketsPerStatus" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.HandleTxAckRequest), global::Chirpstack.ApplicationServer.HandleTxAckRequest.Parser, new[]{ "DevEui", "FCnt", "GatewayId", "TxInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItemsRequest), global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItemsRequest.Parser, new[]{ "DevEui", "DevAddr", "FCntStart", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItemsResponse), global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItemsResponse.Parser, new[]{ "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItem), global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItem.Parser, new[]{ "FrmPayload", "FCnt", "FPort", "Confirmed" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.ReEncryptedDeviceQueueItem), global::Chirpstack.ApplicationServer.ReEncryptedDeviceQueueItem.Parser, new[]{ "FrmPayload", "FCnt", "FPort", "Confirmed" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum RXWindow { + [pbr::OriginalName("RX1")] Rx1 = 0, + [pbr::OriginalName("RX2")] Rx2 = 1, + } + + public enum ErrorType { + /// + /// Generic error type. + /// + [pbr::OriginalName("GENERIC")] Generic = 0, + /// + /// OTAA error. + /// + [pbr::OriginalName("OTAA")] Otaa = 1, + /// + /// Uplink frame-counter was reset. + /// + [pbr::OriginalName("DATA_UP_FCNT_RESET")] DataUpFcntReset = 2, + /// + /// Uplink MIC error. + /// + [pbr::OriginalName("DATA_UP_MIC")] DataUpMic = 3, + /// + /// Downlink payload size error. + /// + [pbr::OriginalName("DEVICE_QUEUE_ITEM_SIZE")] DeviceQueueItemSize = 4, + /// + /// Downlink frame-counter error. + /// + [pbr::OriginalName("DEVICE_QUEUE_ITEM_FCNT")] DeviceQueueItemFcnt = 5, + /// + /// Uplink frame-counter retransmission. + /// + [pbr::OriginalName("DATA_UP_FCNT_RETRANSMISSION")] DataUpFcntRetransmission = 6, + /// + /// Downlink gateway error. + /// + [pbr::OriginalName("DATA_DOWN_GATEWAY")] DataDownGateway = 7, + } + + #endregion + + #region Messages + public sealed partial class DeviceActivationContext : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceActivationContext()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 DeviceActivationContext() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceActivationContext(DeviceActivationContext other) : this() { + devAddr_ = other.devAddr_; + appSKey_ = other.appSKey_ != null ? other.appSKey_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceActivationContext Clone() { + return new DeviceActivationContext(this); + } + + /// Field number for the "dev_addr" field. + public const int DevAddrFieldNumber = 1; + private pb::ByteString devAddr_ = pb::ByteString.Empty; + /// + /// Assigned Device Address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevAddr { + get { return devAddr_; } + set { + devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "app_s_key" field. + public const int AppSKeyFieldNumber = 2; + private global::Chirpstack.Common.KeyEnvelope appSKey_; + /// + /// Application session key (envelope). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.KeyEnvelope AppSKey { + get { return appSKey_; } + set { + appSKey_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeviceActivationContext); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeviceActivationContext other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevAddr != other.DevAddr) return false; + if (!object.Equals(AppSKey, other.AppSKey)) return false; + 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 (appSKey_ != null) hash ^= AppSKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevAddr); + } + if (appSKey_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AppSKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(DevAddr); + } + if (appSKey_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AppSKey); + } + if (_unknownFields != 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.ComputeBytesSize(DevAddr); + } + if (appSKey_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AppSKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeviceActivationContext other) { + if (other == null) { + return; + } + if (other.DevAddr.Length != 0) { + DevAddr = other.DevAddr; + } + if (other.appSKey_ != null) { + if (appSKey_ == null) { + AppSKey = new global::Chirpstack.Common.KeyEnvelope(); + } + AppSKey.MergeFrom(other.AppSKey); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 18: { + if (appSKey_ == null) { + AppSKey = new global::Chirpstack.Common.KeyEnvelope(); + } + input.ReadMessage(AppSKey); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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.ReadBytes(); + break; + } + case 18: { + if (appSKey_ == null) { + AppSKey = new global::Chirpstack.Common.KeyEnvelope(); + } + input.ReadMessage(AppSKey); + break; + } + } + } + } + #endif + + } + + public sealed partial class HandleUplinkDataRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleUplinkDataRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 HandleUplinkDataRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleUplinkDataRequest(HandleUplinkDataRequest other) : this() { + devEui_ = other.devEui_; + joinEui_ = other.joinEui_; + fCnt_ = other.fCnt_; + fPort_ = other.fPort_; + adr_ = other.adr_; + dr_ = other.dr_; + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + rxInfo_ = other.rxInfo_.Clone(); + data_ = other.data_; + deviceActivationContext_ = other.deviceActivationContext_ != null ? other.deviceActivationContext_.Clone() : null; + confirmedUplink_ = other.confirmedUplink_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleUplinkDataRequest Clone() { + return new HandleUplinkDataRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "join_eui" field. + public const int JoinEuiFieldNumber = 2; + private pb::ByteString joinEui_ = pb::ByteString.Empty; + /// + /// Join EUI used for OTAA activation (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString JoinEui { + get { return joinEui_; } + set { + joinEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 3; + 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 = 4; + 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 "adr" field. + public const int AdrFieldNumber = 5; + private bool adr_; + /// + /// ADR enabled. + /// + [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 "tx_info" field. + public const int TxInfoFieldNumber = 7; + 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 = 8; + private static readonly pb::FieldCodec _repeated_rxInfo_codec + = pb::FieldCodec.ForMessage(66, 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 "data" field. + public const int DataFieldNumber = 9; + private pb::ByteString data_ = pb::ByteString.Empty; + /// + /// Received data (encrypted). + /// + [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 "device_activation_context" field. + public const int DeviceActivationContextFieldNumber = 10; + private global::Chirpstack.ApplicationServer.DeviceActivationContext deviceActivationContext_; + /// + /// Device activation context. + /// + /// This field is only set on the first uplink frame when the security + /// context has changed (e.g. a new OTAA (re)activation). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.DeviceActivationContext DeviceActivationContext { + get { return deviceActivationContext_; } + set { + deviceActivationContext_ = value; + } + } + + /// Field number for the "confirmed_uplink" field. + public const int ConfirmedUplinkFieldNumber = 11; + private bool confirmedUplink_; + /// + /// Uplink was of type confirmed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ConfirmedUplink { + get { return confirmedUplink_; } + set { + confirmedUplink_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HandleUplinkDataRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleUplinkDataRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (JoinEui != other.JoinEui) return false; + if (FCnt != other.FCnt) return false; + if (FPort != other.FPort) return false; + if (Adr != other.Adr) return false; + if (Dr != other.Dr) return false; + if (!object.Equals(TxInfo, other.TxInfo)) return false; + if(!rxInfo_.Equals(other.rxInfo_)) return false; + if (Data != other.Data) return false; + if (!object.Equals(DeviceActivationContext, other.DeviceActivationContext)) return false; + if (ConfirmedUplink != other.ConfirmedUplink) return false; + 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 (JoinEui.Length != 0) hash ^= JoinEui.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.GetHashCode(); + if (FPort != 0) hash ^= FPort.GetHashCode(); + if (Adr != false) hash ^= Adr.GetHashCode(); + if (Dr != 0) hash ^= Dr.GetHashCode(); + if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); + hash ^= rxInfo_.GetHashCode(); + if (Data.Length != 0) hash ^= Data.GetHashCode(); + if (deviceActivationContext_ != null) hash ^= DeviceActivationContext.GetHashCode(); + if (ConfirmedUplink != false) hash ^= ConfirmedUplink.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevEui); + } + if (JoinEui.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(JoinEui); + } + if (FCnt != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(32); + output.WriteUInt32(FPort); + } + if (Adr != false) { + output.WriteRawTag(40); + output.WriteBool(Adr); + } + if (Dr != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Dr); + } + if (txInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(TxInfo); + } + rxInfo_.WriteTo(output, _repeated_rxInfo_codec); + if (Data.Length != 0) { + output.WriteRawTag(74); + output.WriteBytes(Data); + } + if (deviceActivationContext_ != null) { + output.WriteRawTag(82); + output.WriteMessage(DeviceActivationContext); + } + if (ConfirmedUplink != false) { + output.WriteRawTag(88); + output.WriteBool(ConfirmedUplink); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(DevEui); + } + if (JoinEui.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(JoinEui); + } + if (FCnt != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(32); + output.WriteUInt32(FPort); + } + if (Adr != false) { + output.WriteRawTag(40); + output.WriteBool(Adr); + } + if (Dr != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Dr); + } + if (txInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(TxInfo); + } + rxInfo_.WriteTo(ref output, _repeated_rxInfo_codec); + if (Data.Length != 0) { + output.WriteRawTag(74); + output.WriteBytes(Data); + } + if (deviceActivationContext_ != null) { + output.WriteRawTag(82); + output.WriteMessage(DeviceActivationContext); + } + if (ConfirmedUplink != false) { + output.WriteRawTag(88); + output.WriteBool(ConfirmedUplink); + } + if (_unknownFields != 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.ComputeBytesSize(DevEui); + } + if (JoinEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(JoinEui); + } + if (FCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); + } + if (FPort != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FPort); + } + if (Adr != false) { + size += 1 + 1; + } + if (Dr != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Dr); + } + if (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + size += rxInfo_.CalculateSize(_repeated_rxInfo_codec); + if (Data.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); + } + if (deviceActivationContext_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceActivationContext); + } + if (ConfirmedUplink != 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(HandleUplinkDataRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.JoinEui.Length != 0) { + JoinEui = other.JoinEui; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + if (other.FPort != 0) { + FPort = other.FPort; + } + if (other.Adr != false) { + Adr = other.Adr; + } + if (other.Dr != 0) { + Dr = other.Dr; + } + if (other.txInfo_ != null) { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + TxInfo.MergeFrom(other.TxInfo); + } + rxInfo_.Add(other.rxInfo_); + if (other.Data.Length != 0) { + Data = other.Data; + } + if (other.deviceActivationContext_ != null) { + if (deviceActivationContext_ == null) { + DeviceActivationContext = new global::Chirpstack.ApplicationServer.DeviceActivationContext(); + } + DeviceActivationContext.MergeFrom(other.DeviceActivationContext); + } + if (other.ConfirmedUplink != false) { + ConfirmedUplink = other.ConfirmedUplink; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 18: { + JoinEui = input.ReadBytes(); + break; + } + case 24: { + FCnt = input.ReadUInt32(); + break; + } + case 32: { + FPort = input.ReadUInt32(); + break; + } + case 40: { + Adr = input.ReadBool(); + break; + } + case 48: { + Dr = input.ReadUInt32(); + break; + } + case 58: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 66: { + rxInfo_.AddEntriesFrom(input, _repeated_rxInfo_codec); + break; + } + case 74: { + Data = input.ReadBytes(); + break; + } + case 82: { + if (deviceActivationContext_ == null) { + DeviceActivationContext = new global::Chirpstack.ApplicationServer.DeviceActivationContext(); + } + input.ReadMessage(DeviceActivationContext); + break; + } + case 88: { + ConfirmedUplink = 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.ReadBytes(); + break; + } + case 18: { + JoinEui = input.ReadBytes(); + break; + } + case 24: { + FCnt = input.ReadUInt32(); + break; + } + case 32: { + FPort = input.ReadUInt32(); + break; + } + case 40: { + Adr = input.ReadBool(); + break; + } + case 48: { + Dr = input.ReadUInt32(); + break; + } + case 58: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 66: { + rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); + break; + } + case 74: { + Data = input.ReadBytes(); + break; + } + case 82: { + if (deviceActivationContext_ == null) { + DeviceActivationContext = new global::Chirpstack.ApplicationServer.DeviceActivationContext(); + } + input.ReadMessage(DeviceActivationContext); + break; + } + case 88: { + ConfirmedUplink = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class HandleProprietaryUplinkRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleProprietaryUplinkRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 HandleProprietaryUplinkRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleProprietaryUplinkRequest(HandleProprietaryUplinkRequest other) : this() { + macPayload_ = other.macPayload_; + mic_ = other.mic_; + 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 HandleProprietaryUplinkRequest Clone() { + return new HandleProprietaryUplinkRequest(this); + } + + /// Field number for the "mac_payload" field. + public const int MacPayloadFieldNumber = 1; + private pb::ByteString macPayload_ = pb::ByteString.Empty; + /// + /// MACPayload of the proprietary LoRaWAN frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString MacPayload { + get { return macPayload_; } + set { + macPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mic" field. + public const int MicFieldNumber = 2; + private pb::ByteString mic_ = pb::ByteString.Empty; + /// + /// MIC of the proprietary LoRaWAN frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Mic { + get { return mic_; } + set { + mic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tx_info" field. + public const int TxInfoFieldNumber = 3; + private global::Chirpstack.Gateway.UplinkTXInfo txInfo_; + /// + /// TXInfo contains the TX related 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 = 4; + private static readonly pb::FieldCodec _repeated_rxInfo_codec + = pb::FieldCodec.ForMessage(34, global::Chirpstack.Gateway.UplinkRXInfo.Parser); + private readonly pbc::RepeatedField rxInfo_ = new pbc::RepeatedField(); + /// + /// RXInfo contains the RX related meta-data. + /// + [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 HandleProprietaryUplinkRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleProprietaryUplinkRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MacPayload != other.MacPayload) return false; + if (Mic != other.Mic) 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 (MacPayload.Length != 0) hash ^= MacPayload.GetHashCode(); + if (Mic.Length != 0) hash ^= Mic.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 (MacPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(MacPayload); + } + if (Mic.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Mic); + } + if (txInfo_ != null) { + output.WriteRawTag(26); + 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 (MacPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(MacPayload); + } + if (Mic.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Mic); + } + if (txInfo_ != null) { + output.WriteRawTag(26); + 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 (MacPayload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(MacPayload); + } + if (Mic.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Mic); + } + 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(HandleProprietaryUplinkRequest other) { + if (other == null) { + return; + } + if (other.MacPayload.Length != 0) { + MacPayload = other.MacPayload; + } + if (other.Mic.Length != 0) { + Mic = other.Mic; + } + 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: { + MacPayload = input.ReadBytes(); + break; + } + case 18: { + Mic = input.ReadBytes(); + break; + } + case 26: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 34: { + 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: { + MacPayload = input.ReadBytes(); + break; + } + case 18: { + Mic = input.ReadBytes(); + break; + } + case 26: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 34: { + rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class HandleErrorRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleErrorRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 HandleErrorRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleErrorRequest(HandleErrorRequest other) : this() { + devEui_ = other.devEui_; + type_ = other.type_; + error_ = other.error_; + fCnt_ = other.fCnt_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleErrorRequest Clone() { + return new HandleErrorRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 3; + private global::Chirpstack.ApplicationServer.ErrorType type_ = global::Chirpstack.ApplicationServer.ErrorType.Generic; + /// + /// Type of the error. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.ErrorType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 4; + private string error_ = ""; + /// + /// Error string describing the error. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Error { + get { return error_; } + set { + error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 5; + private uint fCnt_; + /// + /// Frame-counter (if applicable) related to the error. + /// + [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 HandleErrorRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleErrorRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (Type != other.Type) return false; + if (Error != other.Error) return false; + 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 (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (Type != global::Chirpstack.ApplicationServer.ErrorType.Generic) hash ^= Type.GetHashCode(); + if (Error.Length != 0) hash ^= Error.GetHashCode(); + 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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (Type != global::Chirpstack.ApplicationServer.ErrorType.Generic) { + output.WriteRawTag(24); + output.WriteEnum((int) Type); + } + if (Error.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Error); + } + if (FCnt != 0) { + output.WriteRawTag(40); + 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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (Type != global::Chirpstack.ApplicationServer.ErrorType.Generic) { + output.WriteRawTag(24); + output.WriteEnum((int) Type); + } + if (Error.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Error); + } + if (FCnt != 0) { + output.WriteRawTag(40); + 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 (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (Type != global::Chirpstack.ApplicationServer.ErrorType.Generic) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (Error.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } + 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(HandleErrorRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.Type != global::Chirpstack.ApplicationServer.ErrorType.Generic) { + Type = other.Type; + } + if (other.Error.Length != 0) { + Error = other.Error; + } + 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 10: { + DevEui = input.ReadBytes(); + break; + } + case 24: { + Type = (global::Chirpstack.ApplicationServer.ErrorType) input.ReadEnum(); + break; + } + case 34: { + Error = input.ReadString(); + break; + } + case 40: { + 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 10: { + DevEui = input.ReadBytes(); + break; + } + case 24: { + Type = (global::Chirpstack.ApplicationServer.ErrorType) input.ReadEnum(); + break; + } + case 34: { + Error = input.ReadString(); + break; + } + case 40: { + FCnt = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class HandleDownlinkACKRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleDownlinkACKRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 HandleDownlinkACKRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleDownlinkACKRequest(HandleDownlinkACKRequest other) : this() { + devEui_ = other.devEui_; + fCnt_ = other.fCnt_; + acknowledged_ = other.acknowledged_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleDownlinkACKRequest Clone() { + return new HandleDownlinkACKRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 2; + private uint fCnt_; + /// + /// Downlink 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 "acknowledged" field. + public const int AcknowledgedFieldNumber = 3; + 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; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HandleDownlinkACKRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleDownlinkACKRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (FCnt != other.FCnt) return false; + if (Acknowledged != other.Acknowledged) return false; + 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 (FCnt != 0) hash ^= FCnt.GetHashCode(); + if (Acknowledged != false) hash ^= Acknowledged.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevEui); + } + if (FCnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FCnt); + } + if (Acknowledged != false) { + output.WriteRawTag(24); + output.WriteBool(Acknowledged); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(DevEui); + } + if (FCnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FCnt); + } + if (Acknowledged != false) { + output.WriteRawTag(24); + output.WriteBool(Acknowledged); + } + if (_unknownFields != 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.ComputeBytesSize(DevEui); + } + if (FCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); + } + if (Acknowledged != 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(HandleDownlinkACKRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + if (other.Acknowledged != false) { + Acknowledged = other.Acknowledged; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 16: { + FCnt = input.ReadUInt32(); + break; + } + case 24: { + Acknowledged = 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.ReadBytes(); + break; + } + case 16: { + FCnt = input.ReadUInt32(); + break; + } + case 24: { + Acknowledged = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetDeviceStatusRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetDeviceStatusRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 SetDeviceStatusRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetDeviceStatusRequest(SetDeviceStatusRequest other) : this() { + devEui_ = other.devEui_; + battery_ = other.battery_; + 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 SetDeviceStatusRequest Clone() { + return new SetDeviceStatusRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "battery" field. + public const int BatteryFieldNumber = 2; + private uint battery_; + /// + /// Battery level (deprecated, use battery_level). + /// 0: The end-device is connected to an external power source + /// 1..254: The battery level, 1 being at minimum and 254 being at maximum + /// 255: The end-device was not able to measure the battery level + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Battery { + get { return battery_; } + set { + battery_ = value; + } + } + + /// Field number for the "margin" field. + public const int MarginFieldNumber = 3; + 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 = 4; + 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 = 5; + private bool batteryLevelUnavailable_; + /// + /// Device battery status 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 = 6; + private float batteryLevel_; + /// + /// Battery level as a percentage. + /// + [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 SetDeviceStatusRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetDeviceStatusRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (Battery != other.Battery) 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 (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (Battery != 0) hash ^= Battery.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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (Battery != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Battery); + } + if (Margin != 0) { + output.WriteRawTag(24); + output.WriteInt32(Margin); + } + if (ExternalPowerSource != false) { + output.WriteRawTag(32); + output.WriteBool(ExternalPowerSource); + } + if (BatteryLevelUnavailable != false) { + output.WriteRawTag(40); + output.WriteBool(BatteryLevelUnavailable); + } + if (BatteryLevel != 0F) { + output.WriteRawTag(53); + 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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (Battery != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Battery); + } + if (Margin != 0) { + output.WriteRawTag(24); + output.WriteInt32(Margin); + } + if (ExternalPowerSource != false) { + output.WriteRawTag(32); + output.WriteBool(ExternalPowerSource); + } + if (BatteryLevelUnavailable != false) { + output.WriteRawTag(40); + output.WriteBool(BatteryLevelUnavailable); + } + if (BatteryLevel != 0F) { + output.WriteRawTag(53); + 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 (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (Battery != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Battery); + } + 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(SetDeviceStatusRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.Battery != 0) { + Battery = other.Battery; + } + 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: { + DevEui = input.ReadBytes(); + break; + } + case 16: { + Battery = input.ReadUInt32(); + break; + } + case 24: { + Margin = input.ReadInt32(); + break; + } + case 32: { + ExternalPowerSource = input.ReadBool(); + break; + } + case 40: { + BatteryLevelUnavailable = input.ReadBool(); + break; + } + case 53: { + 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: { + DevEui = input.ReadBytes(); + break; + } + case 16: { + Battery = input.ReadUInt32(); + break; + } + case 24: { + Margin = input.ReadInt32(); + break; + } + case 32: { + ExternalPowerSource = input.ReadBool(); + break; + } + case 40: { + BatteryLevelUnavailable = input.ReadBool(); + break; + } + case 53: { + BatteryLevel = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetDeviceLocationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetDeviceLocationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 SetDeviceLocationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetDeviceLocationRequest(SetDeviceLocationRequest other) : this() { + devEui_ = other.devEui_; + location_ = other.location_ != null ? other.location_.Clone() : null; + uplinkIds_ = other.uplinkIds_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetDeviceLocationRequest Clone() { + return new SetDeviceLocationRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 2; + private global::Chirpstack.Common.Location location_; + /// + /// The location of the device. + /// + [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 "uplink_ids" field. + public const int UplinkIdsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_uplinkIds_codec + = pb::FieldCodec.ForBytes(26); + private readonly pbc::RepeatedField uplinkIds_ = new pbc::RepeatedField(); + /// + /// Uplink IDs used for geolocation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UplinkIds { + get { return uplinkIds_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetDeviceLocationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetDeviceLocationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (!object.Equals(Location, other.Location)) return false; + if(!uplinkIds_.Equals(other.uplinkIds_)) return false; + 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 (location_ != null) hash ^= Location.GetHashCode(); + hash ^= uplinkIds_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevEui); + } + if (location_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Location); + } + uplinkIds_.WriteTo(output, _repeated_uplinkIds_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.WriteBytes(DevEui); + } + if (location_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Location); + } + uplinkIds_.WriteTo(ref output, _repeated_uplinkIds_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.ComputeBytesSize(DevEui); + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + size += uplinkIds_.CalculateSize(_repeated_uplinkIds_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetDeviceLocationRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.location_ != null) { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + Location.MergeFrom(other.Location); + } + uplinkIds_.Add(other.uplinkIds_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 18: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 26: { + uplinkIds_.AddEntriesFrom(input, _repeated_uplinkIds_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.ReadBytes(); + break; + } + case 18: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 26: { + uplinkIds_.AddEntriesFrom(ref input, _repeated_uplinkIds_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class HandleGatewayStatsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleGatewayStatsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 HandleGatewayStatsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleGatewayStatsRequest(HandleGatewayStatsRequest other) : this() { + gatewayId_ = other.gatewayId_; + statsId_ = other.statsId_; + time_ = other.time_ != null ? other.time_.Clone() : null; + location_ = other.location_ != null ? other.location_.Clone() : null; + rxPacketsReceived_ = other.rxPacketsReceived_; + rxPacketsReceivedOk_ = other.rxPacketsReceivedOk_; + txPacketsReceived_ = other.txPacketsReceived_; + txPacketsEmitted_ = other.txPacketsEmitted_; + metadata_ = other.metadata_.Clone(); + txPacketsPerFrequency_ = other.txPacketsPerFrequency_.Clone(); + rxPacketsPerFrequency_ = other.rxPacketsPerFrequency_.Clone(); + txPacketsPerDr_ = other.txPacketsPerDr_.Clone(); + rxPacketsPerDr_ = other.rxPacketsPerDr_.Clone(); + txPacketsPerStatus_ = other.txPacketsPerStatus_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleGatewayStatsRequest Clone() { + return new HandleGatewayStatsRequest(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + private pb::ByteString gatewayId_ = pb::ByteString.Empty; + /// + /// Gateway ID (8 bytes). + /// + [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 "stats_id" field. + public const int StatsIdFieldNumber = 2; + private pb::ByteString statsId_ = pb::ByteString.Empty; + /// + /// Stats ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString StatsId { + get { return statsId_; } + set { + statsId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 3; + 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 "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 "rx_packets_received" field. + public const int RxPacketsReceivedFieldNumber = 5; + private uint rxPacketsReceived_; + /// + /// Uplink frames 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_; + /// + /// Uplink frames received OK. + /// + [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_; + /// + /// Downlink transmissions requested. + /// + [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_; + /// + /// Downlink 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 = 9; + private static readonly pbc::MapField.Codec _map_metadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 74); + private readonly pbc::MapField metadata_ = new pbc::MapField(); + /// + /// Gateway metadata. + /// + [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 = 10; + private static readonly pbc::MapField.Codec _map_txPacketsPerFrequency_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 82); + 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 = 11; + private static readonly pbc::MapField.Codec _map_rxPacketsPerFrequency_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 90); + 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_dr" field. + public const int TxPacketsPerDrFieldNumber = 12; + private static readonly pbc::MapField.Codec _map_txPacketsPerDr_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 98); + private readonly pbc::MapField txPacketsPerDr_ = new pbc::MapField(); + /// + /// Tx packets per DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField TxPacketsPerDr { + get { return txPacketsPerDr_; } + } + + /// Field number for the "rx_packets_per_dr" field. + public const int RxPacketsPerDrFieldNumber = 13; + private static readonly pbc::MapField.Codec _map_rxPacketsPerDr_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 106); + private readonly pbc::MapField rxPacketsPerDr_ = new pbc::MapField(); + /// + /// Rx packets per DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField RxPacketsPerDr { + get { return rxPacketsPerDr_; } + } + + /// Field number for the "tx_packets_per_status" field. + public const int TxPacketsPerStatusFieldNumber = 14; + private static readonly pbc::MapField.Codec _map_txPacketsPerStatus_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForUInt32(16, 0), 114); + 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 HandleGatewayStatsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleGatewayStatsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) return false; + if (StatsId != other.StatsId) return false; + if (!object.Equals(Time, other.Time)) return false; + if (!object.Equals(Location, other.Location)) 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 (!TxPacketsPerDr.Equals(other.TxPacketsPerDr)) return false; + if (!RxPacketsPerDr.Equals(other.RxPacketsPerDr)) 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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (StatsId.Length != 0) hash ^= StatsId.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (location_ != null) hash ^= Location.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 ^= TxPacketsPerDr.GetHashCode(); + hash ^= RxPacketsPerDr.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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (StatsId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(StatsId); + } + if (time_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Time); + } + if (location_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Location); + } + 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); + txPacketsPerDr_.WriteTo(output, _map_txPacketsPerDr_codec); + rxPacketsPerDr_.WriteTo(output, _map_rxPacketsPerDr_codec); + txPacketsPerStatus_.WriteTo(output, _map_txPacketsPerStatus_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 (StatsId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(StatsId); + } + if (time_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Time); + } + if (location_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Location); + } + 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); + txPacketsPerDr_.WriteTo(ref output, _map_txPacketsPerDr_codec); + rxPacketsPerDr_.WriteTo(ref output, _map_rxPacketsPerDr_codec); + txPacketsPerStatus_.WriteTo(ref output, _map_txPacketsPerStatus_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 (StatsId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(StatsId); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + 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 += txPacketsPerDr_.CalculateSize(_map_txPacketsPerDr_codec); + size += rxPacketsPerDr_.CalculateSize(_map_rxPacketsPerDr_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(HandleGatewayStatsRequest other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.StatsId.Length != 0) { + StatsId = other.StatsId; + } + 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.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_); + txPacketsPerDr_.Add(other.txPacketsPerDr_); + rxPacketsPerDr_.Add(other.rxPacketsPerDr_); + 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: { + GatewayId = input.ReadBytes(); + break; + } + case 18: { + StatsId = input.ReadBytes(); + break; + } + case 26: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 34: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + 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 74: { + metadata_.AddEntriesFrom(input, _map_metadata_codec); + break; + } + case 82: { + txPacketsPerFrequency_.AddEntriesFrom(input, _map_txPacketsPerFrequency_codec); + break; + } + case 90: { + rxPacketsPerFrequency_.AddEntriesFrom(input, _map_rxPacketsPerFrequency_codec); + break; + } + case 98: { + txPacketsPerDr_.AddEntriesFrom(input, _map_txPacketsPerDr_codec); + break; + } + case 106: { + rxPacketsPerDr_.AddEntriesFrom(input, _map_rxPacketsPerDr_codec); + break; + } + case 114: { + txPacketsPerStatus_.AddEntriesFrom(input, _map_txPacketsPerStatus_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: { + StatsId = input.ReadBytes(); + break; + } + case 26: { + if (time_ == null) { + Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Time); + break; + } + case 34: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + 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 74: { + metadata_.AddEntriesFrom(ref input, _map_metadata_codec); + break; + } + case 82: { + txPacketsPerFrequency_.AddEntriesFrom(ref input, _map_txPacketsPerFrequency_codec); + break; + } + case 90: { + rxPacketsPerFrequency_.AddEntriesFrom(ref input, _map_rxPacketsPerFrequency_codec); + break; + } + case 98: { + txPacketsPerDr_.AddEntriesFrom(ref input, _map_txPacketsPerDr_codec); + break; + } + case 106: { + rxPacketsPerDr_.AddEntriesFrom(ref input, _map_rxPacketsPerDr_codec); + break; + } + case 114: { + txPacketsPerStatus_.AddEntriesFrom(ref input, _map_txPacketsPerStatus_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class HandleTxAckRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleTxAckRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 HandleTxAckRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleTxAckRequest(HandleTxAckRequest other) : this() { + devEui_ = other.devEui_; + fCnt_ = other.fCnt_; + 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 HandleTxAckRequest Clone() { + return new HandleTxAckRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 2; + private uint fCnt_; + /// + /// Downlink 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 "gateway_id" field. + public const int GatewayIdFieldNumber = 3; + 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 "tx_info" field. + public const int TxInfoFieldNumber = 4; + private global::Chirpstack.Gateway.DownlinkTXInfo txInfo_; + /// + /// TXInfo contains the TX related 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 HandleTxAckRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleTxAckRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (FCnt != other.FCnt) 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 (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (FCnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FCnt); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(GatewayId); + } + if (txInfo_ != null) { + output.WriteRawTag(34); + 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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (FCnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FCnt); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(GatewayId); + } + if (txInfo_ != null) { + output.WriteRawTag(34); + 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 (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (FCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(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(HandleTxAckRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + 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 10: { + DevEui = input.ReadBytes(); + break; + } + case 16: { + FCnt = input.ReadUInt32(); + break; + } + case 26: { + GatewayId = input.ReadBytes(); + break; + } + case 34: { + 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: { + DevEui = input.ReadBytes(); + break; + } + case 16: { + FCnt = input.ReadUInt32(); + break; + } + case 26: { + GatewayId = input.ReadBytes(); + break; + } + case 34: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReEncryptDeviceQueueItemsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReEncryptDeviceQueueItemsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 ReEncryptDeviceQueueItemsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEncryptDeviceQueueItemsRequest(ReEncryptDeviceQueueItemsRequest other) : this() { + devEui_ = other.devEui_; + devAddr_ = other.devAddr_; + fCntStart_ = other.fCntStart_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEncryptDeviceQueueItemsRequest Clone() { + return new ReEncryptDeviceQueueItemsRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI of the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dev_addr" field. + public const int DevAddrFieldNumber = 2; + private pb::ByteString devAddr_ = pb::ByteString.Empty; + /// + /// Device addres. + /// This is the device address which was used to encrypt the given + /// payloads. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevAddr { + get { return devAddr_; } + set { + devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt_start" field. + public const int FCntStartFieldNumber = 3; + private uint fCntStart_; + /// + /// Downlink frame-counter to start with. + /// The application-server must use this value when encrypting the first + /// item, and increment it for each successive item. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FCntStart { + get { return fCntStart_; } + set { + fCntStart_ = value; + } + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(34, global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItem.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + /// + /// Items to re-encrypt. + /// + [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 ReEncryptDeviceQueueItemsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReEncryptDeviceQueueItemsRequest 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 (FCntStart != other.FCntStart) 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 (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); + if (FCntStart != 0) hash ^= FCntStart.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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(DevAddr); + } + if (FCntStart != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FCntStart); + } + 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) { + if (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(DevAddr); + } + if (FCntStart != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FCntStart); + } + 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; + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (DevAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevAddr); + } + if (FCntStart != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCntStart); + } + 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(ReEncryptDeviceQueueItemsRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.DevAddr.Length != 0) { + DevAddr = other.DevAddr; + } + if (other.FCntStart != 0) { + FCntStart = other.FCntStart; + } + 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: { + DevEui = input.ReadBytes(); + break; + } + case 18: { + DevAddr = input.ReadBytes(); + break; + } + case 24: { + FCntStart = input.ReadUInt32(); + break; + } + case 34: { + 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: { + DevEui = input.ReadBytes(); + break; + } + case 18: { + DevAddr = input.ReadBytes(); + break; + } + case 24: { + FCntStart = input.ReadUInt32(); + break; + } + case 34: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReEncryptDeviceQueueItemsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReEncryptDeviceQueueItemsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 ReEncryptDeviceQueueItemsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEncryptDeviceQueueItemsResponse(ReEncryptDeviceQueueItemsResponse other) : this() { + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEncryptDeviceQueueItemsResponse Clone() { + return new ReEncryptDeviceQueueItemsResponse(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.ApplicationServer.ReEncryptedDeviceQueueItem.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 ReEncryptDeviceQueueItemsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReEncryptDeviceQueueItemsResponse 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(ReEncryptDeviceQueueItemsResponse 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 + + } + + public sealed partial class ReEncryptDeviceQueueItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReEncryptDeviceQueueItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 ReEncryptDeviceQueueItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEncryptDeviceQueueItem(ReEncryptDeviceQueueItem other) : this() { + frmPayload_ = other.frmPayload_; + fCnt_ = other.fCnt_; + fPort_ = other.fPort_; + confirmed_ = other.confirmed_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEncryptDeviceQueueItem Clone() { + return new ReEncryptDeviceQueueItem(this); + } + + /// Field number for the "frm_payload" field. + public const int FrmPayloadFieldNumber = 1; + private pb::ByteString frmPayload_ = pb::ByteString.Empty; + /// + /// The encrypted FRMPayload bytes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString FrmPayload { + get { return frmPayload_; } + set { + frmPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 2; + private uint fCnt_; + /// + /// The original FCnt of the payload. + /// + [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_; + /// + /// The FPort of the payload. + /// + [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 = 4; + private bool confirmed_; + /// + /// Payload is of type confirmed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Confirmed { + get { return confirmed_; } + set { + confirmed_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReEncryptDeviceQueueItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReEncryptDeviceQueueItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FrmPayload != other.FrmPayload) return false; + if (FCnt != other.FCnt) return false; + if (FPort != other.FPort) return false; + if (Confirmed != other.Confirmed) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FrmPayload.Length != 0) hash ^= FrmPayload.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.GetHashCode(); + if (FPort != 0) hash ^= FPort.GetHashCode(); + if (Confirmed != false) hash ^= Confirmed.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FrmPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(FrmPayload); + } + if (FCnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FPort); + } + if (Confirmed != false) { + output.WriteRawTag(32); + output.WriteBool(Confirmed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FrmPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(FrmPayload); + } + if (FCnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FPort); + } + if (Confirmed != false) { + output.WriteRawTag(32); + output.WriteBool(Confirmed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FrmPayload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(FrmPayload); + } + 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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReEncryptDeviceQueueItem other) { + if (other == null) { + return; + } + if (other.FrmPayload.Length != 0) { + FrmPayload = other.FrmPayload; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + if (other.FPort != 0) { + FPort = other.FPort; + } + if (other.Confirmed != false) { + Confirmed = other.Confirmed; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + FrmPayload = input.ReadBytes(); + break; + } + case 16: { + FCnt = input.ReadUInt32(); + break; + } + case 24: { + FPort = input.ReadUInt32(); + break; + } + case 32: { + Confirmed = 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: { + FrmPayload = input.ReadBytes(); + break; + } + case 16: { + FCnt = input.ReadUInt32(); + break; + } + case 24: { + FPort = input.ReadUInt32(); + break; + } + case 32: { + Confirmed = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ReEncryptedDeviceQueueItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReEncryptedDeviceQueueItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.AsReflection.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 ReEncryptedDeviceQueueItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEncryptedDeviceQueueItem(ReEncryptedDeviceQueueItem other) : this() { + frmPayload_ = other.frmPayload_; + fCnt_ = other.fCnt_; + fPort_ = other.fPort_; + confirmed_ = other.confirmed_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEncryptedDeviceQueueItem Clone() { + return new ReEncryptedDeviceQueueItem(this); + } + + /// Field number for the "frm_payload" field. + public const int FrmPayloadFieldNumber = 1; + private pb::ByteString frmPayload_ = pb::ByteString.Empty; + /// + /// The re-encrypted FRMPayload bytes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString FrmPayload { + get { return frmPayload_; } + set { + frmPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 2; + private uint fCnt_; + /// + /// The new FCnt of the payload. + /// + [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_; + /// + /// The FPort of the payload. + /// + [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 = 4; + private bool confirmed_; + /// + /// Payload is of type confirmed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Confirmed { + get { return confirmed_; } + set { + confirmed_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReEncryptedDeviceQueueItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReEncryptedDeviceQueueItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FrmPayload != other.FrmPayload) return false; + if (FCnt != other.FCnt) return false; + if (FPort != other.FPort) return false; + if (Confirmed != other.Confirmed) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FrmPayload.Length != 0) hash ^= FrmPayload.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.GetHashCode(); + if (FPort != 0) hash ^= FPort.GetHashCode(); + if (Confirmed != false) hash ^= Confirmed.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FrmPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(FrmPayload); + } + if (FCnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FPort); + } + if (Confirmed != false) { + output.WriteRawTag(32); + output.WriteBool(Confirmed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FrmPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(FrmPayload); + } + if (FCnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FPort); + } + if (Confirmed != false) { + output.WriteRawTag(32); + output.WriteBool(Confirmed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FrmPayload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(FrmPayload); + } + 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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReEncryptedDeviceQueueItem other) { + if (other == null) { + return; + } + if (other.FrmPayload.Length != 0) { + FrmPayload = other.FrmPayload; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + if (other.FPort != 0) { + FPort = other.FPort; + } + if (other.Confirmed != false) { + Confirmed = other.Confirmed; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + FrmPayload = input.ReadBytes(); + break; + } + case 16: { + FCnt = input.ReadUInt32(); + break; + } + case 24: { + FPort = input.ReadUInt32(); + break; + } + case 32: { + Confirmed = 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: { + FrmPayload = input.ReadBytes(); + break; + } + case 16: { + FCnt = input.ReadUInt32(); + break; + } + case 24: { + FPort = input.ReadUInt32(); + break; + } + case 32: { + Confirmed = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/as/AsGrpc.cs b/csharp/protobuf/as/AsGrpc.cs new file mode 100644 index 00000000..4df93449 --- /dev/null +++ b/csharp/protobuf/as/AsGrpc.cs @@ -0,0 +1,805 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/as.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer { + /// + /// ApplicationServerService is the service providing the application-server interface. + /// + public static partial class ApplicationServerService + { + static readonly string __ServiceName = "as.ApplicationServerService"; + + [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_as_HandleUplinkDataRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.HandleUplinkDataRequest.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_as_HandleProprietaryUplinkRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.HandleProprietaryUplinkRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_as_HandleErrorRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.HandleErrorRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_as_HandleDownlinkACKRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.HandleDownlinkACKRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_as_HandleGatewayStatsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.HandleGatewayStatsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_as_HandleTxAckRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.HandleTxAckRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_as_SetDeviceStatusRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.SetDeviceStatusRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_as_SetDeviceLocationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.SetDeviceLocationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_as_ReEncryptDeviceQueueItemsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItemsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_as_ReEncryptDeviceQueueItemsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItemsResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_HandleUplinkData = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "HandleUplinkData", + __Marshaller_as_HandleUplinkDataRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_HandleProprietaryUplink = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "HandleProprietaryUplink", + __Marshaller_as_HandleProprietaryUplinkRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_HandleError = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "HandleError", + __Marshaller_as_HandleErrorRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_HandleDownlinkACK = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "HandleDownlinkACK", + __Marshaller_as_HandleDownlinkACKRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_HandleGatewayStats = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "HandleGatewayStats", + __Marshaller_as_HandleGatewayStatsRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_HandleTxAck = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "HandleTxAck", + __Marshaller_as_HandleTxAckRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_SetDeviceStatus = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "SetDeviceStatus", + __Marshaller_as_SetDeviceStatusRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_SetDeviceLocation = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "SetDeviceLocation", + __Marshaller_as_SetDeviceLocationRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ReEncryptDeviceQueueItems = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ReEncryptDeviceQueueItems", + __Marshaller_as_ReEncryptDeviceQueueItemsRequest, + __Marshaller_as_ReEncryptDeviceQueueItemsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.ApplicationServer.AsReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of ApplicationServerService + [grpc::BindServiceMethod(typeof(ApplicationServerService), "BindService")] + public abstract partial class ApplicationServerServiceBase + { + /// + /// HandleUplinkData handles uplink data received from an end-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 HandleUplinkData(global::Chirpstack.ApplicationServer.HandleUplinkDataRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// HandleProprietaryUplink handles proprietary uplink payloads. + /// + /// 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 HandleProprietaryUplink(global::Chirpstack.ApplicationServer.HandleProprietaryUplinkRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// HandleError handles an error message. + /// + /// 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 HandleError(global::Chirpstack.ApplicationServer.HandleErrorRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// HandleDownlinkACK handles a downlink ACK or nACK response. + /// + /// 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 HandleDownlinkACK(global::Chirpstack.ApplicationServer.HandleDownlinkACKRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// HandleGatewayStats handles the given gateway stats. + /// + /// 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 HandleGatewayStats(global::Chirpstack.ApplicationServer.HandleGatewayStatsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// HandleTXACK handles the TX acknowledgement. + /// + /// 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 HandleTxAck(global::Chirpstack.ApplicationServer.HandleTxAckRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// SetDeviceStatus updates the device-status for a 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 SetDeviceStatus(global::Chirpstack.ApplicationServer.SetDeviceStatusRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// SetDeviceLocation updates the device-location for a 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 SetDeviceLocation(global::Chirpstack.ApplicationServer.SetDeviceLocationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// ReEncryptDeviceQueueItems requests the application-server to re-encrypt + /// the given payload items using the new parameters. This request is + /// for example triggered when the associated frame-counter of a downlink + /// payload will be used by a mac-layer only payload, e.g. when the NS has + /// mac-commands (or ACKs) to send to the device and combining this with + /// an application-layer payload would exceed the max. payload size. + /// Note there is no requirement that the number of returned items must be + /// equal to the number of requested items. + /// + /// 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 ReEncryptDeviceQueueItems(global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItemsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for ApplicationServerService + public partial class ApplicationServerServiceClient : grpc::ClientBase + { + /// Creates a new client for ApplicationServerService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public ApplicationServerServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for ApplicationServerService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public ApplicationServerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected ApplicationServerServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected ApplicationServerServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// HandleUplinkData handles uplink data received from an end-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 HandleUplinkData(global::Chirpstack.ApplicationServer.HandleUplinkDataRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleUplinkData(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleUplinkData handles uplink data received from an end-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 HandleUplinkData(global::Chirpstack.ApplicationServer.HandleUplinkDataRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_HandleUplinkData, null, options, request); + } + /// + /// HandleUplinkData handles uplink data received from an end-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 HandleUplinkDataAsync(global::Chirpstack.ApplicationServer.HandleUplinkDataRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleUplinkDataAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleUplinkData handles uplink data received from an end-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 HandleUplinkDataAsync(global::Chirpstack.ApplicationServer.HandleUplinkDataRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_HandleUplinkData, null, options, request); + } + /// + /// HandleProprietaryUplink handles proprietary uplink payloads. + /// + /// 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 HandleProprietaryUplink(global::Chirpstack.ApplicationServer.HandleProprietaryUplinkRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleProprietaryUplink(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleProprietaryUplink handles proprietary uplink payloads. + /// + /// 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 HandleProprietaryUplink(global::Chirpstack.ApplicationServer.HandleProprietaryUplinkRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_HandleProprietaryUplink, null, options, request); + } + /// + /// HandleProprietaryUplink handles proprietary uplink payloads. + /// + /// 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 HandleProprietaryUplinkAsync(global::Chirpstack.ApplicationServer.HandleProprietaryUplinkRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleProprietaryUplinkAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleProprietaryUplink handles proprietary uplink payloads. + /// + /// 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 HandleProprietaryUplinkAsync(global::Chirpstack.ApplicationServer.HandleProprietaryUplinkRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_HandleProprietaryUplink, null, options, request); + } + /// + /// HandleError handles an error message. + /// + /// 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 HandleError(global::Chirpstack.ApplicationServer.HandleErrorRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleError(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleError handles an error message. + /// + /// 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 HandleError(global::Chirpstack.ApplicationServer.HandleErrorRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_HandleError, null, options, request); + } + /// + /// HandleError handles an error message. + /// + /// 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 HandleErrorAsync(global::Chirpstack.ApplicationServer.HandleErrorRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleErrorAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleError handles an error message. + /// + /// 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 HandleErrorAsync(global::Chirpstack.ApplicationServer.HandleErrorRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_HandleError, null, options, request); + } + /// + /// HandleDownlinkACK handles a downlink ACK or nACK response. + /// + /// 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 HandleDownlinkACK(global::Chirpstack.ApplicationServer.HandleDownlinkACKRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleDownlinkACK(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleDownlinkACK handles a downlink ACK or nACK response. + /// + /// 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 HandleDownlinkACK(global::Chirpstack.ApplicationServer.HandleDownlinkACKRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_HandleDownlinkACK, null, options, request); + } + /// + /// HandleDownlinkACK handles a downlink ACK or nACK response. + /// + /// 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 HandleDownlinkACKAsync(global::Chirpstack.ApplicationServer.HandleDownlinkACKRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleDownlinkACKAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleDownlinkACK handles a downlink ACK or nACK response. + /// + /// 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 HandleDownlinkACKAsync(global::Chirpstack.ApplicationServer.HandleDownlinkACKRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_HandleDownlinkACK, null, options, request); + } + /// + /// HandleGatewayStats handles the given gateway stats. + /// + /// 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 HandleGatewayStats(global::Chirpstack.ApplicationServer.HandleGatewayStatsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleGatewayStats(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleGatewayStats handles the given gateway stats. + /// + /// 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 HandleGatewayStats(global::Chirpstack.ApplicationServer.HandleGatewayStatsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_HandleGatewayStats, null, options, request); + } + /// + /// HandleGatewayStats handles the given gateway stats. + /// + /// 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 HandleGatewayStatsAsync(global::Chirpstack.ApplicationServer.HandleGatewayStatsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleGatewayStatsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleGatewayStats handles the given gateway stats. + /// + /// 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 HandleGatewayStatsAsync(global::Chirpstack.ApplicationServer.HandleGatewayStatsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_HandleGatewayStats, null, options, request); + } + /// + /// HandleTXACK handles the TX acknowledgement. + /// + /// 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 HandleTxAck(global::Chirpstack.ApplicationServer.HandleTxAckRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleTxAck(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleTXACK handles the TX acknowledgement. + /// + /// 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 HandleTxAck(global::Chirpstack.ApplicationServer.HandleTxAckRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_HandleTxAck, null, options, request); + } + /// + /// HandleTXACK handles the TX acknowledgement. + /// + /// 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 HandleTxAckAsync(global::Chirpstack.ApplicationServer.HandleTxAckRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleTxAckAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleTXACK handles the TX acknowledgement. + /// + /// 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 HandleTxAckAsync(global::Chirpstack.ApplicationServer.HandleTxAckRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_HandleTxAck, null, options, request); + } + /// + /// SetDeviceStatus updates the device-status for a 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 SetDeviceStatus(global::Chirpstack.ApplicationServer.SetDeviceStatusRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SetDeviceStatus(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// SetDeviceStatus updates the device-status for a 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 SetDeviceStatus(global::Chirpstack.ApplicationServer.SetDeviceStatusRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_SetDeviceStatus, null, options, request); + } + /// + /// SetDeviceStatus updates the device-status for a 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 SetDeviceStatusAsync(global::Chirpstack.ApplicationServer.SetDeviceStatusRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SetDeviceStatusAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// SetDeviceStatus updates the device-status for a 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 SetDeviceStatusAsync(global::Chirpstack.ApplicationServer.SetDeviceStatusRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_SetDeviceStatus, null, options, request); + } + /// + /// SetDeviceLocation updates the device-location for a 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 SetDeviceLocation(global::Chirpstack.ApplicationServer.SetDeviceLocationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SetDeviceLocation(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// SetDeviceLocation updates the device-location for a 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 SetDeviceLocation(global::Chirpstack.ApplicationServer.SetDeviceLocationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_SetDeviceLocation, null, options, request); + } + /// + /// SetDeviceLocation updates the device-location for a 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 SetDeviceLocationAsync(global::Chirpstack.ApplicationServer.SetDeviceLocationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SetDeviceLocationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// SetDeviceLocation updates the device-location for a 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 SetDeviceLocationAsync(global::Chirpstack.ApplicationServer.SetDeviceLocationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_SetDeviceLocation, null, options, request); + } + /// + /// ReEncryptDeviceQueueItems requests the application-server to re-encrypt + /// the given payload items using the new parameters. This request is + /// for example triggered when the associated frame-counter of a downlink + /// payload will be used by a mac-layer only payload, e.g. when the NS has + /// mac-commands (or ACKs) to send to the device and combining this with + /// an application-layer payload would exceed the max. payload size. + /// Note there is no requirement that the number of returned items must be + /// equal to the number of requested items. + /// + /// 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.ApplicationServer.ReEncryptDeviceQueueItemsResponse ReEncryptDeviceQueueItems(global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItemsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ReEncryptDeviceQueueItems(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ReEncryptDeviceQueueItems requests the application-server to re-encrypt + /// the given payload items using the new parameters. This request is + /// for example triggered when the associated frame-counter of a downlink + /// payload will be used by a mac-layer only payload, e.g. when the NS has + /// mac-commands (or ACKs) to send to the device and combining this with + /// an application-layer payload would exceed the max. payload size. + /// Note there is no requirement that the number of returned items must be + /// equal to the number of requested items. + /// + /// 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.ApplicationServer.ReEncryptDeviceQueueItemsResponse ReEncryptDeviceQueueItems(global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItemsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ReEncryptDeviceQueueItems, null, options, request); + } + /// + /// ReEncryptDeviceQueueItems requests the application-server to re-encrypt + /// the given payload items using the new parameters. This request is + /// for example triggered when the associated frame-counter of a downlink + /// payload will be used by a mac-layer only payload, e.g. when the NS has + /// mac-commands (or ACKs) to send to the device and combining this with + /// an application-layer payload would exceed the max. payload size. + /// Note there is no requirement that the number of returned items must be + /// equal to the number of requested items. + /// + /// 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 ReEncryptDeviceQueueItemsAsync(global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItemsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ReEncryptDeviceQueueItemsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ReEncryptDeviceQueueItems requests the application-server to re-encrypt + /// the given payload items using the new parameters. This request is + /// for example triggered when the associated frame-counter of a downlink + /// payload will be used by a mac-layer only payload, e.g. when the NS has + /// mac-commands (or ACKs) to send to the device and combining this with + /// an application-layer payload would exceed the max. payload size. + /// Note there is no requirement that the number of returned items must be + /// equal to the number of requested items. + /// + /// 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 ReEncryptDeviceQueueItemsAsync(global::Chirpstack.ApplicationServer.ReEncryptDeviceQueueItemsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ReEncryptDeviceQueueItems, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override ApplicationServerServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new ApplicationServerServiceClient(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(ApplicationServerServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_HandleUplinkData, serviceImpl.HandleUplinkData) + .AddMethod(__Method_HandleProprietaryUplink, serviceImpl.HandleProprietaryUplink) + .AddMethod(__Method_HandleError, serviceImpl.HandleError) + .AddMethod(__Method_HandleDownlinkACK, serviceImpl.HandleDownlinkACK) + .AddMethod(__Method_HandleGatewayStats, serviceImpl.HandleGatewayStats) + .AddMethod(__Method_HandleTxAck, serviceImpl.HandleTxAck) + .AddMethod(__Method_SetDeviceStatus, serviceImpl.SetDeviceStatus) + .AddMethod(__Method_SetDeviceLocation, serviceImpl.SetDeviceLocation) + .AddMethod(__Method_ReEncryptDeviceQueueItems, serviceImpl.ReEncryptDeviceQueueItems).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, ApplicationServerServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_HandleUplinkData, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.HandleUplinkData)); + serviceBinder.AddMethod(__Method_HandleProprietaryUplink, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.HandleProprietaryUplink)); + serviceBinder.AddMethod(__Method_HandleError, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.HandleError)); + serviceBinder.AddMethod(__Method_HandleDownlinkACK, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.HandleDownlinkACK)); + serviceBinder.AddMethod(__Method_HandleGatewayStats, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.HandleGatewayStats)); + serviceBinder.AddMethod(__Method_HandleTxAck, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.HandleTxAck)); + serviceBinder.AddMethod(__Method_SetDeviceStatus, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetDeviceStatus)); + serviceBinder.AddMethod(__Method_SetDeviceLocation, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetDeviceLocation)); + serviceBinder.AddMethod(__Method_ReEncryptDeviceQueueItems, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ReEncryptDeviceQueueItems)); + } + + } +} +#endregion diff --git a/csharp/protobuf/as/external/api/Application.cs b/csharp/protobuf/as/external/api/Application.cs new file mode 100644 index 00000000..9964fb2d --- /dev/null +++ b/csharp/protobuf/as/external/api/Application.cs @@ -0,0 +1,17227 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/application.proto + public static partial class ApplicationReflection { + + #region Descriptor + /// File descriptor for as/external/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( + "CiFhcy9leHRlcm5hbC9hcGkvYXBwbGljYXRpb24ucHJvdG8SA2FwaRofZ29v", + "Z2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90bxocZ29vZ2xlL2FwaS9hbm5v", + "dGF0aW9ucy5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvIuoB", + "CgtBcHBsaWNhdGlvbhIKCgJpZBgBIAEoAxIMCgRuYW1lGAIgASgJEhMKC2Rl", + "c2NyaXB0aW9uGAMgASgJEicKD29yZ2FuaXphdGlvbl9pZBgEIAEoA1IOb3Jn", + "YW5pemF0aW9uSUQSLAoSc2VydmljZV9wcm9maWxlX2lkGAUgASgJUhBzZXJ2", + "aWNlUHJvZmlsZUlEEhUKDXBheWxvYWRfY29kZWMYBiABKAkSHgoWcGF5bG9h", + "ZF9lbmNvZGVyX3NjcmlwdBgHIAEoCRIeChZwYXlsb2FkX2RlY29kZXJfc2Ny", + "aXB0GAggASgJIrkBChNBcHBsaWNhdGlvbkxpc3RJdGVtEgoKAmlkGAEgASgD", + "EgwKBG5hbWUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSJwoPb3JnYW5p", + "emF0aW9uX2lkGAQgASgDUg5vcmdhbml6YXRpb25JRBIsChJzZXJ2aWNlX3By", + "b2ZpbGVfaWQYBSABKAlSEHNlcnZpY2VQcm9maWxlSUQSHAoUc2VydmljZV9w", + "cm9maWxlX25hbWUYBiABKAkiQQoYQ3JlYXRlQXBwbGljYXRpb25SZXF1ZXN0", + "EiUKC2FwcGxpY2F0aW9uGAEgASgLMhAuYXBpLkFwcGxpY2F0aW9uIicKGUNy", + "ZWF0ZUFwcGxpY2F0aW9uUmVzcG9uc2USCgoCaWQYASABKAMiIwoVR2V0QXBw", + "bGljYXRpb25SZXF1ZXN0EgoKAmlkGAEgASgDIj8KFkdldEFwcGxpY2F0aW9u", + "UmVzcG9uc2USJQoLYXBwbGljYXRpb24YASABKAsyEC5hcGkuQXBwbGljYXRp", + "b24iQQoYVXBkYXRlQXBwbGljYXRpb25SZXF1ZXN0EiUKC2FwcGxpY2F0aW9u", + "GAEgASgLMhAuYXBpLkFwcGxpY2F0aW9uIiYKGERlbGV0ZUFwcGxpY2F0aW9u", + "UmVxdWVzdBIKCgJpZBgBIAEoAyJwChZMaXN0QXBwbGljYXRpb25SZXF1ZXN0", + "Eg0KBWxpbWl0GAEgASgDEg4KBm9mZnNldBgCIAEoAxInCg9vcmdhbml6YXRp", + "b25faWQYAyABKANSDm9yZ2FuaXphdGlvbklEEg4KBnNlYXJjaBgEIAEoCSJY", + "ChdMaXN0QXBwbGljYXRpb25SZXNwb25zZRITCgt0b3RhbF9jb3VudBgBIAEo", + "AxIoCgZyZXN1bHQYAiADKAsyGC5hcGkuQXBwbGljYXRpb25MaXN0SXRlbSIz", + "ChVIVFRQSW50ZWdyYXRpb25IZWFkZXISCwoDa2V5GAEgASgJEg0KBXZhbHVl", + "GAIgASgJIucECg9IVFRQSW50ZWdyYXRpb24SJQoOYXBwbGljYXRpb25faWQY", + "ASABKANSDWFwcGxpY2F0aW9uSUQSKwoHaGVhZGVycxgCIAMoCzIaLmFwaS5I", + "VFRQSW50ZWdyYXRpb25IZWFkZXISJgoPdXBsaW5rX2RhdGFfdXJsGAMgASgJ", + "Ug11cGxpbmtEYXRhVVJMEjIKFWpvaW5fbm90aWZpY2F0aW9uX3VybBgEIAEo", + "CVITam9pbk5vdGlmaWNhdGlvblVSTBIwChRhY2tfbm90aWZpY2F0aW9uX3Vy", + "bBgFIAEoCVISYWNrTm90aWZpY2F0aW9uVVJMEjQKFmVycm9yX25vdGlmaWNh", + "dGlvbl91cmwYBiABKAlSFGVycm9yTm90aWZpY2F0aW9uVVJMEjYKF3N0YXR1", + "c19ub3RpZmljYXRpb25fdXJsGAcgASgJUhVzdGF0dXNOb3RpZmljYXRpb25V", + "UkwSOgoZbG9jYXRpb25fbm90aWZpY2F0aW9uX3VybBgIIAEoCVIXbG9jYXRp", + "b25Ob3RpZmljYXRpb25VUkwSNQoXdHhfYWNrX25vdGlmaWNhdGlvbl91cmwY", + "CSABKAlSFHR4QWNrTm90aWZpY2F0aW9uVVJMEkAKHGludGVncmF0aW9uX25v", + "dGlmaWNhdGlvbl91cmwYCiABKAlSGmludGVncmF0aW9uTm90aWZpY2F0aW9u", + "VVJMEiEKCW1hcnNoYWxlchgLIAEoDjIOLmFwaS5NYXJzaGFsZXISLAoSZXZl", + "bnRfZW5kcG9pbnRfdXJsGAwgASgJUhBldmVudEVuZHBvaW50VVJMIkkKHENy", + "ZWF0ZUhUVFBJbnRlZ3JhdGlvblJlcXVlc3QSKQoLaW50ZWdyYXRpb24YASAB", + "KAsyFC5hcGkuSFRUUEludGVncmF0aW9uIkIKGUdldEhUVFBJbnRlZ3JhdGlv", + "blJlcXVlc3QSJQoOYXBwbGljYXRpb25faWQYASABKANSDWFwcGxpY2F0aW9u", + "SUQiRwoaR2V0SFRUUEludGVncmF0aW9uUmVzcG9uc2USKQoLaW50ZWdyYXRp", + "b24YASABKAsyFC5hcGkuSFRUUEludGVncmF0aW9uIkkKHFVwZGF0ZUhUVFBJ", + "bnRlZ3JhdGlvblJlcXVlc3QSKQoLaW50ZWdyYXRpb24YASABKAsyFC5hcGku", + "SFRUUEludGVncmF0aW9uIkUKHERlbGV0ZUhUVFBJbnRlZ3JhdGlvblJlcXVl", + "c3QSJQoOYXBwbGljYXRpb25faWQYASABKANSDWFwcGxpY2F0aW9uSUQiPwoW", + "TGlzdEludGVncmF0aW9uUmVxdWVzdBIlCg5hcHBsaWNhdGlvbl9pZBgBIAEo", + "A1INYXBwbGljYXRpb25JRCI5ChNJbnRlZ3JhdGlvbkxpc3RJdGVtEiIKBGtp", + "bmQYASABKA4yFC5hcGkuSW50ZWdyYXRpb25LaW5kIlgKF0xpc3RJbnRlZ3Jh", + "dGlvblJlc3BvbnNlEhMKC3RvdGFsX2NvdW50GAEgASgDEigKBnJlc3VsdBgC", + "IAMoCzIYLmFwaS5JbnRlZ3JhdGlvbkxpc3RJdGVtIqQCChNJbmZsdXhEQklu", + "dGVncmF0aW9uEiUKDmFwcGxpY2F0aW9uX2lkGAEgASgDUg1hcHBsaWNhdGlv", + "bklEEhAKCGVuZHBvaW50GAIgASgJEgoKAmRiGAMgASgJEhAKCHVzZXJuYW1l", + "GAQgASgJEhAKCHBhc3N3b3JkGAUgASgJEh0KFXJldGVudGlvbl9wb2xpY3lf", + "bmFtZRgGIAEoCRIpCglwcmVjaXNpb24YByABKA4yFi5hcGkuSW5mbHV4REJQ", + "cmVjaXNpb24SJQoHdmVyc2lvbhgIIAEoDjIULmFwaS5JbmZsdXhEQlZlcnNp", + "b24SDQoFdG9rZW4YCSABKAkSFAoMb3JnYW5pemF0aW9uGAogASgJEg4KBmJ1", + "Y2tldBgLIAEoCSJRCiBDcmVhdGVJbmZsdXhEQkludGVncmF0aW9uUmVxdWVz", + "dBItCgtpbnRlZ3JhdGlvbhgBIAEoCzIYLmFwaS5JbmZsdXhEQkludGVncmF0", + "aW9uIkYKHUdldEluZmx1eERCSW50ZWdyYXRpb25SZXF1ZXN0EiUKDmFwcGxp", + "Y2F0aW9uX2lkGAEgASgDUg1hcHBsaWNhdGlvbklEIk8KHkdldEluZmx1eERC", + "SW50ZWdyYXRpb25SZXNwb25zZRItCgtpbnRlZ3JhdGlvbhgBIAEoCzIYLmFw", + "aS5JbmZsdXhEQkludGVncmF0aW9uIlEKIFVwZGF0ZUluZmx1eERCSW50ZWdy", + "YXRpb25SZXF1ZXN0Ei0KC2ludGVncmF0aW9uGAEgASgLMhguYXBpLkluZmx1", + "eERCSW50ZWdyYXRpb24iSQogRGVsZXRlSW5mbHV4REJJbnRlZ3JhdGlvblJl", + "cXVlc3QSJQoOYXBwbGljYXRpb25faWQYASABKANSDWFwcGxpY2F0aW9uSUQi", + "TwoWVGhpbmdzQm9hcmRJbnRlZ3JhdGlvbhIlCg5hcHBsaWNhdGlvbl9pZBgB", + "IAEoA1INYXBwbGljYXRpb25JRBIOCgZzZXJ2ZXIYAiABKAkiVwojQ3JlYXRl", + "VGhpbmdzQm9hcmRJbnRlZ3JhdGlvblJlcXVlc3QSMAoLaW50ZWdyYXRpb24Y", + "ASABKAsyGy5hcGkuVGhpbmdzQm9hcmRJbnRlZ3JhdGlvbiJJCiBHZXRUaGlu", + "Z3NCb2FyZEludGVncmF0aW9uUmVxdWVzdBIlCg5hcHBsaWNhdGlvbl9pZBgB", + "IAEoA1INYXBwbGljYXRpb25JRCJVCiFHZXRUaGluZ3NCb2FyZEludGVncmF0", + "aW9uUmVzcG9uc2USMAoLaW50ZWdyYXRpb24YASABKAsyGy5hcGkuVGhpbmdz", + "Qm9hcmRJbnRlZ3JhdGlvbiJXCiNVcGRhdGVUaGluZ3NCb2FyZEludGVncmF0", + "aW9uUmVxdWVzdBIwCgtpbnRlZ3JhdGlvbhgBIAEoCzIbLmFwaS5UaGluZ3NC", + "b2FyZEludGVncmF0aW9uIkwKI0RlbGV0ZVRoaW5nc0JvYXJkSW50ZWdyYXRp", + "b25SZXF1ZXN0EiUKDmFwcGxpY2F0aW9uX2lkGAEgASgDUg1hcHBsaWNhdGlv", + "bklEIk8KFE15RGV2aWNlc0ludGVncmF0aW9uEiUKDmFwcGxpY2F0aW9uX2lk", + "GAEgASgDUg1hcHBsaWNhdGlvbklEEhAKCGVuZHBvaW50GAIgASgJIlMKIUNy", + "ZWF0ZU15RGV2aWNlc0ludGVncmF0aW9uUmVxdWVzdBIuCgtpbnRlZ3JhdGlv", + "bhgBIAEoCzIZLmFwaS5NeURldmljZXNJbnRlZ3JhdGlvbiJHCh5HZXRNeURl", + "dmljZXNJbnRlZ3JhdGlvblJlcXVlc3QSJQoOYXBwbGljYXRpb25faWQYASAB", + "KANSDWFwcGxpY2F0aW9uSUQiUQofR2V0TXlEZXZpY2VzSW50ZWdyYXRpb25S", + "ZXNwb25zZRIuCgtpbnRlZ3JhdGlvbhgBIAEoCzIZLmFwaS5NeURldmljZXNJ", + "bnRlZ3JhdGlvbiJTCiFVcGRhdGVNeURldmljZXNJbnRlZ3JhdGlvblJlcXVl", + "c3QSLgoLaW50ZWdyYXRpb24YASABKAsyGS5hcGkuTXlEZXZpY2VzSW50ZWdy", + "YXRpb24iSgohRGVsZXRlTXlEZXZpY2VzSW50ZWdyYXRpb25SZXF1ZXN0EiUK", + "DmFwcGxpY2F0aW9uX2lkGAEgASgDUg1hcHBsaWNhdGlvbklEIvMFChRMb1Jh", + "Q2xvdWRJbnRlZ3JhdGlvbhIlCg5hcHBsaWNhdGlvbl9pZBgBIAEoA1INYXBw", + "bGljYXRpb25JRBITCgtnZW9sb2NhdGlvbhgCIAEoCBIZChFnZW9sb2NhdGlv", + "bl90b2tlbhgDIAEoCRI0ChZnZW9sb2NhdGlvbl9idWZmZXJfdHRsGAQgASgN", + "UhRnZW9sb2NhdGlvbkJ1ZmZlclRUTBIjChtnZW9sb2NhdGlvbl9taW5fYnVm", + "ZmVyX3NpemUYBSABKA0SKQoQZ2VvbG9jYXRpb25fdGRvYRgGIAEoCFIPZ2Vv", + "bG9jYXRpb25URE9BEikKEGdlb2xvY2F0aW9uX3Jzc2kYByABKAhSD2dlb2xv", + "Y2F0aW9uUlNTSRIpChBnZW9sb2NhdGlvbl9nbnNzGAggASgIUg9nZW9sb2Nh", + "dGlvbkdOU1MSQwoeZ2VvbG9jYXRpb25fZ25zc19wYXlsb2FkX2ZpZWxkGAkg", + "ASgJUhtnZW9sb2NhdGlvbkdOU1NQYXlsb2FkRmllbGQSPgocZ2VvbG9jYXRp", + "b25fZ25zc191c2VfcnhfdGltZRgKIAEoCFIYZ2VvbG9jYXRpb25HTlNTVXNl", + "UnhUaW1lEikKEGdlb2xvY2F0aW9uX3dpZmkYCyABKAhSD2dlb2xvY2F0aW9u", + "V2lmaRJDCh5nZW9sb2NhdGlvbl93aWZpX3BheWxvYWRfZmllbGQYDCABKAlS", + "G2dlb2xvY2F0aW9uV2lmaVBheWxvYWRGaWVsZBILCgNkYXMYDSABKAgSEQoJ", + "ZGFzX3Rva2VuGA4gASgJEhYKDmRhc19tb2RlbV9wb3J0GA8gASgNEiIKDWRh", + "c19nbnNzX3BvcnQYECABKA1SC2Rhc0dOU1NQb3J0Ei4KFGRhc19nbnNzX3Vz", + "ZV9yeF90aW1lGBEgASgIUhBkYXNHTlNTVXNlUnhUaW1lEicKH2Rhc19zdHJl", + "YW1pbmdfZ2VvbG9jX3dvcmthcm91bmQYEiABKAgiUwohQ3JlYXRlTG9SYUNs", + "b3VkSW50ZWdyYXRpb25SZXF1ZXN0Ei4KC2ludGVncmF0aW9uGAEgASgLMhku", + "YXBpLkxvUmFDbG91ZEludGVncmF0aW9uIkcKHkdldExvUmFDbG91ZEludGVn", + "cmF0aW9uUmVxdWVzdBIlCg5hcHBsaWNhdGlvbl9pZBgBIAEoA1INYXBwbGlj", + "YXRpb25JRCJRCh9HZXRMb1JhQ2xvdWRJbnRlZ3JhdGlvblJlc3BvbnNlEi4K", + "C2ludGVncmF0aW9uGAEgASgLMhkuYXBpLkxvUmFDbG91ZEludGVncmF0aW9u", + "IlMKIVVwZGF0ZUxvUmFDbG91ZEludGVncmF0aW9uUmVxdWVzdBIuCgtpbnRl", + "Z3JhdGlvbhgBIAEoCzIZLmFwaS5Mb1JhQ2xvdWRJbnRlZ3JhdGlvbiJKCiFE", + "ZWxldGVMb1JhQ2xvdWRJbnRlZ3JhdGlvblJlcXVlc3QSJQoOYXBwbGljYXRp", + "b25faWQYASABKANSDWFwcGxpY2F0aW9uSUQirQEKFEdDUFB1YlN1YkludGVn", + "cmF0aW9uEiUKDmFwcGxpY2F0aW9uX2lkGAEgASgDUg1hcHBsaWNhdGlvbklE", + "EiEKCW1hcnNoYWxlchgCIAEoDjIOLmFwaS5NYXJzaGFsZXISGAoQY3JlZGVu", + "dGlhbHNfZmlsZRgDIAEoCRIdCgpwcm9qZWN0X2lkGAQgASgJUglwcm9qZWN0", + "SUQSEgoKdG9waWNfbmFtZRgFIAEoCSJTCiFDcmVhdGVHQ1BQdWJTdWJJbnRl", + "Z3JhdGlvblJlcXVlc3QSLgoLaW50ZWdyYXRpb24YASABKAsyGS5hcGkuR0NQ", + "UHViU3ViSW50ZWdyYXRpb24iRwoeR2V0R0NQUHViU3ViSW50ZWdyYXRpb25S", + "ZXF1ZXN0EiUKDmFwcGxpY2F0aW9uX2lkGAEgASgDUg1hcHBsaWNhdGlvbklE", + "IlEKH0dldEdDUFB1YlN1YkludGVncmF0aW9uUmVzcG9uc2USLgoLaW50ZWdy", + "YXRpb24YASABKAsyGS5hcGkuR0NQUHViU3ViSW50ZWdyYXRpb24iUwohVXBk", + "YXRlR0NQUHViU3ViSW50ZWdyYXRpb25SZXF1ZXN0Ei4KC2ludGVncmF0aW9u", + "GAEgASgLMhkuYXBpLkdDUFB1YlN1YkludGVncmF0aW9uIkoKIURlbGV0ZUdD", + "UFB1YlN1YkludGVncmF0aW9uUmVxdWVzdBIlCg5hcHBsaWNhdGlvbl9pZBgB", + "IAEoA1INYXBwbGljYXRpb25JRCLJAQoRQVdTU05TSW50ZWdyYXRpb24SJQoO", + "YXBwbGljYXRpb25faWQYASABKANSDWFwcGxpY2F0aW9uSUQSIQoJbWFyc2hh", + "bGVyGAIgASgOMg4uYXBpLk1hcnNoYWxlchIOCgZyZWdpb24YAyABKAkSIgoN", + "YWNjZXNzX2tleV9pZBgEIAEoCVILYWNjZXNzS2V5SUQSGQoRc2VjcmV0X2Fj", + "Y2Vzc19rZXkYBSABKAkSGwoJdG9waWNfYXJuGAYgASgJUgh0b3BpY0FSTiJN", + "Ch5DcmVhdGVBV1NTTlNJbnRlZ3JhdGlvblJlcXVlc3QSKwoLaW50ZWdyYXRp", + "b24YASABKAsyFi5hcGkuQVdTU05TSW50ZWdyYXRpb24iRAobR2V0QVdTU05T", + "SW50ZWdyYXRpb25SZXF1ZXN0EiUKDmFwcGxpY2F0aW9uX2lkGAEgASgDUg1h", + "cHBsaWNhdGlvbklEIksKHEdldEFXU1NOU0ludGVncmF0aW9uUmVzcG9uc2US", + "KwoLaW50ZWdyYXRpb24YASABKAsyFi5hcGkuQVdTU05TSW50ZWdyYXRpb24i", + "TQoeVXBkYXRlQVdTU05TSW50ZWdyYXRpb25SZXF1ZXN0EisKC2ludGVncmF0", + "aW9uGAEgASgLMhYuYXBpLkFXU1NOU0ludGVncmF0aW9uIkcKHkRlbGV0ZUFX", + "U1NOU0ludGVncmF0aW9uUmVxdWVzdBIlCg5hcHBsaWNhdGlvbl9pZBgBIAEo", + "A1INYXBwbGljYXRpb25JRCKXAQoaQXp1cmVTZXJ2aWNlQnVzSW50ZWdyYXRp", + "b24SJQoOYXBwbGljYXRpb25faWQYASABKANSDWFwcGxpY2F0aW9uSUQSIQoJ", + "bWFyc2hhbGVyGAIgASgOMg4uYXBpLk1hcnNoYWxlchIZChFjb25uZWN0aW9u", + "X3N0cmluZxgDIAEoCRIUCgxwdWJsaXNoX25hbWUYBCABKAkiXwonQ3JlYXRl", + "QXp1cmVTZXJ2aWNlQnVzSW50ZWdyYXRpb25SZXF1ZXN0EjQKC2ludGVncmF0", + "aW9uGAEgASgLMh8uYXBpLkF6dXJlU2VydmljZUJ1c0ludGVncmF0aW9uIk0K", + "JEdldEF6dXJlU2VydmljZUJ1c0ludGVncmF0aW9uUmVxdWVzdBIlCg5hcHBs", + "aWNhdGlvbl9pZBgBIAEoA1INYXBwbGljYXRpb25JRCJdCiVHZXRBenVyZVNl", + "cnZpY2VCdXNJbnRlZ3JhdGlvblJlc3BvbnNlEjQKC2ludGVncmF0aW9uGAEg", + "ASgLMh8uYXBpLkF6dXJlU2VydmljZUJ1c0ludGVncmF0aW9uIl8KJ1VwZGF0", + "ZUF6dXJlU2VydmljZUJ1c0ludGVncmF0aW9uUmVxdWVzdBI0CgtpbnRlZ3Jh", + "dGlvbhgBIAEoCzIfLmFwaS5BenVyZVNlcnZpY2VCdXNJbnRlZ3JhdGlvbiJQ", + "CidEZWxldGVBenVyZVNlcnZpY2VCdXNJbnRlZ3JhdGlvblJlcXVlc3QSJQoO", + "YXBwbGljYXRpb25faWQYASABKANSDWFwcGxpY2F0aW9uSUQiXgoWUGlsb3RU", + "aGluZ3NJbnRlZ3JhdGlvbhIlCg5hcHBsaWNhdGlvbl9pZBgBIAEoA1INYXBw", + "bGljYXRpb25JRBIOCgZzZXJ2ZXIYAiABKAkSDQoFdG9rZW4YAyABKAkiVwoj", + "Q3JlYXRlUGlsb3RUaGluZ3NJbnRlZ3JhdGlvblJlcXVlc3QSMAoLaW50ZWdy", + "YXRpb24YASABKAsyGy5hcGkuUGlsb3RUaGluZ3NJbnRlZ3JhdGlvbiJJCiBH", + "ZXRQaWxvdFRoaW5nc0ludGVncmF0aW9uUmVxdWVzdBIlCg5hcHBsaWNhdGlv", + "bl9pZBgBIAEoA1INYXBwbGljYXRpb25JRCJVCiFHZXRQaWxvdFRoaW5nc0lu", + "dGVncmF0aW9uUmVzcG9uc2USMAoLaW50ZWdyYXRpb24YASABKAsyGy5hcGku", + "UGlsb3RUaGluZ3NJbnRlZ3JhdGlvbiJXCiNVcGRhdGVQaWxvdFRoaW5nc0lu", + "dGVncmF0aW9uUmVxdWVzdBIwCgtpbnRlZ3JhdGlvbhgBIAEoCzIbLmFwaS5Q", + "aWxvdFRoaW5nc0ludGVncmF0aW9uIkwKI0RlbGV0ZVBpbG90VGhpbmdzSW50", + "ZWdyYXRpb25SZXF1ZXN0EiUKDmFwcGxpY2F0aW9uX2lkGAEgASgDUg1hcHBs", + "aWNhdGlvbklEIlgKL0dlbmVyYXRlTVFUVEludGVncmF0aW9uQ2xpZW50Q2Vy", + "dGlmaWNhdGVSZXF1ZXN0EiUKDmFwcGxpY2F0aW9uX2lkGAEgASgDUg1hcHBs", + "aWNhdGlvbklEIpYBCjBHZW5lcmF0ZU1RVFRJbnRlZ3JhdGlvbkNsaWVudENl", + "cnRpZmljYXRlUmVzcG9uc2USEAoIdGxzX2NlcnQYASABKAkSDwoHdGxzX2tl", + "eRgCIAEoCRIPCgdjYV9jZXJ0GAMgASgJEi4KCmV4cGlyZXNfYXQYBCABKAsy", + "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wKq8BCg9JbnRlZ3JhdGlvbktp", + "bmQSCAoESFRUUBAAEgwKCElORkxVWERCEAESDwoLVEhJTkdTQk9BUkQQAhIN", + "CglNWURFVklDRVMQAxINCglMT1JBQ0xPVUQQBBIOCgpHQ1BfUFVCU1VCEAUS", + "CwoHQVdTX1NOUxAGEhUKEUFaVVJFX1NFUlZJQ0VfQlVTEAcSEAoMUElMT1Rf", + "VEhJTkdTEAgSDwoLTVFUVF9HTE9CQUwQCSowCglNYXJzaGFsZXISCAoESlNP", + "ThAAEgwKCFBST1RPQlVGEAESCwoHSlNPTl9WMxACKj8KEUluZmx1eERCUHJl", + "Y2lzaW9uEgYKAk5TEAASBQoBVRABEgYKAk1TEAISBQoBUxADEgUKAU0QBBIF", + "CgFIEAUqMQoPSW5mbHV4REJWZXJzaW9uEg4KCklORkxVWERCXzEQABIOCgpJ", + "TkZMVVhEQl8yEAEyujcKEkFwcGxpY2F0aW9uU2VydmljZRJlCgZDcmVhdGUS", + "HS5hcGkuQ3JlYXRlQXBwbGljYXRpb25SZXF1ZXN0Gh4uYXBpLkNyZWF0ZUFw", + "cGxpY2F0aW9uUmVzcG9uc2UiHILT5JMCFiIRL2FwaS9hcHBsaWNhdGlvbnM6", + "ASoSXgoDR2V0EhouYXBpLkdldEFwcGxpY2F0aW9uUmVxdWVzdBobLmFwaS5H", + "ZXRBcHBsaWNhdGlvblJlc3BvbnNlIh6C0+STAhgSFi9hcGkvYXBwbGljYXRp", + "b25zL3tpZH0SbgoGVXBkYXRlEh0uYXBpLlVwZGF0ZUFwcGxpY2F0aW9uUmVx", + "dWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSItgtPkkwInGiIvYXBpL2Fw", + "cGxpY2F0aW9ucy97YXBwbGljYXRpb24uaWR9OgEqEl8KBkRlbGV0ZRIdLmFw", + "aS5EZWxldGVBcHBsaWNhdGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYu", + "RW1wdHkiHoLT5JMCGCoWL2FwaS9hcHBsaWNhdGlvbnMve2lkfRJcCgRMaXN0", + "EhsuYXBpLkxpc3RBcHBsaWNhdGlvblJlcXVlc3QaHC5hcGkuTGlzdEFwcGxp", + "Y2F0aW9uUmVzcG9uc2UiGYLT5JMCExIRL2FwaS9hcHBsaWNhdGlvbnMSnwEK", + "FUNyZWF0ZUhUVFBJbnRlZ3JhdGlvbhIhLmFwaS5DcmVhdGVIVFRQSW50ZWdy", + "YXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IkuC0+STAkUi", + "QC9hcGkvYXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBsaWNhdGlvbl9p", + "ZH0vaW50ZWdyYXRpb25zL2h0dHA6ASoSkwEKEkdldEhUVFBJbnRlZ3JhdGlv", + "bhIeLmFwaS5HZXRIVFRQSW50ZWdyYXRpb25SZXF1ZXN0Gh8uYXBpLkdldEhU", + "VFBJbnRlZ3JhdGlvblJlc3BvbnNlIjyC0+STAjYSNC9hcGkvYXBwbGljYXRp", + "b25zL3thcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2h0dHASnwEKFVVw", + "ZGF0ZUhUVFBJbnRlZ3JhdGlvbhIhLmFwaS5VcGRhdGVIVFRQSW50ZWdyYXRp", + "b25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IkuC0+STAkUaQC9h", + "cGkvYXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBsaWNhdGlvbl9pZH0v", + "aW50ZWdyYXRpb25zL2h0dHA6ASoSkAEKFURlbGV0ZUhUVFBJbnRlZ3JhdGlv", + "bhIhLmFwaS5EZWxldGVIVFRQSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xl", + "LnByb3RvYnVmLkVtcHR5IjyC0+STAjYqNC9hcGkvYXBwbGljYXRpb25zL3th", + "cHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2h0dHASqwEKGUNyZWF0ZUlu", + "Zmx1eERCSW50ZWdyYXRpb24SJS5hcGkuQ3JlYXRlSW5mbHV4REJJbnRlZ3Jh", + "dGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiT4LT5JMCSSJE", + "L2FwaS9hcHBsaWNhdGlvbnMve2ludGVncmF0aW9uLmFwcGxpY2F0aW9uX2lk", + "fS9pbnRlZ3JhdGlvbnMvaW5mbHV4ZGI6ASoSowEKFkdldEluZmx1eERCSW50", + "ZWdyYXRpb24SIi5hcGkuR2V0SW5mbHV4REJJbnRlZ3JhdGlvblJlcXVlc3Qa", + "Iy5hcGkuR2V0SW5mbHV4REJJbnRlZ3JhdGlvblJlc3BvbnNlIkCC0+STAjoS", + "OC9hcGkvYXBwbGljYXRpb25zL3thcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRp", + "b25zL2luZmx1eGRiEqsBChlVcGRhdGVJbmZsdXhEQkludGVncmF0aW9uEiUu", + "YXBpLlVwZGF0ZUluZmx1eERCSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xl", + "LnByb3RvYnVmLkVtcHR5Ik+C0+STAkkaRC9hcGkvYXBwbGljYXRpb25zL3tp", + "bnRlZ3JhdGlvbi5hcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2luZmx1", + "eGRiOgEqEpwBChlEZWxldGVJbmZsdXhEQkludGVncmF0aW9uEiUuYXBpLkRl", + "bGV0ZUluZmx1eERCSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3Rv", + "YnVmLkVtcHR5IkCC0+STAjoqOC9hcGkvYXBwbGljYXRpb25zL3thcHBsaWNh", + "dGlvbl9pZH0vaW50ZWdyYXRpb25zL2luZmx1eGRiErQBChxDcmVhdGVUaGlu", + "Z3NCb2FyZEludGVncmF0aW9uEiguYXBpLkNyZWF0ZVRoaW5nc0JvYXJkSW50", + "ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IlKC0+ST", + "AkwiRy9hcGkvYXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBsaWNhdGlv", + "bl9pZH0vaW50ZWdyYXRpb25zL3RoaW5nc2JvYXJkOgEqEq8BChlHZXRUaGlu", + "Z3NCb2FyZEludGVncmF0aW9uEiUuYXBpLkdldFRoaW5nc0JvYXJkSW50ZWdy", + "YXRpb25SZXF1ZXN0GiYuYXBpLkdldFRoaW5nc0JvYXJkSW50ZWdyYXRpb25S", + "ZXNwb25zZSJDgtPkkwI9EjsvYXBpL2FwcGxpY2F0aW9ucy97YXBwbGljYXRp", + "b25faWR9L2ludGVncmF0aW9ucy90aGluZ3Nib2FyZBK0AQocVXBkYXRlVGhp", + "bmdzQm9hcmRJbnRlZ3JhdGlvbhIoLmFwaS5VcGRhdGVUaGluZ3NCb2FyZElu", + "dGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJSgtPk", + "kwJMGkcvYXBpL2FwcGxpY2F0aW9ucy97aW50ZWdyYXRpb24uYXBwbGljYXRp", + "b25faWR9L2ludGVncmF0aW9ucy90aGluZ3Nib2FyZDoBKhKlAQocRGVsZXRl", + "VGhpbmdzQm9hcmRJbnRlZ3JhdGlvbhIoLmFwaS5EZWxldGVUaGluZ3NCb2Fy", + "ZEludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJD", + "gtPkkwI9KjsvYXBpL2FwcGxpY2F0aW9ucy97YXBwbGljYXRpb25faWR9L2lu", + "dGVncmF0aW9ucy90aGluZ3Nib2FyZBKuAQoaQ3JlYXRlTXlEZXZpY2VzSW50", + "ZWdyYXRpb24SJi5hcGkuQ3JlYXRlTXlEZXZpY2VzSW50ZWdyYXRpb25SZXF1", + "ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IlCC0+STAkoiRS9hcGkvYXBw", + "bGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBsaWNhdGlvbl9pZH0vaW50ZWdy", + "YXRpb25zL215ZGV2aWNlczoBKhKnAQoXR2V0TXlEZXZpY2VzSW50ZWdyYXRp", + "b24SIy5hcGkuR2V0TXlEZXZpY2VzSW50ZWdyYXRpb25SZXF1ZXN0GiQuYXBp", + "LkdldE15RGV2aWNlc0ludGVncmF0aW9uUmVzcG9uc2UiQYLT5JMCOxI5L2Fw", + "aS9hcHBsaWNhdGlvbnMve2FwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMv", + "bXlkZXZpY2VzEq4BChpVcGRhdGVNeURldmljZXNJbnRlZ3JhdGlvbhImLmFw", + "aS5VcGRhdGVNeURldmljZXNJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29nbGUu", + "cHJvdG9idWYuRW1wdHkiUILT5JMCShpFL2FwaS9hcHBsaWNhdGlvbnMve2lu", + "dGVncmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvbXlkZXZp", + "Y2VzOgEqEp8BChpEZWxldGVNeURldmljZXNJbnRlZ3JhdGlvbhImLmFwaS5E", + "ZWxldGVNeURldmljZXNJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29nbGUucHJv", + "dG9idWYuRW1wdHkiQYLT5JMCOyo5L2FwaS9hcHBsaWNhdGlvbnMve2FwcGxp", + "Y2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvbXlkZXZpY2VzEq4BChpDcmVhdGVM", + "b1JhQ2xvdWRJbnRlZ3JhdGlvbhImLmFwaS5DcmVhdGVMb1JhQ2xvdWRJbnRl", + "Z3JhdGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiUILT5JMC", + "SiJFL2FwaS9hcHBsaWNhdGlvbnMve2ludGVncmF0aW9uLmFwcGxpY2F0aW9u", + "X2lkfS9pbnRlZ3JhdGlvbnMvbG9yYWNsb3VkOgEqEqcBChdHZXRMb1JhQ2xv", + "dWRJbnRlZ3JhdGlvbhIjLmFwaS5HZXRMb1JhQ2xvdWRJbnRlZ3JhdGlvblJl", + "cXVlc3QaJC5hcGkuR2V0TG9SYUNsb3VkSW50ZWdyYXRpb25SZXNwb25zZSJB", + "gtPkkwI7EjkvYXBpL2FwcGxpY2F0aW9ucy97YXBwbGljYXRpb25faWR9L2lu", + "dGVncmF0aW9ucy9sb3JhY2xvdWQSrgEKGlVwZGF0ZUxvUmFDbG91ZEludGVn", + "cmF0aW9uEiYuYXBpLlVwZGF0ZUxvUmFDbG91ZEludGVncmF0aW9uUmVxdWVz", + "dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJQgtPkkwJKGkUvYXBpL2FwcGxp", + "Y2F0aW9ucy97aW50ZWdyYXRpb24uYXBwbGljYXRpb25faWR9L2ludGVncmF0", + "aW9ucy9sb3JhY2xvdWQ6ASoSnwEKGkRlbGV0ZUxvUmFDbG91ZEludGVncmF0", + "aW9uEiYuYXBpLkRlbGV0ZUxvUmFDbG91ZEludGVncmF0aW9uUmVxdWVzdBoW", + "Lmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJBgtPkkwI7KjkvYXBpL2FwcGxpY2F0", + "aW9ucy97YXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9sb3JhY2xvdWQS", + "sAEKGkNyZWF0ZUdDUFB1YlN1YkludGVncmF0aW9uEiYuYXBpLkNyZWF0ZUdD", + "UFB1YlN1YkludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5F", + "bXB0eSJSgtPkkwJMIkcvYXBpL2FwcGxpY2F0aW9ucy97aW50ZWdyYXRpb24u", + "YXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9nY3AtcHViLXN1YjoBKhKp", + "AQoXR2V0R0NQUHViU3ViSW50ZWdyYXRpb24SIy5hcGkuR2V0R0NQUHViU3Vi", + "SW50ZWdyYXRpb25SZXF1ZXN0GiQuYXBpLkdldEdDUFB1YlN1YkludGVncmF0", + "aW9uUmVzcG9uc2UiQ4LT5JMCPRI7L2FwaS9hcHBsaWNhdGlvbnMve2FwcGxp", + "Y2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvZ2NwLXB1Yi1zdWISsAEKGlVwZGF0", + "ZUdDUFB1YlN1YkludGVncmF0aW9uEiYuYXBpLlVwZGF0ZUdDUFB1YlN1Yklu", + "dGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJSgtPk", + "kwJMGkcvYXBpL2FwcGxpY2F0aW9ucy97aW50ZWdyYXRpb24uYXBwbGljYXRp", + "b25faWR9L2ludGVncmF0aW9ucy9nY3AtcHViLXN1YjoBKhKhAQoaRGVsZXRl", + "R0NQUHViU3ViSW50ZWdyYXRpb24SJi5hcGkuRGVsZXRlR0NQUHViU3ViSW50", + "ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IkOC0+ST", + "Aj0qOy9hcGkvYXBwbGljYXRpb25zL3thcHBsaWNhdGlvbl9pZH0vaW50ZWdy", + "YXRpb25zL2djcC1wdWItc3ViEqYBChdDcmVhdGVBV1NTTlNJbnRlZ3JhdGlv", + "bhIjLmFwaS5DcmVhdGVBV1NTTlNJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29n", + "bGUucHJvdG9idWYuRW1wdHkiToLT5JMCSCJDL2FwaS9hcHBsaWNhdGlvbnMv", + "e2ludGVncmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvYXdz", + "LXNuczoBKhKcAQoUR2V0QVdTU05TSW50ZWdyYXRpb24SIC5hcGkuR2V0QVdT", + "U05TSW50ZWdyYXRpb25SZXF1ZXN0GiEuYXBpLkdldEFXU1NOU0ludGVncmF0", + "aW9uUmVzcG9uc2UiP4LT5JMCORI3L2FwaS9hcHBsaWNhdGlvbnMve2FwcGxp", + "Y2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvYXdzLXNucxKmAQoXVXBkYXRlQVdT", + "U05TSW50ZWdyYXRpb24SIy5hcGkuVXBkYXRlQVdTU05TSW50ZWdyYXRpb25S", + "ZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Ik6C0+STAkgaQy9hcGkv", + "YXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBsaWNhdGlvbl9pZH0vaW50", + "ZWdyYXRpb25zL2F3cy1zbnM6ASoSlwEKF0RlbGV0ZUFXU1NOU0ludGVncmF0", + "aW9uEiMuYXBpLkRlbGV0ZUFXU1NOU0ludGVncmF0aW9uUmVxdWVzdBoWLmdv", + "b2dsZS5wcm90b2J1Zi5FbXB0eSI/gtPkkwI5KjcvYXBpL2FwcGxpY2F0aW9u", + "cy97YXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9hd3Mtc25zEsIBCiBD", + "cmVhdGVBenVyZVNlcnZpY2VCdXNJbnRlZ3JhdGlvbhIsLmFwaS5DcmVhdGVB", + "enVyZVNlcnZpY2VCdXNJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29nbGUucHJv", + "dG9idWYuRW1wdHkiWILT5JMCUiJNL2FwaS9hcHBsaWNhdGlvbnMve2ludGVn", + "cmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvYXp1cmUtc2Vy", + "dmljZS1idXM6ASoSwQEKHUdldEF6dXJlU2VydmljZUJ1c0ludGVncmF0aW9u", + "EikuYXBpLkdldEF6dXJlU2VydmljZUJ1c0ludGVncmF0aW9uUmVxdWVzdBoq", + "LmFwaS5HZXRBenVyZVNlcnZpY2VCdXNJbnRlZ3JhdGlvblJlc3BvbnNlIkmC", + "0+STAkMSQS9hcGkvYXBwbGljYXRpb25zL3thcHBsaWNhdGlvbl9pZH0vaW50", + "ZWdyYXRpb25zL2F6dXJlLXNlcnZpY2UtYnVzEsIBCiBVcGRhdGVBenVyZVNl", + "cnZpY2VCdXNJbnRlZ3JhdGlvbhIsLmFwaS5VcGRhdGVBenVyZVNlcnZpY2VC", + "dXNJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHki", + "WILT5JMCUhpNL2FwaS9hcHBsaWNhdGlvbnMve2ludGVncmF0aW9uLmFwcGxp", + "Y2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvYXp1cmUtc2VydmljZS1idXM6ASoS", + "swEKIERlbGV0ZUF6dXJlU2VydmljZUJ1c0ludGVncmF0aW9uEiwuYXBpLkRl", + "bGV0ZUF6dXJlU2VydmljZUJ1c0ludGVncmF0aW9uUmVxdWVzdBoWLmdvb2ds", + "ZS5wcm90b2J1Zi5FbXB0eSJJgtPkkwJDKkEvYXBpL2FwcGxpY2F0aW9ucy97", + "YXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9henVyZS1zZXJ2aWNlLWJ1", + "cxK1AQocQ3JlYXRlUGlsb3RUaGluZ3NJbnRlZ3JhdGlvbhIoLmFwaS5DcmVh", + "dGVQaWxvdFRoaW5nc0ludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSJTgtPkkwJNIkgvYXBpL2FwcGxpY2F0aW9ucy97aW50ZWdy", + "YXRpb24uYXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9waWxvdC10aGlu", + "Z3M6ASoSsAEKGUdldFBpbG90VGhpbmdzSW50ZWdyYXRpb24SJS5hcGkuR2V0", + "UGlsb3RUaGluZ3NJbnRlZ3JhdGlvblJlcXVlc3QaJi5hcGkuR2V0UGlsb3RU", + "aGluZ3NJbnRlZ3JhdGlvblJlc3BvbnNlIkSC0+STAj4SPC9hcGkvYXBwbGlj", + "YXRpb25zL3thcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL3BpbG90LXRo", + "aW5ncxK1AQocVXBkYXRlUGlsb3RUaGluZ3NJbnRlZ3JhdGlvbhIoLmFwaS5V", + "cGRhdGVQaWxvdFRoaW5nc0ludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5w", + "cm90b2J1Zi5FbXB0eSJTgtPkkwJNGkgvYXBpL2FwcGxpY2F0aW9ucy97aW50", + "ZWdyYXRpb24uYXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9waWxvdC10", + "aGluZ3M6ASoSpgEKHERlbGV0ZVBpbG90VGhpbmdzSW50ZWdyYXRpb24SKC5h", + "cGkuRGVsZXRlUGlsb3RUaGluZ3NJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29n", + "bGUucHJvdG9idWYuRW1wdHkiRILT5JMCPio8L2FwaS9hcHBsaWNhdGlvbnMv", + "e2FwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvcGlsb3QtdGhpbmdzEoYB", + "ChBMaXN0SW50ZWdyYXRpb25zEhsuYXBpLkxpc3RJbnRlZ3JhdGlvblJlcXVl", + "c3QaHC5hcGkuTGlzdEludGVncmF0aW9uUmVzcG9uc2UiN4LT5JMCMRIvL2Fw", + "aS9hcHBsaWNhdGlvbnMve2FwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMS", + "4QEKKEdlbmVyYXRlTVFUVEludGVncmF0aW9uQ2xpZW50Q2VydGlmaWNhdGUS", + "NC5hcGkuR2VuZXJhdGVNUVRUSW50ZWdyYXRpb25DbGllbnRDZXJ0aWZpY2F0", + "ZVJlcXVlc3QaNS5hcGkuR2VuZXJhdGVNUVRUSW50ZWdyYXRpb25DbGllbnRD", + "ZXJ0aWZpY2F0ZVJlc3BvbnNlIkiC0+STAkIiQC9hcGkvYXBwbGljYXRpb25z", + "L3thcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL21xdHQvY2VydGlmaWNh", + "dGVCnAEKIWlvLmNoaXJwc3RhY2suYXBpLmFzLmV4dGVybmFsLmFwaUIQQXBw", + "bGljYXRpb25Qcm90b1ABWjdnaXRodWIuY29tL2Jyb2NhYXIvY2hpcnBzdGFj", + "ay1hcGkvZ28vdjMvYXMvZXh0ZXJuYWwvYXBpqgIpQ2hpcnBzdGFjay5BcHBs", + "aWNhdGlvblNlcnZlci5FeHRlcm5hbC5BcGliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.ApplicationServer.External.Api.IntegrationKind), typeof(global::Chirpstack.ApplicationServer.External.Api.Marshaler), typeof(global::Chirpstack.ApplicationServer.External.Api.InfluxDBPrecision), typeof(global::Chirpstack.ApplicationServer.External.Api.InfluxDBVersion), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.Application), global::Chirpstack.ApplicationServer.External.Api.Application.Parser, new[]{ "Id", "Name", "Description", "OrganizationId", "ServiceProfileId", "PayloadCodec", "PayloadEncoderScript", "PayloadDecoderScript" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ApplicationListItem), global::Chirpstack.ApplicationServer.External.Api.ApplicationListItem.Parser, new[]{ "Id", "Name", "Description", "OrganizationId", "ServiceProfileId", "ServiceProfileName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateApplicationRequest), global::Chirpstack.ApplicationServer.External.Api.CreateApplicationRequest.Parser, new[]{ "Application" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateApplicationResponse), global::Chirpstack.ApplicationServer.External.Api.CreateApplicationResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetApplicationRequest), global::Chirpstack.ApplicationServer.External.Api.GetApplicationRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetApplicationResponse), global::Chirpstack.ApplicationServer.External.Api.GetApplicationResponse.Parser, new[]{ "Application" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateApplicationRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateApplicationRequest.Parser, new[]{ "Application" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteApplicationRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteApplicationRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListApplicationRequest), global::Chirpstack.ApplicationServer.External.Api.ListApplicationRequest.Parser, new[]{ "Limit", "Offset", "OrganizationId", "Search" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListApplicationResponse), global::Chirpstack.ApplicationServer.External.Api.ListApplicationResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.HTTPIntegrationHeader), global::Chirpstack.ApplicationServer.External.Api.HTTPIntegrationHeader.Parser, new[]{ "Key", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.HTTPIntegration), global::Chirpstack.ApplicationServer.External.Api.HTTPIntegration.Parser, new[]{ "ApplicationId", "Headers", "UplinkDataUrl", "JoinNotificationUrl", "AckNotificationUrl", "ErrorNotificationUrl", "StatusNotificationUrl", "LocationNotificationUrl", "TxAckNotificationUrl", "IntegrationNotificationUrl", "Marshaler", "EventEndpointUrl" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateHTTPIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.CreateHTTPIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetHTTPIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.GetHTTPIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetHTTPIntegrationResponse), global::Chirpstack.ApplicationServer.External.Api.GetHTTPIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateHTTPIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateHTTPIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteHTTPIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteHTTPIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.ListIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.IntegrationListItem), global::Chirpstack.ApplicationServer.External.Api.IntegrationListItem.Parser, new[]{ "Kind" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListIntegrationResponse), global::Chirpstack.ApplicationServer.External.Api.ListIntegrationResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.InfluxDBIntegration), global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.CreateInfluxDBIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.CreateInfluxDBIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetInfluxDBIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.GetInfluxDBIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetInfluxDBIntegrationResponse), global::Chirpstack.ApplicationServer.External.Api.GetInfluxDBIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateInfluxDBIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateInfluxDBIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteInfluxDBIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteInfluxDBIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ThingsBoardIntegration), global::Chirpstack.ApplicationServer.External.Api.ThingsBoardIntegration.Parser, new[]{ "ApplicationId", "Server" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateThingsBoardIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.CreateThingsBoardIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetThingsBoardIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.GetThingsBoardIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetThingsBoardIntegrationResponse), global::Chirpstack.ApplicationServer.External.Api.GetThingsBoardIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateThingsBoardIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateThingsBoardIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteThingsBoardIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteThingsBoardIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.MyDevicesIntegration), global::Chirpstack.ApplicationServer.External.Api.MyDevicesIntegration.Parser, new[]{ "ApplicationId", "Endpoint" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateMyDevicesIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.CreateMyDevicesIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetMyDevicesIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.GetMyDevicesIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetMyDevicesIntegrationResponse), global::Chirpstack.ApplicationServer.External.Api.GetMyDevicesIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateMyDevicesIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateMyDevicesIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteMyDevicesIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteMyDevicesIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.LoRaCloudIntegration), global::Chirpstack.ApplicationServer.External.Api.LoRaCloudIntegration.Parser, new[]{ "ApplicationId", "Geolocation", "GeolocationToken", "GeolocationBufferTtl", "GeolocationMinBufferSize", "GeolocationTdoa", "GeolocationRssi", "GeolocationGnss", "GeolocationGnssPayloadField", "GeolocationGnssUseRxTime", "GeolocationWifi", "GeolocationWifiPayloadField", "Das", "DasToken", "DasModemPort", "DasGnssPort", "DasGnssUseRxTime", "DasStreamingGeolocWorkaround" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateLoRaCloudIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.CreateLoRaCloudIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetLoRaCloudIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.GetLoRaCloudIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetLoRaCloudIntegrationResponse), global::Chirpstack.ApplicationServer.External.Api.GetLoRaCloudIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateLoRaCloudIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateLoRaCloudIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteLoRaCloudIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteLoRaCloudIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GCPPubSubIntegration), global::Chirpstack.ApplicationServer.External.Api.GCPPubSubIntegration.Parser, new[]{ "ApplicationId", "Marshaler", "CredentialsFile", "ProjectId", "TopicName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateGCPPubSubIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.CreateGCPPubSubIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetGCPPubSubIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.GetGCPPubSubIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetGCPPubSubIntegrationResponse), global::Chirpstack.ApplicationServer.External.Api.GetGCPPubSubIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateGCPPubSubIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateGCPPubSubIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteGCPPubSubIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteGCPPubSubIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.AWSSNSIntegration), global::Chirpstack.ApplicationServer.External.Api.AWSSNSIntegration.Parser, new[]{ "ApplicationId", "Marshaler", "Region", "AccessKeyId", "SecretAccessKey", "TopicArn" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateAWSSNSIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.CreateAWSSNSIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetAWSSNSIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.GetAWSSNSIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetAWSSNSIntegrationResponse), global::Chirpstack.ApplicationServer.External.Api.GetAWSSNSIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateAWSSNSIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateAWSSNSIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteAWSSNSIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteAWSSNSIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.AzureServiceBusIntegration), global::Chirpstack.ApplicationServer.External.Api.AzureServiceBusIntegration.Parser, new[]{ "ApplicationId", "Marshaler", "ConnectionString", "PublishName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateAzureServiceBusIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.CreateAzureServiceBusIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetAzureServiceBusIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.GetAzureServiceBusIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetAzureServiceBusIntegrationResponse), global::Chirpstack.ApplicationServer.External.Api.GetAzureServiceBusIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateAzureServiceBusIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateAzureServiceBusIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteAzureServiceBusIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteAzureServiceBusIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.PilotThingsIntegration), global::Chirpstack.ApplicationServer.External.Api.PilotThingsIntegration.Parser, new[]{ "ApplicationId", "Server", "Token" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreatePilotThingsIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.CreatePilotThingsIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetPilotThingsIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.GetPilotThingsIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetPilotThingsIntegrationResponse), global::Chirpstack.ApplicationServer.External.Api.GetPilotThingsIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdatePilotThingsIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.UpdatePilotThingsIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeletePilotThingsIntegrationRequest), global::Chirpstack.ApplicationServer.External.Api.DeletePilotThingsIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GenerateMQTTIntegrationClientCertificateRequest), global::Chirpstack.ApplicationServer.External.Api.GenerateMQTTIntegrationClientCertificateRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GenerateMQTTIntegrationClientCertificateResponse), global::Chirpstack.ApplicationServer.External.Api.GenerateMQTTIntegrationClientCertificateResponse.Parser, new[]{ "TlsCert", "TlsKey", "CaCert", "ExpiresAt" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum IntegrationKind { + [pbr::OriginalName("HTTP")] Http = 0, + [pbr::OriginalName("INFLUXDB")] Influxdb = 1, + [pbr::OriginalName("THINGSBOARD")] Thingsboard = 2, + [pbr::OriginalName("MYDEVICES")] Mydevices = 3, + [pbr::OriginalName("LORACLOUD")] Loracloud = 4, + [pbr::OriginalName("GCP_PUBSUB")] 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, + } + + public enum Marshaler { + [pbr::OriginalName("JSON")] Json = 0, + [pbr::OriginalName("PROTOBUF")] Protobuf = 1, + [pbr::OriginalName("JSON_V3")] JsonV3 = 2, + } + + 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.ApplicationServer.External.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_; + organizationId_ = other.organizationId_; + serviceProfileId_ = other.serviceProfileId_; + payloadCodec_ = other.payloadCodec_; + payloadEncoderScript_ = other.payloadEncoderScript_; + payloadDecoderScript_ = other.payloadDecoderScript_; + _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 long id_; + /// + /// Application ID. + /// This will be automatically assigned on create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Name of the application (must be unique). + /// + [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 of the application. + /// + [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 "organization_id" field. + public const int OrganizationIdFieldNumber = 4; + private long organizationId_; + /// + /// ID of the organization to which the application belongs. + /// After create, this can not be modified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "service_profile_id" field. + public const int ServiceProfileIdFieldNumber = 5; + private string serviceProfileId_ = ""; + /// + /// ID of the service profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceProfileId { + get { return serviceProfileId_; } + set { + serviceProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "payload_codec" field. + public const int PayloadCodecFieldNumber = 6; + private string payloadCodec_ = ""; + /// + /// Payload codec. + /// NOTE: These field have moved to the device-profile and will be removed + /// in the next major release. When set, the device-profile payload_ fields + /// have priority over the application payload_ fields. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PayloadCodec { + get { return payloadCodec_; } + set { + payloadCodec_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "payload_encoder_script" field. + public const int PayloadEncoderScriptFieldNumber = 7; + private string payloadEncoderScript_ = ""; + /// + /// Payload encoder script. + /// NOTE: These field have moved to the device-profile and will be removed + /// in the next major release. When set, the device-profile payload_ fields + /// have priority over the application payload_ fields. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PayloadEncoderScript { + get { return payloadEncoderScript_; } + set { + payloadEncoderScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "payload_decoder_script" field. + public const int PayloadDecoderScriptFieldNumber = 8; + private string payloadDecoderScript_ = ""; + /// + /// Payload decoder script. + /// NOTE: These field have moved to the device-profile and will be removed + /// in the next major release. When set, the device-profile payload_ fields + /// have priority over the application payload_ fields. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PayloadDecoderScript { + get { return payloadDecoderScript_; } + set { + payloadDecoderScript_ = 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 (OrganizationId != other.OrganizationId) return false; + if (ServiceProfileId != other.ServiceProfileId) return false; + if (PayloadCodec != other.PayloadCodec) return false; + if (PayloadEncoderScript != other.PayloadEncoderScript) return false; + if (PayloadDecoderScript != other.PayloadDecoderScript) return false; + 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 != 0L) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (ServiceProfileId.Length != 0) hash ^= ServiceProfileId.GetHashCode(); + if (PayloadCodec.Length != 0) hash ^= PayloadCodec.GetHashCode(); + if (PayloadEncoderScript.Length != 0) hash ^= PayloadEncoderScript.GetHashCode(); + if (PayloadDecoderScript.Length != 0) hash ^= PayloadDecoderScript.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (OrganizationId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(OrganizationId); + } + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ServiceProfileId); + } + if (PayloadCodec.Length != 0) { + output.WriteRawTag(50); + output.WriteString(PayloadCodec); + } + if (PayloadEncoderScript.Length != 0) { + output.WriteRawTag(58); + output.WriteString(PayloadEncoderScript); + } + if (PayloadDecoderScript.Length != 0) { + output.WriteRawTag(66); + output.WriteString(PayloadDecoderScript); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (OrganizationId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(OrganizationId); + } + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ServiceProfileId); + } + if (PayloadCodec.Length != 0) { + output.WriteRawTag(50); + output.WriteString(PayloadCodec); + } + if (PayloadEncoderScript.Length != 0) { + output.WriteRawTag(58); + output.WriteString(PayloadEncoderScript); + } + if (PayloadDecoderScript.Length != 0) { + output.WriteRawTag(66); + output.WriteString(PayloadDecoderScript); + } + if (_unknownFields != 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (ServiceProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceProfileId); + } + if (PayloadCodec.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadCodec); + } + if (PayloadEncoderScript.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadEncoderScript); + } + if (PayloadDecoderScript.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadDecoderScript); + } + 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 != 0L) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.ServiceProfileId.Length != 0) { + ServiceProfileId = other.ServiceProfileId; + } + if (other.PayloadCodec.Length != 0) { + PayloadCodec = other.PayloadCodec; + } + if (other.PayloadEncoderScript.Length != 0) { + PayloadEncoderScript = other.PayloadEncoderScript; + } + if (other.PayloadDecoderScript.Length != 0) { + PayloadDecoderScript = other.PayloadDecoderScript; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + Id = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 32: { + OrganizationId = input.ReadInt64(); + break; + } + case 42: { + ServiceProfileId = input.ReadString(); + break; + } + case 50: { + PayloadCodec = input.ReadString(); + break; + } + case 58: { + PayloadEncoderScript = input.ReadString(); + break; + } + case 66: { + PayloadDecoderScript = 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: { + Id = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 32: { + OrganizationId = input.ReadInt64(); + break; + } + case 42: { + ServiceProfileId = input.ReadString(); + break; + } + case 50: { + PayloadCodec = input.ReadString(); + break; + } + case 58: { + PayloadEncoderScript = input.ReadString(); + break; + } + case 66: { + PayloadDecoderScript = 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.ApplicationServer.External.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_; + name_ = other.name_; + description_ = other.description_; + organizationId_ = other.organizationId_; + serviceProfileId_ = other.serviceProfileId_; + serviceProfileName_ = other.serviceProfileName_; + _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 long id_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Name of the application. + /// + [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 of the application. + /// + [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 "organization_id" field. + public const int OrganizationIdFieldNumber = 4; + private long organizationId_; + /// + /// ID of the organization to which the application belongs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "service_profile_id" field. + public const int ServiceProfileIdFieldNumber = 5; + private string serviceProfileId_ = ""; + /// + /// ID of the service profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceProfileId { + get { return serviceProfileId_; } + set { + serviceProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_profile_name" field. + public const int ServiceProfileNameFieldNumber = 6; + private string serviceProfileName_ = ""; + /// + /// Service-profile name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceProfileName { + get { return serviceProfileName_; } + set { + serviceProfileName_ = 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 (Name != other.Name) return false; + if (Description != other.Description) return false; + if (OrganizationId != other.OrganizationId) return false; + if (ServiceProfileId != other.ServiceProfileId) return false; + if (ServiceProfileName != other.ServiceProfileName) return false; + 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 != 0L) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (ServiceProfileId.Length != 0) hash ^= ServiceProfileId.GetHashCode(); + if (ServiceProfileName.Length != 0) hash ^= ServiceProfileName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (OrganizationId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(OrganizationId); + } + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ServiceProfileId); + } + if (ServiceProfileName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ServiceProfileName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (OrganizationId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(OrganizationId); + } + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ServiceProfileId); + } + if (ServiceProfileName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ServiceProfileName); + } + if (_unknownFields != 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (ServiceProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceProfileId); + } + if (ServiceProfileName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceProfileName); + } + 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 != 0L) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.ServiceProfileId.Length != 0) { + ServiceProfileId = other.ServiceProfileId; + } + if (other.ServiceProfileName.Length != 0) { + ServiceProfileName = other.ServiceProfileName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + Id = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 32: { + OrganizationId = input.ReadInt64(); + break; + } + case 42: { + ServiceProfileId = input.ReadString(); + break; + } + case 50: { + ServiceProfileName = 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: { + Id = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 32: { + OrganizationId = input.ReadInt64(); + break; + } + case 42: { + ServiceProfileId = input.ReadString(); + break; + } + case 50: { + ServiceProfileName = 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.ApplicationServer.External.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.ApplicationServer.External.Api.Application application_; + /// + /// Application object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long id_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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 8: { + Id = 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 8: { + Id = input.ReadInt64(); + 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.ApplicationServer.External.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 long id_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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 8: { + Id = 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 8: { + Id = input.ReadInt64(); + 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.ApplicationServer.External.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; + _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.ApplicationServer.External.Api.Application application_; + /// + /// Application object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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 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; + 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(GetApplicationResponse other) { + if (other == null) { + return; + } + if (other.application_ != null) { + if (application_ == null) { + Application = new global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.Application(); + } + input.ReadMessage(Application); + 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.ApplicationServer.External.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.ApplicationServer.External.Api.Application application_; + /// + /// Application object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long id_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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 8: { + Id = 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 8: { + Id = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListApplicationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListApplicationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListApplicationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListApplicationRequest(ListApplicationRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + organizationId_ = other.organizationId_; + search_ = other.search_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListApplicationRequest Clone() { + return new ListApplicationRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private long limit_; + /// + /// Max number of applications to return in the result-test. + /// + [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 = 2; + private long offset_; + /// + /// Offset in 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; + } + } + + /// Field number for the "organization_id" field. + public const int OrganizationIdFieldNumber = 3; + private long organizationId_; + /// + /// ID of the organization to filter on. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "search" field. + public const int SearchFieldNumber = 4; + private string search_ = ""; + /// + /// 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListApplicationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListApplicationRequest 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 (OrganizationId != other.OrganizationId) return false; + if (Search != other.Search) return false; + 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 != 0L) hash ^= Limit.GetHashCode(); + if (Offset != 0L) hash ^= Offset.GetHashCode(); + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (Search.Length != 0) hash ^= Search.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (Search.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Search); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (Search.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Search); + } + if (_unknownFields != 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); + } + if (Offset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset); + } + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (Search.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListApplicationRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0L) { + Limit = other.Limit; + } + if (other.Offset != 0L) { + Offset = other.Offset; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.Search.Length != 0) { + Search = other.Search; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + OrganizationId = input.ReadInt64(); + break; + } + case 34: { + Search = 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.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + OrganizationId = input.ReadInt64(); + break; + } + case 34: { + Search = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListApplicationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListApplicationResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListApplicationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListApplicationResponse(ListApplicationResponse 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 ListApplicationResponse Clone() { + return new ListApplicationResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private long totalCount_; + /// + /// Total number of applications available within the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.Api.ApplicationListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Applications within this 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 ListApplicationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListApplicationResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(ListApplicationResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class HTTPIntegrationHeader : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HTTPIntegrationHeader()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 HTTPIntegrationHeader() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HTTPIntegrationHeader(HTTPIntegrationHeader other) : this() { + key_ = other.key_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HTTPIntegrationHeader Clone() { + return new HTTPIntegrationHeader(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private string key_ = ""; + /// + /// Key + /// + [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 "value" field. + public const int ValueFieldNumber = 2; + 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 HTTPIntegrationHeader); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HTTPIntegrationHeader other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) 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 (Key.Length != 0) hash ^= Key.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 (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Key); + } + if (Value.Length != 0) { + output.WriteRawTag(18); + 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 (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Key); + } + if (Value.Length != 0) { + output.WriteRawTag(18); + 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 (Key.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); + } + 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(HTTPIntegrationHeader other) { + if (other == null) { + return; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + 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 10: { + Key = input.ReadString(); + break; + } + case 18: { + 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 10: { + Key = input.ReadString(); + break; + } + case 18: { + Value = input.ReadString(); + 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.ApplicationServer.External.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 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(); + uplinkDataUrl_ = other.uplinkDataUrl_; + joinNotificationUrl_ = other.joinNotificationUrl_; + ackNotificationUrl_ = other.ackNotificationUrl_; + errorNotificationUrl_ = other.errorNotificationUrl_; + statusNotificationUrl_ = other.statusNotificationUrl_; + locationNotificationUrl_ = other.locationNotificationUrl_; + txAckNotificationUrl_ = other.txAckNotificationUrl_; + integrationNotificationUrl_ = other.integrationNotificationUrl_; + marshaler_ = other.marshaler_; + 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 long applicationId_; + /// + /// The id of the application. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "headers" field. + public const int HeadersFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_headers_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.ApplicationServer.External.Api.HTTPIntegrationHeader.Parser); + private readonly pbc::RepeatedField headers_ = new pbc::RepeatedField(); + /// + /// The headers to use when making HTTP callbacks. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Headers { + get { return headers_; } + } + + /// Field number for the "uplink_data_url" field. + public const int UplinkDataUrlFieldNumber = 3; + private string uplinkDataUrl_ = ""; + /// + /// The URL to call for uplink data. + /// Deprecated: use event_endpoint_url. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UplinkDataUrl { + get { return uplinkDataUrl_; } + set { + uplinkDataUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "join_notification_url" field. + public const int JoinNotificationUrlFieldNumber = 4; + private string joinNotificationUrl_ = ""; + /// + /// The URL to call for join notifications. + /// Deprecated: use event_endpoint_url. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string JoinNotificationUrl { + get { return joinNotificationUrl_; } + set { + joinNotificationUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ack_notification_url" field. + public const int AckNotificationUrlFieldNumber = 5; + private string ackNotificationUrl_ = ""; + /// + /// The URL to call for ACK notifications (for confirmed downlink data). + /// Deprecated: use event_endpoint_url. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AckNotificationUrl { + get { return ackNotificationUrl_; } + set { + ackNotificationUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "error_notification_url" field. + public const int ErrorNotificationUrlFieldNumber = 6; + private string errorNotificationUrl_ = ""; + /// + /// The URL to call for error notifications. + /// Deprecated: use event_endpoint_url. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ErrorNotificationUrl { + get { return errorNotificationUrl_; } + set { + errorNotificationUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "status_notification_url" field. + public const int StatusNotificationUrlFieldNumber = 7; + private string statusNotificationUrl_ = ""; + /// + /// The URL to call for device-status notifications. + /// Deprecated: use event_endpoint_url. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StatusNotificationUrl { + get { return statusNotificationUrl_; } + set { + statusNotificationUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "location_notification_url" field. + public const int LocationNotificationUrlFieldNumber = 8; + private string locationNotificationUrl_ = ""; + /// + /// The URL to call for location notifications. + /// Deprecated: use event_endpoint_url. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LocationNotificationUrl { + get { return locationNotificationUrl_; } + set { + locationNotificationUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tx_ack_notification_url" field. + public const int TxAckNotificationUrlFieldNumber = 9; + private string txAckNotificationUrl_ = ""; + /// + /// The URL to call for tx ack notifications (downlink acknowledged by gateway for transmission). + /// Deprecated: use event_endpoint_url. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TxAckNotificationUrl { + get { return txAckNotificationUrl_; } + set { + txAckNotificationUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "integration_notification_url" field. + public const int IntegrationNotificationUrlFieldNumber = 10; + private string integrationNotificationUrl_ = ""; + /// + /// The URL to call for integration notifications. + /// Deprecated: use event_endpoint_url. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IntegrationNotificationUrl { + get { return integrationNotificationUrl_; } + set { + integrationNotificationUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "marshaler" field. + public const int MarshalerFieldNumber = 11; + private global::Chirpstack.ApplicationServer.External.Api.Marshaler marshaler_ = global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json; + /// + /// Marshaler. + /// This defines the marshaler that is used to encode the event payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.Marshaler Marshaler { + get { return marshaler_; } + set { + marshaler_ = value; + } + } + + /// Field number for the "event_endpoint_url" field. + public const int EventEndpointUrlFieldNumber = 12; + 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 (UplinkDataUrl != other.UplinkDataUrl) return false; + if (JoinNotificationUrl != other.JoinNotificationUrl) return false; + if (AckNotificationUrl != other.AckNotificationUrl) return false; + if (ErrorNotificationUrl != other.ErrorNotificationUrl) return false; + if (StatusNotificationUrl != other.StatusNotificationUrl) return false; + if (LocationNotificationUrl != other.LocationNotificationUrl) return false; + if (TxAckNotificationUrl != other.TxAckNotificationUrl) return false; + if (IntegrationNotificationUrl != other.IntegrationNotificationUrl) return false; + if (Marshaler != other.Marshaler) 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 != 0L) hash ^= ApplicationId.GetHashCode(); + hash ^= headers_.GetHashCode(); + if (UplinkDataUrl.Length != 0) hash ^= UplinkDataUrl.GetHashCode(); + if (JoinNotificationUrl.Length != 0) hash ^= JoinNotificationUrl.GetHashCode(); + if (AckNotificationUrl.Length != 0) hash ^= AckNotificationUrl.GetHashCode(); + if (ErrorNotificationUrl.Length != 0) hash ^= ErrorNotificationUrl.GetHashCode(); + if (StatusNotificationUrl.Length != 0) hash ^= StatusNotificationUrl.GetHashCode(); + if (LocationNotificationUrl.Length != 0) hash ^= LocationNotificationUrl.GetHashCode(); + if (TxAckNotificationUrl.Length != 0) hash ^= TxAckNotificationUrl.GetHashCode(); + if (IntegrationNotificationUrl.Length != 0) hash ^= IntegrationNotificationUrl.GetHashCode(); + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) hash ^= Marshaler.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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ApplicationId); + } + headers_.WriteTo(output, _repeated_headers_codec); + if (UplinkDataUrl.Length != 0) { + output.WriteRawTag(26); + output.WriteString(UplinkDataUrl); + } + if (JoinNotificationUrl.Length != 0) { + output.WriteRawTag(34); + output.WriteString(JoinNotificationUrl); + } + if (AckNotificationUrl.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AckNotificationUrl); + } + if (ErrorNotificationUrl.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ErrorNotificationUrl); + } + if (StatusNotificationUrl.Length != 0) { + output.WriteRawTag(58); + output.WriteString(StatusNotificationUrl); + } + if (LocationNotificationUrl.Length != 0) { + output.WriteRawTag(66); + output.WriteString(LocationNotificationUrl); + } + if (TxAckNotificationUrl.Length != 0) { + output.WriteRawTag(74); + output.WriteString(TxAckNotificationUrl); + } + if (IntegrationNotificationUrl.Length != 0) { + output.WriteRawTag(82); + output.WriteString(IntegrationNotificationUrl); + } + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + output.WriteRawTag(88); + output.WriteEnum((int) Marshaler); + } + if (EventEndpointUrl.Length != 0) { + output.WriteRawTag(98); + 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ApplicationId); + } + headers_.WriteTo(ref output, _repeated_headers_codec); + if (UplinkDataUrl.Length != 0) { + output.WriteRawTag(26); + output.WriteString(UplinkDataUrl); + } + if (JoinNotificationUrl.Length != 0) { + output.WriteRawTag(34); + output.WriteString(JoinNotificationUrl); + } + if (AckNotificationUrl.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AckNotificationUrl); + } + if (ErrorNotificationUrl.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ErrorNotificationUrl); + } + if (StatusNotificationUrl.Length != 0) { + output.WriteRawTag(58); + output.WriteString(StatusNotificationUrl); + } + if (LocationNotificationUrl.Length != 0) { + output.WriteRawTag(66); + output.WriteString(LocationNotificationUrl); + } + if (TxAckNotificationUrl.Length != 0) { + output.WriteRawTag(74); + output.WriteString(TxAckNotificationUrl); + } + if (IntegrationNotificationUrl.Length != 0) { + output.WriteRawTag(82); + output.WriteString(IntegrationNotificationUrl); + } + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + output.WriteRawTag(88); + output.WriteEnum((int) Marshaler); + } + if (EventEndpointUrl.Length != 0) { + output.WriteRawTag(98); + 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + size += headers_.CalculateSize(_repeated_headers_codec); + if (UplinkDataUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UplinkDataUrl); + } + if (JoinNotificationUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(JoinNotificationUrl); + } + if (AckNotificationUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AckNotificationUrl); + } + if (ErrorNotificationUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorNotificationUrl); + } + if (StatusNotificationUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StatusNotificationUrl); + } + if (LocationNotificationUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LocationNotificationUrl); + } + if (TxAckNotificationUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TxAckNotificationUrl); + } + if (IntegrationNotificationUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IntegrationNotificationUrl); + } + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Marshaler); + } + 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 != 0L) { + ApplicationId = other.ApplicationId; + } + headers_.Add(other.headers_); + if (other.UplinkDataUrl.Length != 0) { + UplinkDataUrl = other.UplinkDataUrl; + } + if (other.JoinNotificationUrl.Length != 0) { + JoinNotificationUrl = other.JoinNotificationUrl; + } + if (other.AckNotificationUrl.Length != 0) { + AckNotificationUrl = other.AckNotificationUrl; + } + if (other.ErrorNotificationUrl.Length != 0) { + ErrorNotificationUrl = other.ErrorNotificationUrl; + } + if (other.StatusNotificationUrl.Length != 0) { + StatusNotificationUrl = other.StatusNotificationUrl; + } + if (other.LocationNotificationUrl.Length != 0) { + LocationNotificationUrl = other.LocationNotificationUrl; + } + if (other.TxAckNotificationUrl.Length != 0) { + TxAckNotificationUrl = other.TxAckNotificationUrl; + } + if (other.IntegrationNotificationUrl.Length != 0) { + IntegrationNotificationUrl = other.IntegrationNotificationUrl; + } + if (other.Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + Marshaler = other.Marshaler; + } + 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 8: { + ApplicationId = input.ReadInt64(); + break; + } + case 18: { + headers_.AddEntriesFrom(input, _repeated_headers_codec); + break; + } + case 26: { + UplinkDataUrl = input.ReadString(); + break; + } + case 34: { + JoinNotificationUrl = input.ReadString(); + break; + } + case 42: { + AckNotificationUrl = input.ReadString(); + break; + } + case 50: { + ErrorNotificationUrl = input.ReadString(); + break; + } + case 58: { + StatusNotificationUrl = input.ReadString(); + break; + } + case 66: { + LocationNotificationUrl = input.ReadString(); + break; + } + case 74: { + TxAckNotificationUrl = input.ReadString(); + break; + } + case 82: { + IntegrationNotificationUrl = input.ReadString(); + break; + } + case 88: { + Marshaler = (global::Chirpstack.ApplicationServer.External.Api.Marshaler) input.ReadEnum(); + break; + } + case 98: { + 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 8: { + ApplicationId = input.ReadInt64(); + break; + } + case 18: { + headers_.AddEntriesFrom(ref input, _repeated_headers_codec); + break; + } + case 26: { + UplinkDataUrl = input.ReadString(); + break; + } + case 34: { + JoinNotificationUrl = input.ReadString(); + break; + } + case 42: { + AckNotificationUrl = input.ReadString(); + break; + } + case 50: { + ErrorNotificationUrl = input.ReadString(); + break; + } + case 58: { + StatusNotificationUrl = input.ReadString(); + break; + } + case 66: { + LocationNotificationUrl = input.ReadString(); + break; + } + case 74: { + TxAckNotificationUrl = input.ReadString(); + break; + } + case 82: { + IntegrationNotificationUrl = input.ReadString(); + break; + } + case 88: { + Marshaler = (global::Chirpstack.ApplicationServer.External.Api.Marshaler) input.ReadEnum(); + break; + } + case 98: { + 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.HTTPIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.HTTPIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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.ApplicationServer.External.Api.HTTPIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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 long applicationId_; + /// + /// The id of the application. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListIntegrationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListIntegrationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListIntegrationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListIntegrationRequest(ListIntegrationRequest other) : this() { + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListIntegrationRequest Clone() { + return new ListIntegrationRequest(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private long applicationId_; + /// + /// The id of the application. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListIntegrationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListIntegrationRequest 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListIntegrationRequest other) { + if (other == null) { + return; + } + if (other.ApplicationId != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.IntegrationKind kind_ = global::Chirpstack.ApplicationServer.External.Api.IntegrationKind.Http; + /// + /// Integration kind. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.IntegrationKind) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListIntegrationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListIntegrationResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListIntegrationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListIntegrationResponse(ListIntegrationResponse 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 ListIntegrationResponse Clone() { + return new ListIntegrationResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private long totalCount_; + /// + /// Total number of integrations available within the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.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 ListIntegrationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListIntegrationResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(ListIntegrationResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + 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.ApplicationServer.External.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 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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.ApplicationServer.External.Api.InfluxDBPrecision precision_ = global::Chirpstack.ApplicationServer.External.Api.InfluxDBPrecision.Ns; + /// + /// InfluxDB timestamp precision (InfluxDB v1). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.InfluxDBPrecision Precision { + get { return precision_; } + set { + precision_ = value; + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 8; + private global::Chirpstack.ApplicationServer.External.Api.InfluxDBVersion version_ = global::Chirpstack.ApplicationServer.External.Api.InfluxDBVersion.Influxdb1; + /// + /// InfluxDB version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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 != 0L) 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.ApplicationServer.External.Api.InfluxDBPrecision.Ns) hash ^= Precision.GetHashCode(); + if (Version != global::Chirpstack.ApplicationServer.External.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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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.ApplicationServer.External.Api.InfluxDBPrecision.Ns) { + output.WriteRawTag(56); + output.WriteEnum((int) Precision); + } + if (Version != global::Chirpstack.ApplicationServer.External.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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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.ApplicationServer.External.Api.InfluxDBPrecision.Ns) { + output.WriteRawTag(56); + output.WriteEnum((int) Precision); + } + if (Version != global::Chirpstack.ApplicationServer.External.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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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.ApplicationServer.External.Api.InfluxDBPrecision.Ns) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Precision); + } + if (Version != global::Chirpstack.ApplicationServer.External.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 != 0L) { + 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.ApplicationServer.External.Api.InfluxDBPrecision.Ns) { + Precision = other.Precision; + } + if (other.Version != global::Chirpstack.ApplicationServer.External.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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.Api.InfluxDBPrecision) input.ReadEnum(); + break; + } + case 64: { + Version = (global::Chirpstack.ApplicationServer.External.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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.Api.InfluxDBPrecision) input.ReadEnum(); + break; + } + case 64: { + Version = (global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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 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.ApplicationServer.External.Api.InfluxDBIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.InfluxDBIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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.ApplicationServer.External.Api.InfluxDBIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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 8: { + ApplicationId = input.ReadInt64(); + 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.ThingsBoardIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.ThingsBoardIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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.ApplicationServer.External.Api.ThingsBoardIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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 8: { + ApplicationId = input.ReadInt64(); + 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.MyDevicesIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.MyDevicesIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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.ApplicationServer.External.Api.MyDevicesIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 LoRaCloudIntegration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoRaCloudIntegration(LoRaCloudIntegration other) : this() { + applicationId_ = other.applicationId_; + geolocation_ = other.geolocation_; + geolocationToken_ = other.geolocationToken_; + 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_; + das_ = other.das_; + dasToken_ = other.dasToken_; + dasModemPort_ = other.dasModemPort_; + dasGnssPort_ = other.dasGnssPort_; + dasGnssUseRxTime_ = other.dasGnssUseRxTime_; + dasStreamingGeolocWorkaround_ = other.dasStreamingGeolocWorkaround_; + _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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "geolocation" field. + public const int GeolocationFieldNumber = 2; + private bool geolocation_; + /// + /// Geolocation enabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Geolocation { + get { return geolocation_; } + set { + geolocation_ = value; + } + } + + /// Field number for the "geolocation_token" field. + public const int GeolocationTokenFieldNumber = 3; + private string geolocationToken_ = ""; + /// + /// Geolocation token. + /// This token can be obtained from the LoRa Cloud console. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GeolocationToken { + get { return geolocationToken_; } + set { + geolocationToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "geolocation_buffer_ttl" field. + public const int GeolocationBufferTtlFieldNumber = 4; + private uint geolocationBufferTtl_; + /// + /// Geolocation buffer TTL (in seconds). + /// When > 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 = 5; + private uint geolocationMinBufferSize_; + /// + /// Geolocation minimum buffer size. + /// When > 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 = 6; + 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 = 7; + 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 = 8; + 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 = 9; + private string geolocationGnssPayloadField_ = ""; + /// + /// GNSS payload field. + /// This holds the name of the field in the decoded payload object which + /// contains the GNSS payload bytes. + /// + [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 = 10; + 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 = 11; + 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 = 12; + 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"); + } + } + + /// Field number for the "das" field. + public const int DasFieldNumber = 13; + private bool das_; + /// + /// Device Application Services enabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Das { + get { return das_; } + set { + das_ = value; + } + } + + /// Field number for the "das_token" field. + public const int DasTokenFieldNumber = 14; + private string dasToken_ = ""; + /// + /// Device Application Services token. + /// This token can be obtained from the LoRa Cloud console. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DasToken { + get { return dasToken_; } + set { + dasToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "das_modem_port" field. + public const int DasModemPortFieldNumber = 15; + private uint dasModemPort_; + /// + /// Device Application Services modem port (FPort). + /// ChirpStack Application Server will only forward the FRMPayload to DAS + /// when the uplink FPort is equal to this value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DasModemPort { + get { return dasModemPort_; } + set { + dasModemPort_ = value; + } + } + + /// Field number for the "das_gnss_port" field. + public const int DasGnssPortFieldNumber = 16; + private uint dasGnssPort_; + /// + /// Device Application Services GNSS port (FPort). + /// ChirpStack Application Server will forward the FRMPayload to DAS when + /// as GNSS payload when the uplink FPort is equal to this value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DasGnssPort { + get { return dasGnssPort_; } + set { + dasGnssPort_ = value; + } + } + + /// Field number for the "das_gnss_use_rx_time" field. + public const int DasGnssUseRxTimeFieldNumber = 17; + private bool dasGnssUseRxTime_; + /// + /// Device Application Services GNSS use RX time. + /// In case this is set to true, the DAS 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 DasGnssUseRxTime { + get { return dasGnssUseRxTime_; } + set { + dasGnssUseRxTime_ = value; + } + } + + /// Field number for the "das_streaming_geoloc_workaround" field. + public const int DasStreamingGeolocWorkaroundFieldNumber = 18; + private bool dasStreamingGeolocWorkaround_; + /// + /// Device Application Services streaming geoloc work-around. + /// This is a temporarily work-around for processing streaming geolocation + /// data. When enabled, stream records (expected in TLV format) are scanned + /// for GNSS data (0x06 or 0x07). If found, the ChirpStack Application Server + /// will make an additional call to the DAS API for resolving the location + /// using the detected payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DasStreamingGeolocWorkaround { + get { return dasStreamingGeolocWorkaround_; } + set { + dasStreamingGeolocWorkaround_ = 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 (Geolocation != other.Geolocation) return false; + if (GeolocationToken != other.GeolocationToken) 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; + if (Das != other.Das) return false; + if (DasToken != other.DasToken) return false; + if (DasModemPort != other.DasModemPort) return false; + if (DasGnssPort != other.DasGnssPort) return false; + if (DasGnssUseRxTime != other.DasGnssUseRxTime) return false; + if (DasStreamingGeolocWorkaround != other.DasStreamingGeolocWorkaround) return false; + 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 != 0L) hash ^= ApplicationId.GetHashCode(); + if (Geolocation != false) hash ^= Geolocation.GetHashCode(); + if (GeolocationToken.Length != 0) hash ^= GeolocationToken.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 (Das != false) hash ^= Das.GetHashCode(); + if (DasToken.Length != 0) hash ^= DasToken.GetHashCode(); + if (DasModemPort != 0) hash ^= DasModemPort.GetHashCode(); + if (DasGnssPort != 0) hash ^= DasGnssPort.GetHashCode(); + if (DasGnssUseRxTime != false) hash ^= DasGnssUseRxTime.GetHashCode(); + if (DasStreamingGeolocWorkaround != false) hash ^= DasStreamingGeolocWorkaround.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ApplicationId); + } + if (Geolocation != false) { + output.WriteRawTag(16); + output.WriteBool(Geolocation); + } + if (GeolocationToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GeolocationToken); + } + if (GeolocationBufferTtl != 0) { + output.WriteRawTag(32); + output.WriteUInt32(GeolocationBufferTtl); + } + if (GeolocationMinBufferSize != 0) { + output.WriteRawTag(40); + output.WriteUInt32(GeolocationMinBufferSize); + } + if (GeolocationTdoa != false) { + output.WriteRawTag(48); + output.WriteBool(GeolocationTdoa); + } + if (GeolocationRssi != false) { + output.WriteRawTag(56); + output.WriteBool(GeolocationRssi); + } + if (GeolocationGnss != false) { + output.WriteRawTag(64); + output.WriteBool(GeolocationGnss); + } + if (GeolocationGnssPayloadField.Length != 0) { + output.WriteRawTag(74); + output.WriteString(GeolocationGnssPayloadField); + } + if (GeolocationGnssUseRxTime != false) { + output.WriteRawTag(80); + output.WriteBool(GeolocationGnssUseRxTime); + } + if (GeolocationWifi != false) { + output.WriteRawTag(88); + output.WriteBool(GeolocationWifi); + } + if (GeolocationWifiPayloadField.Length != 0) { + output.WriteRawTag(98); + output.WriteString(GeolocationWifiPayloadField); + } + if (Das != false) { + output.WriteRawTag(104); + output.WriteBool(Das); + } + if (DasToken.Length != 0) { + output.WriteRawTag(114); + output.WriteString(DasToken); + } + if (DasModemPort != 0) { + output.WriteRawTag(120); + output.WriteUInt32(DasModemPort); + } + if (DasGnssPort != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(DasGnssPort); + } + if (DasGnssUseRxTime != false) { + output.WriteRawTag(136, 1); + output.WriteBool(DasGnssUseRxTime); + } + if (DasStreamingGeolocWorkaround != false) { + output.WriteRawTag(144, 1); + output.WriteBool(DasStreamingGeolocWorkaround); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ApplicationId); + } + if (Geolocation != false) { + output.WriteRawTag(16); + output.WriteBool(Geolocation); + } + if (GeolocationToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GeolocationToken); + } + if (GeolocationBufferTtl != 0) { + output.WriteRawTag(32); + output.WriteUInt32(GeolocationBufferTtl); + } + if (GeolocationMinBufferSize != 0) { + output.WriteRawTag(40); + output.WriteUInt32(GeolocationMinBufferSize); + } + if (GeolocationTdoa != false) { + output.WriteRawTag(48); + output.WriteBool(GeolocationTdoa); + } + if (GeolocationRssi != false) { + output.WriteRawTag(56); + output.WriteBool(GeolocationRssi); + } + if (GeolocationGnss != false) { + output.WriteRawTag(64); + output.WriteBool(GeolocationGnss); + } + if (GeolocationGnssPayloadField.Length != 0) { + output.WriteRawTag(74); + output.WriteString(GeolocationGnssPayloadField); + } + if (GeolocationGnssUseRxTime != false) { + output.WriteRawTag(80); + output.WriteBool(GeolocationGnssUseRxTime); + } + if (GeolocationWifi != false) { + output.WriteRawTag(88); + output.WriteBool(GeolocationWifi); + } + if (GeolocationWifiPayloadField.Length != 0) { + output.WriteRawTag(98); + output.WriteString(GeolocationWifiPayloadField); + } + if (Das != false) { + output.WriteRawTag(104); + output.WriteBool(Das); + } + if (DasToken.Length != 0) { + output.WriteRawTag(114); + output.WriteString(DasToken); + } + if (DasModemPort != 0) { + output.WriteRawTag(120); + output.WriteUInt32(DasModemPort); + } + if (DasGnssPort != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(DasGnssPort); + } + if (DasGnssUseRxTime != false) { + output.WriteRawTag(136, 1); + output.WriteBool(DasGnssUseRxTime); + } + if (DasStreamingGeolocWorkaround != false) { + output.WriteRawTag(144, 1); + output.WriteBool(DasStreamingGeolocWorkaround); + } + if (_unknownFields != 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + if (Geolocation != false) { + size += 1 + 1; + } + if (GeolocationToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GeolocationToken); + } + 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 (Das != false) { + size += 1 + 1; + } + if (DasToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DasToken); + } + if (DasModemPort != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DasModemPort); + } + if (DasGnssPort != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(DasGnssPort); + } + if (DasGnssUseRxTime != false) { + size += 2 + 1; + } + if (DasStreamingGeolocWorkaround != 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(LoRaCloudIntegration other) { + if (other == null) { + return; + } + if (other.ApplicationId != 0L) { + ApplicationId = other.ApplicationId; + } + if (other.Geolocation != false) { + Geolocation = other.Geolocation; + } + if (other.GeolocationToken.Length != 0) { + GeolocationToken = other.GeolocationToken; + } + 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; + } + if (other.Das != false) { + Das = other.Das; + } + if (other.DasToken.Length != 0) { + DasToken = other.DasToken; + } + if (other.DasModemPort != 0) { + DasModemPort = other.DasModemPort; + } + if (other.DasGnssPort != 0) { + DasGnssPort = other.DasGnssPort; + } + if (other.DasGnssUseRxTime != false) { + DasGnssUseRxTime = other.DasGnssUseRxTime; + } + if (other.DasStreamingGeolocWorkaround != false) { + DasStreamingGeolocWorkaround = other.DasStreamingGeolocWorkaround; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ApplicationId = input.ReadInt64(); + break; + } + case 16: { + Geolocation = input.ReadBool(); + break; + } + case 26: { + GeolocationToken = input.ReadString(); + break; + } + case 32: { + GeolocationBufferTtl = input.ReadUInt32(); + break; + } + case 40: { + GeolocationMinBufferSize = input.ReadUInt32(); + break; + } + case 48: { + GeolocationTdoa = input.ReadBool(); + break; + } + case 56: { + GeolocationRssi = input.ReadBool(); + break; + } + case 64: { + GeolocationGnss = input.ReadBool(); + break; + } + case 74: { + GeolocationGnssPayloadField = input.ReadString(); + break; + } + case 80: { + GeolocationGnssUseRxTime = input.ReadBool(); + break; + } + case 88: { + GeolocationWifi = input.ReadBool(); + break; + } + case 98: { + GeolocationWifiPayloadField = input.ReadString(); + break; + } + case 104: { + Das = input.ReadBool(); + break; + } + case 114: { + DasToken = input.ReadString(); + break; + } + case 120: { + DasModemPort = input.ReadUInt32(); + break; + } + case 128: { + DasGnssPort = input.ReadUInt32(); + break; + } + case 136: { + DasGnssUseRxTime = input.ReadBool(); + break; + } + case 144: { + DasStreamingGeolocWorkaround = 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 8: { + ApplicationId = input.ReadInt64(); + break; + } + case 16: { + Geolocation = input.ReadBool(); + break; + } + case 26: { + GeolocationToken = input.ReadString(); + break; + } + case 32: { + GeolocationBufferTtl = input.ReadUInt32(); + break; + } + case 40: { + GeolocationMinBufferSize = input.ReadUInt32(); + break; + } + case 48: { + GeolocationTdoa = input.ReadBool(); + break; + } + case 56: { + GeolocationRssi = input.ReadBool(); + break; + } + case 64: { + GeolocationGnss = input.ReadBool(); + break; + } + case 74: { + GeolocationGnssPayloadField = input.ReadString(); + break; + } + case 80: { + GeolocationGnssUseRxTime = input.ReadBool(); + break; + } + case 88: { + GeolocationWifi = input.ReadBool(); + break; + } + case 98: { + GeolocationWifiPayloadField = input.ReadString(); + break; + } + case 104: { + Das = input.ReadBool(); + break; + } + case 114: { + DasToken = input.ReadString(); + break; + } + case 120: { + DasModemPort = input.ReadUInt32(); + break; + } + case 128: { + DasGnssPort = input.ReadUInt32(); + break; + } + case 136: { + DasGnssUseRxTime = input.ReadBool(); + break; + } + case 144: { + DasStreamingGeolocWorkaround = input.ReadBool(); + 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.ApplicationServer.External.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.ApplicationServer.External.Api.LoRaCloudIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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.ApplicationServer.External.Api.LoRaCloudIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.LoRaCloudIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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_; + marshaler_ = other.marshaler_; + 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "marshaler" field. + public const int MarshalerFieldNumber = 2; + private global::Chirpstack.ApplicationServer.External.Api.Marshaler marshaler_ = global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json; + /// + /// Marshaler. + /// This defines the marshaler that is used to encode the event payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.Marshaler Marshaler { + get { return marshaler_; } + set { + marshaler_ = 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 (Marshaler != other.Marshaler) 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 != 0L) hash ^= ApplicationId.GetHashCode(); + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) hash ^= Marshaler.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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ApplicationId); + } + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + output.WriteRawTag(16); + output.WriteEnum((int) Marshaler); + } + 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ApplicationId); + } + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + output.WriteRawTag(16); + output.WriteEnum((int) Marshaler); + } + 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Marshaler); + } + 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 != 0L) { + ApplicationId = other.ApplicationId; + } + if (other.Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + Marshaler = other.Marshaler; + } + 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 8: { + ApplicationId = input.ReadInt64(); + break; + } + case 16: { + Marshaler = (global::Chirpstack.ApplicationServer.External.Api.Marshaler) 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 8: { + ApplicationId = input.ReadInt64(); + break; + } + case 16: { + Marshaler = (global::Chirpstack.ApplicationServer.External.Api.Marshaler) 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.ApplicationServer.External.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.ApplicationServer.External.Api.GCPPubSubIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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.ApplicationServer.External.Api.GCPPubSubIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.GCPPubSubIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long applicationId_; + /// + /// The id of the application. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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_; + marshaler_ = other.marshaler_; + 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "marshaler" field. + public const int MarshalerFieldNumber = 2; + private global::Chirpstack.ApplicationServer.External.Api.Marshaler marshaler_ = global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json; + /// + /// Marshaler. + /// This defines the marshaler that is used to encode the event payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.Marshaler Marshaler { + get { return marshaler_; } + set { + marshaler_ = 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 (Marshaler != other.Marshaler) 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 != 0L) hash ^= ApplicationId.GetHashCode(); + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) hash ^= Marshaler.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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ApplicationId); + } + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + output.WriteRawTag(16); + output.WriteEnum((int) Marshaler); + } + 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ApplicationId); + } + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + output.WriteRawTag(16); + output.WriteEnum((int) Marshaler); + } + 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Marshaler); + } + 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 != 0L) { + ApplicationId = other.ApplicationId; + } + if (other.Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + Marshaler = other.Marshaler; + } + 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 8: { + ApplicationId = input.ReadInt64(); + break; + } + case 16: { + Marshaler = (global::Chirpstack.ApplicationServer.External.Api.Marshaler) 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 8: { + ApplicationId = input.ReadInt64(); + break; + } + case 16: { + Marshaler = (global::Chirpstack.ApplicationServer.External.Api.Marshaler) 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.ApplicationServer.External.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.ApplicationServer.External.Api.AWSSNSIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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.ApplicationServer.External.Api.AWSSNSIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.AWSSNSIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long applicationId_; + /// + /// The id of the application. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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_; + marshaler_ = other.marshaler_; + 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "marshaler" field. + public const int MarshalerFieldNumber = 2; + private global::Chirpstack.ApplicationServer.External.Api.Marshaler marshaler_ = global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json; + /// + /// Marshaler. + /// This defines the marshaler that is used to encode the event payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.Marshaler Marshaler { + get { return marshaler_; } + set { + marshaler_ = 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 (Marshaler != other.Marshaler) 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 != 0L) hash ^= ApplicationId.GetHashCode(); + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) hash ^= Marshaler.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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ApplicationId); + } + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + output.WriteRawTag(16); + output.WriteEnum((int) Marshaler); + } + 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ApplicationId); + } + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + output.WriteRawTag(16); + output.WriteEnum((int) Marshaler); + } + 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + if (Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Marshaler); + } + 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 != 0L) { + ApplicationId = other.ApplicationId; + } + if (other.Marshaler != global::Chirpstack.ApplicationServer.External.Api.Marshaler.Json) { + Marshaler = other.Marshaler; + } + 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 8: { + ApplicationId = input.ReadInt64(); + break; + } + case 16: { + Marshaler = (global::Chirpstack.ApplicationServer.External.Api.Marshaler) 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 8: { + ApplicationId = input.ReadInt64(); + break; + } + case 16: { + Marshaler = (global::Chirpstack.ApplicationServer.External.Api.Marshaler) 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.ApplicationServer.External.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.ApplicationServer.External.Api.AzureServiceBusIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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.ApplicationServer.External.Api.AzureServiceBusIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.AzureServiceBusIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long applicationId_; + /// + /// The id of the application. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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 8: { + ApplicationId = input.ReadInt64(); + 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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.ApplicationServer.External.Api.PilotThingsIntegration integration_; + /// + /// Integration object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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.ApplicationServer.External.Api.PilotThingsIntegration integration_; + /// + /// Integration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.PilotThingsIntegration integration_; + /// + /// Integration object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long applicationId_; + /// + /// The id of the application. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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: { + ApplicationId = 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 8: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 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/csharp/protobuf/as/external/api/ApplicationGrpc.cs b/csharp/protobuf/as/external/api/ApplicationGrpc.cs new file mode 100644 index 00000000..c1738a5a --- /dev/null +++ b/csharp/protobuf/as/external/api/ApplicationGrpc.cs @@ -0,0 +1,3249 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/application.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer.External.Api { + /// + /// ApplicationService is the service 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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.DeleteApplicationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListApplicationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListApplicationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListApplicationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListApplicationResponse.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.DeletePilotThingsIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListIntegrationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListIntegrationResponse.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.ApplicationServer.External.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.ApplicationServer.External.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_ListApplicationRequest, + __Marshaller_api_ListApplicationResponse); + + [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_ListIntegrations = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListIntegrations", + __Marshaller_api_ListIntegrationRequest, + __Marshaller_api_ListIntegrationResponse); + + [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.ApplicationServer.External.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.ApplicationServer.External.Api.CreateApplicationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get returns the requested 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 Get(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.UpdateApplicationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete deletes 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 Delete(global::Chirpstack.ApplicationServer.External.Api.DeleteApplicationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List lists the available 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.ApplicationServer.External.Api.ListApplicationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateHTTPIntegration creates a HTTP application-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.ApplicationServer.External.Api.CreateHTTPIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetHTTPIntegration returns the HTTP application-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.ApplicationServer.External.Api.GetHTTPIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateHTTPIntegration updates the HTTP application-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.ApplicationServer.External.Api.UpdateHTTPIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteIntegration deletes the HTTP application-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.ApplicationServer.External.Api.DeleteHTTPIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateInfluxDBIntegration create an InfluxDB application-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.ApplicationServer.External.Api.CreateInfluxDBIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetInfluxDBIntegration returns the InfluxDB application-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.ApplicationServer.External.Api.GetInfluxDBIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateInfluxDBIntegration updates the InfluxDB application-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.ApplicationServer.External.Api.UpdateInfluxDBIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteInfluxDBIntegration deletes the InfluxDB application-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.ApplicationServer.External.Api.DeleteInfluxDBIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateThingsBoardIntegration creates a ThingsBoard application-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.ApplicationServer.External.Api.CreateThingsBoardIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetThingsBoardIntegration returns the ThingsBoard application-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.ApplicationServer.External.Api.GetThingsBoardIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateThingsBoardIntegration updates the ThingsBoard application-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.ApplicationServer.External.Api.UpdateThingsBoardIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteThingsBoardIntegration deletes the ThingsBoard application-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.ApplicationServer.External.Api.DeleteThingsBoardIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateMyDevicesIntegration creates a MyDevices application-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.ApplicationServer.External.Api.CreateMyDevicesIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetMyDevicesIntegration returns the MyDevices application-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.ApplicationServer.External.Api.GetMyDevicesIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateMyDevicesIntegration updates the MyDevices application-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.ApplicationServer.External.Api.UpdateMyDevicesIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteMyDevicesIntegration deletes the MyDevices application-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.ApplicationServer.External.Api.DeleteMyDevicesIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateLoRaCloudIntegration creates A LoRaCloud application-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.ApplicationServer.External.Api.CreateLoRaCloudIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetLoRaCloudIntegration returns the LoRaCloud application-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.ApplicationServer.External.Api.GetLoRaCloudIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateLoRaCloudIntegration updates the LoRaCloud application-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.ApplicationServer.External.Api.UpdateLoRaCloudIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteLoRaCloudIntegration deletes the LoRaCloud application-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.ApplicationServer.External.Api.DeleteLoRaCloudIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateGCPPubSubIntegration creates a GCP PubSub application-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.ApplicationServer.External.Api.CreateGCPPubSubIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetGCPPubSubIntegration returns the GCP PubSub application-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.ApplicationServer.External.Api.GetGCPPubSubIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateGCPPubSubIntegration updates the GCP PubSub application-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.ApplicationServer.External.Api.UpdateGCPPubSubIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteGCPPubSubIntegration deletes the GCP PubSub application-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.ApplicationServer.External.Api.DeleteGCPPubSubIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateAWSSNSIntegration creates a AWS SNS application-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.ApplicationServer.External.Api.CreateAWSSNSIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetAWSSNSIntegration returns the AWS SNS application-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.ApplicationServer.External.Api.GetAWSSNSIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateAWSSNSIntegration updates the AWS SNS application-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.ApplicationServer.External.Api.UpdateAWSSNSIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteAWSSNSIntegration deletes the AWS SNS application-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.ApplicationServer.External.Api.DeleteAWSSNSIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateAzureServiceBusIntegration creates an Azure Service-Bus application-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.ApplicationServer.External.Api.CreateAzureServiceBusIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetAzureServiceBusIntegration returns the Azure Service-Bus application-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.ApplicationServer.External.Api.GetAzureServiceBusIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateAzureServiceBusIntegration updates the Azure Service-Bus application-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.ApplicationServer.External.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteAzureServiceBusIntegration deletes the Azure Service-Bus application-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.ApplicationServer.External.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreatePilotThingsIntegration creates an Pilot Things application-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.ApplicationServer.External.Api.CreatePilotThingsIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetPilotThingsIntegration returns the Pilot Things application-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.ApplicationServer.External.Api.GetPilotThingsIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdatePilotThingsIntegration updates the Pilot Things application-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.ApplicationServer.External.Api.UpdatePilotThingsIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeletePilotThingsIntegration deletes the Pilot Things application-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.ApplicationServer.External.Api.DeletePilotThingsIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// ListIntegrations lists 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.ApplicationServer.External.Api.ListIntegrationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GenerateMQTTIntegrationClientCertificate generates an application ID specific TLS certificate + /// to connect to the MQTT broker. + /// + /// 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.ApplicationServer.External.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.ApplicationServer.External.Api.CreateApplicationResponse Create(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.CreateApplicationResponse Create(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.CreateApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get returns the requested 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.ApplicationServer.External.Api.GetApplicationResponse Get(global::Chirpstack.ApplicationServer.External.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 returns the requested 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.ApplicationServer.External.Api.GetApplicationResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get returns the requested 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 GetAsync(global::Chirpstack.ApplicationServer.External.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 returns the requested 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 GetAsync(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.UpdateApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete deletes 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 Delete(global::Chirpstack.ApplicationServer.External.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 deletes 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 Delete(global::Chirpstack.ApplicationServer.External.Api.DeleteApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete deletes 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 DeleteAsync(global::Chirpstack.ApplicationServer.External.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 deletes 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 DeleteAsync(global::Chirpstack.ApplicationServer.External.Api.DeleteApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// List lists the available 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.ApplicationServer.External.Api.ListApplicationResponse List(global::Chirpstack.ApplicationServer.External.Api.ListApplicationRequest 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 lists the available 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.ApplicationServer.External.Api.ListApplicationResponse List(global::Chirpstack.ApplicationServer.External.Api.ListApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// List lists the available 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.ApplicationServer.External.Api.ListApplicationRequest 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 lists the available 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.ApplicationServer.External.Api.ListApplicationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// CreateHTTPIntegration creates a HTTP application-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.ApplicationServer.External.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)); + } + /// + /// CreateHTTPIntegration creates a HTTP application-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.ApplicationServer.External.Api.CreateHTTPIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateHTTPIntegration, null, options, request); + } + /// + /// CreateHTTPIntegration creates a HTTP application-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.ApplicationServer.External.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)); + } + /// + /// CreateHTTPIntegration creates a HTTP application-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.ApplicationServer.External.Api.CreateHTTPIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateHTTPIntegration, null, options, request); + } + /// + /// GetHTTPIntegration returns the HTTP application-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.ApplicationServer.External.Api.GetHTTPIntegrationResponse GetHTTPIntegration(global::Chirpstack.ApplicationServer.External.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)); + } + /// + /// GetHTTPIntegration returns the HTTP application-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.ApplicationServer.External.Api.GetHTTPIntegrationResponse GetHTTPIntegration(global::Chirpstack.ApplicationServer.External.Api.GetHTTPIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetHTTPIntegration, null, options, request); + } + /// + /// GetHTTPIntegration returns the HTTP application-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.ApplicationServer.External.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)); + } + /// + /// GetHTTPIntegration returns the HTTP application-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.ApplicationServer.External.Api.GetHTTPIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetHTTPIntegration, null, options, request); + } + /// + /// UpdateHTTPIntegration updates the HTTP application-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.ApplicationServer.External.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)); + } + /// + /// UpdateHTTPIntegration updates the HTTP application-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.ApplicationServer.External.Api.UpdateHTTPIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateHTTPIntegration, null, options, request); + } + /// + /// UpdateHTTPIntegration updates the HTTP application-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.ApplicationServer.External.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)); + } + /// + /// UpdateHTTPIntegration updates the HTTP application-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.ApplicationServer.External.Api.UpdateHTTPIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateHTTPIntegration, null, options, request); + } + /// + /// DeleteIntegration deletes the HTTP application-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.ApplicationServer.External.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)); + } + /// + /// DeleteIntegration deletes the HTTP application-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.ApplicationServer.External.Api.DeleteHTTPIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteHTTPIntegration, null, options, request); + } + /// + /// DeleteIntegration deletes the HTTP application-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.ApplicationServer.External.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)); + } + /// + /// DeleteIntegration deletes the HTTP application-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.ApplicationServer.External.Api.DeleteHTTPIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteHTTPIntegration, null, options, request); + } + /// + /// CreateInfluxDBIntegration create an InfluxDB application-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.ApplicationServer.External.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)); + } + /// + /// CreateInfluxDBIntegration create an InfluxDB application-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.ApplicationServer.External.Api.CreateInfluxDBIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateInfluxDBIntegration, null, options, request); + } + /// + /// CreateInfluxDBIntegration create an InfluxDB application-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.ApplicationServer.External.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)); + } + /// + /// CreateInfluxDBIntegration create an InfluxDB application-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.ApplicationServer.External.Api.CreateInfluxDBIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateInfluxDBIntegration, null, options, request); + } + /// + /// GetInfluxDBIntegration returns the InfluxDB application-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.ApplicationServer.External.Api.GetInfluxDBIntegrationResponse GetInfluxDBIntegration(global::Chirpstack.ApplicationServer.External.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)); + } + /// + /// GetInfluxDBIntegration returns the InfluxDB application-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.ApplicationServer.External.Api.GetInfluxDBIntegrationResponse GetInfluxDBIntegration(global::Chirpstack.ApplicationServer.External.Api.GetInfluxDBIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetInfluxDBIntegration, null, options, request); + } + /// + /// GetInfluxDBIntegration returns the InfluxDB application-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.ApplicationServer.External.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)); + } + /// + /// GetInfluxDBIntegration returns the InfluxDB application-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.ApplicationServer.External.Api.GetInfluxDBIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetInfluxDBIntegration, null, options, request); + } + /// + /// UpdateInfluxDBIntegration updates the InfluxDB application-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.ApplicationServer.External.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)); + } + /// + /// UpdateInfluxDBIntegration updates the InfluxDB application-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.ApplicationServer.External.Api.UpdateInfluxDBIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateInfluxDBIntegration, null, options, request); + } + /// + /// UpdateInfluxDBIntegration updates the InfluxDB application-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.ApplicationServer.External.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)); + } + /// + /// UpdateInfluxDBIntegration updates the InfluxDB application-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.ApplicationServer.External.Api.UpdateInfluxDBIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateInfluxDBIntegration, null, options, request); + } + /// + /// DeleteInfluxDBIntegration deletes the InfluxDB application-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.ApplicationServer.External.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)); + } + /// + /// DeleteInfluxDBIntegration deletes the InfluxDB application-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.ApplicationServer.External.Api.DeleteInfluxDBIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteInfluxDBIntegration, null, options, request); + } + /// + /// DeleteInfluxDBIntegration deletes the InfluxDB application-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.ApplicationServer.External.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)); + } + /// + /// DeleteInfluxDBIntegration deletes the InfluxDB application-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.ApplicationServer.External.Api.DeleteInfluxDBIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteInfluxDBIntegration, null, options, request); + } + /// + /// CreateThingsBoardIntegration creates a ThingsBoard application-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.ApplicationServer.External.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)); + } + /// + /// CreateThingsBoardIntegration creates a ThingsBoard application-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.ApplicationServer.External.Api.CreateThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateThingsBoardIntegration, null, options, request); + } + /// + /// CreateThingsBoardIntegration creates a ThingsBoard application-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.ApplicationServer.External.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)); + } + /// + /// CreateThingsBoardIntegration creates a ThingsBoard application-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.ApplicationServer.External.Api.CreateThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateThingsBoardIntegration, null, options, request); + } + /// + /// GetThingsBoardIntegration returns the ThingsBoard application-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.ApplicationServer.External.Api.GetThingsBoardIntegrationResponse GetThingsBoardIntegration(global::Chirpstack.ApplicationServer.External.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)); + } + /// + /// GetThingsBoardIntegration returns the ThingsBoard application-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.ApplicationServer.External.Api.GetThingsBoardIntegrationResponse GetThingsBoardIntegration(global::Chirpstack.ApplicationServer.External.Api.GetThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetThingsBoardIntegration, null, options, request); + } + /// + /// GetThingsBoardIntegration returns the ThingsBoard application-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.ApplicationServer.External.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)); + } + /// + /// GetThingsBoardIntegration returns the ThingsBoard application-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.ApplicationServer.External.Api.GetThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetThingsBoardIntegration, null, options, request); + } + /// + /// UpdateThingsBoardIntegration updates the ThingsBoard application-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.ApplicationServer.External.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)); + } + /// + /// UpdateThingsBoardIntegration updates the ThingsBoard application-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.ApplicationServer.External.Api.UpdateThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateThingsBoardIntegration, null, options, request); + } + /// + /// UpdateThingsBoardIntegration updates the ThingsBoard application-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.ApplicationServer.External.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)); + } + /// + /// UpdateThingsBoardIntegration updates the ThingsBoard application-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.ApplicationServer.External.Api.UpdateThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateThingsBoardIntegration, null, options, request); + } + /// + /// DeleteThingsBoardIntegration deletes the ThingsBoard application-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.ApplicationServer.External.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)); + } + /// + /// DeleteThingsBoardIntegration deletes the ThingsBoard application-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.ApplicationServer.External.Api.DeleteThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteThingsBoardIntegration, null, options, request); + } + /// + /// DeleteThingsBoardIntegration deletes the ThingsBoard application-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.ApplicationServer.External.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)); + } + /// + /// DeleteThingsBoardIntegration deletes the ThingsBoard application-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.ApplicationServer.External.Api.DeleteThingsBoardIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteThingsBoardIntegration, null, options, request); + } + /// + /// CreateMyDevicesIntegration creates a MyDevices application-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.ApplicationServer.External.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)); + } + /// + /// CreateMyDevicesIntegration creates a MyDevices application-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.ApplicationServer.External.Api.CreateMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateMyDevicesIntegration, null, options, request); + } + /// + /// CreateMyDevicesIntegration creates a MyDevices application-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.ApplicationServer.External.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)); + } + /// + /// CreateMyDevicesIntegration creates a MyDevices application-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.ApplicationServer.External.Api.CreateMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateMyDevicesIntegration, null, options, request); + } + /// + /// GetMyDevicesIntegration returns the MyDevices application-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.ApplicationServer.External.Api.GetMyDevicesIntegrationResponse GetMyDevicesIntegration(global::Chirpstack.ApplicationServer.External.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)); + } + /// + /// GetMyDevicesIntegration returns the MyDevices application-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.ApplicationServer.External.Api.GetMyDevicesIntegrationResponse GetMyDevicesIntegration(global::Chirpstack.ApplicationServer.External.Api.GetMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetMyDevicesIntegration, null, options, request); + } + /// + /// GetMyDevicesIntegration returns the MyDevices application-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.ApplicationServer.External.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)); + } + /// + /// GetMyDevicesIntegration returns the MyDevices application-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.ApplicationServer.External.Api.GetMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetMyDevicesIntegration, null, options, request); + } + /// + /// UpdateMyDevicesIntegration updates the MyDevices application-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.ApplicationServer.External.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)); + } + /// + /// UpdateMyDevicesIntegration updates the MyDevices application-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.ApplicationServer.External.Api.UpdateMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateMyDevicesIntegration, null, options, request); + } + /// + /// UpdateMyDevicesIntegration updates the MyDevices application-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.ApplicationServer.External.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)); + } + /// + /// UpdateMyDevicesIntegration updates the MyDevices application-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.ApplicationServer.External.Api.UpdateMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateMyDevicesIntegration, null, options, request); + } + /// + /// DeleteMyDevicesIntegration deletes the MyDevices application-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.ApplicationServer.External.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)); + } + /// + /// DeleteMyDevicesIntegration deletes the MyDevices application-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.ApplicationServer.External.Api.DeleteMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteMyDevicesIntegration, null, options, request); + } + /// + /// DeleteMyDevicesIntegration deletes the MyDevices application-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.ApplicationServer.External.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)); + } + /// + /// DeleteMyDevicesIntegration deletes the MyDevices application-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.ApplicationServer.External.Api.DeleteMyDevicesIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteMyDevicesIntegration, null, options, request); + } + /// + /// CreateLoRaCloudIntegration creates A LoRaCloud application-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.ApplicationServer.External.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)); + } + /// + /// CreateLoRaCloudIntegration creates A LoRaCloud application-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.ApplicationServer.External.Api.CreateLoRaCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateLoRaCloudIntegration, null, options, request); + } + /// + /// CreateLoRaCloudIntegration creates A LoRaCloud application-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.ApplicationServer.External.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)); + } + /// + /// CreateLoRaCloudIntegration creates A LoRaCloud application-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.ApplicationServer.External.Api.CreateLoRaCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateLoRaCloudIntegration, null, options, request); + } + /// + /// GetLoRaCloudIntegration returns the LoRaCloud application-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.ApplicationServer.External.Api.GetLoRaCloudIntegrationResponse GetLoRaCloudIntegration(global::Chirpstack.ApplicationServer.External.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)); + } + /// + /// GetLoRaCloudIntegration returns the LoRaCloud application-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.ApplicationServer.External.Api.GetLoRaCloudIntegrationResponse GetLoRaCloudIntegration(global::Chirpstack.ApplicationServer.External.Api.GetLoRaCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetLoRaCloudIntegration, null, options, request); + } + /// + /// GetLoRaCloudIntegration returns the LoRaCloud application-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.ApplicationServer.External.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)); + } + /// + /// GetLoRaCloudIntegration returns the LoRaCloud application-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.ApplicationServer.External.Api.GetLoRaCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetLoRaCloudIntegration, null, options, request); + } + /// + /// UpdateLoRaCloudIntegration updates the LoRaCloud application-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.ApplicationServer.External.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)); + } + /// + /// UpdateLoRaCloudIntegration updates the LoRaCloud application-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.ApplicationServer.External.Api.UpdateLoRaCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateLoRaCloudIntegration, null, options, request); + } + /// + /// UpdateLoRaCloudIntegration updates the LoRaCloud application-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.ApplicationServer.External.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)); + } + /// + /// UpdateLoRaCloudIntegration updates the LoRaCloud application-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.ApplicationServer.External.Api.UpdateLoRaCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateLoRaCloudIntegration, null, options, request); + } + /// + /// DeleteLoRaCloudIntegration deletes the LoRaCloud application-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.ApplicationServer.External.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)); + } + /// + /// DeleteLoRaCloudIntegration deletes the LoRaCloud application-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.ApplicationServer.External.Api.DeleteLoRaCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteLoRaCloudIntegration, null, options, request); + } + /// + /// DeleteLoRaCloudIntegration deletes the LoRaCloud application-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.ApplicationServer.External.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)); + } + /// + /// DeleteLoRaCloudIntegration deletes the LoRaCloud application-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.ApplicationServer.External.Api.DeleteLoRaCloudIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteLoRaCloudIntegration, null, options, request); + } + /// + /// CreateGCPPubSubIntegration creates a GCP PubSub application-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.ApplicationServer.External.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)); + } + /// + /// CreateGCPPubSubIntegration creates a GCP PubSub application-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.ApplicationServer.External.Api.CreateGCPPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateGCPPubSubIntegration, null, options, request); + } + /// + /// CreateGCPPubSubIntegration creates a GCP PubSub application-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.ApplicationServer.External.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)); + } + /// + /// CreateGCPPubSubIntegration creates a GCP PubSub application-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.ApplicationServer.External.Api.CreateGCPPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateGCPPubSubIntegration, null, options, request); + } + /// + /// GetGCPPubSubIntegration returns the GCP PubSub application-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.ApplicationServer.External.Api.GetGCPPubSubIntegrationResponse GetGCPPubSubIntegration(global::Chirpstack.ApplicationServer.External.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)); + } + /// + /// GetGCPPubSubIntegration returns the GCP PubSub application-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.ApplicationServer.External.Api.GetGCPPubSubIntegrationResponse GetGCPPubSubIntegration(global::Chirpstack.ApplicationServer.External.Api.GetGCPPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetGCPPubSubIntegration, null, options, request); + } + /// + /// GetGCPPubSubIntegration returns the GCP PubSub application-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.ApplicationServer.External.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)); + } + /// + /// GetGCPPubSubIntegration returns the GCP PubSub application-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.ApplicationServer.External.Api.GetGCPPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetGCPPubSubIntegration, null, options, request); + } + /// + /// UpdateGCPPubSubIntegration updates the GCP PubSub application-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.ApplicationServer.External.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)); + } + /// + /// UpdateGCPPubSubIntegration updates the GCP PubSub application-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.ApplicationServer.External.Api.UpdateGCPPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateGCPPubSubIntegration, null, options, request); + } + /// + /// UpdateGCPPubSubIntegration updates the GCP PubSub application-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.ApplicationServer.External.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)); + } + /// + /// UpdateGCPPubSubIntegration updates the GCP PubSub application-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.ApplicationServer.External.Api.UpdateGCPPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateGCPPubSubIntegration, null, options, request); + } + /// + /// DeleteGCPPubSubIntegration deletes the GCP PubSub application-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.ApplicationServer.External.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)); + } + /// + /// DeleteGCPPubSubIntegration deletes the GCP PubSub application-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.ApplicationServer.External.Api.DeleteGCPPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteGCPPubSubIntegration, null, options, request); + } + /// + /// DeleteGCPPubSubIntegration deletes the GCP PubSub application-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.ApplicationServer.External.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)); + } + /// + /// DeleteGCPPubSubIntegration deletes the GCP PubSub application-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.ApplicationServer.External.Api.DeleteGCPPubSubIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteGCPPubSubIntegration, null, options, request); + } + /// + /// CreateAWSSNSIntegration creates a AWS SNS application-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.ApplicationServer.External.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)); + } + /// + /// CreateAWSSNSIntegration creates a AWS SNS application-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.ApplicationServer.External.Api.CreateAWSSNSIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateAWSSNSIntegration, null, options, request); + } + /// + /// CreateAWSSNSIntegration creates a AWS SNS application-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.ApplicationServer.External.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)); + } + /// + /// CreateAWSSNSIntegration creates a AWS SNS application-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.ApplicationServer.External.Api.CreateAWSSNSIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateAWSSNSIntegration, null, options, request); + } + /// + /// GetAWSSNSIntegration returns the AWS SNS application-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.ApplicationServer.External.Api.GetAWSSNSIntegrationResponse GetAWSSNSIntegration(global::Chirpstack.ApplicationServer.External.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)); + } + /// + /// GetAWSSNSIntegration returns the AWS SNS application-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.ApplicationServer.External.Api.GetAWSSNSIntegrationResponse GetAWSSNSIntegration(global::Chirpstack.ApplicationServer.External.Api.GetAWSSNSIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetAWSSNSIntegration, null, options, request); + } + /// + /// GetAWSSNSIntegration returns the AWS SNS application-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.ApplicationServer.External.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)); + } + /// + /// GetAWSSNSIntegration returns the AWS SNS application-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.ApplicationServer.External.Api.GetAWSSNSIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetAWSSNSIntegration, null, options, request); + } + /// + /// UpdateAWSSNSIntegration updates the AWS SNS application-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.ApplicationServer.External.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)); + } + /// + /// UpdateAWSSNSIntegration updates the AWS SNS application-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.ApplicationServer.External.Api.UpdateAWSSNSIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateAWSSNSIntegration, null, options, request); + } + /// + /// UpdateAWSSNSIntegration updates the AWS SNS application-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.ApplicationServer.External.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)); + } + /// + /// UpdateAWSSNSIntegration updates the AWS SNS application-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.ApplicationServer.External.Api.UpdateAWSSNSIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateAWSSNSIntegration, null, options, request); + } + /// + /// DeleteAWSSNSIntegration deletes the AWS SNS application-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.ApplicationServer.External.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)); + } + /// + /// DeleteAWSSNSIntegration deletes the AWS SNS application-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.ApplicationServer.External.Api.DeleteAWSSNSIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteAWSSNSIntegration, null, options, request); + } + /// + /// DeleteAWSSNSIntegration deletes the AWS SNS application-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.ApplicationServer.External.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)); + } + /// + /// DeleteAWSSNSIntegration deletes the AWS SNS application-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.ApplicationServer.External.Api.DeleteAWSSNSIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteAWSSNSIntegration, null, options, request); + } + /// + /// CreateAzureServiceBusIntegration creates an Azure Service-Bus application-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.ApplicationServer.External.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)); + } + /// + /// CreateAzureServiceBusIntegration creates an Azure Service-Bus application-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.ApplicationServer.External.Api.CreateAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateAzureServiceBusIntegration, null, options, request); + } + /// + /// CreateAzureServiceBusIntegration creates an Azure Service-Bus application-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.ApplicationServer.External.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)); + } + /// + /// CreateAzureServiceBusIntegration creates an Azure Service-Bus application-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.ApplicationServer.External.Api.CreateAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateAzureServiceBusIntegration, null, options, request); + } + /// + /// GetAzureServiceBusIntegration returns the Azure Service-Bus application-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.ApplicationServer.External.Api.GetAzureServiceBusIntegrationResponse GetAzureServiceBusIntegration(global::Chirpstack.ApplicationServer.External.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)); + } + /// + /// GetAzureServiceBusIntegration returns the Azure Service-Bus application-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.ApplicationServer.External.Api.GetAzureServiceBusIntegrationResponse GetAzureServiceBusIntegration(global::Chirpstack.ApplicationServer.External.Api.GetAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetAzureServiceBusIntegration, null, options, request); + } + /// + /// GetAzureServiceBusIntegration returns the Azure Service-Bus application-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.ApplicationServer.External.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)); + } + /// + /// GetAzureServiceBusIntegration returns the Azure Service-Bus application-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.ApplicationServer.External.Api.GetAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetAzureServiceBusIntegration, null, options, request); + } + /// + /// UpdateAzureServiceBusIntegration updates the Azure Service-Bus application-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.ApplicationServer.External.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)); + } + /// + /// UpdateAzureServiceBusIntegration updates the Azure Service-Bus application-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.ApplicationServer.External.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateAzureServiceBusIntegration, null, options, request); + } + /// + /// UpdateAzureServiceBusIntegration updates the Azure Service-Bus application-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.ApplicationServer.External.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)); + } + /// + /// UpdateAzureServiceBusIntegration updates the Azure Service-Bus application-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.ApplicationServer.External.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateAzureServiceBusIntegration, null, options, request); + } + /// + /// DeleteAzureServiceBusIntegration deletes the Azure Service-Bus application-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.ApplicationServer.External.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)); + } + /// + /// DeleteAzureServiceBusIntegration deletes the Azure Service-Bus application-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.ApplicationServer.External.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteAzureServiceBusIntegration, null, options, request); + } + /// + /// DeleteAzureServiceBusIntegration deletes the Azure Service-Bus application-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.ApplicationServer.External.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)); + } + /// + /// DeleteAzureServiceBusIntegration deletes the Azure Service-Bus application-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.ApplicationServer.External.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteAzureServiceBusIntegration, null, options, request); + } + /// + /// CreatePilotThingsIntegration creates an Pilot Things application-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.ApplicationServer.External.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)); + } + /// + /// CreatePilotThingsIntegration creates an Pilot Things application-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.ApplicationServer.External.Api.CreatePilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreatePilotThingsIntegration, null, options, request); + } + /// + /// CreatePilotThingsIntegration creates an Pilot Things application-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.ApplicationServer.External.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)); + } + /// + /// CreatePilotThingsIntegration creates an Pilot Things application-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.ApplicationServer.External.Api.CreatePilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreatePilotThingsIntegration, null, options, request); + } + /// + /// GetPilotThingsIntegration returns the Pilot Things application-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.ApplicationServer.External.Api.GetPilotThingsIntegrationResponse GetPilotThingsIntegration(global::Chirpstack.ApplicationServer.External.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)); + } + /// + /// GetPilotThingsIntegration returns the Pilot Things application-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.ApplicationServer.External.Api.GetPilotThingsIntegrationResponse GetPilotThingsIntegration(global::Chirpstack.ApplicationServer.External.Api.GetPilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetPilotThingsIntegration, null, options, request); + } + /// + /// GetPilotThingsIntegration returns the Pilot Things application-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.ApplicationServer.External.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)); + } + /// + /// GetPilotThingsIntegration returns the Pilot Things application-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.ApplicationServer.External.Api.GetPilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetPilotThingsIntegration, null, options, request); + } + /// + /// UpdatePilotThingsIntegration updates the Pilot Things application-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.ApplicationServer.External.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)); + } + /// + /// UpdatePilotThingsIntegration updates the Pilot Things application-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.ApplicationServer.External.Api.UpdatePilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdatePilotThingsIntegration, null, options, request); + } + /// + /// UpdatePilotThingsIntegration updates the Pilot Things application-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.ApplicationServer.External.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)); + } + /// + /// UpdatePilotThingsIntegration updates the Pilot Things application-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.ApplicationServer.External.Api.UpdatePilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdatePilotThingsIntegration, null, options, request); + } + /// + /// DeletePilotThingsIntegration deletes the Pilot Things application-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.ApplicationServer.External.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)); + } + /// + /// DeletePilotThingsIntegration deletes the Pilot Things application-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.ApplicationServer.External.Api.DeletePilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeletePilotThingsIntegration, null, options, request); + } + /// + /// DeletePilotThingsIntegration deletes the Pilot Things application-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.ApplicationServer.External.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)); + } + /// + /// DeletePilotThingsIntegration deletes the Pilot Things application-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.ApplicationServer.External.Api.DeletePilotThingsIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeletePilotThingsIntegration, null, options, request); + } + /// + /// ListIntegrations lists 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.ApplicationServer.External.Api.ListIntegrationResponse ListIntegrations(global::Chirpstack.ApplicationServer.External.Api.ListIntegrationRequest 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)); + } + /// + /// ListIntegrations lists 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.ApplicationServer.External.Api.ListIntegrationResponse ListIntegrations(global::Chirpstack.ApplicationServer.External.Api.ListIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListIntegrations, null, options, request); + } + /// + /// ListIntegrations lists 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.ApplicationServer.External.Api.ListIntegrationRequest 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)); + } + /// + /// ListIntegrations lists 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.ApplicationServer.External.Api.ListIntegrationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListIntegrations, null, options, request); + } + /// + /// GenerateMQTTIntegrationClientCertificate generates an application ID specific TLS certificate + /// to connect to the MQTT broker. + /// + /// 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.ApplicationServer.External.Api.GenerateMQTTIntegrationClientCertificateResponse GenerateMQTTIntegrationClientCertificate(global::Chirpstack.ApplicationServer.External.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)); + } + /// + /// GenerateMQTTIntegrationClientCertificate generates an application ID specific TLS certificate + /// to connect to the MQTT broker. + /// + /// 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.ApplicationServer.External.Api.GenerateMQTTIntegrationClientCertificateResponse GenerateMQTTIntegrationClientCertificate(global::Chirpstack.ApplicationServer.External.Api.GenerateMQTTIntegrationClientCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GenerateMQTTIntegrationClientCertificate, null, options, request); + } + /// + /// GenerateMQTTIntegrationClientCertificate generates an application ID specific TLS certificate + /// to connect to the MQTT broker. + /// + /// 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.ApplicationServer.External.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)); + } + /// + /// GenerateMQTTIntegrationClientCertificate generates an application ID specific TLS certificate + /// to connect to the MQTT broker. + /// + /// 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.ApplicationServer.External.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_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_ListIntegrations, serviceImpl.ListIntegrations) + .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_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_ListIntegrations, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListIntegrations)); + serviceBinder.AddMethod(__Method_GenerateMQTTIntegrationClientCertificate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateMQTTIntegrationClientCertificate)); + } + + } +} +#endregion diff --git a/csharp/protobuf/as/external/api/Device.cs b/csharp/protobuf/as/external/api/Device.cs new file mode 100644 index 00000000..25287d02 --- /dev/null +++ b/csharp/protobuf/as/external/api/Device.cs @@ -0,0 +1,8295 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/device.proto + public static partial class DeviceReflection { + + #region Descriptor + /// File descriptor for as/external/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( + "Chxhcy9leHRlcm5hbC9hcGkvZGV2aWNlLnByb3RvEgNhcGkaHGdvb2dsZS9h", + "cGkvYW5ub3RhdGlvbnMucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3Rh", + "bXAucHJvdG8aG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90bxoTY29tbW9u", + "L2NvbW1vbi5wcm90bxoeYXMvZXh0ZXJuYWwvYXBpL2ZyYW1lTG9nLnByb3Rv", + "IpUDCgZEZXZpY2USFwoHZGV2X2V1aRgBIAEoCVIGZGV2RVVJEgwKBG5hbWUY", + "AiABKAkSJQoOYXBwbGljYXRpb25faWQYAyABKANSDWFwcGxpY2F0aW9uSUQS", + "EwoLZGVzY3JpcHRpb24YBCABKAkSKgoRZGV2aWNlX3Byb2ZpbGVfaWQYBSAB", + "KAlSD2RldmljZVByb2ZpbGVJRBIYChBza2lwX2ZfY250X2NoZWNrGAYgASgI", + "EhoKEnJlZmVyZW5jZV9hbHRpdHVkZRgHIAEoARItCgl2YXJpYWJsZXMYCCAD", + "KAsyGi5hcGkuRGV2aWNlLlZhcmlhYmxlc0VudHJ5EiMKBHRhZ3MYCSADKAsy", + "FS5hcGkuRGV2aWNlLlRhZ3NFbnRyeRITCgtpc19kaXNhYmxlZBgKIAEoCBow", + "Cg5WYXJpYWJsZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6", + "AjgBGisKCVRhZ3NFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6", + "AjgBIroDCg5EZXZpY2VMaXN0SXRlbRIXCgdkZXZfZXVpGAEgASgJUgZkZXZF", + "VUkSDAoEbmFtZRgCIAEoCRIlCg5hcHBsaWNhdGlvbl9pZBgDIAEoA1INYXBw", + "bGljYXRpb25JRBITCgtkZXNjcmlwdGlvbhgEIAEoCRIqChFkZXZpY2VfcHJv", + "ZmlsZV9pZBgFIAEoCVIPZGV2aWNlUHJvZmlsZUlEEhsKE2RldmljZV9wcm9m", + "aWxlX25hbWUYBiABKAkSHQoVZGV2aWNlX3N0YXR1c19iYXR0ZXJ5GAcgASgN", + "EhwKFGRldmljZV9zdGF0dXNfbWFyZ2luGAggASgFEisKI2RldmljZV9zdGF0", + "dXNfZXh0ZXJuYWxfcG93ZXJfc291cmNlGAogASgIEi8KJ2RldmljZV9zdGF0", + "dXNfYmF0dGVyeV9sZXZlbF91bmF2YWlsYWJsZRgLIAEoCBIjChtkZXZpY2Vf", + "c3RhdHVzX2JhdHRlcnlfbGV2ZWwYDCABKAISPAoMbGFzdF9zZWVuX2F0GAkg", + "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIKbGFzdFNlZW5BdCJc", + "CgpEZXZpY2VLZXlzEhcKB2Rldl9ldWkYASABKAlSBmRldkVVSRIPCgdud2tf", + "a2V5GAIgASgJEg8KB2FwcF9rZXkYAyABKAkSEwoLZ2VuX2FwcF9rZXkYBCAB", + "KAkiMgoTQ3JlYXRlRGV2aWNlUmVxdWVzdBIbCgZkZXZpY2UYASABKAsyCy5h", + "cGkuRGV2aWNlIisKEEdldERldmljZVJlcXVlc3QSFwoHZGV2X2V1aRgBIAEo", + "CVIGZGV2RVVJIs8BChFHZXREZXZpY2VSZXNwb25zZRIbCgZkZXZpY2UYASAB", + "KAsyCy5hcGkuRGV2aWNlEjwKDGxhc3Rfc2Vlbl9hdBgFIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXBSCmxhc3RTZWVuQXQSHQoVZGV2aWNlX3N0", + "YXR1c19iYXR0ZXJ5GAYgASgNEhwKFGRldmljZV9zdGF0dXNfbWFyZ2luGBQg", + "ASgFEiIKCGxvY2F0aW9uGBUgASgLMhAuY29tbW9uLkxvY2F0aW9uIqICChFM", + "aXN0RGV2aWNlUmVxdWVzdBINCgVsaW1pdBgBIAEoAxIOCgZvZmZzZXQYAiAB", + "KAMSJQoOYXBwbGljYXRpb25faWQYAyABKANSDWFwcGxpY2F0aW9uSUQSDgoG", + "c2VhcmNoGAQgASgJEiwKEm11bHRpY2FzdF9ncm91cF9pZBgFIAEoCVIQbXVs", + "dGljYXN0R3JvdXBJRBIsChJzZXJ2aWNlX3Byb2ZpbGVfaWQYBiABKAlSEHNl", + "cnZpY2VQcm9maWxlSUQSLgoEdGFncxgHIAMoCzIgLmFwaS5MaXN0RGV2aWNl", + "UmVxdWVzdC5UYWdzRW50cnkaKwoJVGFnc0VudHJ5EgsKA2tleRgBIAEoCRIN", + "CgV2YWx1ZRgCIAEoCToCOAEiTgoSTGlzdERldmljZVJlc3BvbnNlEhMKC3Rv", + "dGFsX2NvdW50GAEgASgDEiMKBnJlc3VsdBgCIAMoCzITLmFwaS5EZXZpY2VM", + "aXN0SXRlbSIuChNEZWxldGVEZXZpY2VSZXF1ZXN0EhcKB2Rldl9ldWkYASAB", + "KAlSBmRldkVVSSIyChNVcGRhdGVEZXZpY2VSZXF1ZXN0EhsKBmRldmljZRgB", + "IAEoCzILLmFwaS5EZXZpY2UiPwoXQ3JlYXRlRGV2aWNlS2V5c1JlcXVlc3QS", + "JAoLZGV2aWNlX2tleXMYASABKAsyDy5hcGkuRGV2aWNlS2V5cyIvChRHZXRE", + "ZXZpY2VLZXlzUmVxdWVzdBIXCgdkZXZfZXVpGAEgASgJUgZkZXZFVUkiPQoV", + "R2V0RGV2aWNlS2V5c1Jlc3BvbnNlEiQKC2RldmljZV9rZXlzGAEgASgLMg8u", + "YXBpLkRldmljZUtleXMiPwoXVXBkYXRlRGV2aWNlS2V5c1JlcXVlc3QSJAoL", + "ZGV2aWNlX2tleXMYASABKAsyDy5hcGkuRGV2aWNlS2V5cyIyChdEZWxldGVE", + "ZXZpY2VLZXlzUmVxdWVzdBIXCgdkZXZfZXVpGAEgASgJUgZkZXZFVUki1wEK", + "EERldmljZUFjdGl2YXRpb24SFwoHZGV2X2V1aRgBIAEoCVIGZGV2RVVJEhAK", + "CGRldl9hZGRyGAIgASgJEhEKCWFwcF9zX2tleRgDIAEoCRIVCg1ud2tfc19l", + "bmNfa2V5GAQgASgJEhcKD3NfbndrX3NfaW50X2tleRgIIAEoCRIXCg9mX253", + "a19zX2ludF9rZXkYCSABKAkSEAoIZl9jbnRfdXAYBSABKA0SFAoMbl9mX2Nu", + "dF9kb3duGAYgASgNEhQKDGFfZl9jbnRfZG93bhgKIAEoDSJJChVBY3RpdmF0", + "ZURldmljZVJlcXVlc3QSMAoRZGV2aWNlX2FjdGl2YXRpb24YASABKAsyFS5h", + "cGkuRGV2aWNlQWN0aXZhdGlvbiIyChdEZWFjdGl2YXRlRGV2aWNlUmVxdWVz", + "dBIXCgdkZXZfZXVpGAEgASgJUgZkZXZFVUkiNQoaR2V0RGV2aWNlQWN0aXZh", + "dGlvblJlcXVlc3QSFwoHZGV2X2V1aRgBIAEoCVIGZGV2RVVJIk8KG0dldERl", + "dmljZUFjdGl2YXRpb25SZXNwb25zZRIwChFkZXZpY2VfYWN0aXZhdGlvbhgB", + "IAEoCzIVLmFwaS5EZXZpY2VBY3RpdmF0aW9uIjIKF0dldFJhbmRvbURldkFk", + "ZHJSZXF1ZXN0EhcKB2Rldl9ldWkYASABKAlSBmRldkVVSSIsChhHZXRSYW5k", + "b21EZXZBZGRyUmVzcG9uc2USEAoIZGV2X2FkZHIYASABKAki0wMKC0Rldmlj", + "ZVN0YXRzEi0KCXRpbWVzdGFtcBgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXASEgoKcnhfcGFja2V0cxgCIAEoDRIPCgdnd19yc3NpGAMgASgC", + "Eg4KBmd3X3NuchgEIAEoAhJNChhyeF9wYWNrZXRzX3Blcl9mcmVxdWVuY3kY", + "BSADKAsyKy5hcGkuRGV2aWNlU3RhdHMuUnhQYWNrZXRzUGVyRnJlcXVlbmN5", + "RW50cnkSPwoRcnhfcGFja2V0c19wZXJfZHIYBiADKAsyJC5hcGkuRGV2aWNl", + "U3RhdHMuUnhQYWNrZXRzUGVyRHJFbnRyeRIsCgZlcnJvcnMYByADKAsyHC5h", + "cGkuRGV2aWNlU3RhdHMuRXJyb3JzRW50cnkaPAoaUnhQYWNrZXRzUGVyRnJl", + "cXVlbmN5RW50cnkSCwoDa2V5GAEgASgNEg0KBXZhbHVlGAIgASgNOgI4ARo1", + "ChNSeFBhY2tldHNQZXJEckVudHJ5EgsKA2tleRgBIAEoDRINCgV2YWx1ZRgC", + "IAEoDToCOAEaLQoLRXJyb3JzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVl", + "GAIgASgNOgI4ASKqAQoVR2V0RGV2aWNlU3RhdHNSZXF1ZXN0EhcKB2Rldl9l", + "dWkYASABKAlSBmRldkVVSRIQCghpbnRlcnZhbBgCIAEoCRIzCg9zdGFydF90", + "aW1lc3RhbXAYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjEK", + "DWVuZF90aW1lc3RhbXAYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", + "YW1wIjoKFkdldERldmljZVN0YXRzUmVzcG9uc2USIAoGcmVzdWx0GAEgAygL", + "MhAuYXBpLkRldmljZVN0YXRzIjcKHFN0cmVhbURldmljZUZyYW1lTG9nc1Jl", + "cXVlc3QSFwoHZGV2X2V1aRgBIAEoCVIGZGV2RVVJIoYBCh1TdHJlYW1EZXZp", + "Y2VGcmFtZUxvZ3NSZXNwb25zZRIrCgx1cGxpbmtfZnJhbWUYASABKAsyEy5h", + "cGkuVXBsaW5rRnJhbWVMb2dIABIvCg5kb3dubGlua19mcmFtZRgCIAEoCzIV", + "LmFwaS5Eb3dubGlua0ZyYW1lTG9nSABCBwoFZnJhbWUiNwocU3RyZWFtRGV2", + "aWNlRXZlbnRMb2dzUmVxdWVzdBIXCgdkZXZfZXVpGAEgASgJUgZkZXZFVUki", + "nwEKHVN0cmVhbURldmljZUV2ZW50TG9nc1Jlc3BvbnNlEgwKBHR5cGUYASAB", + "KAkSIQoMcGF5bG9hZF9qc29uGAIgASgJUgtwYXlsb2FkSlNPThIwCgxwdWJs", + "aXNoZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhsK", + "CXN0cmVhbV9pZBgEIAEoCVIIc3RyZWFtSUQiMwoYQ2xlYXJEZXZpY2VOb25j", + "ZXNSZXF1ZXN0EhcKB2Rldl9ldWkYASABKAlSBmRldkVVSTLiDgoNRGV2aWNl", + "U2VydmljZRJTCgZDcmVhdGUSGC5hcGkuQ3JlYXRlRGV2aWNlUmVxdWVzdBoW", + "Lmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIXgtPkkwIRIgwvYXBpL2RldmljZXM6", + "ASoSVAoDR2V0EhUuYXBpLkdldERldmljZVJlcXVlc3QaFi5hcGkuR2V0RGV2", + "aWNlUmVzcG9uc2UiHoLT5JMCGBIWL2FwaS9kZXZpY2VzL3tkZXZfZXVpfRJN", + "CgRMaXN0EhYuYXBpLkxpc3REZXZpY2VSZXF1ZXN0GhcuYXBpLkxpc3REZXZp", + "Y2VSZXNwb25zZSIUgtPkkwIOEgwvYXBpL2RldmljZXMSWgoGRGVsZXRlEhgu", + "YXBpLkRlbGV0ZURldmljZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1w", + "dHkiHoLT5JMCGCoWL2FwaS9kZXZpY2VzL3tkZXZfZXVpfRJkCgZVcGRhdGUS", + "GC5hcGkuVXBkYXRlRGV2aWNlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5F", + "bXB0eSIogtPkkwIiGh0vYXBpL2RldmljZXMve2RldmljZS5kZXZfZXVpfToB", + "KhJ2CgpDcmVhdGVLZXlzEhwuYXBpLkNyZWF0ZURldmljZUtleXNSZXF1ZXN0", + "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IjKC0+STAiwiJy9hcGkvZGV2aWNl", + "cy97ZGV2aWNlX2tleXMuZGV2X2V1aX0va2V5czoBKhJlCgdHZXRLZXlzEhku", + "YXBpLkdldERldmljZUtleXNSZXF1ZXN0GhouYXBpLkdldERldmljZUtleXNS", + "ZXNwb25zZSIjgtPkkwIdEhsvYXBpL2RldmljZXMve2Rldl9ldWl9L2tleXMS", + "dgoKVXBkYXRlS2V5cxIcLmFwaS5VcGRhdGVEZXZpY2VLZXlzUmVxdWVzdBoW", + "Lmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIygtPkkwIsGicvYXBpL2RldmljZXMv", + "e2RldmljZV9rZXlzLmRldl9ldWl9L2tleXM6ASoSZwoKRGVsZXRlS2V5cxIc", + "LmFwaS5EZWxldGVEZXZpY2VLZXlzUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1", + "Zi5FbXB0eSIjgtPkkwIdKhsvYXBpL2RldmljZXMve2Rldl9ldWl9L2tleXMS", + "fAoIQWN0aXZhdGUSGi5hcGkuQWN0aXZhdGVEZXZpY2VSZXF1ZXN0GhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5IjyC0+STAjYiMS9hcGkvZGV2aWNlcy97ZGV2", + "aWNlX2FjdGl2YXRpb24uZGV2X2V1aX0vYWN0aXZhdGU6ASoSbQoKRGVhY3Rp", + "dmF0ZRIcLmFwaS5EZWFjdGl2YXRlRGV2aWNlUmVxdWVzdBoWLmdvb2dsZS5w", + "cm90b2J1Zi5FbXB0eSIpgtPkkwIjKiEvYXBpL2RldmljZXMve2Rldl9ldWl9", + "L2FjdGl2YXRpb24SfQoNR2V0QWN0aXZhdGlvbhIfLmFwaS5HZXREZXZpY2VB", + "Y3RpdmF0aW9uUmVxdWVzdBogLmFwaS5HZXREZXZpY2VBY3RpdmF0aW9uUmVz", + "cG9uc2UiKYLT5JMCIxIhL2FwaS9kZXZpY2VzL3tkZXZfZXVpfS9hY3RpdmF0", + "aW9uEoABChBHZXRSYW5kb21EZXZBZGRyEhwuYXBpLkdldFJhbmRvbURldkFk", + "ZHJSZXF1ZXN0Gh0uYXBpLkdldFJhbmRvbURldkFkZHJSZXNwb25zZSIvgtPk", + "kwIpIicvYXBpL2RldmljZXMve2Rldl9ldWl9L2dldFJhbmRvbURldkFkZHIS", + "aQoIR2V0U3RhdHMSGi5hcGkuR2V0RGV2aWNlU3RhdHNSZXF1ZXN0GhsuYXBp", + "LkdldERldmljZVN0YXRzUmVzcG9uc2UiJILT5JMCHhIcL2FwaS9kZXZpY2Vz", + "L3tkZXZfZXVpfS9zdGF0cxKBAQoPU3RyZWFtRnJhbWVMb2dzEiEuYXBpLlN0", + "cmVhbURldmljZUZyYW1lTG9nc1JlcXVlc3QaIi5hcGkuU3RyZWFtRGV2aWNl", + "RnJhbWVMb2dzUmVzcG9uc2UiJYLT5JMCHxIdL2FwaS9kZXZpY2VzL3tkZXZf", + "ZXVpfS9mcmFtZXMwARKBAQoPU3RyZWFtRXZlbnRMb2dzEiEuYXBpLlN0cmVh", + "bURldmljZUV2ZW50TG9nc1JlcXVlc3QaIi5hcGkuU3RyZWFtRGV2aWNlRXZl", + "bnRMb2dzUmVzcG9uc2UiJYLT5JMCHxIdL2FwaS9kZXZpY2VzL3tkZXZfZXVp", + "fS9ldmVudHMwARJzChFDbGVhckRldmljZU5vbmNlcxIdLmFwaS5DbGVhckRl", + "dmljZU5vbmNlc1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiJ4LT", + "5JMCISofL2FwaS9kZXZpY2VzL3tkZXZfZXVpfS9kZXZub25jZUKXAQohaW8u", + "Y2hpcnBzdGFjay5hcGkuYXMuZXh0ZXJuYWwuYXBpQgtEZXZpY2VQcm90b1AB", + "WjdnaXRodWIuY29tL2Jyb2NhYXIvY2hpcnBzdGFjay1hcGkvZ28vdjMvYXMv", + "ZXh0ZXJuYWwvYXBpqgIpQ2hpcnBzdGFjay5BcHBsaWNhdGlvblNlcnZlci5F", + "eHRlcm5hbC5BcGliBnByb3RvMw==")); + 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.ApplicationServer.External.Api.FrameLogReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.Device), global::Chirpstack.ApplicationServer.External.Api.Device.Parser, new[]{ "DevEui", "Name", "ApplicationId", "Description", "DeviceProfileId", "SkipFCntCheck", "ReferenceAltitude", "Variables", "Tags", "IsDisabled" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeviceListItem), global::Chirpstack.ApplicationServer.External.Api.DeviceListItem.Parser, new[]{ "DevEui", "Name", "ApplicationId", "Description", "DeviceProfileId", "DeviceProfileName", "DeviceStatusBattery", "DeviceStatusMargin", "DeviceStatusExternalPowerSource", "DeviceStatusBatteryLevelUnavailable", "DeviceStatusBatteryLevel", "LastSeenAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeviceKeys), global::Chirpstack.ApplicationServer.External.Api.DeviceKeys.Parser, new[]{ "DevEui", "NwkKey", "AppKey", "GenAppKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateDeviceRequest), global::Chirpstack.ApplicationServer.External.Api.CreateDeviceRequest.Parser, new[]{ "Device" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetDeviceRequest), global::Chirpstack.ApplicationServer.External.Api.GetDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetDeviceResponse), global::Chirpstack.ApplicationServer.External.Api.GetDeviceResponse.Parser, new[]{ "Device", "LastSeenAt", "DeviceStatusBattery", "DeviceStatusMargin", "Location" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListDeviceRequest), global::Chirpstack.ApplicationServer.External.Api.ListDeviceRequest.Parser, new[]{ "Limit", "Offset", "ApplicationId", "Search", "MulticastGroupId", "ServiceProfileId", "Tags" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListDeviceResponse), global::Chirpstack.ApplicationServer.External.Api.ListDeviceResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteDeviceRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateDeviceRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateDeviceRequest.Parser, new[]{ "Device" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateDeviceKeysRequest), global::Chirpstack.ApplicationServer.External.Api.CreateDeviceKeysRequest.Parser, new[]{ "DeviceKeys" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetDeviceKeysRequest), global::Chirpstack.ApplicationServer.External.Api.GetDeviceKeysRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetDeviceKeysResponse), global::Chirpstack.ApplicationServer.External.Api.GetDeviceKeysResponse.Parser, new[]{ "DeviceKeys" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateDeviceKeysRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateDeviceKeysRequest.Parser, new[]{ "DeviceKeys" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteDeviceKeysRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteDeviceKeysRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeviceActivation), global::Chirpstack.ApplicationServer.External.Api.DeviceActivation.Parser, new[]{ "DevEui", "DevAddr", "AppSKey", "NwkSEncKey", "SNwkSIntKey", "FNwkSIntKey", "FCntUp", "NFCntDown", "AFCntDown" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ActivateDeviceRequest), global::Chirpstack.ApplicationServer.External.Api.ActivateDeviceRequest.Parser, new[]{ "DeviceActivation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeactivateDeviceRequest), global::Chirpstack.ApplicationServer.External.Api.DeactivateDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetDeviceActivationRequest), global::Chirpstack.ApplicationServer.External.Api.GetDeviceActivationRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetDeviceActivationResponse), global::Chirpstack.ApplicationServer.External.Api.GetDeviceActivationResponse.Parser, new[]{ "DeviceActivation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetRandomDevAddrRequest), global::Chirpstack.ApplicationServer.External.Api.GetRandomDevAddrRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetRandomDevAddrResponse), global::Chirpstack.ApplicationServer.External.Api.GetRandomDevAddrResponse.Parser, new[]{ "DevAddr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeviceStats), global::Chirpstack.ApplicationServer.External.Api.DeviceStats.Parser, new[]{ "Timestamp", "RxPackets", "GwRssi", "GwSnr", "RxPacketsPerFrequency", "RxPacketsPerDr", "Errors" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetDeviceStatsRequest), global::Chirpstack.ApplicationServer.External.Api.GetDeviceStatsRequest.Parser, new[]{ "DevEui", "Interval", "StartTimestamp", "EndTimestamp" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetDeviceStatsResponse), global::Chirpstack.ApplicationServer.External.Api.GetDeviceStatsResponse.Parser, new[]{ "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.StreamDeviceFrameLogsRequest), global::Chirpstack.ApplicationServer.External.Api.StreamDeviceFrameLogsRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.StreamDeviceFrameLogsResponse), global::Chirpstack.ApplicationServer.External.Api.StreamDeviceFrameLogsResponse.Parser, new[]{ "UplinkFrame", "DownlinkFrame" }, new[]{ "Frame" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.StreamDeviceEventLogsRequest), global::Chirpstack.ApplicationServer.External.Api.StreamDeviceEventLogsRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.StreamDeviceEventLogsResponse), global::Chirpstack.ApplicationServer.External.Api.StreamDeviceEventLogsResponse.Parser, new[]{ "Type", "PayloadJson", "PublishedAt", "StreamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ClearDeviceNoncesRequest), global::Chirpstack.ApplicationServer.External.Api.ClearDeviceNoncesRequest.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.ApplicationServer.External.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_; + applicationId_ = other.applicationId_; + description_ = other.description_; + deviceProfileId_ = other.deviceProfileId_; + skipFCntCheck_ = other.skipFCntCheck_; + referenceAltitude_ = other.referenceAltitude_; + variables_ = other.variables_.Clone(); + tags_ = other.tags_.Clone(); + isDisabled_ = other.isDisabled_; + _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_ = ""; + /// + /// 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"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Name of the device (if left blank, it will be set to the DevEUI). + /// + [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 long applicationId_; + /// + /// ID of the application to which the device must be added. + /// It is possible to move a device to a different application on update, + /// given that both the old and the new application share the same + /// service-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 4; + private string description_ = ""; + /// + /// Description of the device. + /// + [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 = 5; + private string deviceProfileId_ = ""; + /// + /// DeviceProfileID attached to the device. + /// + [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_f_cnt_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 "reference_altitude" field. + public const int ReferenceAltitudeFieldNumber = 7; + private double referenceAltitude_; + /// + /// Reference altitude. + /// When using geolocation, this altitude will be used as a reference + /// (when supported by the geolocation-server) to increase geolocation + /// accuracy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double ReferenceAltitude { + get { return referenceAltitude_; } + set { + referenceAltitude_ = 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_; } + } + + /// Field number for the "is_disabled" field. + public const int IsDisabledFieldNumber = 10; + 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; + } + } + + [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 (ApplicationId != other.ApplicationId) return false; + if (Description != other.Description) return false; + if (DeviceProfileId != other.DeviceProfileId) return false; + if (SkipFCntCheck != other.SkipFCntCheck) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ReferenceAltitude, other.ReferenceAltitude)) return false; + if (!Variables.Equals(other.Variables)) return false; + if (!Tags.Equals(other.Tags)) return false; + if (IsDisabled != other.IsDisabled) return false; + 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 (ApplicationId != 0L) hash ^= ApplicationId.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (DeviceProfileId.Length != 0) hash ^= DeviceProfileId.GetHashCode(); + if (SkipFCntCheck != false) hash ^= SkipFCntCheck.GetHashCode(); + if (ReferenceAltitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ReferenceAltitude); + hash ^= Variables.GetHashCode(); + hash ^= Tags.GetHashCode(); + if (IsDisabled != false) hash ^= IsDisabled.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (ApplicationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ApplicationId); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (DeviceProfileId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DeviceProfileId); + } + if (SkipFCntCheck != false) { + output.WriteRawTag(48); + output.WriteBool(SkipFCntCheck); + } + if (ReferenceAltitude != 0D) { + output.WriteRawTag(57); + output.WriteDouble(ReferenceAltitude); + } + variables_.WriteTo(output, _map_variables_codec); + tags_.WriteTo(output, _map_tags_codec); + if (IsDisabled != false) { + output.WriteRawTag(80); + output.WriteBool(IsDisabled); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (ApplicationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ApplicationId); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (DeviceProfileId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DeviceProfileId); + } + if (SkipFCntCheck != false) { + output.WriteRawTag(48); + output.WriteBool(SkipFCntCheck); + } + if (ReferenceAltitude != 0D) { + output.WriteRawTag(57); + output.WriteDouble(ReferenceAltitude); + } + variables_.WriteTo(ref output, _map_variables_codec); + tags_.WriteTo(ref output, _map_tags_codec); + if (IsDisabled != false) { + output.WriteRawTag(80); + output.WriteBool(IsDisabled); + } + if (_unknownFields != 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 (ApplicationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (DeviceProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileId); + } + if (SkipFCntCheck != false) { + size += 1 + 1; + } + if (ReferenceAltitude != 0D) { + size += 1 + 8; + } + size += variables_.CalculateSize(_map_variables_codec); + size += tags_.CalculateSize(_map_tags_codec); + if (IsDisabled != 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(Device other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.ApplicationId != 0L) { + ApplicationId = other.ApplicationId; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.DeviceProfileId.Length != 0) { + DeviceProfileId = other.DeviceProfileId; + } + if (other.SkipFCntCheck != false) { + SkipFCntCheck = other.SkipFCntCheck; + } + if (other.ReferenceAltitude != 0D) { + ReferenceAltitude = other.ReferenceAltitude; + } + variables_.Add(other.variables_); + tags_.Add(other.tags_); + if (other.IsDisabled != false) { + IsDisabled = other.IsDisabled; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 24: { + ApplicationId = input.ReadInt64(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + DeviceProfileId = input.ReadString(); + break; + } + case 48: { + SkipFCntCheck = input.ReadBool(); + break; + } + case 57: { + ReferenceAltitude = input.ReadDouble(); + break; + } + case 66: { + variables_.AddEntriesFrom(input, _map_variables_codec); + break; + } + case 74: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 80: { + IsDisabled = 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 18: { + Name = input.ReadString(); + break; + } + case 24: { + ApplicationId = input.ReadInt64(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + DeviceProfileId = input.ReadString(); + break; + } + case 48: { + SkipFCntCheck = input.ReadBool(); + break; + } + case 57: { + ReferenceAltitude = input.ReadDouble(); + break; + } + case 66: { + variables_.AddEntriesFrom(ref input, _map_variables_codec); + break; + } + case 74: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 80: { + IsDisabled = input.ReadBool(); + 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.ApplicationServer.External.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 DeviceListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceListItem(DeviceListItem other) : this() { + devEui_ = other.devEui_; + name_ = other.name_; + applicationId_ = other.applicationId_; + description_ = other.description_; + deviceProfileId_ = other.deviceProfileId_; + deviceProfileName_ = other.deviceProfileName_; + deviceStatusBattery_ = other.deviceStatusBattery_; + deviceStatusMargin_ = other.deviceStatusMargin_; + deviceStatusExternalPowerSource_ = other.deviceStatusExternalPowerSource_; + deviceStatusBatteryLevelUnavailable_ = other.deviceStatusBatteryLevelUnavailable_; + deviceStatusBatteryLevel_ = other.deviceStatusBatteryLevel_; + 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 DeviceListItem Clone() { + return new DeviceListItem(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Name of the device. + /// + [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 long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 4; + private string description_ = ""; + /// + /// Description of the device. + /// + [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 = 5; + private string deviceProfileId_ = ""; + /// + /// Device-profile ID attached to the device. + /// + [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_status_battery" field. + public const int DeviceStatusBatteryFieldNumber = 7; + private uint deviceStatusBattery_; + /// + /// The device battery status (deprecated, use device_status_battery_level). + /// 0: The end-device is connected to an external power source + /// 1..254: The battery level, 1 being at minimum and 254 being at maximum + /// 255: The end-device was not able to measure the battery level + /// 256: The device-status is not available. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DeviceStatusBattery { + get { return deviceStatusBattery_; } + set { + deviceStatusBattery_ = value; + } + } + + /// Field number for the "device_status_margin" field. + public const int DeviceStatusMarginFieldNumber = 8; + private int deviceStatusMargin_; + /// + /// The device margin status + /// -32..32: The demodulation SNR ration in dB + /// 256: The device-status is not available. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DeviceStatusMargin { + get { return deviceStatusMargin_; } + set { + deviceStatusMargin_ = value; + } + } + + /// Field number for the "device_status_external_power_source" field. + public const int DeviceStatusExternalPowerSourceFieldNumber = 10; + private bool deviceStatusExternalPowerSource_; + /// + /// Device is connected to an external power source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DeviceStatusExternalPowerSource { + get { return deviceStatusExternalPowerSource_; } + set { + deviceStatusExternalPowerSource_ = value; + } + } + + /// Field number for the "device_status_battery_level_unavailable" field. + public const int DeviceStatusBatteryLevelUnavailableFieldNumber = 11; + private bool deviceStatusBatteryLevelUnavailable_; + /// + /// Device battery status is unavailable. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DeviceStatusBatteryLevelUnavailable { + get { return deviceStatusBatteryLevelUnavailable_; } + set { + deviceStatusBatteryLevelUnavailable_ = value; + } + } + + /// Field number for the "device_status_battery_level" field. + public const int DeviceStatusBatteryLevelFieldNumber = 12; + private float deviceStatusBatteryLevel_; + /// + /// Device battery level as a percentage. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DeviceStatusBatteryLevel { + get { return deviceStatusBatteryLevel_; } + set { + deviceStatusBatteryLevel_ = value; + } + } + + /// Field number for the "last_seen_at" field. + public const int LastSeenAtFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastSeenAt_; + /// + /// The last time the application-server received any data from the device, + /// or an empty string when the device never sent any data. + /// + [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 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 (Name != other.Name) return false; + if (ApplicationId != other.ApplicationId) return false; + if (Description != other.Description) return false; + if (DeviceProfileId != other.DeviceProfileId) return false; + if (DeviceProfileName != other.DeviceProfileName) return false; + if (DeviceStatusBattery != other.DeviceStatusBattery) return false; + if (DeviceStatusMargin != other.DeviceStatusMargin) return false; + if (DeviceStatusExternalPowerSource != other.DeviceStatusExternalPowerSource) return false; + if (DeviceStatusBatteryLevelUnavailable != other.DeviceStatusBatteryLevelUnavailable) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DeviceStatusBatteryLevel, other.DeviceStatusBatteryLevel)) 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 (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (ApplicationId != 0L) hash ^= ApplicationId.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (DeviceProfileId.Length != 0) hash ^= DeviceProfileId.GetHashCode(); + if (DeviceProfileName.Length != 0) hash ^= DeviceProfileName.GetHashCode(); + if (DeviceStatusBattery != 0) hash ^= DeviceStatusBattery.GetHashCode(); + if (DeviceStatusMargin != 0) hash ^= DeviceStatusMargin.GetHashCode(); + if (DeviceStatusExternalPowerSource != false) hash ^= DeviceStatusExternalPowerSource.GetHashCode(); + if (DeviceStatusBatteryLevelUnavailable != false) hash ^= DeviceStatusBatteryLevelUnavailable.GetHashCode(); + if (DeviceStatusBatteryLevel != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DeviceStatusBatteryLevel); + 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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DevEui); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (ApplicationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ApplicationId); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (DeviceProfileId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DeviceProfileId); + } + if (DeviceProfileName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(DeviceProfileName); + } + if (DeviceStatusBattery != 0) { + output.WriteRawTag(56); + output.WriteUInt32(DeviceStatusBattery); + } + if (DeviceStatusMargin != 0) { + output.WriteRawTag(64); + output.WriteInt32(DeviceStatusMargin); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(LastSeenAt); + } + if (DeviceStatusExternalPowerSource != false) { + output.WriteRawTag(80); + output.WriteBool(DeviceStatusExternalPowerSource); + } + if (DeviceStatusBatteryLevelUnavailable != false) { + output.WriteRawTag(88); + output.WriteBool(DeviceStatusBatteryLevelUnavailable); + } + if (DeviceStatusBatteryLevel != 0F) { + output.WriteRawTag(101); + output.WriteFloat(DeviceStatusBatteryLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (ApplicationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ApplicationId); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (DeviceProfileId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DeviceProfileId); + } + if (DeviceProfileName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(DeviceProfileName); + } + if (DeviceStatusBattery != 0) { + output.WriteRawTag(56); + output.WriteUInt32(DeviceStatusBattery); + } + if (DeviceStatusMargin != 0) { + output.WriteRawTag(64); + output.WriteInt32(DeviceStatusMargin); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(LastSeenAt); + } + if (DeviceStatusExternalPowerSource != false) { + output.WriteRawTag(80); + output.WriteBool(DeviceStatusExternalPowerSource); + } + if (DeviceStatusBatteryLevelUnavailable != false) { + output.WriteRawTag(88); + output.WriteBool(DeviceStatusBatteryLevelUnavailable); + } + if (DeviceStatusBatteryLevel != 0F) { + output.WriteRawTag(101); + output.WriteFloat(DeviceStatusBatteryLevel); + } + if (_unknownFields != 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 (ApplicationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + 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 (DeviceStatusBattery != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DeviceStatusBattery); + } + if (DeviceStatusMargin != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceStatusMargin); + } + if (DeviceStatusExternalPowerSource != false) { + size += 1 + 1; + } + if (DeviceStatusBatteryLevelUnavailable != false) { + size += 1 + 1; + } + if (DeviceStatusBatteryLevel != 0F) { + size += 1 + 4; + } + 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(DeviceListItem other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.ApplicationId != 0L) { + ApplicationId = other.ApplicationId; + } + 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.DeviceStatusBattery != 0) { + DeviceStatusBattery = other.DeviceStatusBattery; + } + if (other.DeviceStatusMargin != 0) { + DeviceStatusMargin = other.DeviceStatusMargin; + } + if (other.DeviceStatusExternalPowerSource != false) { + DeviceStatusExternalPowerSource = other.DeviceStatusExternalPowerSource; + } + if (other.DeviceStatusBatteryLevelUnavailable != false) { + DeviceStatusBatteryLevelUnavailable = other.DeviceStatusBatteryLevelUnavailable; + } + if (other.DeviceStatusBatteryLevel != 0F) { + DeviceStatusBatteryLevel = other.DeviceStatusBatteryLevel; + } + 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: { + DevEui = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + ApplicationId = input.ReadInt64(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + DeviceProfileId = input.ReadString(); + break; + } + case 50: { + DeviceProfileName = input.ReadString(); + break; + } + case 56: { + DeviceStatusBattery = input.ReadUInt32(); + break; + } + case 64: { + DeviceStatusMargin = input.ReadInt32(); + break; + } + case 74: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + case 80: { + DeviceStatusExternalPowerSource = input.ReadBool(); + break; + } + case 88: { + DeviceStatusBatteryLevelUnavailable = input.ReadBool(); + break; + } + case 101: { + DeviceStatusBatteryLevel = 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: { + DevEui = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + ApplicationId = input.ReadInt64(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + DeviceProfileId = input.ReadString(); + break; + } + case 50: { + DeviceProfileName = input.ReadString(); + break; + } + case 56: { + DeviceStatusBattery = input.ReadUInt32(); + break; + } + case 64: { + DeviceStatusMargin = input.ReadInt32(); + break; + } + case 74: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + case 80: { + DeviceStatusExternalPowerSource = input.ReadBool(); + break; + } + case 88: { + DeviceStatusBatteryLevelUnavailable = input.ReadBool(); + break; + } + case 101: { + DeviceStatusBatteryLevel = input.ReadFloat(); + 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.ApplicationServer.External.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 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_; + genAppKey_ = other.genAppKey_; + _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_ = ""; + /// + /// 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"); + } + } + + /// Field number for the "nwk_key" field. + public const int NwkKeyFieldNumber = 2; + private string nwkKey_ = ""; + /// + /// Network root key (HEX encoded). + /// 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 (HEX encoded). + /// 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"); + } + } + + /// Field number for the "gen_app_key" field. + public const int GenAppKeyFieldNumber = 4; + private string genAppKey_ = ""; + /// + /// Gen application key (HEX encoded). + /// This is an optional key that only must be set for LORaWAN 1.0.x devices + /// that implement the remote multicast setup specification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GenAppKey { + get { return genAppKey_; } + set { + genAppKey_ = 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; + if (GenAppKey != other.GenAppKey) return false; + 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 (GenAppKey.Length != 0) hash ^= GenAppKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (GenAppKey.Length != 0) { + output.WriteRawTag(34); + output.WriteString(GenAppKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (GenAppKey.Length != 0) { + output.WriteRawTag(34); + output.WriteString(GenAppKey); + } + if (_unknownFields != 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 (GenAppKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GenAppKey); + } + 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; + } + if (other.GenAppKey.Length != 0) { + GenAppKey = other.GenAppKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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; + } + case 34: { + GenAppKey = 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; + } + case 34: { + GenAppKey = 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.Device device_; + /// + /// Device object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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_ = ""; + /// + /// 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 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.ApplicationServer.External.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 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; + lastSeenAt_ = other.lastSeenAt_ != null ? other.lastSeenAt_.Clone() : null; + deviceStatusBattery_ = other.deviceStatusBattery_; + deviceStatusMargin_ = other.deviceStatusMargin_; + 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 GetDeviceResponse Clone() { + return new GetDeviceResponse(this); + } + + /// Field number for the "device" field. + public const int DeviceFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.Device device_; + /// + /// Device object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.Device Device { + get { return device_; } + set { + device_ = value; + } + } + + /// Field number for the "last_seen_at" field. + public const int LastSeenAtFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastSeenAt_; + /// + /// Last seen 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_battery" field. + public const int DeviceStatusBatteryFieldNumber = 6; + private uint deviceStatusBattery_; + /// + /// The device battery status + /// 0: The end-device is connected to an external power source + /// 1..254: The battery level, 1 being at minimum and 254 being at maximum + /// 255: The end-device was not able to measure the battery level + /// 256: The device-status is not available. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DeviceStatusBattery { + get { return deviceStatusBattery_; } + set { + deviceStatusBattery_ = value; + } + } + + /// Field number for the "device_status_margin" field. + public const int DeviceStatusMarginFieldNumber = 20; + private int deviceStatusMargin_; + /// + /// The device margin status + /// -32..32: The demodulation SNR ration in dB + /// 256: The device-status is not available. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DeviceStatusMargin { + get { return deviceStatusMargin_; } + set { + deviceStatusMargin_ = value; + } + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 21; + private global::Chirpstack.Common.Location location_; + /// + /// Device location. + /// This will set when the network-server was able to resolve the location + /// using the geolocation-server. + /// + [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 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(LastSeenAt, other.LastSeenAt)) return false; + if (DeviceStatusBattery != other.DeviceStatusBattery) return false; + if (DeviceStatusMargin != other.DeviceStatusMargin) 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 (device_ != null) hash ^= Device.GetHashCode(); + if (lastSeenAt_ != null) hash ^= LastSeenAt.GetHashCode(); + if (DeviceStatusBattery != 0) hash ^= DeviceStatusBattery.GetHashCode(); + if (DeviceStatusMargin != 0) hash ^= DeviceStatusMargin.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 (device_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Device); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(LastSeenAt); + } + if (DeviceStatusBattery != 0) { + output.WriteRawTag(48); + output.WriteUInt32(DeviceStatusBattery); + } + if (DeviceStatusMargin != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(DeviceStatusMargin); + } + if (location_ != null) { + output.WriteRawTag(170, 1); + 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 (device_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Device); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(LastSeenAt); + } + if (DeviceStatusBattery != 0) { + output.WriteRawTag(48); + output.WriteUInt32(DeviceStatusBattery); + } + if (DeviceStatusMargin != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(DeviceStatusMargin); + } + if (location_ != null) { + output.WriteRawTag(170, 1); + 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 (device_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); + } + if (lastSeenAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSeenAt); + } + if (DeviceStatusBattery != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DeviceStatusBattery); + } + if (DeviceStatusMargin != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DeviceStatusMargin); + } + if (location_ != null) { + size += 2 + 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(GetDeviceResponse other) { + if (other == null) { + return; + } + if (other.device_ != null) { + if (device_ == null) { + Device = new global::Chirpstack.ApplicationServer.External.Api.Device(); + } + Device.MergeFrom(other.Device); + } + if (other.lastSeenAt_ != null) { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastSeenAt.MergeFrom(other.LastSeenAt); + } + if (other.DeviceStatusBattery != 0) { + DeviceStatusBattery = other.DeviceStatusBattery; + } + if (other.DeviceStatusMargin != 0) { + DeviceStatusMargin = other.DeviceStatusMargin; + } + 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: { + if (device_ == null) { + Device = new global::Chirpstack.ApplicationServer.External.Api.Device(); + } + input.ReadMessage(Device); + break; + } + case 42: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + case 48: { + DeviceStatusBattery = input.ReadUInt32(); + break; + } + case 160: { + DeviceStatusMargin = input.ReadInt32(); + break; + } + case 170: { + 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: { + if (device_ == null) { + Device = new global::Chirpstack.ApplicationServer.External.Api.Device(); + } + input.ReadMessage(Device); + break; + } + case 42: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + case 48: { + DeviceStatusBattery = input.ReadUInt32(); + break; + } + case 160: { + DeviceStatusMargin = input.ReadInt32(); + break; + } + case 170: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListDeviceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListDeviceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceRequest(ListDeviceRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + applicationId_ = other.applicationId_; + search_ = other.search_; + multicastGroupId_ = other.multicastGroupId_; + serviceProfileId_ = other.serviceProfileId_; + tags_ = other.tags_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceRequest Clone() { + return new ListDeviceRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private long limit_; + /// + /// Max number of devices to return in the result-set. + /// + [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 = 2; + private long offset_; + /// + /// Offset in 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; + } + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 3; + private long applicationId_; + /// + /// Application ID to filter on. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "search" field. + public const int SearchFieldNumber = 4; + private string search_ = ""; + /// + /// Search on name or DevEUI. + /// + [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 "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 5; + private string multicastGroupId_ = ""; + /// + /// Multicast-group ID to filter on (string formatted 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 "service_profile_id" field. + public const int ServiceProfileIdFieldNumber = 6; + private string serviceProfileId_ = ""; + /// + /// Service-profile ID to filter on (string formatted UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceProfileId { + get { return serviceProfileId_; } + set { + serviceProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 7; + private static readonly pbc::MapField.Codec _map_tags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 58); + private readonly pbc::MapField tags_ = new pbc::MapField(); + /// + /// Tags to filter on. + /// + [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 ListDeviceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDeviceRequest 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 (ApplicationId != other.ApplicationId) return false; + if (Search != other.Search) return false; + if (MulticastGroupId != other.MulticastGroupId) return false; + if (ServiceProfileId != other.ServiceProfileId) 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 (Limit != 0L) hash ^= Limit.GetHashCode(); + if (Offset != 0L) hash ^= Offset.GetHashCode(); + if (ApplicationId != 0L) hash ^= ApplicationId.GetHashCode(); + if (Search.Length != 0) hash ^= Search.GetHashCode(); + if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); + if (ServiceProfileId.Length != 0) hash ^= ServiceProfileId.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 (Limit != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (ApplicationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ApplicationId); + } + if (Search.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Search); + } + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(MulticastGroupId); + } + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ServiceProfileId); + } + 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 (Limit != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (ApplicationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ApplicationId); + } + if (Search.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Search); + } + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(MulticastGroupId); + } + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ServiceProfileId); + } + 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 (Limit != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); + } + if (Offset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset); + } + if (ApplicationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + if (Search.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); + } + if (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); + } + if (ServiceProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceProfileId); + } + 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(ListDeviceRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0L) { + Limit = other.Limit; + } + if (other.Offset != 0L) { + Offset = other.Offset; + } + if (other.ApplicationId != 0L) { + ApplicationId = other.ApplicationId; + } + if (other.Search.Length != 0) { + Search = other.Search; + } + if (other.MulticastGroupId.Length != 0) { + MulticastGroupId = other.MulticastGroupId; + } + if (other.ServiceProfileId.Length != 0) { + ServiceProfileId = other.ServiceProfileId; + } + 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 8: { + Limit = input.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + ApplicationId = input.ReadInt64(); + break; + } + case 34: { + Search = input.ReadString(); + break; + } + case 42: { + MulticastGroupId = input.ReadString(); + break; + } + case 50: { + ServiceProfileId = input.ReadString(); + break; + } + case 58: { + 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 8: { + Limit = input.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + ApplicationId = input.ReadInt64(); + break; + } + case 34: { + Search = input.ReadString(); + break; + } + case 42: { + MulticastGroupId = input.ReadString(); + break; + } + case 50: { + ServiceProfileId = input.ReadString(); + break; + } + case 58: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListDeviceResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListDeviceResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceResponse(ListDeviceResponse 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 ListDeviceResponse Clone() { + return new ListDeviceResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private long totalCount_; + /// + /// Total number of devices available within the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.Api.DeviceListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Devices within this 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 ListDeviceResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDeviceResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(ListDeviceResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + 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.ApplicationServer.External.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_ = ""; + /// + /// 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 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 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.Device device_; + /// + /// Device object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.Device(); + } + input.ReadMessage(Device); + 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.DeviceKeys deviceKeys_; + /// + /// Device-keys object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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_ = ""; + /// + /// 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 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.ApplicationServer.External.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 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; + _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.ApplicationServer.External.Api.DeviceKeys deviceKeys_; + /// + /// Device-key object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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 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; + 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(GetDeviceKeysResponse other) { + if (other == null) { + return; + } + if (other.deviceKeys_ != null) { + if (deviceKeys_ == null) { + DeviceKeys = new global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.DeviceKeys(); + } + input.ReadMessage(DeviceKeys); + 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.DeviceKeys deviceKeys_; + /// + /// Device-keys object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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_ = ""; + /// + /// 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 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.ApplicationServer.External.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 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 (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"); + } + } + + /// 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.DeviceActivation deviceActivation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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_ = ""; + /// + /// 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 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.ApplicationServer.External.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 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_ = ""; + /// + /// 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 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.DeviceActivation deviceActivation_; + /// + /// Device-activation object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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_ = ""; + /// + /// 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 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.ApplicationServer.External.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 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_ = ""; + /// + /// 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"); + } + } + + [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 DeviceStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceStats()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 DeviceStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceStats(DeviceStats other) : this() { + timestamp_ = other.timestamp_ != null ? other.timestamp_.Clone() : null; + rxPackets_ = other.rxPackets_; + gwRssi_ = other.gwRssi_; + gwSnr_ = other.gwSnr_; + rxPacketsPerFrequency_ = other.rxPacketsPerFrequency_.Clone(); + rxPacketsPerDr_ = other.rxPacketsPerDr_.Clone(); + errors_ = other.errors_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceStats Clone() { + return new DeviceStats(this); + } + + /// Field number for the "timestamp" field. + public const int TimestampFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp timestamp_; + /// + /// Timestamp of the (aggregated) measurement. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp Timestamp { + get { return timestamp_; } + set { + timestamp_ = value; + } + } + + /// Field number for the "rx_packets" field. + public const int RxPacketsFieldNumber = 2; + private uint rxPackets_; + /// + /// Packets received from the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RxPackets { + get { return rxPackets_; } + set { + rxPackets_ = value; + } + } + + /// Field number for the "gw_rssi" field. + public const int GwRssiFieldNumber = 3; + private float gwRssi_; + /// + /// Average RSSI (as reported by the gateway(s)). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float GwRssi { + get { return gwRssi_; } + set { + gwRssi_ = value; + } + } + + /// Field number for the "gw_snr" field. + public const int GwSnrFieldNumber = 4; + private float gwSnr_; + /// + /// Average SNR (as reported by the gateway(s)). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float GwSnr { + get { return gwSnr_; } + set { + gwSnr_ = value; + } + } + + /// Field number for the "rx_packets_per_frequency" field. + public const int RxPacketsPerFrequencyFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_rxPacketsPerFrequency_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 42); + private readonly pbc::MapField rxPacketsPerFrequency_ = new pbc::MapField(); + /// + /// Packets received by frequency. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField RxPacketsPerFrequency { + get { return rxPacketsPerFrequency_; } + } + + /// Field number for the "rx_packets_per_dr" field. + public const int RxPacketsPerDrFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_rxPacketsPerDr_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 50); + private readonly pbc::MapField rxPacketsPerDr_ = new pbc::MapField(); + /// + /// Packets received by DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField RxPacketsPerDr { + get { return rxPacketsPerDr_; } + } + + /// Field number for the "errors" field. + public const int ErrorsFieldNumber = 7; + private static readonly pbc::MapField.Codec _map_errors_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForUInt32(16, 0), 58); + private readonly pbc::MapField errors_ = new pbc::MapField(); + /// + /// Error count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Errors { + get { return errors_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeviceStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeviceStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Timestamp, other.Timestamp)) return false; + if (RxPackets != other.RxPackets) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(GwRssi, other.GwRssi)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(GwSnr, other.GwSnr)) return false; + if (!RxPacketsPerFrequency.Equals(other.RxPacketsPerFrequency)) return false; + if (!RxPacketsPerDr.Equals(other.RxPacketsPerDr)) return false; + if (!Errors.Equals(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 (timestamp_ != null) hash ^= Timestamp.GetHashCode(); + if (RxPackets != 0) hash ^= RxPackets.GetHashCode(); + if (GwRssi != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(GwRssi); + if (GwSnr != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(GwSnr); + hash ^= RxPacketsPerFrequency.GetHashCode(); + hash ^= RxPacketsPerDr.GetHashCode(); + 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 (timestamp_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Timestamp); + } + if (RxPackets != 0) { + output.WriteRawTag(16); + output.WriteUInt32(RxPackets); + } + if (GwRssi != 0F) { + output.WriteRawTag(29); + output.WriteFloat(GwRssi); + } + if (GwSnr != 0F) { + output.WriteRawTag(37); + output.WriteFloat(GwSnr); + } + rxPacketsPerFrequency_.WriteTo(output, _map_rxPacketsPerFrequency_codec); + rxPacketsPerDr_.WriteTo(output, _map_rxPacketsPerDr_codec); + errors_.WriteTo(output, _map_errors_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 (timestamp_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Timestamp); + } + if (RxPackets != 0) { + output.WriteRawTag(16); + output.WriteUInt32(RxPackets); + } + if (GwRssi != 0F) { + output.WriteRawTag(29); + output.WriteFloat(GwRssi); + } + if (GwSnr != 0F) { + output.WriteRawTag(37); + output.WriteFloat(GwSnr); + } + rxPacketsPerFrequency_.WriteTo(ref output, _map_rxPacketsPerFrequency_codec); + rxPacketsPerDr_.WriteTo(ref output, _map_rxPacketsPerDr_codec); + errors_.WriteTo(ref output, _map_errors_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 (timestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Timestamp); + } + if (RxPackets != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxPackets); + } + if (GwRssi != 0F) { + size += 1 + 4; + } + if (GwSnr != 0F) { + size += 1 + 4; + } + size += rxPacketsPerFrequency_.CalculateSize(_map_rxPacketsPerFrequency_codec); + size += rxPacketsPerDr_.CalculateSize(_map_rxPacketsPerDr_codec); + size += errors_.CalculateSize(_map_errors_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeviceStats other) { + if (other == null) { + return; + } + if (other.timestamp_ != null) { + if (timestamp_ == null) { + Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Timestamp.MergeFrom(other.Timestamp); + } + if (other.RxPackets != 0) { + RxPackets = other.RxPackets; + } + if (other.GwRssi != 0F) { + GwRssi = other.GwRssi; + } + if (other.GwSnr != 0F) { + GwSnr = other.GwSnr; + } + rxPacketsPerFrequency_.Add(other.rxPacketsPerFrequency_); + rxPacketsPerDr_.Add(other.rxPacketsPerDr_); + errors_.Add(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 (timestamp_ == null) { + Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Timestamp); + break; + } + case 16: { + RxPackets = input.ReadUInt32(); + break; + } + case 29: { + GwRssi = input.ReadFloat(); + break; + } + case 37: { + GwSnr = input.ReadFloat(); + break; + } + case 42: { + rxPacketsPerFrequency_.AddEntriesFrom(input, _map_rxPacketsPerFrequency_codec); + break; + } + case 50: { + rxPacketsPerDr_.AddEntriesFrom(input, _map_rxPacketsPerDr_codec); + break; + } + case 58: { + errors_.AddEntriesFrom(input, _map_errors_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 (timestamp_ == null) { + Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Timestamp); + break; + } + case 16: { + RxPackets = input.ReadUInt32(); + break; + } + case 29: { + GwRssi = input.ReadFloat(); + break; + } + case 37: { + GwSnr = input.ReadFloat(); + break; + } + case 42: { + rxPacketsPerFrequency_.AddEntriesFrom(ref input, _map_rxPacketsPerFrequency_codec); + break; + } + case 50: { + rxPacketsPerDr_.AddEntriesFrom(ref input, _map_rxPacketsPerDr_codec); + break; + } + case 58: { + errors_.AddEntriesFrom(ref input, _map_errors_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceStatsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceStatsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 GetDeviceStatsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceStatsRequest(GetDeviceStatsRequest other) : this() { + devEui_ = other.devEui_; + interval_ = other.interval_; + startTimestamp_ = other.startTimestamp_ != null ? other.startTimestamp_.Clone() : null; + endTimestamp_ = other.endTimestamp_ != null ? other.endTimestamp_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceStatsRequest Clone() { + return new GetDeviceStatsRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private string devEui_ = ""; + /// + /// DevEUI (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"); + } + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 2; + private string interval_ = ""; + /// + /// Aggregation interval. One of "second", "minute", "hour", "day", "week", + /// "month", "quarter", "year". Case insensitive. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Interval { + get { return interval_; } + set { + interval_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_timestamp" field. + public const int StartTimestampFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTimestamp_; + /// + /// Timestamp to start from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTimestamp { + get { return startTimestamp_; } + set { + startTimestamp_ = value; + } + } + + /// Field number for the "end_timestamp" field. + public const int EndTimestampFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTimestamp_; + /// + /// Timestamp until to get from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTimestamp { + get { return endTimestamp_; } + set { + endTimestamp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceStatsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceStatsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (Interval != other.Interval) return false; + if (!object.Equals(StartTimestamp, other.StartTimestamp)) return false; + if (!object.Equals(EndTimestamp, other.EndTimestamp)) return false; + 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 (Interval.Length != 0) hash ^= Interval.GetHashCode(); + if (startTimestamp_ != null) hash ^= StartTimestamp.GetHashCode(); + if (endTimestamp_ != null) hash ^= EndTimestamp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Interval.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Interval); + } + if (startTimestamp_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTimestamp); + } + if (endTimestamp_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndTimestamp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Interval.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Interval); + } + if (startTimestamp_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTimestamp); + } + if (endTimestamp_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndTimestamp); + } + if (_unknownFields != 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 (Interval.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Interval); + } + if (startTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTimestamp); + } + if (endTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTimestamp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceStatsRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.Interval.Length != 0) { + Interval = other.Interval; + } + if (other.startTimestamp_ != null) { + if (startTimestamp_ == null) { + StartTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTimestamp.MergeFrom(other.StartTimestamp); + } + if (other.endTimestamp_ != null) { + if (endTimestamp_ == null) { + EndTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTimestamp.MergeFrom(other.EndTimestamp); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + Interval = input.ReadString(); + break; + } + case 26: { + if (startTimestamp_ == null) { + StartTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTimestamp); + break; + } + case 34: { + if (endTimestamp_ == null) { + EndTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTimestamp); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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: { + Interval = input.ReadString(); + break; + } + case 26: { + if (startTimestamp_ == null) { + StartTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTimestamp); + break; + } + case 34: { + if (endTimestamp_ == null) { + EndTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTimestamp); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceStatsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceStatsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 GetDeviceStatsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceStatsResponse(GetDeviceStatsResponse other) : this() { + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceStatsResponse Clone() { + return new GetDeviceStatsResponse(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.ApplicationServer.External.Api.DeviceStats.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 GetDeviceStatsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceStatsResponse 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(GetDeviceStatsResponse 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 StreamDeviceFrameLogsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamDeviceFrameLogsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 StreamDeviceFrameLogsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamDeviceFrameLogsRequest(StreamDeviceFrameLogsRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamDeviceFrameLogsRequest Clone() { + return new StreamDeviceFrameLogsRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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 StreamDeviceFrameLogsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamDeviceFrameLogsRequest 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(StreamDeviceFrameLogsRequest 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 StreamDeviceFrameLogsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamDeviceFrameLogsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 StreamDeviceFrameLogsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamDeviceFrameLogsResponse(StreamDeviceFrameLogsResponse other) : this() { + switch (other.FrameCase) { + case FrameOneofCase.UplinkFrame: + UplinkFrame = other.UplinkFrame.Clone(); + break; + case FrameOneofCase.DownlinkFrame: + DownlinkFrame = other.DownlinkFrame.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamDeviceFrameLogsResponse Clone() { + return new StreamDeviceFrameLogsResponse(this); + } + + /// Field number for the "uplink_frame" field. + public const int UplinkFrameFieldNumber = 1; + /// + /// Contains an uplink frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.UplinkFrameLog UplinkFrame { + get { return frameCase_ == FrameOneofCase.UplinkFrame ? (global::Chirpstack.ApplicationServer.External.Api.UplinkFrameLog) frame_ : null; } + set { + frame_ = value; + frameCase_ = value == null ? FrameOneofCase.None : FrameOneofCase.UplinkFrame; + } + } + + /// Field number for the "downlink_frame" field. + public const int DownlinkFrameFieldNumber = 2; + /// + /// Contains a downlink frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog DownlinkFrame { + get { return frameCase_ == FrameOneofCase.DownlinkFrame ? (global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog) frame_ : null; } + set { + frame_ = value; + frameCase_ = value == null ? FrameOneofCase.None : FrameOneofCase.DownlinkFrame; + } + } + + private object frame_; + /// Enum of possible cases for the "frame" oneof. + public enum FrameOneofCase { + None = 0, + UplinkFrame = 1, + DownlinkFrame = 2, + } + private FrameOneofCase frameCase_ = FrameOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameOneofCase FrameCase { + get { return frameCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFrame() { + frameCase_ = FrameOneofCase.None; + frame_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StreamDeviceFrameLogsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamDeviceFrameLogsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UplinkFrame, other.UplinkFrame)) return false; + if (!object.Equals(DownlinkFrame, other.DownlinkFrame)) return false; + if (FrameCase != other.FrameCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (frameCase_ == FrameOneofCase.UplinkFrame) hash ^= UplinkFrame.GetHashCode(); + if (frameCase_ == FrameOneofCase.DownlinkFrame) hash ^= DownlinkFrame.GetHashCode(); + hash ^= (int) frameCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (frameCase_ == FrameOneofCase.UplinkFrame) { + output.WriteRawTag(10); + output.WriteMessage(UplinkFrame); + } + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + output.WriteRawTag(18); + output.WriteMessage(DownlinkFrame); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (frameCase_ == FrameOneofCase.UplinkFrame) { + output.WriteRawTag(10); + output.WriteMessage(UplinkFrame); + } + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + output.WriteRawTag(18); + output.WriteMessage(DownlinkFrame); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (frameCase_ == FrameOneofCase.UplinkFrame) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UplinkFrame); + } + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DownlinkFrame); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StreamDeviceFrameLogsResponse other) { + if (other == null) { + return; + } + switch (other.FrameCase) { + case FrameOneofCase.UplinkFrame: + if (UplinkFrame == null) { + UplinkFrame = new global::Chirpstack.ApplicationServer.External.Api.UplinkFrameLog(); + } + UplinkFrame.MergeFrom(other.UplinkFrame); + break; + case FrameOneofCase.DownlinkFrame: + if (DownlinkFrame == null) { + DownlinkFrame = new global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog(); + } + DownlinkFrame.MergeFrom(other.DownlinkFrame); + 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.ApplicationServer.External.Api.UplinkFrameLog subBuilder = new global::Chirpstack.ApplicationServer.External.Api.UplinkFrameLog(); + if (frameCase_ == FrameOneofCase.UplinkFrame) { + subBuilder.MergeFrom(UplinkFrame); + } + input.ReadMessage(subBuilder); + UplinkFrame = subBuilder; + break; + } + case 18: { + global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog subBuilder = new global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog(); + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + subBuilder.MergeFrom(DownlinkFrame); + } + input.ReadMessage(subBuilder); + DownlinkFrame = 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.ApplicationServer.External.Api.UplinkFrameLog subBuilder = new global::Chirpstack.ApplicationServer.External.Api.UplinkFrameLog(); + if (frameCase_ == FrameOneofCase.UplinkFrame) { + subBuilder.MergeFrom(UplinkFrame); + } + input.ReadMessage(subBuilder); + UplinkFrame = subBuilder; + break; + } + case 18: { + global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog subBuilder = new global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog(); + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + subBuilder.MergeFrom(DownlinkFrame); + } + input.ReadMessage(subBuilder); + DownlinkFrame = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class StreamDeviceEventLogsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamDeviceEventLogsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 StreamDeviceEventLogsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamDeviceEventLogsRequest(StreamDeviceEventLogsRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamDeviceEventLogsRequest Clone() { + return new StreamDeviceEventLogsRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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 StreamDeviceEventLogsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamDeviceEventLogsRequest 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(StreamDeviceEventLogsRequest 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 StreamDeviceEventLogsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamDeviceEventLogsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 StreamDeviceEventLogsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamDeviceEventLogsResponse(StreamDeviceEventLogsResponse other) : this() { + type_ = other.type_; + payloadJson_ = other.payloadJson_; + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.Clone() : null; + streamId_ = other.streamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamDeviceEventLogsResponse Clone() { + return new StreamDeviceEventLogsResponse(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private string type_ = ""; + /// + /// The event type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "payload_json" field. + public const int PayloadJsonFieldNumber = 2; + private string payloadJson_ = ""; + /// + /// The event payload in JSON encoding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PayloadJson { + get { return payloadJson_; } + set { + payloadJson_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "published_at" field. + public const int PublishedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = value; + } + } + + /// Field number for the "stream_id" field. + public const int StreamIdFieldNumber = 4; + private string streamId_ = ""; + /// + /// Stream ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StreamId { + get { return streamId_; } + set { + streamId_ = 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 StreamDeviceEventLogsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamDeviceEventLogsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (PayloadJson != other.PayloadJson) return false; + if (!object.Equals(PublishedAt, other.PublishedAt)) return false; + if (StreamId != other.StreamId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (PayloadJson.Length != 0) hash ^= PayloadJson.GetHashCode(); + if (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (StreamId.Length != 0) hash ^= StreamId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (PayloadJson.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PayloadJson); + } + if (publishedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(PublishedAt); + } + if (StreamId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(StreamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (PayloadJson.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PayloadJson); + } + if (publishedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(PublishedAt); + } + if (StreamId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(StreamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (PayloadJson.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadJson); + } + if (publishedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + if (StreamId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StreamId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StreamDeviceEventLogsResponse other) { + if (other == null) { + return; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.PayloadJson.Length != 0) { + PayloadJson = other.PayloadJson; + } + if (other.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + if (other.StreamId.Length != 0) { + StreamId = other.StreamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 18: { + PayloadJson = input.ReadString(); + break; + } + case 26: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + case 34: { + StreamId = 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: { + Type = input.ReadString(); + break; + } + case 18: { + PayloadJson = input.ReadString(); + break; + } + case 26: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + case 34: { + StreamId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ClearDeviceNoncesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClearDeviceNoncesRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ClearDeviceNoncesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClearDeviceNoncesRequest(ClearDeviceNoncesRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClearDeviceNoncesRequest Clone() { + return new ClearDeviceNoncesRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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 ClearDeviceNoncesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClearDeviceNoncesRequest 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(ClearDeviceNoncesRequest 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/csharp/protobuf/as/external/api/DeviceGrpc.cs b/csharp/protobuf/as/external/api/DeviceGrpc.cs new file mode 100644 index 00000000..227b6e84 --- /dev/null +++ b/csharp/protobuf/as/external/api/DeviceGrpc.cs @@ -0,0 +1,1336 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/device.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer.External.Api { + /// + /// DeviceService is the service managing the 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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.GetDeviceResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListDeviceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListDeviceResponse.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.ApplicationServer.External.Api.DeleteDeviceRequest.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.ApplicationServer.External.Api.UpdateDeviceRequest.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.DeleteDeviceKeysRequest.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.GetRandomDevAddrResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceStatsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetDeviceStatsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetDeviceStatsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetDeviceStatsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_StreamDeviceFrameLogsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.StreamDeviceFrameLogsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_StreamDeviceFrameLogsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.StreamDeviceFrameLogsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_StreamDeviceEventLogsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.StreamDeviceEventLogsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_StreamDeviceEventLogsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.StreamDeviceEventLogsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ClearDeviceNoncesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ClearDeviceNoncesRequest.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_List = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "List", + __Marshaller_api_ListDeviceRequest, + __Marshaller_api_ListDeviceResponse); + + [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_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_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_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_GetStats = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetStats", + __Marshaller_api_GetDeviceStatsRequest, + __Marshaller_api_GetDeviceStatsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_StreamFrameLogs = new grpc::Method( + grpc::MethodType.ServerStreaming, + __ServiceName, + "StreamFrameLogs", + __Marshaller_api_StreamDeviceFrameLogsRequest, + __Marshaller_api_StreamDeviceFrameLogsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_StreamEventLogs = new grpc::Method( + grpc::MethodType.ServerStreaming, + __ServiceName, + "StreamEventLogs", + __Marshaller_api_StreamDeviceEventLogsRequest, + __Marshaller_api_StreamDeviceEventLogsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ClearDeviceNonces = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ClearDeviceNonces", + __Marshaller_api_ClearDeviceNoncesRequest, + __Marshaller_google_protobuf_Empty); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.ApplicationServer.External.Api.DeviceReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of DeviceService + [grpc::BindServiceMethod(typeof(DeviceService), "BindService")] + public abstract partial class DeviceServiceBase + { + /// + /// Create creates 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.ApplicationServer.External.Api.CreateDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get returns the device matching 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.ApplicationServer.External.Api.GetDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List returns the available 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.ApplicationServer.External.Api.ListDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete deletes the device matching 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.ApplicationServer.External.Api.DeleteDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update updates the device matching 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 Update(global::Chirpstack.ApplicationServer.External.Api.UpdateDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateKeys creates 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.ApplicationServer.External.Api.CreateDeviceKeysRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetKeys returns 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.ApplicationServer.External.Api.GetDeviceKeysRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateKeys updates the 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.ApplicationServer.External.Api.UpdateDeviceKeysRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteKeys deletes 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.ApplicationServer.External.Api.DeleteDeviceKeysRequest 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.ApplicationServer.External.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.ApplicationServer.External.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 and 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.ApplicationServer.External.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.ApplicationServer.External.Api.GetRandomDevAddrRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetStats returns the device stats. + /// + /// 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 GetStats(global::Chirpstack.ApplicationServer.External.Api.GetDeviceStatsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// StreamFrameLogs streams the uplink and downlink frame-logs for the given DevEUI. + /// * These are the raw LoRaWAN frames and this endpoint is intended for debugging only. + /// * This endpoint does not work from a web-browser. + /// + /// 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 StreamFrameLogs(global::Chirpstack.ApplicationServer.External.Api.StreamDeviceFrameLogsRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// StreamEventLogs stream the device events (uplink payloads, ACKs, joins, errors). + /// * This endpoint is intended for debugging only. + /// * This endpoint does not work from a web-browser. + /// + /// 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 StreamEventLogs(global::Chirpstack.ApplicationServer.External.Api.StreamDeviceEventLogsRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// ClearDeviceNonces deletes the device older activation records for the given DevEUI. + /// * These are clear older DevNonce records from device activation records in Network Server + /// * These clears all DevNonce records but keeps latest 20 records for maintain device activation status + /// + /// 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 ClearDeviceNonces(global::Chirpstack.ApplicationServer.External.Api.ClearDeviceNoncesRequest 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 creates 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.ApplicationServer.External.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 creates 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.ApplicationServer.External.Api.CreateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create creates 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.ApplicationServer.External.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 creates 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.ApplicationServer.External.Api.CreateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get returns the device matching 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.ApplicationServer.External.Api.GetDeviceResponse Get(global::Chirpstack.ApplicationServer.External.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 matching 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.ApplicationServer.External.Api.GetDeviceResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get returns the device matching 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.ApplicationServer.External.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 matching 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.ApplicationServer.External.Api.GetDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// List returns the available 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.ApplicationServer.External.Api.ListDeviceResponse List(global::Chirpstack.ApplicationServer.External.Api.ListDeviceRequest 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 returns the available 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.ApplicationServer.External.Api.ListDeviceResponse List(global::Chirpstack.ApplicationServer.External.Api.ListDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// List returns the available 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.ApplicationServer.External.Api.ListDeviceRequest 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 returns the available 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.ApplicationServer.External.Api.ListDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// Delete deletes the device matching 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.ApplicationServer.External.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 deletes the device matching 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.ApplicationServer.External.Api.DeleteDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete deletes the device matching 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.ApplicationServer.External.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 deletes the device matching 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.ApplicationServer.External.Api.DeleteDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Update updates the device matching 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 Update(global::Chirpstack.ApplicationServer.External.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 updates the device matching 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 Update(global::Chirpstack.ApplicationServer.External.Api.UpdateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update updates the device matching 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 UpdateAsync(global::Chirpstack.ApplicationServer.External.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 updates the device matching 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 UpdateAsync(global::Chirpstack.ApplicationServer.External.Api.UpdateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// CreateKeys creates 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.ApplicationServer.External.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)); + } + /// + /// CreateKeys creates 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.ApplicationServer.External.Api.CreateDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateKeys, null, options, request); + } + /// + /// CreateKeys creates 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.ApplicationServer.External.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)); + } + /// + /// CreateKeys creates 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.ApplicationServer.External.Api.CreateDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateKeys, null, options, request); + } + /// + /// GetKeys returns 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.ApplicationServer.External.Api.GetDeviceKeysResponse GetKeys(global::Chirpstack.ApplicationServer.External.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)); + } + /// + /// GetKeys returns 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.ApplicationServer.External.Api.GetDeviceKeysResponse GetKeys(global::Chirpstack.ApplicationServer.External.Api.GetDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetKeys, null, options, request); + } + /// + /// GetKeys returns 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.ApplicationServer.External.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)); + } + /// + /// GetKeys returns 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.ApplicationServer.External.Api.GetDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetKeys, null, options, request); + } + /// + /// UpdateKeys updates the 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.ApplicationServer.External.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)); + } + /// + /// UpdateKeys updates the 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.ApplicationServer.External.Api.UpdateDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateKeys, null, options, request); + } + /// + /// UpdateKeys updates the 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.ApplicationServer.External.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)); + } + /// + /// UpdateKeys updates the 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.ApplicationServer.External.Api.UpdateDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateKeys, null, options, request); + } + /// + /// DeleteKeys deletes 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.ApplicationServer.External.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)); + } + /// + /// DeleteKeys deletes 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.ApplicationServer.External.Api.DeleteDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteKeys, null, options, request); + } + /// + /// DeleteKeys deletes 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.ApplicationServer.External.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)); + } + /// + /// DeleteKeys deletes 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.ApplicationServer.External.Api.DeleteDeviceKeysRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteKeys, 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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.DeactivateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Deactivate, null, options, request); + } + /// + /// GetActivation returns the current activation details of the device (OTAA and 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.ApplicationServer.External.Api.GetDeviceActivationResponse GetActivation(global::Chirpstack.ApplicationServer.External.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 and 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.ApplicationServer.External.Api.GetDeviceActivationResponse GetActivation(global::Chirpstack.ApplicationServer.External.Api.GetDeviceActivationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetActivation, null, options, request); + } + /// + /// GetActivation returns the current activation details of the device (OTAA and 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.ApplicationServer.External.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 and 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.ApplicationServer.External.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.ApplicationServer.External.Api.GetRandomDevAddrResponse GetRandomDevAddr(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.GetRandomDevAddrResponse GetRandomDevAddr(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.GetRandomDevAddrRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetRandomDevAddr, null, options, request); + } + /// + /// GetStats returns the device stats. + /// + /// 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.ApplicationServer.External.Api.GetDeviceStatsResponse GetStats(global::Chirpstack.ApplicationServer.External.Api.GetDeviceStatsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetStats(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetStats returns the device stats. + /// + /// 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.ApplicationServer.External.Api.GetDeviceStatsResponse GetStats(global::Chirpstack.ApplicationServer.External.Api.GetDeviceStatsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetStats, null, options, request); + } + /// + /// GetStats returns the device stats. + /// + /// 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 GetStatsAsync(global::Chirpstack.ApplicationServer.External.Api.GetDeviceStatsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetStatsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetStats returns the device stats. + /// + /// 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 GetStatsAsync(global::Chirpstack.ApplicationServer.External.Api.GetDeviceStatsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetStats, null, options, request); + } + /// + /// StreamFrameLogs streams the uplink and downlink frame-logs for the given DevEUI. + /// * These are the raw LoRaWAN frames and this endpoint is intended for debugging only. + /// * This endpoint does not work from a web-browser. + /// + /// 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 StreamFrameLogs(global::Chirpstack.ApplicationServer.External.Api.StreamDeviceFrameLogsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return StreamFrameLogs(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// StreamFrameLogs streams the uplink and downlink frame-logs for the given DevEUI. + /// * These are the raw LoRaWAN frames and this endpoint is intended for debugging only. + /// * This endpoint does not work from a web-browser. + /// + /// 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 StreamFrameLogs(global::Chirpstack.ApplicationServer.External.Api.StreamDeviceFrameLogsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncServerStreamingCall(__Method_StreamFrameLogs, null, options, request); + } + /// + /// StreamEventLogs stream the device events (uplink payloads, ACKs, joins, errors). + /// * This endpoint is intended for debugging only. + /// * This endpoint does not work from a web-browser. + /// + /// 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 StreamEventLogs(global::Chirpstack.ApplicationServer.External.Api.StreamDeviceEventLogsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return StreamEventLogs(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// StreamEventLogs stream the device events (uplink payloads, ACKs, joins, errors). + /// * This endpoint is intended for debugging only. + /// * This endpoint does not work from a web-browser. + /// + /// 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 StreamEventLogs(global::Chirpstack.ApplicationServer.External.Api.StreamDeviceEventLogsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncServerStreamingCall(__Method_StreamEventLogs, null, options, request); + } + /// + /// ClearDeviceNonces deletes the device older activation records for the given DevEUI. + /// * These are clear older DevNonce records from device activation records in Network Server + /// * These clears all DevNonce records but keeps latest 20 records for maintain device activation status + /// + /// 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 ClearDeviceNonces(global::Chirpstack.ApplicationServer.External.Api.ClearDeviceNoncesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ClearDeviceNonces(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ClearDeviceNonces deletes the device older activation records for the given DevEUI. + /// * These are clear older DevNonce records from device activation records in Network Server + /// * These clears all DevNonce records but keeps latest 20 records for maintain device activation status + /// + /// 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 ClearDeviceNonces(global::Chirpstack.ApplicationServer.External.Api.ClearDeviceNoncesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ClearDeviceNonces, null, options, request); + } + /// + /// ClearDeviceNonces deletes the device older activation records for the given DevEUI. + /// * These are clear older DevNonce records from device activation records in Network Server + /// * These clears all DevNonce records but keeps latest 20 records for maintain device activation status + /// + /// 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 ClearDeviceNoncesAsync(global::Chirpstack.ApplicationServer.External.Api.ClearDeviceNoncesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ClearDeviceNoncesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ClearDeviceNonces deletes the device older activation records for the given DevEUI. + /// * These are clear older DevNonce records from device activation records in Network Server + /// * These clears all DevNonce records but keeps latest 20 records for maintain device activation status + /// + /// 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 ClearDeviceNoncesAsync(global::Chirpstack.ApplicationServer.External.Api.ClearDeviceNoncesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ClearDeviceNonces, 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_List, serviceImpl.List) + .AddMethod(__Method_Delete, serviceImpl.Delete) + .AddMethod(__Method_Update, serviceImpl.Update) + .AddMethod(__Method_CreateKeys, serviceImpl.CreateKeys) + .AddMethod(__Method_GetKeys, serviceImpl.GetKeys) + .AddMethod(__Method_UpdateKeys, serviceImpl.UpdateKeys) + .AddMethod(__Method_DeleteKeys, serviceImpl.DeleteKeys) + .AddMethod(__Method_Activate, serviceImpl.Activate) + .AddMethod(__Method_Deactivate, serviceImpl.Deactivate) + .AddMethod(__Method_GetActivation, serviceImpl.GetActivation) + .AddMethod(__Method_GetRandomDevAddr, serviceImpl.GetRandomDevAddr) + .AddMethod(__Method_GetStats, serviceImpl.GetStats) + .AddMethod(__Method_StreamFrameLogs, serviceImpl.StreamFrameLogs) + .AddMethod(__Method_StreamEventLogs, serviceImpl.StreamEventLogs) + .AddMethod(__Method_ClearDeviceNonces, serviceImpl.ClearDeviceNonces).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_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); + serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); + serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); + 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_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_GetStats, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetStats)); + serviceBinder.AddMethod(__Method_StreamFrameLogs, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.StreamFrameLogs)); + serviceBinder.AddMethod(__Method_StreamEventLogs, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.StreamEventLogs)); + serviceBinder.AddMethod(__Method_ClearDeviceNonces, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ClearDeviceNonces)); + } + + } +} +#endregion diff --git a/csharp/protobuf/as/external/api/DeviceProfile.cs b/csharp/protobuf/as/external/api/DeviceProfile.cs new file mode 100644 index 00000000..2225b4e7 --- /dev/null +++ b/csharp/protobuf/as/external/api/DeviceProfile.cs @@ -0,0 +1,2347 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/deviceProfile.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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/deviceProfile.proto + public static partial class DeviceProfileReflection { + + #region Descriptor + /// File descriptor for as/external/api/deviceProfile.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DeviceProfileReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiNhcy9leHRlcm5hbC9hcGkvZGV2aWNlUHJvZmlsZS5wcm90bxIDYXBpGhxn", + "b29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGh9nb29nbGUvcHJvdG9idWYv", + "dGltZXN0YW1wLnByb3RvGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8a", + "HmFzL2V4dGVybmFsL2FwaS9wcm9maWxlcy5wcm90byJIChpDcmVhdGVEZXZp", + "Y2VQcm9maWxlUmVxdWVzdBIqCg5kZXZpY2VfcHJvZmlsZRgBIAEoCzISLmFw", + "aS5EZXZpY2VQcm9maWxlIikKG0NyZWF0ZURldmljZVByb2ZpbGVSZXNwb25z", + "ZRIKCgJpZBgBIAEoCSIlChdHZXREZXZpY2VQcm9maWxlUmVxdWVzdBIKCgJp", + "ZBgBIAEoCSKmAQoYR2V0RGV2aWNlUHJvZmlsZVJlc3BvbnNlEioKDmRldmlj", + "ZV9wcm9maWxlGAEgASgLMhIuYXBpLkRldmljZVByb2ZpbGUSLgoKY3JlYXRl", + "ZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBk", + "YXRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiSAoa", + "VXBkYXRlRGV2aWNlUHJvZmlsZVJlcXVlc3QSKgoOZGV2aWNlX3Byb2ZpbGUY", + "ASABKAsyEi5hcGkuRGV2aWNlUHJvZmlsZSIoChpEZWxldGVEZXZpY2VQcm9m", + "aWxlUmVxdWVzdBIKCgJpZBgBIAEoCSKDAgoVRGV2aWNlUHJvZmlsZUxpc3RJ", + "dGVtEgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkSJwoPb3JnYW5pemF0aW9u", + "X2lkGAMgASgDUg5vcmdhbml6YXRpb25JRBIqChFuZXR3b3JrX3NlcnZlcl9p", + "ZBgEIAEoA1IPbmV0d29ya1NlcnZlcklEEi4KCmNyZWF0ZWRfYXQYBSABKAsy", + "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYBiAB", + "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhsKE25ldHdvcmtfc2Vy", + "dmVyX25hbWUYByABKAkiiQEKGExpc3REZXZpY2VQcm9maWxlUmVxdWVzdBIN", + "CgVsaW1pdBgBIAEoAxIOCgZvZmZzZXQYAiABKAMSJwoPb3JnYW5pemF0aW9u", + "X2lkGAMgASgDUg5vcmdhbml6YXRpb25JRBIlCg5hcHBsaWNhdGlvbl9pZBgE", + "IAEoA1INYXBwbGljYXRpb25JRCJcChlMaXN0RGV2aWNlUHJvZmlsZVJlc3Bv", + "bnNlEhMKC3RvdGFsX2NvdW50GAEgASgDEioKBnJlc3VsdBgCIAMoCzIaLmFw", + "aS5EZXZpY2VQcm9maWxlTGlzdEl0ZW0yrgQKFERldmljZVByb2ZpbGVTZXJ2", + "aWNlEmwKBkNyZWF0ZRIfLmFwaS5DcmVhdGVEZXZpY2VQcm9maWxlUmVxdWVz", + "dBogLmFwaS5DcmVhdGVEZXZpY2VQcm9maWxlUmVzcG9uc2UiH4LT5JMCGSIU", + "L2FwaS9kZXZpY2UtcHJvZmlsZXM6ASoSZQoDR2V0EhwuYXBpLkdldERldmlj", + "ZVByb2ZpbGVSZXF1ZXN0Gh0uYXBpLkdldERldmljZVByb2ZpbGVSZXNwb25z", + "ZSIhgtPkkwIbEhkvYXBpL2RldmljZS1wcm9maWxlcy97aWR9EnYKBlVwZGF0", + "ZRIfLmFwaS5VcGRhdGVEZXZpY2VQcm9maWxlUmVxdWVzdBoWLmdvb2dsZS5w", + "cm90b2J1Zi5FbXB0eSIzgtPkkwItGigvYXBpL2RldmljZS1wcm9maWxlcy97", + "ZGV2aWNlX3Byb2ZpbGUuaWR9OgEqEmQKBkRlbGV0ZRIfLmFwaS5EZWxldGVE", + "ZXZpY2VQcm9maWxlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIh", + "gtPkkwIbKhkvYXBpL2RldmljZS1wcm9maWxlcy97aWR9EmMKBExpc3QSHS5h", + "cGkuTGlzdERldmljZVByb2ZpbGVSZXF1ZXN0Gh4uYXBpLkxpc3REZXZpY2VQ", + "cm9maWxlUmVzcG9uc2UiHILT5JMCFhIUL2FwaS9kZXZpY2UtcHJvZmlsZXNC", + "ngEKIWlvLmNoaXJwc3RhY2suYXBpLmFzLmV4dGVybmFsLmFwaUISRGV2aWNl", + "UHJvZmlsZVByb3RvUAFaN2dpdGh1Yi5jb20vYnJvY2Fhci9jaGlycHN0YWNr", + "LWFwaS9nby92My9hcy9leHRlcm5hbC9hcGmqAilDaGlycHN0YWNrLkFwcGxp", + "Y2F0aW9uU2VydmVyLkV4dGVybmFsLkFwaWIGcHJvdG8z")); + 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.ApplicationServer.External.Api.ProfilesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateDeviceProfileRequest), global::Chirpstack.ApplicationServer.External.Api.CreateDeviceProfileRequest.Parser, new[]{ "DeviceProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateDeviceProfileResponse), global::Chirpstack.ApplicationServer.External.Api.CreateDeviceProfileResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetDeviceProfileRequest), global::Chirpstack.ApplicationServer.External.Api.GetDeviceProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetDeviceProfileResponse), global::Chirpstack.ApplicationServer.External.Api.GetDeviceProfileResponse.Parser, new[]{ "DeviceProfile", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateDeviceProfileRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateDeviceProfileRequest.Parser, new[]{ "DeviceProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteDeviceProfileRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteDeviceProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeviceProfileListItem), global::Chirpstack.ApplicationServer.External.Api.DeviceProfileListItem.Parser, new[]{ "Id", "Name", "OrganizationId", "NetworkServerId", "CreatedAt", "UpdatedAt", "NetworkServerName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListDeviceProfileRequest), global::Chirpstack.ApplicationServer.External.Api.ListDeviceProfileRequest.Parser, new[]{ "Limit", "Offset", "OrganizationId", "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListDeviceProfileResponse), global::Chirpstack.ApplicationServer.External.Api.ListDeviceProfileResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.DeviceProfile deviceProfile_; + /// + /// Device-profile object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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_ = ""; + /// + /// Device-profile ID (UUID string). + /// + [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.ApplicationServer.External.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 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_ = ""; + /// + /// Device-profile ID (UUID string). + /// + [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.ApplicationServer.External.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 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.ApplicationServer.External.Api.DeviceProfile deviceProfile_; + /// + /// Device-profile object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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.ApplicationServer.External.Api.DeviceProfile deviceProfile_; + /// + /// Device-profile object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 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_ = ""; + /// + /// Device-profile ID (UUID string). + /// + [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 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.ApplicationServer.External.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 DeviceProfileListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceProfileListItem(DeviceProfileListItem other) : this() { + id_ = other.id_; + name_ = other.name_; + organizationId_ = other.organizationId_; + networkServerId_ = other.networkServerId_; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + networkServerName_ = other.networkServerName_; + _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 string). + /// + [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_ = ""; + /// + /// Device-profile 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 "organization_id" field. + public const int OrganizationIdFieldNumber = 3; + private long organizationId_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "network_server_id" field. + public const int NetworkServerIdFieldNumber = 4; + private long networkServerId_; + /// + /// Network-server ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkServerId { + get { return networkServerId_; } + set { + networkServerId_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 5; + 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 = 6; + 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 "network_server_name" field. + public const int NetworkServerNameFieldNumber = 7; + private string networkServerName_ = ""; + /// + /// Network-server name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NetworkServerName { + get { return networkServerName_; } + set { + networkServerName_ = 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 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 (Name != other.Name) return false; + if (OrganizationId != other.OrganizationId) return false; + if (NetworkServerId != other.NetworkServerId) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (NetworkServerName != other.NetworkServerName) return false; + 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 (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (NetworkServerId != 0L) hash ^= NetworkServerId.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (NetworkServerName.Length != 0) hash ^= NetworkServerName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(NetworkServerId); + } + if (createdAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdatedAt); + } + if (NetworkServerName.Length != 0) { + output.WriteRawTag(58); + output.WriteString(NetworkServerName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(NetworkServerId); + } + if (createdAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdatedAt); + } + if (NetworkServerName.Length != 0) { + output.WriteRawTag(58); + output.WriteString(NetworkServerName); + } + if (_unknownFields != 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 (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (NetworkServerId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NetworkServerId); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (NetworkServerName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NetworkServerName); + } + 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.Name.Length != 0) { + Name = other.Name; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.NetworkServerId != 0L) { + NetworkServerId = other.NetworkServerId; + } + 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.NetworkServerName.Length != 0) { + NetworkServerName = other.NetworkServerName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + OrganizationId = input.ReadInt64(); + break; + } + case 32: { + NetworkServerId = input.ReadInt64(); + break; + } + case 42: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 50: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 58: { + NetworkServerName = 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: { + OrganizationId = input.ReadInt64(); + break; + } + case 32: { + NetworkServerId = input.ReadInt64(); + break; + } + case 42: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 50: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 58: { + NetworkServerName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListDeviceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListDeviceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfileRequest(ListDeviceProfileRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + organizationId_ = other.organizationId_; + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfileRequest Clone() { + return new ListDeviceProfileRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private long limit_; + /// + /// Max number of items 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 = 2; + private long offset_; + /// + /// Offset in 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; + } + } + + /// Field number for the "organization_id" field. + public const int OrganizationIdFieldNumber = 3; + private long organizationId_; + /// + /// Organization id to filter on. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 4; + private long applicationId_; + /// + /// Application id to filter on. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListDeviceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDeviceProfileRequest 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 (OrganizationId != other.OrganizationId) 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 != 0L) hash ^= Limit.GetHashCode(); + if (Offset != 0L) hash ^= Offset.GetHashCode(); + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (ApplicationId != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (ApplicationId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (ApplicationId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); + } + if (Offset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset); + } + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (ApplicationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDeviceProfileRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0L) { + Limit = other.Limit; + } + if (other.Offset != 0L) { + Offset = other.Offset; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.ApplicationId != 0L) { + 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.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + OrganizationId = input.ReadInt64(); + break; + } + case 32: { + ApplicationId = 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 8: { + Limit = input.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + OrganizationId = input.ReadInt64(); + break; + } + case 32: { + ApplicationId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListDeviceProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceProfileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListDeviceProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceProfileResponse(ListDeviceProfileResponse 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 ListDeviceProfileResponse Clone() { + return new ListDeviceProfileResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private long totalCount_; + /// + /// Total number of device-profiles. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.Api.DeviceProfileListItem.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 ListDeviceProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDeviceProfileResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(ListDeviceProfileResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/as/external/api/DeviceProfileGrpc.cs b/csharp/protobuf/as/external/api/DeviceProfileGrpc.cs new file mode 100644 index 00000000..76fcc1ad --- /dev/null +++ b/csharp/protobuf/as/external/api/DeviceProfileGrpc.cs @@ -0,0 +1,486 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/deviceProfile.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer.External.Api { + /// + /// DeviceProfileService is the service 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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.DeleteDeviceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListDeviceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListDeviceProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListDeviceProfileResponse.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_ListDeviceProfileRequest, + __Marshaller_api_ListDeviceProfileResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.ApplicationServer.External.Api.DeviceProfileReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of DeviceProfileService + [grpc::BindServiceMethod(typeof(DeviceProfileService), "BindService")] + public abstract partial class DeviceProfileServiceBase + { + /// + /// Create creates 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.ApplicationServer.External.Api.CreateDeviceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get returns the device-profile matching 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.ApplicationServer.External.Api.GetDeviceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update updates 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.ApplicationServer.External.Api.UpdateDeviceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete deletes the device-profile matching 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.ApplicationServer.External.Api.DeleteDeviceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List lists 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.ApplicationServer.External.Api.ListDeviceProfileRequest 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 creates 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.ApplicationServer.External.Api.CreateDeviceProfileResponse Create(global::Chirpstack.ApplicationServer.External.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 creates 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.ApplicationServer.External.Api.CreateDeviceProfileResponse Create(global::Chirpstack.ApplicationServer.External.Api.CreateDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create creates 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.ApplicationServer.External.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 creates 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.ApplicationServer.External.Api.CreateDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get returns the device-profile matching 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.ApplicationServer.External.Api.GetDeviceProfileResponse Get(global::Chirpstack.ApplicationServer.External.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 returns the device-profile matching 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.ApplicationServer.External.Api.GetDeviceProfileResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get returns the device-profile matching 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.ApplicationServer.External.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 returns the device-profile matching 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.ApplicationServer.External.Api.GetDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update updates 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.ApplicationServer.External.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 updates 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.ApplicationServer.External.Api.UpdateDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update updates 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.ApplicationServer.External.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 updates 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.ApplicationServer.External.Api.UpdateDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete deletes the device-profile matching 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.ApplicationServer.External.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 deletes the device-profile matching 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.ApplicationServer.External.Api.DeleteDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete deletes the device-profile matching 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.ApplicationServer.External.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 deletes the device-profile matching 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.ApplicationServer.External.Api.DeleteDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// List lists 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.ApplicationServer.External.Api.ListDeviceProfileResponse List(global::Chirpstack.ApplicationServer.External.Api.ListDeviceProfileRequest 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 lists 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.ApplicationServer.External.Api.ListDeviceProfileResponse List(global::Chirpstack.ApplicationServer.External.Api.ListDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// List lists 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.ApplicationServer.External.Api.ListDeviceProfileRequest 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 lists 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.ApplicationServer.External.Api.ListDeviceProfileRequest 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 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).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)); + } + + } +} +#endregion diff --git a/csharp/protobuf/as/external/api/DeviceQueue.cs b/csharp/protobuf/as/external/api/DeviceQueue.cs new file mode 100644 index 00000000..bbc0b31d --- /dev/null +++ b/csharp/protobuf/as/external/api/DeviceQueue.cs @@ -0,0 +1,1507 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/deviceQueue.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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/deviceQueue.proto + public static partial class DeviceQueueReflection { + + #region Descriptor + /// File descriptor for as/external/api/deviceQueue.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DeviceQueueReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFhcy9leHRlcm5hbC9hcGkvZGV2aWNlUXVldWUucHJvdG8SA2FwaRocZ29v", + "Z2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2Vt", + "cHR5LnByb3RvIn8KD0RldmljZVF1ZXVlSXRlbRIXCgdkZXZfZXVpGAEgASgJ", + "UgZkZXZFVUkSEQoJY29uZmlybWVkGAIgASgIEg0KBWZfY250GAYgASgNEg4K", + "BmZfcG9ydBgDIAEoDRIMCgRkYXRhGAQgASgMEhMKC2pzb25fb2JqZWN0GAUg", + "ASgJIlAKHUVucXVldWVEZXZpY2VRdWV1ZUl0ZW1SZXF1ZXN0Ei8KEWRldmlj", + "ZV9xdWV1ZV9pdGVtGAEgASgLMhQuYXBpLkRldmljZVF1ZXVlSXRlbSIvCh5F", + "bnF1ZXVlRGV2aWNlUXVldWVJdGVtUmVzcG9uc2USDQoFZl9jbnQYASABKA0i", + "MgoXRmx1c2hEZXZpY2VRdWV1ZVJlcXVlc3QSFwoHZGV2X2V1aRgBIAEoCVIG", + "ZGV2RVVJIkoKG0xpc3REZXZpY2VRdWV1ZUl0ZW1zUmVxdWVzdBIXCgdkZXZf", + "ZXVpGAEgASgJUgZkZXZFVUkSEgoKY291bnRfb25seRgCIAEoCCJlChxMaXN0", + "RGV2aWNlUXVldWVJdGVtc1Jlc3BvbnNlEjAKEmRldmljZV9xdWV1ZV9pdGVt", + "cxgBIAMoCzIULmFwaS5EZXZpY2VRdWV1ZUl0ZW0SEwoLdG90YWxfY291bnQY", + "AiABKA0y/AIKEkRldmljZVF1ZXVlU2VydmljZRKNAQoHRW5xdWV1ZRIiLmFw", + "aS5FbnF1ZXVlRGV2aWNlUXVldWVJdGVtUmVxdWVzdBojLmFwaS5FbnF1ZXVl", + "RGV2aWNlUXVldWVJdGVtUmVzcG9uc2UiOYLT5JMCMyIuL2FwaS9kZXZpY2Vz", + "L3tkZXZpY2VfcXVldWVfaXRlbS5kZXZfZXVpfS9xdWV1ZToBKhJjCgVGbHVz", + "aBIcLmFwaS5GbHVzaERldmljZVF1ZXVlUmVxdWVzdBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIkgtPkkwIeKhwvYXBpL2RldmljZXMve2Rldl9ldWl9L3F1", + "ZXVlEnEKBExpc3QSIC5hcGkuTGlzdERldmljZVF1ZXVlSXRlbXNSZXF1ZXN0", + "GiEuYXBpLkxpc3REZXZpY2VRdWV1ZUl0ZW1zUmVzcG9uc2UiJILT5JMCHhIc", + "L2FwaS9kZXZpY2VzL3tkZXZfZXVpfS9xdWV1ZUKcAQohaW8uY2hpcnBzdGFj", + "ay5hcGkuYXMuZXh0ZXJuYWwuYXBpQhBEZXZpY2VRdWV1ZVByb3RvUAFaN2dp", + "dGh1Yi5jb20vYnJvY2Fhci9jaGlycHN0YWNrLWFwaS9nby92My9hcy9leHRl", + "cm5hbC9hcGmqAilDaGlycHN0YWNrLkFwcGxpY2F0aW9uU2VydmVyLkV4dGVy", + "bmFsLkFwaWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeviceQueueItem), global::Chirpstack.ApplicationServer.External.Api.DeviceQueueItem.Parser, new[]{ "DevEui", "Confirmed", "FCnt", "FPort", "Data", "JsonObject" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.EnqueueDeviceQueueItemRequest), global::Chirpstack.ApplicationServer.External.Api.EnqueueDeviceQueueItemRequest.Parser, new[]{ "DeviceQueueItem" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.EnqueueDeviceQueueItemResponse), global::Chirpstack.ApplicationServer.External.Api.EnqueueDeviceQueueItemResponse.Parser, new[]{ "FCnt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.FlushDeviceQueueRequest), global::Chirpstack.ApplicationServer.External.Api.FlushDeviceQueueRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListDeviceQueueItemsRequest), global::Chirpstack.ApplicationServer.External.Api.ListDeviceQueueItemsRequest.Parser, new[]{ "DevEui", "CountOnly" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListDeviceQueueItemsResponse), global::Chirpstack.ApplicationServer.External.Api.ListDeviceQueueItemsResponse.Parser, new[]{ "DeviceQueueItems", "TotalCount" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + 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.ApplicationServer.External.Api.DeviceQueueReflection.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 DeviceQueueItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceQueueItem(DeviceQueueItem other) : this() { + devEui_ = other.devEui_; + confirmed_ = other.confirmed_; + fCnt_ = other.fCnt_; + fPort_ = other.fPort_; + data_ = other.data_; + jsonObject_ = other.jsonObject_; + _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 "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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"); + } + } + + /// Field number for the "confirmed" field. + public const int ConfirmedFieldNumber = 2; + private bool confirmed_; + /// + /// Set this to true when an acknowledgement from the device is required. + /// Please note that this must not be used to guarantee a delivery. + /// + [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_cnt" field. + public const int FCntFieldNumber = 6; + private uint fCnt_; + /// + /// Downlink frame-counter. + /// This will be automatically set on enquue. + /// + [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 used (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; + /// + /// Base64 encoded data. + /// Or use the json_object field when an application 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 "json_object" field. + public const int JsonObjectFieldNumber = 5; + private string jsonObject_ = ""; + /// + /// JSON object (string). + /// Only use this when an application codec has been configured that can convert + /// this object into binary form. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string JsonObject { + get { return jsonObject_; } + set { + jsonObject_ = 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 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 (DevEui != other.DevEui) return false; + if (Confirmed != other.Confirmed) return false; + if (FCnt != other.FCnt) return false; + if (FPort != other.FPort) return false; + if (Data != other.Data) return false; + if (JsonObject != other.JsonObject) return false; + 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 (Confirmed != false) hash ^= Confirmed.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.GetHashCode(); + if (FPort != 0) hash ^= FPort.GetHashCode(); + if (Data.Length != 0) hash ^= Data.GetHashCode(); + if (JsonObject.Length != 0) hash ^= JsonObject.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Confirmed != false) { + output.WriteRawTag(16); + output.WriteBool(Confirmed); + } + if (FPort != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FPort); + } + if (Data.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(Data); + } + if (JsonObject.Length != 0) { + output.WriteRawTag(42); + output.WriteString(JsonObject); + } + if (FCnt != 0) { + output.WriteRawTag(48); + 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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DevEui); + } + if (Confirmed != false) { + output.WriteRawTag(16); + output.WriteBool(Confirmed); + } + if (FPort != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FPort); + } + if (Data.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(Data); + } + if (JsonObject.Length != 0) { + output.WriteRawTag(42); + output.WriteString(JsonObject); + } + if (FCnt != 0) { + output.WriteRawTag(48); + 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 (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); + } + if (Confirmed != false) { + size += 1 + 1; + } + 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 (JsonObject.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonObject); + } + 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.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.Confirmed != false) { + Confirmed = other.Confirmed; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + if (other.FPort != 0) { + FPort = other.FPort; + } + if (other.Data.Length != 0) { + Data = other.Data; + } + if (other.JsonObject.Length != 0) { + JsonObject = other.JsonObject; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + Confirmed = input.ReadBool(); + break; + } + case 24: { + FPort = input.ReadUInt32(); + break; + } + case 34: { + Data = input.ReadBytes(); + break; + } + case 42: { + JsonObject = input.ReadString(); + break; + } + case 48: { + 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 10: { + DevEui = input.ReadString(); + break; + } + case 16: { + Confirmed = input.ReadBool(); + break; + } + case 24: { + FPort = input.ReadUInt32(); + break; + } + case 34: { + Data = input.ReadBytes(); + break; + } + case 42: { + JsonObject = input.ReadString(); + break; + } + case 48: { + FCnt = 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.ApplicationServer.External.Api.DeviceQueueReflection.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 EnqueueDeviceQueueItemRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueDeviceQueueItemRequest(EnqueueDeviceQueueItemRequest other) : this() { + deviceQueueItem_ = other.deviceQueueItem_ != null ? other.deviceQueueItem_.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 "device_queue_item" field. + public const int DeviceQueueItemFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.DeviceQueueItem deviceQueueItem_; + /// + /// Queue-item object to enqueue. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.DeviceQueueItem DeviceQueueItem { + get { return deviceQueueItem_; } + set { + deviceQueueItem_ = 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(DeviceQueueItem, other.DeviceQueueItem)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (deviceQueueItem_ != null) hash ^= DeviceQueueItem.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (deviceQueueItem_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceQueueItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (deviceQueueItem_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeviceQueueItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (deviceQueueItem_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceQueueItem); + } + 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.deviceQueueItem_ != null) { + if (deviceQueueItem_ == null) { + DeviceQueueItem = new global::Chirpstack.ApplicationServer.External.Api.DeviceQueueItem(); + } + DeviceQueueItem.MergeFrom(other.DeviceQueueItem); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (deviceQueueItem_ == null) { + DeviceQueueItem = new global::Chirpstack.ApplicationServer.External.Api.DeviceQueueItem(); + } + input.ReadMessage(DeviceQueueItem); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (deviceQueueItem_ == null) { + DeviceQueueItem = new global::Chirpstack.ApplicationServer.External.Api.DeviceQueueItem(); + } + input.ReadMessage(DeviceQueueItem); + 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.ApplicationServer.External.Api.DeviceQueueReflection.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 EnqueueDeviceQueueItemResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueDeviceQueueItemResponse(EnqueueDeviceQueueItemResponse other) : this() { + fCnt_ = other.fCnt_; + _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 "f_cnt" field. + public const int FCntFieldNumber = 1; + private uint fCnt_; + /// + /// Frame-counter for 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 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 (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(EnqueueDeviceQueueItemResponse 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 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.ApplicationServer.External.Api.DeviceQueueReflection.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 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 (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 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 ListDeviceQueueItemsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceQueueItemsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.DeviceQueueReflection.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 ListDeviceQueueItemsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceQueueItemsRequest(ListDeviceQueueItemsRequest 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 ListDeviceQueueItemsRequest Clone() { + return new ListDeviceQueueItemsRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + 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"); + } + } + + /// 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 ListDeviceQueueItemsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDeviceQueueItemsRequest 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(ListDeviceQueueItemsRequest 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 ListDeviceQueueItemsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceQueueItemsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.DeviceQueueReflection.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 ListDeviceQueueItemsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceQueueItemsResponse(ListDeviceQueueItemsResponse other) : this() { + deviceQueueItems_ = other.deviceQueueItems_.Clone(); + totalCount_ = other.totalCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDeviceQueueItemsResponse Clone() { + return new ListDeviceQueueItemsResponse(this); + } + + /// Field number for the "device_queue_items" field. + public const int DeviceQueueItemsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_deviceQueueItems_codec + = pb::FieldCodec.ForMessage(10, global::Chirpstack.ApplicationServer.External.Api.DeviceQueueItem.Parser); + private readonly pbc::RepeatedField deviceQueueItems_ = new pbc::RepeatedField(); + /// + /// The device queue items. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DeviceQueueItems { + get { return deviceQueueItems_; } + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 2; + private uint totalCount_; + /// + /// Total number of items in the queue. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListDeviceQueueItemsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDeviceQueueItemsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!deviceQueueItems_.Equals(other.deviceQueueItems_)) return false; + if (TotalCount != other.TotalCount) return 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 ^= deviceQueueItems_.GetHashCode(); + if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + deviceQueueItems_.WriteTo(output, _repeated_deviceQueueItems_codec); + if (TotalCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(TotalCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + deviceQueueItems_.WriteTo(ref output, _repeated_deviceQueueItems_codec); + if (TotalCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(TotalCount); + } + if (_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 += deviceQueueItems_.CalculateSize(_repeated_deviceQueueItems_codec); + if (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDeviceQueueItemsResponse other) { + if (other == null) { + return; + } + deviceQueueItems_.Add(other.deviceQueueItems_); + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + deviceQueueItems_.AddEntriesFrom(input, _repeated_deviceQueueItems_codec); + break; + } + case 16: { + TotalCount = 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: { + deviceQueueItems_.AddEntriesFrom(ref input, _repeated_deviceQueueItems_codec); + break; + } + case 16: { + TotalCount = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/as/external/api/DeviceQueueGrpc.cs b/csharp/protobuf/as/external/api/DeviceQueueGrpc.cs new file mode 100644 index 00000000..c5ff4fe2 --- /dev/null +++ b/csharp/protobuf/as/external/api/DeviceQueueGrpc.cs @@ -0,0 +1,340 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/deviceQueue.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer.External.Api { + /// + /// DeviceQueueService is the service managing the downlink data queue. + /// + public static partial class DeviceQueueService + { + static readonly string __ServiceName = "api.DeviceQueueService"; + + [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_EnqueueDeviceQueueItemRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.FlushDeviceQueueRequest.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_ListDeviceQueueItemsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListDeviceQueueItemsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListDeviceQueueItemsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListDeviceQueueItemsResponse.Parser)); + + [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_Flush = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Flush", + __Marshaller_api_FlushDeviceQueueRequest, + __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_ListDeviceQueueItemsRequest, + __Marshaller_api_ListDeviceQueueItemsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.ApplicationServer.External.Api.DeviceQueueReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of DeviceQueueService + [grpc::BindServiceMethod(typeof(DeviceQueueService), "BindService")] + public abstract partial class DeviceQueueServiceBase + { + /// + /// Enqueue adds the given item to the 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 Enqueue(global::Chirpstack.ApplicationServer.External.Api.EnqueueDeviceQueueItemRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Flush 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 Flush(global::Chirpstack.ApplicationServer.External.Api.FlushDeviceQueueRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List lists the items in the 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 List(global::Chirpstack.ApplicationServer.External.Api.ListDeviceQueueItemsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for DeviceQueueService + public partial class DeviceQueueServiceClient : grpc::ClientBase + { + /// Creates a new client for DeviceQueueService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DeviceQueueServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for DeviceQueueService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DeviceQueueServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DeviceQueueServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DeviceQueueServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Enqueue adds the given item to the 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.ApplicationServer.External.Api.EnqueueDeviceQueueItemResponse Enqueue(global::Chirpstack.ApplicationServer.External.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 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.ApplicationServer.External.Api.EnqueueDeviceQueueItemResponse Enqueue(global::Chirpstack.ApplicationServer.External.Api.EnqueueDeviceQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Enqueue, null, options, request); + } + /// + /// Enqueue adds the given item to the 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 EnqueueAsync(global::Chirpstack.ApplicationServer.External.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 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 EnqueueAsync(global::Chirpstack.ApplicationServer.External.Api.EnqueueDeviceQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Enqueue, null, options, request); + } + /// + /// Flush 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 Flush(global::Chirpstack.ApplicationServer.External.Api.FlushDeviceQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Flush(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Flush 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 Flush(global::Chirpstack.ApplicationServer.External.Api.FlushDeviceQueueRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Flush, null, options, request); + } + /// + /// Flush 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 FlushAsync(global::Chirpstack.ApplicationServer.External.Api.FlushDeviceQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FlushAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Flush 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 FlushAsync(global::Chirpstack.ApplicationServer.External.Api.FlushDeviceQueueRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Flush, null, options, request); + } + /// + /// List lists the items in the 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.ApplicationServer.External.Api.ListDeviceQueueItemsResponse List(global::Chirpstack.ApplicationServer.External.Api.ListDeviceQueueItemsRequest 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 lists the items in the 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.ApplicationServer.External.Api.ListDeviceQueueItemsResponse List(global::Chirpstack.ApplicationServer.External.Api.ListDeviceQueueItemsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// List lists the items in the 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 ListAsync(global::Chirpstack.ApplicationServer.External.Api.ListDeviceQueueItemsRequest 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 lists the items in the 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 ListAsync(global::Chirpstack.ApplicationServer.External.Api.ListDeviceQueueItemsRequest 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 DeviceQueueServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new DeviceQueueServiceClient(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(DeviceQueueServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_Enqueue, serviceImpl.Enqueue) + .AddMethod(__Method_Flush, serviceImpl.Flush) + .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, DeviceQueueServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_Enqueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Enqueue)); + serviceBinder.AddMethod(__Method_Flush, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Flush)); + serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); + } + + } +} +#endregion diff --git a/csharp/protobuf/as/external/api/FrameLog.cs b/csharp/protobuf/as/external/api/FrameLog.cs new file mode 100644 index 00000000..c58836c3 --- /dev/null +++ b/csharp/protobuf/as/external/api/FrameLog.cs @@ -0,0 +1,715 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/frameLog.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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/frameLog.proto + public static partial class FrameLogReflection { + + #region Descriptor + /// File descriptor for as/external/api/frameLog.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FrameLogReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5hcy9leHRlcm5hbC9hcGkvZnJhbWVMb2cucHJvdG8SA2FwaRofZ29vZ2xl", + "L3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL2R1", + "cmF0aW9uLnByb3RvGhNjb21tb24vY29tbW9uLnByb3RvGgtndy9ndy5wcm90", + "byKyAQoOVXBsaW5rRnJhbWVMb2cSIQoHdHhfaW5mbxgBIAEoCzIQLmd3LlVw", + "bGlua1RYSW5mbxIhCgdyeF9pbmZvGAIgAygLMhAuZ3cuVXBsaW5rUlhJbmZv", + "EigKEHBoeV9wYXlsb2FkX2pzb24YAyABKAlSDnBoeVBheWxvYWRKU09OEjAK", + "DHB1Ymxpc2hlZF9hdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", + "bXAisgEKEERvd25saW5rRnJhbWVMb2cSIwoHdHhfaW5mbxgBIAEoCzISLmd3", + "LkRvd25saW5rVFhJbmZvEigKEHBoeV9wYXlsb2FkX2pzb24YAiABKAlSDnBo", + "eVBheWxvYWRKU09OEh0KCmdhdGV3YXlfaWQYAyABKAlSCWdhdGV3YXlJRBIw", + "CgxwdWJsaXNoZWRfYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", + "YW1wKhwKCFJYV2luZG93EgcKA1JYMRAAEgcKA1JYMhABQpkBCiFpby5jaGly", + "cHN0YWNrLmFwaS5hcy5leHRlcm5hbC5hcGlCDUZyYW1lTG9nUHJvdG9QAVo3", + "Z2l0aHViLmNvbS9icm9jYWFyL2NoaXJwc3RhY2stYXBpL2dvL3YzL2FzL2V4", + "dGVybmFsL2FwaaoCKUNoaXJwc3RhY2suQXBwbGljYXRpb25TZXJ2ZXIuRXh0", + "ZXJuYWwuQXBpYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.ApplicationServer.External.Api.RXWindow), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UplinkFrameLog), global::Chirpstack.ApplicationServer.External.Api.UplinkFrameLog.Parser, new[]{ "TxInfo", "RxInfo", "PhyPayloadJson", "PublishedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog), global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog.Parser, new[]{ "TxInfo", "PhyPayloadJson", "GatewayId", "PublishedAt" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum RXWindow { + [pbr::OriginalName("RX1")] Rx1 = 0, + [pbr::OriginalName("RX2")] Rx2 = 1, + } + + #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.ApplicationServer.External.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() { + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + rxInfo_ = other.rxInfo_.Clone(); + phyPayloadJson_ = other.phyPayloadJson_; + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.Clone() : null; + _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 "tx_info" field. + public const int TxInfoFieldNumber = 1; + private global::Chirpstack.Gateway.UplinkTXInfo txInfo_; + /// + /// TX information of the uplink. + /// + [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 = 2; + private static readonly pb::FieldCodec _repeated_rxInfo_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Gateway.UplinkRXInfo.Parser); + private readonly pbc::RepeatedField rxInfo_ = new pbc::RepeatedField(); + /// + /// RX information of the uplink. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RxInfo { + get { return rxInfo_; } + } + + /// Field number for the "phy_payload_json" field. + public const int PhyPayloadJsonFieldNumber = 3; + private string phyPayloadJson_ = ""; + /// + /// LoRaWAN PHYPayload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PhyPayloadJson { + get { return phyPayloadJson_; } + set { + phyPayloadJson_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "published_at" field. + public const int PublishedAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = 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 (!object.Equals(TxInfo, other.TxInfo)) return false; + if(!rxInfo_.Equals(other.rxInfo_)) return false; + if (PhyPayloadJson != other.PhyPayloadJson) return false; + if (!object.Equals(PublishedAt, other.PublishedAt)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); + hash ^= rxInfo_.GetHashCode(); + if (PhyPayloadJson.Length != 0) hash ^= PhyPayloadJson.GetHashCode(); + if (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (txInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TxInfo); + } + rxInfo_.WriteTo(output, _repeated_rxInfo_codec); + if (PhyPayloadJson.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PhyPayloadJson); + } + if (publishedAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (txInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TxInfo); + } + rxInfo_.WriteTo(ref output, _repeated_rxInfo_codec); + if (PhyPayloadJson.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PhyPayloadJson); + } + if (publishedAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + size += rxInfo_.CalculateSize(_repeated_rxInfo_codec); + if (PhyPayloadJson.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PhyPayloadJson); + } + if (publishedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + 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.txInfo_ != null) { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + TxInfo.MergeFrom(other.TxInfo); + } + rxInfo_.Add(other.rxInfo_); + if (other.PhyPayloadJson.Length != 0) { + PhyPayloadJson = other.PhyPayloadJson; + } + if (other.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 18: { + rxInfo_.AddEntriesFrom(input, _repeated_rxInfo_codec); + break; + } + case 26: { + PhyPayloadJson = input.ReadString(); + break; + } + case 34: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 18: { + rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); + break; + } + case 26: { + PhyPayloadJson = input.ReadString(); + break; + } + case 34: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + 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.ApplicationServer.External.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() { + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + phyPayloadJson_ = other.phyPayloadJson_; + gatewayId_ = other.gatewayId_; + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.Clone() : null; + _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 "tx_info" field. + public const int TxInfoFieldNumber = 1; + private global::Chirpstack.Gateway.DownlinkTXInfo txInfo_; + /// + /// TX information of the downlink. + /// + [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_json" field. + public const int PhyPayloadJsonFieldNumber = 2; + private string phyPayloadJson_ = ""; + /// + /// LoRaWAN PHYPayload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PhyPayloadJson { + get { return phyPayloadJson_; } + set { + phyPayloadJson_ = 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 "published_at" field. + public const int PublishedAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = 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(TxInfo, other.TxInfo)) return false; + if (PhyPayloadJson != other.PhyPayloadJson) return false; + if (GatewayId != other.GatewayId) return false; + if (!object.Equals(PublishedAt, other.PublishedAt)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); + if (PhyPayloadJson.Length != 0) hash ^= PhyPayloadJson.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (txInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TxInfo); + } + if (PhyPayloadJson.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PhyPayloadJson); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GatewayId); + } + if (publishedAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (txInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TxInfo); + } + if (PhyPayloadJson.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PhyPayloadJson); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GatewayId); + } + if (publishedAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + if (PhyPayloadJson.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PhyPayloadJson); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); + } + if (publishedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + 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.txInfo_ != null) { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTXInfo(); + } + TxInfo.MergeFrom(other.TxInfo); + } + if (other.PhyPayloadJson.Length != 0) { + PhyPayloadJson = other.PhyPayloadJson; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 18: { + PhyPayloadJson = input.ReadString(); + break; + } + case 26: { + GatewayId = input.ReadString(); + break; + } + case 34: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 18: { + PhyPayloadJson = input.ReadString(); + break; + } + case 26: { + GatewayId = input.ReadString(); + break; + } + case 34: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/as/external/api/Gateway.cs b/csharp/protobuf/as/external/api/Gateway.cs new file mode 100644 index 00000000..addcdd02 --- /dev/null +++ b/csharp/protobuf/as/external/api/Gateway.cs @@ -0,0 +1,6271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/gateway.proto + public static partial class GatewayReflection { + + #region Descriptor + /// File descriptor for as/external/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( + "Ch1hcy9leHRlcm5hbC9hcGkvZ2F0ZXdheS5wcm90bxIDYXBpGhxnb29nbGUv", + "YXBpL2Fubm90YXRpb25zLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0", + "YW1wLnByb3RvGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8aE2NvbW1v", + "bi9jb21tb24ucHJvdG8aHmFzL2V4dGVybmFsL2FwaS9mcmFtZUxvZy5wcm90", + "byL9AwoHR2F0ZXdheRIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEhMKC2Rl", + "c2NyaXB0aW9uGAMgASgJEiIKCGxvY2F0aW9uGAQgASgLMhAuY29tbW9uLkxv", + "Y2F0aW9uEicKD29yZ2FuaXphdGlvbl9pZBgFIAEoA1IOb3JnYW5pemF0aW9u", + "SUQSGQoRZGlzY292ZXJ5X2VuYWJsZWQYBiABKAgSKgoRbmV0d29ya19zZXJ2", + "ZXJfaWQYByABKANSD25ldHdvcmtTZXJ2ZXJJRBIsChJnYXRld2F5X3Byb2Zp", + "bGVfaWQYCCABKAlSEGdhdGV3YXlQcm9maWxlSUQSIQoGYm9hcmRzGAkgAygL", + "MhEuYXBpLkdhdGV3YXlCb2FyZBIkCgR0YWdzGAogAygLMhYuYXBpLkdhdGV3", + "YXkuVGFnc0VudHJ5EiwKCG1ldGFkYXRhGAsgAygLMhouYXBpLkdhdGV3YXku", + "TWV0YWRhdGFFbnRyeRIsChJzZXJ2aWNlX3Byb2ZpbGVfaWQYDCABKAlSEHNl", + "cnZpY2VQcm9maWxlSUQaKwoJVGFnc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2", + "YWx1ZRgCIAEoCToCOAEaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkS", + "DQoFdmFsdWUYAiABKAk6AjgBIkMKDEdhdGV3YXlCb2FyZBIXCgdmcGdhX2lk", + "GAEgASgJUgZmcGdhSUQSGgoSZmluZV90aW1lc3RhbXBfa2V5GAIgASgJIjUK", + "FENyZWF0ZUdhdGV3YXlSZXF1ZXN0Eh0KB2dhdGV3YXkYASABKAsyDC5hcGku", + "R2F0ZXdheSIfChFHZXRHYXRld2F5UmVxdWVzdBIKCgJpZBgBIAEoCSL4AQoS", + "R2V0R2F0ZXdheVJlc3BvbnNlEh0KB2dhdGV3YXkYASABKAsyDC5hcGkuR2F0", + "ZXdheRIuCgpjcmVhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRp", + "bWVzdGFtcBIuCgp1cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LlRpbWVzdGFtcBIxCg1maXJzdF9zZWVuX2F0GAQgASgLMhouZ29vZ2xlLnBy", + "b3RvYnVmLlRpbWVzdGFtcBIwCgxsYXN0X3NlZW5fYXQYBSABKAsyGi5nb29n", + "bGUucHJvdG9idWYuVGltZXN0YW1wIiIKFERlbGV0ZUdhdGV3YXlSZXF1ZXN0", + "EgoKAmlkGAEgASgJIj0KJ0dlbmVyYXRlR2F0ZXdheUNsaWVudENlcnRpZmlj", + "YXRlUmVxdWVzdBISCgpnYXRld2F5X2lkGAEgASgJIo4BCihHZW5lcmF0ZUdh", + "dGV3YXlDbGllbnRDZXJ0aWZpY2F0ZVJlc3BvbnNlEhAKCHRsc19jZXJ0GAEg", + "ASgJEg8KB3Rsc19rZXkYAiABKAkSDwoHY2FfY2VydBgDIAEoCRIuCgpleHBp", + "cmVzX2F0GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCJsChJM", + "aXN0R2F0ZXdheVJlcXVlc3QSDQoFbGltaXQYASABKAUSDgoGb2Zmc2V0GAIg", + "ASgFEicKD29yZ2FuaXphdGlvbl9pZBgDIAEoA1IOb3JnYW5pemF0aW9uSUQS", + "DgoGc2VhcmNoGAQgASgJIpsDCg9HYXRld2F5TGlzdEl0ZW0SCgoCaWQYASAB", + "KAkSDAoEbmFtZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRIuCgpjcmVh", + "dGVkX2F0GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1", + "cGRhdGVkX2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIx", + "Cg1maXJzdF9zZWVuX2F0GAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", + "dGFtcBIwCgxsYXN0X3NlZW5fYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wEicKD29yZ2FuaXphdGlvbl9pZBgGIAEoA1IOb3JnYW5pemF0", + "aW9uSUQSKgoRbmV0d29ya19zZXJ2ZXJfaWQYByABKANSD25ldHdvcmtTZXJ2", + "ZXJJRBIiCghsb2NhdGlvbhgKIAEoCzIQLmNvbW1vbi5Mb2NhdGlvbhIbChNu", + "ZXR3b3JrX3NlcnZlcl9uYW1lGAsgASgJIlAKE0xpc3RHYXRld2F5UmVzcG9u", + "c2USEwoLdG90YWxfY291bnQYASABKAMSJAoGcmVzdWx0GAIgAygLMhQuYXBp", + "LkdhdGV3YXlMaXN0SXRlbSI1ChRVcGRhdGVHYXRld2F5UmVxdWVzdBIdCgdn", + "YXRld2F5GAEgASgLMgwuYXBpLkdhdGV3YXki2wYKDEdhdGV3YXlTdGF0cxIt", + "Cgl0aW1lc3RhbXAYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "EhsKE3J4X3BhY2tldHNfcmVjZWl2ZWQYAiABKAUSMwoWcnhfcGFja2V0c19y", + "ZWNlaXZlZF9vaxgDIAEoBVITcnhQYWNrZXRzUmVjZWl2ZWRPSxIbChN0eF9w", + "YWNrZXRzX3JlY2VpdmVkGAQgASgFEhoKEnR4X3BhY2tldHNfZW1pdHRlZBgF", + "IAEoBRJOChh0eF9wYWNrZXRzX3Blcl9mcmVxdWVuY3kYBiADKAsyLC5hcGku", + "R2F0ZXdheVN0YXRzLlR4UGFja2V0c1BlckZyZXF1ZW5jeUVudHJ5Ek4KGHJ4", + "X3BhY2tldHNfcGVyX2ZyZXF1ZW5jeRgHIAMoCzIsLmFwaS5HYXRld2F5U3Rh", + "dHMuUnhQYWNrZXRzUGVyRnJlcXVlbmN5RW50cnkSQAoRdHhfcGFja2V0c19w", + "ZXJfZHIYCCADKAsyJS5hcGkuR2F0ZXdheVN0YXRzLlR4UGFja2V0c1BlckRy", + "RW50cnkSQAoRcnhfcGFja2V0c19wZXJfZHIYCSADKAsyJS5hcGkuR2F0ZXdh", + "eVN0YXRzLlJ4UGFja2V0c1BlckRyRW50cnkSSAoVdHhfcGFja2V0c19wZXJf", + "c3RhdHVzGAogAygLMikuYXBpLkdhdGV3YXlTdGF0cy5UeFBhY2tldHNQZXJT", + "dGF0dXNFbnRyeRo8ChpUeFBhY2tldHNQZXJGcmVxdWVuY3lFbnRyeRILCgNr", + "ZXkYASABKA0SDQoFdmFsdWUYAiABKA06AjgBGjwKGlJ4UGFja2V0c1BlckZy", + "ZXF1ZW5jeUVudHJ5EgsKA2tleRgBIAEoDRINCgV2YWx1ZRgCIAEoDToCOAEa", + "NQoTVHhQYWNrZXRzUGVyRHJFbnRyeRILCgNrZXkYASABKA0SDQoFdmFsdWUY", + "AiABKA06AjgBGjUKE1J4UGFja2V0c1BlckRyRW50cnkSCwoDa2V5GAEgASgN", + "Eg0KBXZhbHVlGAIgASgNOgI4ARo5ChdUeFBhY2tldHNQZXJTdGF0dXNFbnRy", + "eRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKA06AjgBIrEBChZHZXRHYXRl", + "d2F5U3RhdHNSZXF1ZXN0Eh0KCmdhdGV3YXlfaWQYASABKAlSCWdhdGV3YXlJ", + "RBIQCghpbnRlcnZhbBgCIAEoCRIzCg9zdGFydF90aW1lc3RhbXAYAyABKAsy", + "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjEKDWVuZF90aW1lc3RhbXAY", + "BCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIjwKF0dldEdhdGV3", + "YXlTdGF0c1Jlc3BvbnNlEiEKBnJlc3VsdBgBIAMoCzIRLmFwaS5HYXRld2F5", + "U3RhdHMihwEKBlBpbmdSWBIdCgpnYXRld2F5X2lkGAEgASgJUglnYXRld2F5", + "SUQSDAoEcnNzaRgCIAEoBRIZCghsb3JhX3NuchgDIAEoAVIHbG9SYVNOUhIQ", + "CghsYXRpdHVkZRgEIAEoARIRCglsb25naXR1ZGUYBSABKAESEAoIYWx0aXR1", + "ZGUYBiABKAEiMwoSR2V0TGFzdFBpbmdSZXF1ZXN0Eh0KCmdhdGV3YXlfaWQY", + "ASABKAlSCWdhdGV3YXlJRCKKAQoTR2V0TGFzdFBpbmdSZXNwb25zZRIuCgpj", + "cmVhdGVkX2F0GAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIR", + "CglmcmVxdWVuY3kYAiABKA0SCgoCZHIYAyABKA0SJAoHcGluZ19yeBgEIAMo", + "CzILLmFwaS5QaW5nUlhSBnBpbmdSWCI+Ch1TdHJlYW1HYXRld2F5RnJhbWVM", + "b2dzUmVxdWVzdBIdCgpnYXRld2F5X2lkGAEgASgJUglnYXRld2F5SUQihwEK", + "HlN0cmVhbUdhdGV3YXlGcmFtZUxvZ3NSZXNwb25zZRIrCgx1cGxpbmtfZnJh", + "bWUYASABKAsyEy5hcGkuVXBsaW5rRnJhbWVMb2dIABIvCg5kb3dubGlua19m", + "cmFtZRgCIAEoCzIVLmFwaS5Eb3dubGlua0ZyYW1lTG9nSABCBwoFZnJhbWUy", + "8QcKDkdhdGV3YXlTZXJ2aWNlElUKBkNyZWF0ZRIZLmFwaS5DcmVhdGVHYXRl", + "d2F5UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIYgtPkkwISIg0v", + "YXBpL2dhdGV3YXlzOgEqElIKA0dldBIWLmFwaS5HZXRHYXRld2F5UmVxdWVz", + "dBoXLmFwaS5HZXRHYXRld2F5UmVzcG9uc2UiGoLT5JMCFBISL2FwaS9nYXRl", + "d2F5cy97aWR9EmIKBlVwZGF0ZRIZLmFwaS5VcGRhdGVHYXRld2F5UmVxdWVz", + "dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIlgtPkkwIfGhovYXBpL2dhdGV3", + "YXlzL3tnYXRld2F5LmlkfToBKhJXCgZEZWxldGUSGS5hcGkuRGVsZXRlR2F0", + "ZXdheVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiGoLT5JMCFCoS", + "L2FwaS9nYXRld2F5cy97aWR9ElAKBExpc3QSFy5hcGkuTGlzdEdhdGV3YXlS", + "ZXF1ZXN0GhguYXBpLkxpc3RHYXRld2F5UmVzcG9uc2UiFYLT5JMCDxINL2Fw", + "aS9nYXRld2F5cxJvCghHZXRTdGF0cxIbLmFwaS5HZXRHYXRld2F5U3RhdHNS", + "ZXF1ZXN0GhwuYXBpLkdldEdhdGV3YXlTdGF0c1Jlc3BvbnNlIiiC0+STAiIS", + "IC9hcGkvZ2F0ZXdheXMve2dhdGV3YXlfaWR9L3N0YXRzEm8KC0dldExhc3RQ", + "aW5nEhcuYXBpLkdldExhc3RQaW5nUmVxdWVzdBoYLmFwaS5HZXRMYXN0UGlu", + "Z1Jlc3BvbnNlIi2C0+STAicSJS9hcGkvZ2F0ZXdheXMve2dhdGV3YXlfaWR9", + "L3BpbmdzL2xhc3QSuAEKIEdlbmVyYXRlR2F0ZXdheUNsaWVudENlcnRpZmlj", + "YXRlEiwuYXBpLkdlbmVyYXRlR2F0ZXdheUNsaWVudENlcnRpZmljYXRlUmVx", + "dWVzdBotLmFwaS5HZW5lcmF0ZUdhdGV3YXlDbGllbnRDZXJ0aWZpY2F0ZVJl", + "c3BvbnNlIjeC0+STAjEiLy9hcGkvZ2F0ZXdheXMve2dhdGV3YXlfaWR9L2dl", + "bmVyYXRlLWNlcnRpZmljYXRlEocBCg9TdHJlYW1GcmFtZUxvZ3MSIi5hcGku", + "U3RyZWFtR2F0ZXdheUZyYW1lTG9nc1JlcXVlc3QaIy5hcGkuU3RyZWFtR2F0", + "ZXdheUZyYW1lTG9nc1Jlc3BvbnNlIimC0+STAiMSIS9hcGkvZ2F0ZXdheXMv", + "e2dhdGV3YXlfaWR9L2ZyYW1lczABQpgBCiFpby5jaGlycHN0YWNrLmFwaS5h", + "cy5leHRlcm5hbC5hcGlCDEdhdGV3YXlQcm90b1ABWjdnaXRodWIuY29tL2Jy", + "b2NhYXIvY2hpcnBzdGFjay1hcGkvZ28vdjMvYXMvZXh0ZXJuYWwvYXBpqgIp", + "Q2hpcnBzdGFjay5BcHBsaWNhdGlvblNlcnZlci5FeHRlcm5hbC5BcGliBnBy", + "b3RvMw==")); + 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.ApplicationServer.External.Api.FrameLogReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.Gateway), global::Chirpstack.ApplicationServer.External.Api.Gateway.Parser, new[]{ "Id", "Name", "Description", "Location", "OrganizationId", "DiscoveryEnabled", "NetworkServerId", "GatewayProfileId", "Boards", "Tags", "Metadata", "ServiceProfileId" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GatewayBoard), global::Chirpstack.ApplicationServer.External.Api.GatewayBoard.Parser, new[]{ "FpgaId", "FineTimestampKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateGatewayRequest), global::Chirpstack.ApplicationServer.External.Api.CreateGatewayRequest.Parser, new[]{ "Gateway" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetGatewayRequest), global::Chirpstack.ApplicationServer.External.Api.GetGatewayRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetGatewayResponse), global::Chirpstack.ApplicationServer.External.Api.GetGatewayResponse.Parser, new[]{ "Gateway", "CreatedAt", "UpdatedAt", "FirstSeenAt", "LastSeenAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteGatewayRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteGatewayRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GenerateGatewayClientCertificateRequest), global::Chirpstack.ApplicationServer.External.Api.GenerateGatewayClientCertificateRequest.Parser, new[]{ "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GenerateGatewayClientCertificateResponse), global::Chirpstack.ApplicationServer.External.Api.GenerateGatewayClientCertificateResponse.Parser, new[]{ "TlsCert", "TlsKey", "CaCert", "ExpiresAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListGatewayRequest), global::Chirpstack.ApplicationServer.External.Api.ListGatewayRequest.Parser, new[]{ "Limit", "Offset", "OrganizationId", "Search" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GatewayListItem), global::Chirpstack.ApplicationServer.External.Api.GatewayListItem.Parser, new[]{ "Id", "Name", "Description", "CreatedAt", "UpdatedAt", "FirstSeenAt", "LastSeenAt", "OrganizationId", "NetworkServerId", "Location", "NetworkServerName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListGatewayResponse), global::Chirpstack.ApplicationServer.External.Api.ListGatewayResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateGatewayRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateGatewayRequest.Parser, new[]{ "Gateway" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GatewayStats), global::Chirpstack.ApplicationServer.External.Api.GatewayStats.Parser, new[]{ "Timestamp", "RxPacketsReceived", "RxPacketsReceivedOk", "TxPacketsReceived", "TxPacketsEmitted", "TxPacketsPerFrequency", "RxPacketsPerFrequency", "TxPacketsPerDr", "RxPacketsPerDr", "TxPacketsPerStatus" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetGatewayStatsRequest), global::Chirpstack.ApplicationServer.External.Api.GetGatewayStatsRequest.Parser, new[]{ "GatewayId", "Interval", "StartTimestamp", "EndTimestamp" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetGatewayStatsResponse), global::Chirpstack.ApplicationServer.External.Api.GetGatewayStatsResponse.Parser, new[]{ "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.PingRX), global::Chirpstack.ApplicationServer.External.Api.PingRX.Parser, new[]{ "GatewayId", "Rssi", "LoraSnr", "Latitude", "Longitude", "Altitude" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetLastPingRequest), global::Chirpstack.ApplicationServer.External.Api.GetLastPingRequest.Parser, new[]{ "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetLastPingResponse), global::Chirpstack.ApplicationServer.External.Api.GetLastPingResponse.Parser, new[]{ "CreatedAt", "Frequency", "Dr", "PingRx" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.StreamGatewayFrameLogsRequest), global::Chirpstack.ApplicationServer.External.Api.StreamGatewayFrameLogsRequest.Parser, new[]{ "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.StreamGatewayFrameLogsResponse), global::Chirpstack.ApplicationServer.External.Api.StreamGatewayFrameLogsResponse.Parser, new[]{ "UplinkFrame", "DownlinkFrame" }, new[]{ "Frame" }, null, null, null) + })); + } + #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.ApplicationServer.External.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() { + id_ = other.id_; + name_ = other.name_; + description_ = other.description_; + location_ = other.location_ != null ? other.location_.Clone() : null; + organizationId_ = other.organizationId_; + discoveryEnabled_ = other.discoveryEnabled_; + networkServerId_ = other.networkServerId_; + gatewayProfileId_ = other.gatewayProfileId_; + boards_ = other.boards_.Clone(); + tags_ = other.tags_.Clone(); + metadata_ = other.metadata_.Clone(); + serviceProfileId_ = other.serviceProfileId_; + _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 "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Gateway ID (HEX encoded). + /// + [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_ = ""; + /// + /// Gateway 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_ = ""; + /// + /// Gateway 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 "organization_id" field. + public const int OrganizationIdFieldNumber = 5; + private long organizationId_; + /// + /// Organization ID to which the gateway belongs. + /// This can't be changed after creating the gateway. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "discovery_enabled" field. + public const int DiscoveryEnabledFieldNumber = 6; + private bool discoveryEnabled_; + /// + /// Set to true to enable gateway discovery. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DiscoveryEnabled { + get { return discoveryEnabled_; } + set { + discoveryEnabled_ = value; + } + } + + /// Field number for the "network_server_id" field. + public const int NetworkServerIdFieldNumber = 7; + private long networkServerId_; + /// + /// Network-server ID on which the gateway is provisioned. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkServerId { + get { return networkServerId_; } + set { + networkServerId_ = value; + } + } + + /// Field number for the "gateway_profile_id" field. + public const int GatewayProfileIdFieldNumber = 8; + private string gatewayProfileId_ = ""; + /// + /// Gateway-profile ID (UUID string, optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GatewayProfileId { + get { return gatewayProfileId_; } + set { + gatewayProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "boards" field. + public const int BoardsFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_boards_codec + = pb::FieldCodec.ForMessage(74, global::Chirpstack.ApplicationServer.External.Api.GatewayBoard.Parser); + private readonly pbc::RepeatedField boards_ = new pbc::RepeatedField(); + /// + /// Gateway boards configuration (optional). + /// This is (currently) only needed when the gateway supports the fine-timestamp + /// and you you would like to add the FPGA ID to the gateway meta-data or would + /// like ChirpStack Network Server to decrypt the fine-timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Boards { + get { return boards_; } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 10; + private static readonly pbc::MapField.Codec _map_tags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 82); + private readonly pbc::MapField tags_ = new pbc::MapField(); + /// + /// Tags (user defined). + /// + [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 = 11; + private static readonly pbc::MapField.Codec _map_metadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 90); + 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 "service_profile_id" field. + public const int ServiceProfileIdFieldNumber = 12; + private string serviceProfileId_ = ""; + /// + /// Service-profile ID (UUID string, optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceProfileId { + get { return serviceProfileId_; } + set { + serviceProfileId_ = 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 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 (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (!object.Equals(Location, other.Location)) return false; + if (OrganizationId != other.OrganizationId) return false; + if (DiscoveryEnabled != other.DiscoveryEnabled) return false; + if (NetworkServerId != other.NetworkServerId) return false; + if (GatewayProfileId != other.GatewayProfileId) return false; + if(!boards_.Equals(other.boards_)) return false; + if (!Tags.Equals(other.Tags)) return false; + if (!Metadata.Equals(other.Metadata)) return false; + if (ServiceProfileId != other.ServiceProfileId) return false; + 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 (location_ != null) hash ^= Location.GetHashCode(); + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (DiscoveryEnabled != false) hash ^= DiscoveryEnabled.GetHashCode(); + if (NetworkServerId != 0L) hash ^= NetworkServerId.GetHashCode(); + if (GatewayProfileId.Length != 0) hash ^= GatewayProfileId.GetHashCode(); + hash ^= boards_.GetHashCode(); + hash ^= Tags.GetHashCode(); + hash ^= Metadata.GetHashCode(); + if (ServiceProfileId.Length != 0) hash ^= ServiceProfileId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (location_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Location); + } + if (OrganizationId != 0L) { + output.WriteRawTag(40); + output.WriteInt64(OrganizationId); + } + if (DiscoveryEnabled != false) { + output.WriteRawTag(48); + output.WriteBool(DiscoveryEnabled); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(56); + output.WriteInt64(NetworkServerId); + } + if (GatewayProfileId.Length != 0) { + output.WriteRawTag(66); + output.WriteString(GatewayProfileId); + } + boards_.WriteTo(output, _repeated_boards_codec); + tags_.WriteTo(output, _map_tags_codec); + metadata_.WriteTo(output, _map_metadata_codec); + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ServiceProfileId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (location_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Location); + } + if (OrganizationId != 0L) { + output.WriteRawTag(40); + output.WriteInt64(OrganizationId); + } + if (DiscoveryEnabled != false) { + output.WriteRawTag(48); + output.WriteBool(DiscoveryEnabled); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(56); + output.WriteInt64(NetworkServerId); + } + if (GatewayProfileId.Length != 0) { + output.WriteRawTag(66); + output.WriteString(GatewayProfileId); + } + boards_.WriteTo(ref output, _repeated_boards_codec); + tags_.WriteTo(ref output, _map_tags_codec); + metadata_.WriteTo(ref output, _map_metadata_codec); + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ServiceProfileId); + } + if (_unknownFields != 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 (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (DiscoveryEnabled != false) { + size += 1 + 1; + } + if (NetworkServerId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NetworkServerId); + } + if (GatewayProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayProfileId); + } + size += boards_.CalculateSize(_repeated_boards_codec); + size += tags_.CalculateSize(_map_tags_codec); + size += metadata_.CalculateSize(_map_metadata_codec); + if (ServiceProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceProfileId); + } + 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.Id.Length != 0) { + Id = other.Id; + } + 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.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.DiscoveryEnabled != false) { + DiscoveryEnabled = other.DiscoveryEnabled; + } + if (other.NetworkServerId != 0L) { + NetworkServerId = other.NetworkServerId; + } + if (other.GatewayProfileId.Length != 0) { + GatewayProfileId = other.GatewayProfileId; + } + boards_.Add(other.boards_); + tags_.Add(other.tags_); + metadata_.Add(other.metadata_); + if (other.ServiceProfileId.Length != 0) { + ServiceProfileId = other.ServiceProfileId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 40: { + OrganizationId = input.ReadInt64(); + break; + } + case 48: { + DiscoveryEnabled = input.ReadBool(); + break; + } + case 56: { + NetworkServerId = input.ReadInt64(); + break; + } + case 66: { + GatewayProfileId = input.ReadString(); + break; + } + case 74: { + boards_.AddEntriesFrom(input, _repeated_boards_codec); + break; + } + case 82: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 90: { + metadata_.AddEntriesFrom(input, _map_metadata_codec); + break; + } + case 98: { + ServiceProfileId = 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: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 40: { + OrganizationId = input.ReadInt64(); + break; + } + case 48: { + DiscoveryEnabled = input.ReadBool(); + break; + } + case 56: { + NetworkServerId = input.ReadInt64(); + break; + } + case 66: { + GatewayProfileId = input.ReadString(); + break; + } + case 74: { + boards_.AddEntriesFrom(ref input, _repeated_boards_codec); + break; + } + case 82: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 90: { + metadata_.AddEntriesFrom(ref input, _map_metadata_codec); + break; + } + case 98: { + ServiceProfileId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GatewayBoard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayBoard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 GatewayBoard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayBoard(GatewayBoard other) : this() { + fpgaId_ = other.fpgaId_; + fineTimestampKey_ = other.fineTimestampKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayBoard Clone() { + return new GatewayBoard(this); + } + + /// Field number for the "fpga_id" field. + public const int FpgaIdFieldNumber = 1; + private string fpgaId_ = ""; + /// + /// FPGA ID of the gateway (HEX encoded) (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FpgaId { + get { return fpgaId_; } + set { + fpgaId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "fine_timestamp_key" field. + public const int FineTimestampKeyFieldNumber = 2; + private string fineTimestampKey_ = ""; + /// + /// Fine-timestamp AES decryption key (HEX encoded) (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FineTimestampKey { + get { return fineTimestampKey_; } + set { + fineTimestampKey_ = 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 GatewayBoard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayBoard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FpgaId != other.FpgaId) return false; + if (FineTimestampKey != other.FineTimestampKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FpgaId.Length != 0) hash ^= FpgaId.GetHashCode(); + if (FineTimestampKey.Length != 0) hash ^= FineTimestampKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FpgaId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FpgaId); + } + if (FineTimestampKey.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FineTimestampKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FpgaId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FpgaId); + } + if (FineTimestampKey.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FineTimestampKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FpgaId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FpgaId); + } + if (FineTimestampKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FineTimestampKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GatewayBoard other) { + if (other == null) { + return; + } + if (other.FpgaId.Length != 0) { + FpgaId = other.FpgaId; + } + if (other.FineTimestampKey.Length != 0) { + FineTimestampKey = other.FineTimestampKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + FpgaId = input.ReadString(); + break; + } + case 18: { + FineTimestampKey = 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: { + FpgaId = input.ReadString(); + break; + } + case 18: { + FineTimestampKey = input.ReadString(); + 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.ApplicationServer.External.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.ApplicationServer.External.Api.Gateway gateway_; + /// + /// Gateway object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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() { + id_ = other.id_; + _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 "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Gateway ID (HEX encoded). + /// + [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 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 (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(GetGatewayRequest 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 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.ApplicationServer.External.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; + firstSeenAt_ = other.firstSeenAt_ != null ? other.firstSeenAt_.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.ApplicationServer.External.Api.Gateway gateway_; + /// + /// Gateway object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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 "first_seen_at" field. + public const int FirstSeenAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp firstSeenAt_; + /// + /// First seen at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FirstSeenAt { + get { return firstSeenAt_; } + set { + firstSeenAt_ = value; + } + } + + /// Field number for the "last_seen_at" field. + public const int LastSeenAtFieldNumber = 5; + 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(FirstSeenAt, other.FirstSeenAt)) 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 (firstSeenAt_ != null) hash ^= FirstSeenAt.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 (firstSeenAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(FirstSeenAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(42); + 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 (firstSeenAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(FirstSeenAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(42); + 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 (firstSeenAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FirstSeenAt); + } + 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.ApplicationServer.External.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.firstSeenAt_ != null) { + if (firstSeenAt_ == null) { + FirstSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FirstSeenAt.MergeFrom(other.FirstSeenAt); + } + 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.ApplicationServer.External.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 (firstSeenAt_ == null) { + FirstSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FirstSeenAt); + break; + } + case 42: { + 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.ApplicationServer.External.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 (firstSeenAt_ == null) { + FirstSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FirstSeenAt); + break; + } + case 42: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + 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.ApplicationServer.External.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 DeleteGatewayRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteGatewayRequest(DeleteGatewayRequest other) : this() { + id_ = other.id_; + _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 "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Gateway ID (HEX encoded). + /// + [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 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 (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(DeleteGatewayRequest 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 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.ApplicationServer.External.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 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 (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 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.ApplicationServer.External.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 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 ListGatewayRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListGatewayRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListGatewayRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListGatewayRequest(ListGatewayRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + organizationId_ = other.organizationId_; + search_ = other.search_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListGatewayRequest Clone() { + return new ListGatewayRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private int limit_; + /// + /// Max number of nodes to return in the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 2; + private int offset_; + /// + /// Offset of the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + /// Field number for the "organization_id" field. + public const int OrganizationIdFieldNumber = 3; + private long organizationId_; + /// + /// ID of the organization for which to filter on, when left blank the + /// response will return all gateways to which the user has access to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "search" field. + public const int SearchFieldNumber = 4; + private string search_ = ""; + /// + /// Search on name or gateway MAC (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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListGatewayRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListGatewayRequest 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 (OrganizationId != other.OrganizationId) return false; + if (Search != other.Search) return false; + 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 (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (Search.Length != 0) hash ^= Search.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteInt32(Offset); + } + if (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (Search.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Search); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(16); + output.WriteInt32(Offset); + } + if (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (Search.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Search); + } + if (_unknownFields != 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.ComputeInt32Size(Limit); + } + if (Offset != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Offset); + } + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (Search.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListGatewayRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0) { + Limit = other.Limit; + } + if (other.Offset != 0) { + Offset = other.Offset; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.Search.Length != 0) { + Search = other.Search; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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.ReadInt32(); + break; + } + case 16: { + Offset = input.ReadInt32(); + break; + } + case 24: { + OrganizationId = input.ReadInt64(); + break; + } + case 34: { + Search = 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.ReadInt32(); + break; + } + case 16: { + Offset = input.ReadInt32(); + break; + } + case 24: { + OrganizationId = input.ReadInt64(); + break; + } + case 34: { + Search = input.ReadString(); + 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.ApplicationServer.External.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 GatewayListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayListItem(GatewayListItem other) : this() { + id_ = other.id_; + name_ = other.name_; + description_ = other.description_; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + firstSeenAt_ = other.firstSeenAt_ != null ? other.firstSeenAt_.Clone() : null; + lastSeenAt_ = other.lastSeenAt_ != null ? other.lastSeenAt_.Clone() : null; + organizationId_ = other.organizationId_; + networkServerId_ = other.networkServerId_; + location_ = other.location_ != null ? other.location_.Clone() : null; + networkServerName_ = other.networkServerName_; + _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 "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Gateway ID (HEX encoded). + /// + [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_ = ""; + /// + /// A name for the gateway + /// + [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_ = ""; + /// + /// A description for the gateway + /// + [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 "created_at" field. + public const int CreatedAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Create 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 = 5; + 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 "first_seen_at" field. + public const int FirstSeenAtFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp firstSeenAt_; + /// + /// First seen timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FirstSeenAt { + get { return firstSeenAt_; } + set { + firstSeenAt_ = value; + } + } + + /// Field number for the "last_seen_at" field. + public const int LastSeenAtFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastSeenAt_; + /// + /// Last seen 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 "organization_id" field. + public const int OrganizationIdFieldNumber = 6; + private long organizationId_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "network_server_id" field. + public const int NetworkServerIdFieldNumber = 7; + private long networkServerId_; + /// + /// Network-server ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkServerId { + get { return networkServerId_; } + set { + networkServerId_ = value; + } + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 10; + 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 "network_server_name" field. + public const int NetworkServerNameFieldNumber = 11; + private string networkServerName_ = ""; + /// + /// Network-server name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NetworkServerName { + get { return networkServerName_; } + set { + networkServerName_ = 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 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 (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (!object.Equals(FirstSeenAt, other.FirstSeenAt)) return false; + if (!object.Equals(LastSeenAt, other.LastSeenAt)) return false; + if (OrganizationId != other.OrganizationId) return false; + if (NetworkServerId != other.NetworkServerId) return false; + if (!object.Equals(Location, other.Location)) return false; + if (NetworkServerName != other.NetworkServerName) return false; + 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 (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (firstSeenAt_ != null) hash ^= FirstSeenAt.GetHashCode(); + if (lastSeenAt_ != null) hash ^= LastSeenAt.GetHashCode(); + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (NetworkServerId != 0L) hash ^= NetworkServerId.GetHashCode(); + if (location_ != null) hash ^= Location.GetHashCode(); + if (NetworkServerName.Length != 0) hash ^= NetworkServerName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (createdAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdatedAt); + } + if (OrganizationId != 0L) { + output.WriteRawTag(48); + output.WriteInt64(OrganizationId); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(56); + output.WriteInt64(NetworkServerId); + } + if (firstSeenAt_ != null) { + output.WriteRawTag(66); + output.WriteMessage(FirstSeenAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(LastSeenAt); + } + if (location_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Location); + } + if (NetworkServerName.Length != 0) { + output.WriteRawTag(90); + output.WriteString(NetworkServerName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (createdAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdatedAt); + } + if (OrganizationId != 0L) { + output.WriteRawTag(48); + output.WriteInt64(OrganizationId); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(56); + output.WriteInt64(NetworkServerId); + } + if (firstSeenAt_ != null) { + output.WriteRawTag(66); + output.WriteMessage(FirstSeenAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(LastSeenAt); + } + if (location_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Location); + } + if (NetworkServerName.Length != 0) { + output.WriteRawTag(90); + output.WriteString(NetworkServerName); + } + if (_unknownFields != 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 (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (firstSeenAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FirstSeenAt); + } + if (lastSeenAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSeenAt); + } + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (NetworkServerId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NetworkServerId); + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + if (NetworkServerName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NetworkServerName); + } + 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.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + 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.firstSeenAt_ != null) { + if (firstSeenAt_ == null) { + FirstSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FirstSeenAt.MergeFrom(other.FirstSeenAt); + } + if (other.lastSeenAt_ != null) { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastSeenAt.MergeFrom(other.LastSeenAt); + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.NetworkServerId != 0L) { + NetworkServerId = other.NetworkServerId; + } + if (other.location_ != null) { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + Location.MergeFrom(other.Location); + } + if (other.NetworkServerName.Length != 0) { + NetworkServerName = other.NetworkServerName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 42: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 48: { + OrganizationId = input.ReadInt64(); + break; + } + case 56: { + NetworkServerId = input.ReadInt64(); + break; + } + case 66: { + if (firstSeenAt_ == null) { + FirstSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FirstSeenAt); + break; + } + case 74: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + case 82: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 90: { + NetworkServerName = 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: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 42: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 48: { + OrganizationId = input.ReadInt64(); + break; + } + case 56: { + NetworkServerId = input.ReadInt64(); + break; + } + case 66: { + if (firstSeenAt_ == null) { + FirstSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FirstSeenAt); + break; + } + case 74: { + if (lastSeenAt_ == null) { + LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSeenAt); + break; + } + case 82: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 90: { + NetworkServerName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListGatewayResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListGatewayResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListGatewayResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListGatewayResponse(ListGatewayResponse 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 ListGatewayResponse Clone() { + return new ListGatewayResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private long totalCount_; + /// + /// Total number of nodes available within the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.Api.GatewayListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Nodes within this 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 ListGatewayResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListGatewayResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(ListGatewayResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + 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.ApplicationServer.External.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 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.ApplicationServer.External.Api.Gateway gateway_; + /// + /// Gateway object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.Gateway(); + } + input.ReadMessage(Gateway); + 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.ApplicationServer.External.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 GatewayStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayStats(GatewayStats other) : this() { + timestamp_ = other.timestamp_ != null ? other.timestamp_.Clone() : null; + rxPacketsReceived_ = other.rxPacketsReceived_; + rxPacketsReceivedOk_ = other.rxPacketsReceivedOk_; + txPacketsReceived_ = other.txPacketsReceived_; + txPacketsEmitted_ = other.txPacketsEmitted_; + txPacketsPerFrequency_ = other.txPacketsPerFrequency_.Clone(); + rxPacketsPerFrequency_ = other.rxPacketsPerFrequency_.Clone(); + txPacketsPerDr_ = other.txPacketsPerDr_.Clone(); + rxPacketsPerDr_ = other.rxPacketsPerDr_.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 "timestamp" field. + public const int TimestampFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp timestamp_; + /// + /// Timestamp of the (aggregated) measurement. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp Timestamp { + get { return timestamp_; } + set { + timestamp_ = value; + } + } + + /// Field number for the "rx_packets_received" field. + public const int RxPacketsReceivedFieldNumber = 2; + private int rxPacketsReceived_; + /// + /// Packets received by the gateway. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RxPacketsReceived { + get { return rxPacketsReceived_; } + set { + rxPacketsReceived_ = value; + } + } + + /// Field number for the "rx_packets_received_ok" field. + public const int RxPacketsReceivedOkFieldNumber = 3; + private int rxPacketsReceivedOk_; + /// + /// Packets received by the gateway that passed the CRC check. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RxPacketsReceivedOk { + get { return rxPacketsReceivedOk_; } + set { + rxPacketsReceivedOk_ = value; + } + } + + /// Field number for the "tx_packets_received" field. + public const int TxPacketsReceivedFieldNumber = 4; + private int txPacketsReceived_; + /// + /// Packets received by the gateway for transmission. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TxPacketsReceived { + get { return txPacketsReceived_; } + set { + txPacketsReceived_ = value; + } + } + + /// Field number for the "tx_packets_emitted" field. + public const int TxPacketsEmittedFieldNumber = 5; + private int txPacketsEmitted_; + /// + /// Packets transmitted by the gateway. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TxPacketsEmitted { + get { return txPacketsEmitted_; } + set { + txPacketsEmitted_ = value; + } + } + + /// Field number for the "tx_packets_per_frequency" field. + public const int TxPacketsPerFrequencyFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_txPacketsPerFrequency_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 50); + 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 = 7; + private static readonly pbc::MapField.Codec _map_rxPacketsPerFrequency_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 58); + 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_dr" field. + public const int TxPacketsPerDrFieldNumber = 8; + private static readonly pbc::MapField.Codec _map_txPacketsPerDr_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 66); + private readonly pbc::MapField txPacketsPerDr_ = new pbc::MapField(); + /// + /// Tx packets per DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField TxPacketsPerDr { + get { return txPacketsPerDr_; } + } + + /// Field number for the "rx_packets_per_dr" field. + public const int RxPacketsPerDrFieldNumber = 9; + private static readonly pbc::MapField.Codec _map_rxPacketsPerDr_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 74); + private readonly pbc::MapField rxPacketsPerDr_ = new pbc::MapField(); + /// + /// Rx packets per DR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField RxPacketsPerDr { + get { return rxPacketsPerDr_; } + } + + /// Field number for the "tx_packets_per_status" field. + public const int TxPacketsPerStatusFieldNumber = 10; + private static readonly pbc::MapField.Codec _map_txPacketsPerStatus_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForUInt32(16, 0), 82); + 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 (!object.Equals(Timestamp, other.Timestamp)) 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 (!TxPacketsPerFrequency.Equals(other.TxPacketsPerFrequency)) return false; + if (!RxPacketsPerFrequency.Equals(other.RxPacketsPerFrequency)) return false; + if (!TxPacketsPerDr.Equals(other.TxPacketsPerDr)) return false; + if (!RxPacketsPerDr.Equals(other.RxPacketsPerDr)) 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 (timestamp_ != null) hash ^= Timestamp.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 ^= TxPacketsPerFrequency.GetHashCode(); + hash ^= RxPacketsPerFrequency.GetHashCode(); + hash ^= TxPacketsPerDr.GetHashCode(); + hash ^= RxPacketsPerDr.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 (timestamp_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Timestamp); + } + if (RxPacketsReceived != 0) { + output.WriteRawTag(16); + output.WriteInt32(RxPacketsReceived); + } + if (RxPacketsReceivedOk != 0) { + output.WriteRawTag(24); + output.WriteInt32(RxPacketsReceivedOk); + } + if (TxPacketsReceived != 0) { + output.WriteRawTag(32); + output.WriteInt32(TxPacketsReceived); + } + if (TxPacketsEmitted != 0) { + output.WriteRawTag(40); + output.WriteInt32(TxPacketsEmitted); + } + txPacketsPerFrequency_.WriteTo(output, _map_txPacketsPerFrequency_codec); + rxPacketsPerFrequency_.WriteTo(output, _map_rxPacketsPerFrequency_codec); + txPacketsPerDr_.WriteTo(output, _map_txPacketsPerDr_codec); + rxPacketsPerDr_.WriteTo(output, _map_rxPacketsPerDr_codec); + txPacketsPerStatus_.WriteTo(output, _map_txPacketsPerStatus_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 (timestamp_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Timestamp); + } + if (RxPacketsReceived != 0) { + output.WriteRawTag(16); + output.WriteInt32(RxPacketsReceived); + } + if (RxPacketsReceivedOk != 0) { + output.WriteRawTag(24); + output.WriteInt32(RxPacketsReceivedOk); + } + if (TxPacketsReceived != 0) { + output.WriteRawTag(32); + output.WriteInt32(TxPacketsReceived); + } + if (TxPacketsEmitted != 0) { + output.WriteRawTag(40); + output.WriteInt32(TxPacketsEmitted); + } + txPacketsPerFrequency_.WriteTo(ref output, _map_txPacketsPerFrequency_codec); + rxPacketsPerFrequency_.WriteTo(ref output, _map_rxPacketsPerFrequency_codec); + txPacketsPerDr_.WriteTo(ref output, _map_txPacketsPerDr_codec); + rxPacketsPerDr_.WriteTo(ref output, _map_rxPacketsPerDr_codec); + txPacketsPerStatus_.WriteTo(ref output, _map_txPacketsPerStatus_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 (timestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Timestamp); + } + if (RxPacketsReceived != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RxPacketsReceived); + } + if (RxPacketsReceivedOk != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RxPacketsReceivedOk); + } + if (TxPacketsReceived != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TxPacketsReceived); + } + if (TxPacketsEmitted != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TxPacketsEmitted); + } + size += txPacketsPerFrequency_.CalculateSize(_map_txPacketsPerFrequency_codec); + size += rxPacketsPerFrequency_.CalculateSize(_map_rxPacketsPerFrequency_codec); + size += txPacketsPerDr_.CalculateSize(_map_txPacketsPerDr_codec); + size += rxPacketsPerDr_.CalculateSize(_map_rxPacketsPerDr_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.timestamp_ != null) { + if (timestamp_ == null) { + Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Timestamp.MergeFrom(other.Timestamp); + } + 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; + } + txPacketsPerFrequency_.Add(other.txPacketsPerFrequency_); + rxPacketsPerFrequency_.Add(other.rxPacketsPerFrequency_); + txPacketsPerDr_.Add(other.txPacketsPerDr_); + rxPacketsPerDr_.Add(other.rxPacketsPerDr_); + 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: { + if (timestamp_ == null) { + Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Timestamp); + break; + } + case 16: { + RxPacketsReceived = input.ReadInt32(); + break; + } + case 24: { + RxPacketsReceivedOk = input.ReadInt32(); + break; + } + case 32: { + TxPacketsReceived = input.ReadInt32(); + break; + } + case 40: { + TxPacketsEmitted = input.ReadInt32(); + break; + } + case 50: { + txPacketsPerFrequency_.AddEntriesFrom(input, _map_txPacketsPerFrequency_codec); + break; + } + case 58: { + rxPacketsPerFrequency_.AddEntriesFrom(input, _map_rxPacketsPerFrequency_codec); + break; + } + case 66: { + txPacketsPerDr_.AddEntriesFrom(input, _map_txPacketsPerDr_codec); + break; + } + case 74: { + rxPacketsPerDr_.AddEntriesFrom(input, _map_rxPacketsPerDr_codec); + break; + } + case 82: { + txPacketsPerStatus_.AddEntriesFrom(input, _map_txPacketsPerStatus_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 (timestamp_ == null) { + Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Timestamp); + break; + } + case 16: { + RxPacketsReceived = input.ReadInt32(); + break; + } + case 24: { + RxPacketsReceivedOk = input.ReadInt32(); + break; + } + case 32: { + TxPacketsReceived = input.ReadInt32(); + break; + } + case 40: { + TxPacketsEmitted = input.ReadInt32(); + break; + } + case 50: { + txPacketsPerFrequency_.AddEntriesFrom(ref input, _map_txPacketsPerFrequency_codec); + break; + } + case 58: { + rxPacketsPerFrequency_.AddEntriesFrom(ref input, _map_rxPacketsPerFrequency_codec); + break; + } + case 66: { + txPacketsPerDr_.AddEntriesFrom(ref input, _map_txPacketsPerDr_codec); + break; + } + case 74: { + rxPacketsPerDr_.AddEntriesFrom(ref input, _map_rxPacketsPerDr_codec); + break; + } + case 82: { + txPacketsPerStatus_.AddEntriesFrom(ref input, _map_txPacketsPerStatus_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGatewayStatsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayStatsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayReflection.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 GetGatewayStatsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayStatsRequest(GetGatewayStatsRequest other) : this() { + gatewayId_ = other.gatewayId_; + interval_ = other.interval_; + startTimestamp_ = other.startTimestamp_ != null ? other.startTimestamp_.Clone() : null; + endTimestamp_ = other.endTimestamp_ != null ? other.endTimestamp_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayStatsRequest Clone() { + return new GetGatewayStatsRequest(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + 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"); + } + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 2; + private string interval_ = ""; + /// + /// Aggregation interval. One of "second", "minute", "hour", "day", "week", + /// "month", "quarter", "year". Case insensitive. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Interval { + get { return interval_; } + set { + interval_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_timestamp" field. + public const int StartTimestampFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTimestamp_; + /// + /// Timestamp to start from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTimestamp { + get { return startTimestamp_; } + set { + startTimestamp_ = value; + } + } + + /// Field number for the "end_timestamp" field. + public const int EndTimestampFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTimestamp_; + /// + /// Timestamp until to get from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTimestamp { + get { return endTimestamp_; } + set { + endTimestamp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGatewayStatsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewayStatsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) return false; + if (Interval != other.Interval) return false; + if (!object.Equals(StartTimestamp, other.StartTimestamp)) return false; + if (!object.Equals(EndTimestamp, other.EndTimestamp)) return false; + 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 (Interval.Length != 0) hash ^= Interval.GetHashCode(); + if (startTimestamp_ != null) hash ^= StartTimestamp.GetHashCode(); + if (endTimestamp_ != null) hash ^= EndTimestamp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Interval.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Interval); + } + if (startTimestamp_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTimestamp); + } + if (endTimestamp_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndTimestamp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Interval.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Interval); + } + if (startTimestamp_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTimestamp); + } + if (endTimestamp_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndTimestamp); + } + if (_unknownFields != 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 (Interval.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Interval); + } + if (startTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTimestamp); + } + if (endTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTimestamp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGatewayStatsRequest other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Interval.Length != 0) { + Interval = other.Interval; + } + if (other.startTimestamp_ != null) { + if (startTimestamp_ == null) { + StartTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTimestamp.MergeFrom(other.StartTimestamp); + } + if (other.endTimestamp_ != null) { + if (endTimestamp_ == null) { + EndTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTimestamp.MergeFrom(other.EndTimestamp); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + Interval = input.ReadString(); + break; + } + case 26: { + if (startTimestamp_ == null) { + StartTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTimestamp); + break; + } + case 34: { + if (endTimestamp_ == null) { + EndTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTimestamp); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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: { + Interval = input.ReadString(); + break; + } + case 26: { + if (startTimestamp_ == null) { + StartTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTimestamp); + break; + } + case 34: { + if (endTimestamp_ == null) { + EndTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTimestamp); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGatewayStatsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayStatsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayReflection.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 GetGatewayStatsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayStatsResponse(GetGatewayStatsResponse other) : this() { + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayStatsResponse Clone() { + return new GetGatewayStatsResponse(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.ApplicationServer.External.Api.GatewayStats.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 GetGatewayStatsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewayStatsResponse 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(GetGatewayStatsResponse 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 PingRX : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PingRX()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayReflection.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 PingRX() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PingRX(PingRX other) : this() { + gatewayId_ = other.gatewayId_; + rssi_ = other.rssi_; + loraSnr_ = other.loraSnr_; + latitude_ = other.latitude_; + longitude_ = other.longitude_; + altitude_ = other.altitude_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PingRX Clone() { + return new PingRX(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + 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"); + } + } + + /// Field number for the "rssi" field. + public const int RssiFieldNumber = 2; + 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 = 3; + 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 "latitude" field. + public const int LatitudeFieldNumber = 4; + private double latitude_; + /// + /// Latitude of the gateway -90.0 to 90.0. + /// + [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 = 5; + private double longitude_; + /// + /// Longitude of the gateway -180.0 to 180.0. + /// + [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 = 6; + private double altitude_; + /// + /// Altitude of the gateway in meters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Altitude { + get { return altitude_; } + set { + altitude_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PingRX); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PingRX other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) return false; + if (Rssi != other.Rssi) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LoraSnr, other.LoraSnr)) return false; + 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; + 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 (Rssi != 0) hash ^= Rssi.GetHashCode(); + if (LoraSnr != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LoraSnr); + 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Rssi != 0) { + output.WriteRawTag(16); + output.WriteInt32(Rssi); + } + if (LoraSnr != 0D) { + output.WriteRawTag(25); + output.WriteDouble(LoraSnr); + } + if (Latitude != 0D) { + output.WriteRawTag(33); + output.WriteDouble(Latitude); + } + if (Longitude != 0D) { + output.WriteRawTag(41); + output.WriteDouble(Longitude); + } + if (Altitude != 0D) { + output.WriteRawTag(49); + output.WriteDouble(Altitude); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Rssi != 0) { + output.WriteRawTag(16); + output.WriteInt32(Rssi); + } + if (LoraSnr != 0D) { + output.WriteRawTag(25); + output.WriteDouble(LoraSnr); + } + if (Latitude != 0D) { + output.WriteRawTag(33); + output.WriteDouble(Latitude); + } + if (Longitude != 0D) { + output.WriteRawTag(41); + output.WriteDouble(Longitude); + } + if (Altitude != 0D) { + output.WriteRawTag(49); + output.WriteDouble(Altitude); + } + if (_unknownFields != 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 (Rssi != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rssi); + } + if (LoraSnr != 0D) { + size += 1 + 8; + } + if (Latitude != 0D) { + size += 1 + 8; + } + if (Longitude != 0D) { + size += 1 + 8; + } + if (Altitude != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PingRX other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Rssi != 0) { + Rssi = other.Rssi; + } + if (other.LoraSnr != 0D) { + LoraSnr = other.LoraSnr; + } + if (other.Latitude != 0D) { + Latitude = other.Latitude; + } + if (other.Longitude != 0D) { + Longitude = other.Longitude; + } + if (other.Altitude != 0D) { + Altitude = other.Altitude; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + Rssi = input.ReadInt32(); + break; + } + case 25: { + LoraSnr = input.ReadDouble(); + break; + } + case 33: { + Latitude = input.ReadDouble(); + break; + } + case 41: { + Longitude = input.ReadDouble(); + break; + } + case 49: { + Altitude = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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: { + Rssi = input.ReadInt32(); + break; + } + case 25: { + LoraSnr = input.ReadDouble(); + break; + } + case 33: { + Latitude = input.ReadDouble(); + break; + } + case 41: { + Longitude = input.ReadDouble(); + break; + } + case 49: { + Altitude = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetLastPingRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLastPingRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayReflection.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 GetLastPingRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetLastPingRequest(GetLastPingRequest other) : this() { + gatewayId_ = other.gatewayId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetLastPingRequest Clone() { + return new GetLastPingRequest(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + 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 GetLastPingRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetLastPingRequest 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(GetLastPingRequest 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 GetLastPingResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLastPingResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayReflection.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 GetLastPingResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetLastPingResponse(GetLastPingResponse other) : this() { + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + frequency_ = other.frequency_; + dr_ = other.dr_; + pingRx_ = other.pingRx_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetLastPingResponse Clone() { + return new GetLastPingResponse(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 "frequency" field. + public const int FrequencyFieldNumber = 2; + 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" field. + public const int DrFieldNumber = 3; + private uint dr_; + /// + /// Data-rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Dr { + get { return dr_; } + set { + dr_ = value; + } + } + + /// Field number for the "ping_rx" field. + public const int PingRxFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_pingRx_codec + = pb::FieldCodec.ForMessage(34, global::Chirpstack.ApplicationServer.External.Api.PingRX.Parser); + private readonly pbc::RepeatedField pingRx_ = new pbc::RepeatedField(); + /// + /// Gateways and meta-data of reception. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PingRx { + get { return pingRx_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetLastPingResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetLastPingResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (Frequency != other.Frequency) return false; + if (Dr != other.Dr) return false; + if(!pingRx_.Equals(other.pingRx_)) return false; + 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 (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (Dr != 0) hash ^= Dr.GetHashCode(); + hash ^= pingRx_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Frequency != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Frequency); + } + if (Dr != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Dr); + } + pingRx_.WriteTo(output, _repeated_pingRx_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 (createdAt_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreatedAt); + } + if (Frequency != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Frequency); + } + if (Dr != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Dr); + } + pingRx_.WriteTo(ref output, _repeated_pingRx_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 (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (Frequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); + } + if (Dr != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Dr); + } + size += pingRx_.CalculateSize(_repeated_pingRx_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetLastPingResponse 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.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.Dr != 0) { + Dr = other.Dr; + } + pingRx_.Add(other.pingRx_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 16: { + Frequency = input.ReadUInt32(); + break; + } + case 24: { + Dr = input.ReadUInt32(); + break; + } + case 34: { + pingRx_.AddEntriesFrom(input, _repeated_pingRx_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 (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 16: { + Frequency = input.ReadUInt32(); + break; + } + case 24: { + Dr = input.ReadUInt32(); + break; + } + case 34: { + pingRx_.AddEntriesFrom(ref input, _repeated_pingRx_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class StreamGatewayFrameLogsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamGatewayFrameLogsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayReflection.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 StreamGatewayFrameLogsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamGatewayFrameLogsRequest(StreamGatewayFrameLogsRequest other) : this() { + gatewayId_ = other.gatewayId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamGatewayFrameLogsRequest Clone() { + return new StreamGatewayFrameLogsRequest(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + 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 StreamGatewayFrameLogsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamGatewayFrameLogsRequest 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(StreamGatewayFrameLogsRequest 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 StreamGatewayFrameLogsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamGatewayFrameLogsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayReflection.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 StreamGatewayFrameLogsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamGatewayFrameLogsResponse(StreamGatewayFrameLogsResponse other) : this() { + switch (other.FrameCase) { + case FrameOneofCase.UplinkFrame: + UplinkFrame = other.UplinkFrame.Clone(); + break; + case FrameOneofCase.DownlinkFrame: + DownlinkFrame = other.DownlinkFrame.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamGatewayFrameLogsResponse Clone() { + return new StreamGatewayFrameLogsResponse(this); + } + + /// Field number for the "uplink_frame" field. + public const int UplinkFrameFieldNumber = 1; + /// + /// Contains an uplink frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.UplinkFrameLog UplinkFrame { + get { return frameCase_ == FrameOneofCase.UplinkFrame ? (global::Chirpstack.ApplicationServer.External.Api.UplinkFrameLog) frame_ : null; } + set { + frame_ = value; + frameCase_ = value == null ? FrameOneofCase.None : FrameOneofCase.UplinkFrame; + } + } + + /// Field number for the "downlink_frame" field. + public const int DownlinkFrameFieldNumber = 2; + /// + /// Contains a downlink frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog DownlinkFrame { + get { return frameCase_ == FrameOneofCase.DownlinkFrame ? (global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog) frame_ : null; } + set { + frame_ = value; + frameCase_ = value == null ? FrameOneofCase.None : FrameOneofCase.DownlinkFrame; + } + } + + private object frame_; + /// Enum of possible cases for the "frame" oneof. + public enum FrameOneofCase { + None = 0, + UplinkFrame = 1, + DownlinkFrame = 2, + } + private FrameOneofCase frameCase_ = FrameOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameOneofCase FrameCase { + get { return frameCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFrame() { + frameCase_ = FrameOneofCase.None; + frame_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StreamGatewayFrameLogsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamGatewayFrameLogsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UplinkFrame, other.UplinkFrame)) return false; + if (!object.Equals(DownlinkFrame, other.DownlinkFrame)) return false; + if (FrameCase != other.FrameCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (frameCase_ == FrameOneofCase.UplinkFrame) hash ^= UplinkFrame.GetHashCode(); + if (frameCase_ == FrameOneofCase.DownlinkFrame) hash ^= DownlinkFrame.GetHashCode(); + hash ^= (int) frameCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (frameCase_ == FrameOneofCase.UplinkFrame) { + output.WriteRawTag(10); + output.WriteMessage(UplinkFrame); + } + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + output.WriteRawTag(18); + output.WriteMessage(DownlinkFrame); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (frameCase_ == FrameOneofCase.UplinkFrame) { + output.WriteRawTag(10); + output.WriteMessage(UplinkFrame); + } + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + output.WriteRawTag(18); + output.WriteMessage(DownlinkFrame); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (frameCase_ == FrameOneofCase.UplinkFrame) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UplinkFrame); + } + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DownlinkFrame); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StreamGatewayFrameLogsResponse other) { + if (other == null) { + return; + } + switch (other.FrameCase) { + case FrameOneofCase.UplinkFrame: + if (UplinkFrame == null) { + UplinkFrame = new global::Chirpstack.ApplicationServer.External.Api.UplinkFrameLog(); + } + UplinkFrame.MergeFrom(other.UplinkFrame); + break; + case FrameOneofCase.DownlinkFrame: + if (DownlinkFrame == null) { + DownlinkFrame = new global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog(); + } + DownlinkFrame.MergeFrom(other.DownlinkFrame); + 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.ApplicationServer.External.Api.UplinkFrameLog subBuilder = new global::Chirpstack.ApplicationServer.External.Api.UplinkFrameLog(); + if (frameCase_ == FrameOneofCase.UplinkFrame) { + subBuilder.MergeFrom(UplinkFrame); + } + input.ReadMessage(subBuilder); + UplinkFrame = subBuilder; + break; + } + case 18: { + global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog subBuilder = new global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog(); + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + subBuilder.MergeFrom(DownlinkFrame); + } + input.ReadMessage(subBuilder); + DownlinkFrame = 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.ApplicationServer.External.Api.UplinkFrameLog subBuilder = new global::Chirpstack.ApplicationServer.External.Api.UplinkFrameLog(); + if (frameCase_ == FrameOneofCase.UplinkFrame) { + subBuilder.MergeFrom(UplinkFrame); + } + input.ReadMessage(subBuilder); + UplinkFrame = subBuilder; + break; + } + case 18: { + global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog subBuilder = new global::Chirpstack.ApplicationServer.External.Api.DownlinkFrameLog(); + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + subBuilder.MergeFrom(DownlinkFrame); + } + input.ReadMessage(subBuilder); + DownlinkFrame = subBuilder; + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/as/external/api/GatewayGrpc.cs b/csharp/protobuf/as/external/api/GatewayGrpc.cs new file mode 100644 index 00000000..909df674 --- /dev/null +++ b/csharp/protobuf/as/external/api/GatewayGrpc.cs @@ -0,0 +1,781 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/gateway.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer.External.Api { + /// + /// GatewayService is the service managing the 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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.DeleteGatewayRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListGatewayRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListGatewayResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListGatewayResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetGatewayStatsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetGatewayStatsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetGatewayStatsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetGatewayStatsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetLastPingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetLastPingRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetLastPingResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetLastPingResponse.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.ApplicationServer.External.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.ApplicationServer.External.Api.GenerateGatewayClientCertificateResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_StreamGatewayFrameLogsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.StreamGatewayFrameLogsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_StreamGatewayFrameLogsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.StreamGatewayFrameLogsResponse.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_ListGatewayRequest, + __Marshaller_api_ListGatewayResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetStats = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetStats", + __Marshaller_api_GetGatewayStatsRequest, + __Marshaller_api_GetGatewayStatsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetLastPing = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetLastPing", + __Marshaller_api_GetLastPingRequest, + __Marshaller_api_GetLastPingResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GenerateGatewayClientCertificate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GenerateGatewayClientCertificate", + __Marshaller_api_GenerateGatewayClientCertificateRequest, + __Marshaller_api_GenerateGatewayClientCertificateResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_StreamFrameLogs = new grpc::Method( + grpc::MethodType.ServerStreaming, + __ServiceName, + "StreamFrameLogs", + __Marshaller_api_StreamGatewayFrameLogsRequest, + __Marshaller_api_StreamGatewayFrameLogsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.CreateGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get returns the gateway for the requested mac address. + /// + /// 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.ApplicationServer.External.Api.GetGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update updates the gateway matching the given mac address. + /// + /// 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.ApplicationServer.External.Api.UpdateGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete deletes the gateway matching the given mac address. + /// + /// 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.ApplicationServer.External.Api.DeleteGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List lists 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 List(global::Chirpstack.ApplicationServer.External.Api.ListGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetStats lists the gateway stats given the query parameters. + /// + /// 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 GetStats(global::Chirpstack.ApplicationServer.External.Api.GetGatewayStatsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetLastPing returns the last emitted ping and gateways receiving this ping. + /// + /// 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 GetLastPing(global::Chirpstack.ApplicationServer.External.Api.GetLastPingRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GenerateGatewayClientCertificate returns TLS certificate gateway authentication / authorization. + /// This endpoint can ony be used when ChirpStack Network Server is configured with a gateway + /// CA certificate and key, which is used for signing the TLS certificate. The returned TLS + /// certificate will have the Gateway ID as Common Name. + /// + /// 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 GenerateGatewayClientCertificate(global::Chirpstack.ApplicationServer.External.Api.GenerateGatewayClientCertificateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// StreamFrameLogs streams the uplink and downlink frame-logs for the given gateway ID. + /// Notes: + /// * These are the raw LoRaWAN frames and this endpoint is intended for debugging only. + /// * This endpoint does not work from a web-browser. + /// + /// 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 StreamFrameLogs(global::Chirpstack.ApplicationServer.External.Api.StreamGatewayFrameLogsRequest request, grpc::IServerStreamWriter responseStream, 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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.CreateGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get returns the gateway for the requested mac address. + /// + /// 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.ApplicationServer.External.Api.GetGatewayResponse Get(global::Chirpstack.ApplicationServer.External.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 requested mac address. + /// + /// 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.ApplicationServer.External.Api.GetGatewayResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get returns the gateway for the requested mac address. + /// + /// 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.ApplicationServer.External.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 requested mac address. + /// + /// 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.ApplicationServer.External.Api.GetGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update updates the gateway matching the given mac address. + /// + /// 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.ApplicationServer.External.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 gateway matching the given mac address. + /// + /// 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.ApplicationServer.External.Api.UpdateGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update updates the gateway matching the given mac address. + /// + /// 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.ApplicationServer.External.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 gateway matching the given mac address. + /// + /// 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.ApplicationServer.External.Api.UpdateGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete deletes the gateway matching the given mac address. + /// + /// 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.ApplicationServer.External.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 mac address. + /// + /// 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.ApplicationServer.External.Api.DeleteGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete deletes the gateway matching the given mac address. + /// + /// 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.ApplicationServer.External.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 mac address. + /// + /// 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.ApplicationServer.External.Api.DeleteGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// List lists 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.ApplicationServer.External.Api.ListGatewayResponse List(global::Chirpstack.ApplicationServer.External.Api.ListGatewayRequest 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 lists 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.ApplicationServer.External.Api.ListGatewayResponse List(global::Chirpstack.ApplicationServer.External.Api.ListGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// List lists 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 ListAsync(global::Chirpstack.ApplicationServer.External.Api.ListGatewayRequest 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 lists 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 ListAsync(global::Chirpstack.ApplicationServer.External.Api.ListGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// GetStats lists the gateway stats given the query parameters. + /// + /// 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.ApplicationServer.External.Api.GetGatewayStatsResponse GetStats(global::Chirpstack.ApplicationServer.External.Api.GetGatewayStatsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetStats(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetStats lists the gateway stats given the query parameters. + /// + /// 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.ApplicationServer.External.Api.GetGatewayStatsResponse GetStats(global::Chirpstack.ApplicationServer.External.Api.GetGatewayStatsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetStats, null, options, request); + } + /// + /// GetStats lists the gateway stats given the query parameters. + /// + /// 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 GetStatsAsync(global::Chirpstack.ApplicationServer.External.Api.GetGatewayStatsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetStatsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetStats lists the gateway stats given the query parameters. + /// + /// 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 GetStatsAsync(global::Chirpstack.ApplicationServer.External.Api.GetGatewayStatsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetStats, null, options, request); + } + /// + /// GetLastPing returns the last emitted ping and gateways receiving this ping. + /// + /// 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.ApplicationServer.External.Api.GetLastPingResponse GetLastPing(global::Chirpstack.ApplicationServer.External.Api.GetLastPingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetLastPing(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetLastPing returns the last emitted ping and gateways receiving this ping. + /// + /// 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.ApplicationServer.External.Api.GetLastPingResponse GetLastPing(global::Chirpstack.ApplicationServer.External.Api.GetLastPingRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetLastPing, null, options, request); + } + /// + /// GetLastPing returns the last emitted ping and gateways receiving this ping. + /// + /// 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 GetLastPingAsync(global::Chirpstack.ApplicationServer.External.Api.GetLastPingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetLastPingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetLastPing returns the last emitted ping and gateways receiving this ping. + /// + /// 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 GetLastPingAsync(global::Chirpstack.ApplicationServer.External.Api.GetLastPingRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetLastPing, null, options, request); + } + /// + /// GenerateGatewayClientCertificate returns TLS certificate gateway authentication / authorization. + /// This endpoint can ony be used when ChirpStack Network Server is configured with a gateway + /// CA certificate and key, which is used for signing the TLS certificate. The returned TLS + /// certificate will have the Gateway ID as Common Name. + /// + /// 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.ApplicationServer.External.Api.GenerateGatewayClientCertificateResponse GenerateGatewayClientCertificate(global::Chirpstack.ApplicationServer.External.Api.GenerateGatewayClientCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GenerateGatewayClientCertificate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GenerateGatewayClientCertificate returns TLS certificate gateway authentication / authorization. + /// This endpoint can ony be used when ChirpStack Network Server is configured with a gateway + /// CA certificate and key, which is used for signing the TLS certificate. The returned TLS + /// certificate will have the Gateway ID as Common Name. + /// + /// 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.ApplicationServer.External.Api.GenerateGatewayClientCertificateResponse GenerateGatewayClientCertificate(global::Chirpstack.ApplicationServer.External.Api.GenerateGatewayClientCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GenerateGatewayClientCertificate, null, options, request); + } + /// + /// GenerateGatewayClientCertificate returns TLS certificate gateway authentication / authorization. + /// This endpoint can ony be used when ChirpStack Network Server is configured with a gateway + /// CA certificate and key, which is used for signing the TLS certificate. The returned TLS + /// certificate will have the Gateway ID as Common Name. + /// + /// 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 GenerateGatewayClientCertificateAsync(global::Chirpstack.ApplicationServer.External.Api.GenerateGatewayClientCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GenerateGatewayClientCertificateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GenerateGatewayClientCertificate returns TLS certificate gateway authentication / authorization. + /// This endpoint can ony be used when ChirpStack Network Server is configured with a gateway + /// CA certificate and key, which is used for signing the TLS certificate. The returned TLS + /// certificate will have the Gateway ID as Common Name. + /// + /// 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 GenerateGatewayClientCertificateAsync(global::Chirpstack.ApplicationServer.External.Api.GenerateGatewayClientCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GenerateGatewayClientCertificate, null, options, request); + } + /// + /// StreamFrameLogs streams the uplink and downlink frame-logs for the given gateway ID. + /// Notes: + /// * These are the raw LoRaWAN frames and this endpoint is intended for debugging only. + /// * This endpoint does not work from a web-browser. + /// + /// 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 StreamFrameLogs(global::Chirpstack.ApplicationServer.External.Api.StreamGatewayFrameLogsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return StreamFrameLogs(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// StreamFrameLogs streams the uplink and downlink frame-logs for the given gateway ID. + /// Notes: + /// * These are the raw LoRaWAN frames and this endpoint is intended for debugging only. + /// * This endpoint does not work from a web-browser. + /// + /// 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 StreamFrameLogs(global::Chirpstack.ApplicationServer.External.Api.StreamGatewayFrameLogsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncServerStreamingCall(__Method_StreamFrameLogs, 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_GetStats, serviceImpl.GetStats) + .AddMethod(__Method_GetLastPing, serviceImpl.GetLastPing) + .AddMethod(__Method_GenerateGatewayClientCertificate, serviceImpl.GenerateGatewayClientCertificate) + .AddMethod(__Method_StreamFrameLogs, serviceImpl.StreamFrameLogs).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_GetStats, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetStats)); + serviceBinder.AddMethod(__Method_GetLastPing, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetLastPing)); + serviceBinder.AddMethod(__Method_GenerateGatewayClientCertificate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateGatewayClientCertificate)); + serviceBinder.AddMethod(__Method_StreamFrameLogs, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.StreamFrameLogs)); + } + + } +} +#endregion diff --git a/csharp/protobuf/as/external/api/GatewayProfile.cs b/csharp/protobuf/as/external/api/GatewayProfile.cs new file mode 100644 index 00000000..9a427c7c --- /dev/null +++ b/csharp/protobuf/as/external/api/GatewayProfile.cs @@ -0,0 +1,3005 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/gatewayProfile.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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/gatewayProfile.proto + public static partial class GatewayProfileReflection { + + #region Descriptor + /// File descriptor for as/external/api/gatewayProfile.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GatewayProfileReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiRhcy9leHRlcm5hbC9hcGkvZ2F0ZXdheVByb2ZpbGUucHJvdG8SA2FwaRoc", + "Z29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL3Byb3RvYnVm", + "L3RpbWVzdGFtcC5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL2R1cmF0aW9uLnBy", + "b3RvGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8aE2NvbW1vbi9jb21t", + "b24ucHJvdG8i1AEKDkdhdGV3YXlQcm9maWxlEgoKAmlkGAEgASgJEgwKBG5h", + "bWUYAiABKAkSKgoRbmV0d29ya19zZXJ2ZXJfaWQYAyABKANSD25ldHdvcmtT", + "ZXJ2ZXJJRBIQCghjaGFubmVscxgEIAMoDRI3Cg5leHRyYV9jaGFubmVscxgF", + "IAMoCzIfLmFwaS5HYXRld2F5UHJvZmlsZUV4dHJhQ2hhbm5lbBIxCg5zdGF0", + "c19pbnRlcnZhbBgGIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbiLb", + "AQoWR2F0ZXdheVByb2ZpbGVMaXN0SXRlbRIKCgJpZBgBIAEoCRIMCgRuYW1l", + "GAIgASgJEioKEW5ldHdvcmtfc2VydmVyX2lkGAMgASgDUg9uZXR3b3JrU2Vy", + "dmVySUQSGwoTbmV0d29ya19zZXJ2ZXJfbmFtZRgHIAEoCRIuCgpjcmVhdGVk", + "X2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRh", + "dGVkX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKWAQoa", + "R2F0ZXdheVByb2ZpbGVFeHRyYUNoYW5uZWwSJgoKbW9kdWxhdGlvbhgBIAEo", + "DjISLmNvbW1vbi5Nb2R1bGF0aW9uEhEKCWZyZXF1ZW5jeRgCIAEoDRIRCgli", + "YW5kd2lkdGgYAyABKA0SDwoHYml0cmF0ZRgEIAEoDRIZChFzcHJlYWRpbmdf", + "ZmFjdG9ycxgFIAMoDSJLChtDcmVhdGVHYXRld2F5UHJvZmlsZVJlcXVlc3QS", + "LAoPZ2F0ZXdheV9wcm9maWxlGAEgASgLMhMuYXBpLkdhdGV3YXlQcm9maWxl", + "IioKHENyZWF0ZUdhdGV3YXlQcm9maWxlUmVzcG9uc2USCgoCaWQYASABKAki", + "JgoYR2V0R2F0ZXdheVByb2ZpbGVSZXF1ZXN0EgoKAmlkGAEgASgJIqkBChlH", + "ZXRHYXRld2F5UHJvZmlsZVJlc3BvbnNlEiwKD2dhdGV3YXlfcHJvZmlsZRgB", + "IAEoCzITLmFwaS5HYXRld2F5UHJvZmlsZRIuCgpjcmVhdGVkX2F0GAIgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAMg", + "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCJLChtVcGRhdGVHYXRl", + "d2F5UHJvZmlsZVJlcXVlc3QSLAoPZ2F0ZXdheV9wcm9maWxlGAEgASgLMhMu", + "YXBpLkdhdGV3YXlQcm9maWxlIikKG0RlbGV0ZUdhdGV3YXlQcm9maWxlUmVx", + "dWVzdBIKCgJpZBgBIAEoCSJnChpMaXN0R2F0ZXdheVByb2ZpbGVzUmVxdWVz", + "dBINCgVsaW1pdBgBIAEoAxIOCgZvZmZzZXQYAiABKAMSKgoRbmV0d29ya19z", + "ZXJ2ZXJfaWQYAyABKANSD25ldHdvcmtTZXJ2ZXJJRCJfChtMaXN0R2F0ZXdh", + "eVByb2ZpbGVzUmVzcG9uc2USEwoLdG90YWxfY291bnQYASABKAMSKwoGcmVz", + "dWx0GAIgAygLMhsuYXBpLkdhdGV3YXlQcm9maWxlTGlzdEl0ZW0yvwQKFUdh", + "dGV3YXlQcm9maWxlU2VydmljZRJvCgZDcmVhdGUSIC5hcGkuQ3JlYXRlR2F0", + "ZXdheVByb2ZpbGVSZXF1ZXN0GiEuYXBpLkNyZWF0ZUdhdGV3YXlQcm9maWxl", + "UmVzcG9uc2UiIILT5JMCGiIVL2FwaS9nYXRld2F5LXByb2ZpbGVzOgEqEmgK", + "A0dldBIdLmFwaS5HZXRHYXRld2F5UHJvZmlsZVJlcXVlc3QaHi5hcGkuR2V0", + "R2F0ZXdheVByb2ZpbGVSZXNwb25zZSIigtPkkwIcEhovYXBpL2dhdGV3YXkt", + "cHJvZmlsZXMve2lkfRJ5CgZVcGRhdGUSIC5hcGkuVXBkYXRlR2F0ZXdheVBy", + "b2ZpbGVSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IjWC0+STAi8a", + "Ki9hcGkvZ2F0ZXdheS1wcm9maWxlcy97Z2F0ZXdheV9wcm9maWxlLmlkfToB", + "KhJmCgZEZWxldGUSIC5hcGkuRGVsZXRlR2F0ZXdheVByb2ZpbGVSZXF1ZXN0", + "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IiKC0+STAhwqGi9hcGkvZ2F0ZXdh", + "eS1wcm9maWxlcy97aWR9EmgKBExpc3QSHy5hcGkuTGlzdEdhdGV3YXlQcm9m", + "aWxlc1JlcXVlc3QaIC5hcGkuTGlzdEdhdGV3YXlQcm9maWxlc1Jlc3BvbnNl", + "Ih2C0+STAhcSFS9hcGkvZ2F0ZXdheS1wcm9maWxlc0KfAQohaW8uY2hpcnBz", + "dGFjay5hcGkuYXMuZXh0ZXJuYWwuYXBpQhNHYXRld2F5UHJvZmlsZVByb3Rv", + "UAFaN2dpdGh1Yi5jb20vYnJvY2Fhci9jaGlycHN0YWNrLWFwaS9nby92My9h", + "cy9leHRlcm5hbC9hcGmqAilDaGlycHN0YWNrLkFwcGxpY2F0aW9uU2VydmVy", + "LkV4dGVybmFsLkFwaWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GatewayProfile), global::Chirpstack.ApplicationServer.External.Api.GatewayProfile.Parser, new[]{ "Id", "Name", "NetworkServerId", "Channels", "ExtraChannels", "StatsInterval" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GatewayProfileListItem), global::Chirpstack.ApplicationServer.External.Api.GatewayProfileListItem.Parser, new[]{ "Id", "Name", "NetworkServerId", "NetworkServerName", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GatewayProfileExtraChannel), global::Chirpstack.ApplicationServer.External.Api.GatewayProfileExtraChannel.Parser, new[]{ "Modulation", "Frequency", "Bandwidth", "Bitrate", "SpreadingFactors" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateGatewayProfileRequest), global::Chirpstack.ApplicationServer.External.Api.CreateGatewayProfileRequest.Parser, new[]{ "GatewayProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateGatewayProfileResponse), global::Chirpstack.ApplicationServer.External.Api.CreateGatewayProfileResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetGatewayProfileRequest), global::Chirpstack.ApplicationServer.External.Api.GetGatewayProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetGatewayProfileResponse), global::Chirpstack.ApplicationServer.External.Api.GetGatewayProfileResponse.Parser, new[]{ "GatewayProfile", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateGatewayProfileRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateGatewayProfileRequest.Parser, new[]{ "GatewayProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteGatewayProfileRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteGatewayProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListGatewayProfilesRequest), global::Chirpstack.ApplicationServer.External.Api.ListGatewayProfilesRequest.Parser, new[]{ "Limit", "Offset", "NetworkServerId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListGatewayProfilesResponse), global::Chirpstack.ApplicationServer.External.Api.ListGatewayProfilesResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class GatewayProfile : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayProfile()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayProfileReflection.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 GatewayProfile() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayProfile(GatewayProfile other) : this() { + id_ = other.id_; + name_ = other.name_; + networkServerId_ = other.networkServerId_; + channels_ = other.channels_.Clone(); + extraChannels_ = other.extraChannels_.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 GatewayProfile Clone() { + return new GatewayProfile(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Gateway-profile ID (UUID string). + /// + [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 of the gateway-profile. + /// + [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 "network_server_id" field. + public const int NetworkServerIdFieldNumber = 3; + private long networkServerId_; + /// + /// Network-server ID of the gateway-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkServerId { + get { return networkServerId_; } + set { + networkServerId_ = value; + } + } + + /// Field number for the "channels" field. + public const int ChannelsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_channels_codec + = pb::FieldCodec.ForUInt32(34); + private readonly pbc::RepeatedField channels_ = new pbc::RepeatedField(); + /// + /// Default channels (channels specified by the LoRaWAN Regional Parameters + /// specification) enabled for this configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Channels { + get { return channels_; } + } + + /// Field number for the "extra_channels" field. + public const int ExtraChannelsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_extraChannels_codec + = pb::FieldCodec.ForMessage(42, global::Chirpstack.ApplicationServer.External.Api.GatewayProfileExtraChannel.Parser); + private readonly pbc::RepeatedField extraChannels_ = new pbc::RepeatedField(); + /// + /// Extra channels added to the channel-configuration (in case the LoRaWAN + /// region supports adding custom channels). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ExtraChannels { + get { return extraChannels_; } + } + + /// Field number for the "stats_interval" field. + public const int StatsIntervalFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Duration statsInterval_; + /// + /// Stats interval. + /// This defines the (expected) stats interval which the gateways using this + /// gateway-profile are using. + /// + [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 GatewayProfile); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayProfile 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 (NetworkServerId != other.NetworkServerId) return false; + if(!channels_.Equals(other.channels_)) return false; + if(!extraChannels_.Equals(other.extraChannels_)) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (NetworkServerId != 0L) hash ^= NetworkServerId.GetHashCode(); + hash ^= channels_.GetHashCode(); + hash ^= extraChannels_.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(NetworkServerId); + } + channels_.WriteTo(output, _repeated_channels_codec); + extraChannels_.WriteTo(output, _repeated_extraChannels_codec); + if (statsInterval_ != null) { + output.WriteRawTag(50); + output.WriteMessage(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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(NetworkServerId); + } + channels_.WriteTo(ref output, _repeated_channels_codec); + extraChannels_.WriteTo(ref output, _repeated_extraChannels_codec); + if (statsInterval_ != null) { + output.WriteRawTag(50); + output.WriteMessage(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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (NetworkServerId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NetworkServerId); + } + size += channels_.CalculateSize(_repeated_channels_codec); + size += extraChannels_.CalculateSize(_repeated_extraChannels_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(GatewayProfile other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.NetworkServerId != 0L) { + NetworkServerId = other.NetworkServerId; + } + channels_.Add(other.channels_); + extraChannels_.Add(other.extraChannels_); + 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: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + NetworkServerId = input.ReadInt64(); + break; + } + case 34: + case 32: { + channels_.AddEntriesFrom(input, _repeated_channels_codec); + break; + } + case 42: { + extraChannels_.AddEntriesFrom(input, _repeated_extraChannels_codec); + break; + } + case 50: { + if (statsInterval_ == null) { + StatsInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StatsInterval); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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: { + NetworkServerId = input.ReadInt64(); + break; + } + case 34: + case 32: { + channels_.AddEntriesFrom(ref input, _repeated_channels_codec); + break; + } + case 42: { + extraChannels_.AddEntriesFrom(ref input, _repeated_extraChannels_codec); + break; + } + case 50: { + if (statsInterval_ == null) { + StatsInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StatsInterval); + break; + } + } + } + } + #endif + + } + + public sealed partial class GatewayProfileListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayProfileListItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayProfileReflection.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 GatewayProfileListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayProfileListItem(GatewayProfileListItem other) : this() { + id_ = other.id_; + name_ = other.name_; + networkServerId_ = other.networkServerId_; + networkServerName_ = other.networkServerName_; + 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 GatewayProfileListItem Clone() { + return new GatewayProfileListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Gateway-profile ID (UUID string). + /// + [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_ = ""; + /// + /// Gateway-profile 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 "network_server_id" field. + public const int NetworkServerIdFieldNumber = 3; + private long networkServerId_; + /// + /// Network-server ID on which the gateway-profile is provisioned. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkServerId { + get { return networkServerId_; } + set { + networkServerId_ = value; + } + } + + /// Field number for the "network_server_name" field. + public const int NetworkServerNameFieldNumber = 7; + private string networkServerName_ = ""; + /// + /// Network-server name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NetworkServerName { + get { return networkServerName_; } + set { + networkServerName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 5; + 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 = 6; + 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 GatewayProfileListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayProfileListItem 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 (NetworkServerId != other.NetworkServerId) return false; + if (NetworkServerName != other.NetworkServerName) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (NetworkServerId != 0L) hash ^= NetworkServerId.GetHashCode(); + if (NetworkServerName.Length != 0) hash ^= NetworkServerName.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(NetworkServerId); + } + if (createdAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdatedAt); + } + if (NetworkServerName.Length != 0) { + output.WriteRawTag(58); + output.WriteString(NetworkServerName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (NetworkServerId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(NetworkServerId); + } + if (createdAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdatedAt); + } + if (NetworkServerName.Length != 0) { + output.WriteRawTag(58); + output.WriteString(NetworkServerName); + } + if (_unknownFields != 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 (NetworkServerId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NetworkServerId); + } + if (NetworkServerName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NetworkServerName); + } + 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(GatewayProfileListItem other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.NetworkServerId != 0L) { + NetworkServerId = other.NetworkServerId; + } + if (other.NetworkServerName.Length != 0) { + NetworkServerName = other.NetworkServerName; + } + 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: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + NetworkServerId = input.ReadInt64(); + break; + } + case 42: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 50: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 58: { + NetworkServerName = 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: { + NetworkServerId = input.ReadInt64(); + break; + } + case 42: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 50: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 58: { + NetworkServerName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GatewayProfileExtraChannel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayProfileExtraChannel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayProfileReflection.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 GatewayProfileExtraChannel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayProfileExtraChannel(GatewayProfileExtraChannel other) : this() { + modulation_ = other.modulation_; + frequency_ = other.frequency_; + bandwidth_ = other.bandwidth_; + bitrate_ = other.bitrate_; + spreadingFactors_ = other.spreadingFactors_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayProfileExtraChannel Clone() { + return new GatewayProfileExtraChannel(this); + } + + /// Field number for the "modulation" field. + public const int ModulationFieldNumber = 1; + 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 "frequency" field. + public const int FrequencyFieldNumber = 2; + private uint frequency_; + /// + /// Frequency. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Frequency { + get { return frequency_; } + set { + frequency_ = value; + } + } + + /// Field number for the "bandwidth" field. + public const int BandwidthFieldNumber = 3; + 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 "bitrate" field. + public const int BitrateFieldNumber = 4; + private uint bitrate_; + /// + /// Bitrate (in case of FSK modulation). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Bitrate { + get { return bitrate_; } + set { + bitrate_ = value; + } + } + + /// Field number for the "spreading_factors" field. + public const int SpreadingFactorsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_spreadingFactors_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField spreadingFactors_ = new pbc::RepeatedField(); + /// + /// Spreading factors (in case of LoRa modulation). + /// + [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 GatewayProfileExtraChannel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayProfileExtraChannel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Modulation != other.Modulation) return false; + if (Frequency != other.Frequency) return false; + if (Bandwidth != other.Bandwidth) return false; + if (Bitrate != other.Bitrate) 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 (Modulation != global::Chirpstack.Common.Modulation.Lora) hash ^= Modulation.GetHashCode(); + if (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (Bandwidth != 0) hash ^= Bandwidth.GetHashCode(); + if (Bitrate != 0) hash ^= Bitrate.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 (Modulation != global::Chirpstack.Common.Modulation.Lora) { + output.WriteRawTag(8); + output.WriteEnum((int) Modulation); + } + if (Frequency != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Frequency); + } + if (Bandwidth != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Bandwidth); + } + if (Bitrate != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Bitrate); + } + spreadingFactors_.WriteTo(output, _repeated_spreadingFactors_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 (Modulation != global::Chirpstack.Common.Modulation.Lora) { + output.WriteRawTag(8); + output.WriteEnum((int) Modulation); + } + if (Frequency != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Frequency); + } + if (Bandwidth != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Bandwidth); + } + if (Bitrate != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Bitrate); + } + spreadingFactors_.WriteTo(ref output, _repeated_spreadingFactors_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 (Modulation != global::Chirpstack.Common.Modulation.Lora) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Modulation); + } + if (Frequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); + } + if (Bandwidth != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Bandwidth); + } + if (Bitrate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Bitrate); + } + 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(GatewayProfileExtraChannel other) { + if (other == null) { + return; + } + if (other.Modulation != global::Chirpstack.Common.Modulation.Lora) { + Modulation = other.Modulation; + } + if (other.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.Bandwidth != 0) { + Bandwidth = other.Bandwidth; + } + if (other.Bitrate != 0) { + Bitrate = other.Bitrate; + } + 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: { + Modulation = (global::Chirpstack.Common.Modulation) input.ReadEnum(); + break; + } + case 16: { + Frequency = input.ReadUInt32(); + break; + } + case 24: { + Bandwidth = input.ReadUInt32(); + break; + } + case 32: { + Bitrate = input.ReadUInt32(); + break; + } + case 42: + case 40: { + spreadingFactors_.AddEntriesFrom(input, _repeated_spreadingFactors_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: { + Modulation = (global::Chirpstack.Common.Modulation) input.ReadEnum(); + break; + } + case 16: { + Frequency = input.ReadUInt32(); + break; + } + case 24: { + Bandwidth = input.ReadUInt32(); + break; + } + case 32: { + Bitrate = input.ReadUInt32(); + break; + } + case 42: + case 40: { + spreadingFactors_.AddEntriesFrom(ref input, _repeated_spreadingFactors_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateGatewayProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateGatewayProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayProfileReflection.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 CreateGatewayProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateGatewayProfileRequest(CreateGatewayProfileRequest other) : this() { + gatewayProfile_ = other.gatewayProfile_ != null ? other.gatewayProfile_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateGatewayProfileRequest Clone() { + return new CreateGatewayProfileRequest(this); + } + + /// Field number for the "gateway_profile" field. + public const int GatewayProfileFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.GatewayProfile gatewayProfile_; + /// + /// Gateway-profile object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.GatewayProfile GatewayProfile { + get { return gatewayProfile_; } + set { + gatewayProfile_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateGatewayProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateGatewayProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GatewayProfile, other.GatewayProfile)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (gatewayProfile_ != null) hash ^= GatewayProfile.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (gatewayProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GatewayProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (gatewayProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GatewayProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (gatewayProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GatewayProfile); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateGatewayProfileRequest other) { + if (other == null) { + return; + } + if (other.gatewayProfile_ != null) { + if (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.ApplicationServer.External.Api.GatewayProfile(); + } + GatewayProfile.MergeFrom(other.GatewayProfile); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.ApplicationServer.External.Api.GatewayProfile(); + } + input.ReadMessage(GatewayProfile); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.ApplicationServer.External.Api.GatewayProfile(); + } + input.ReadMessage(GatewayProfile); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateGatewayProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateGatewayProfileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayProfileReflection.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 CreateGatewayProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateGatewayProfileResponse(CreateGatewayProfileResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateGatewayProfileResponse Clone() { + return new CreateGatewayProfileResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Gateway-profile ID (UUID string). + /// + [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 CreateGatewayProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateGatewayProfileResponse 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(CreateGatewayProfileResponse 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 GetGatewayProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayProfileReflection.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 GetGatewayProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayProfileRequest(GetGatewayProfileRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayProfileRequest Clone() { + return new GetGatewayProfileRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Gateway-profile ID (UUID string). + /// + [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 GetGatewayProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewayProfileRequest 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(GetGatewayProfileRequest 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 GetGatewayProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayProfileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayProfileReflection.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 GetGatewayProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayProfileResponse(GetGatewayProfileResponse other) : this() { + gatewayProfile_ = other.gatewayProfile_ != null ? other.gatewayProfile_.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 GetGatewayProfileResponse Clone() { + return new GetGatewayProfileResponse(this); + } + + /// Field number for the "gateway_profile" field. + public const int GatewayProfileFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.GatewayProfile gatewayProfile_; + /// + /// Gateway-profile object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.GatewayProfile GatewayProfile { + get { return gatewayProfile_; } + set { + gatewayProfile_ = 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 GetGatewayProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewayProfileResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GatewayProfile, other.GatewayProfile)) 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 (gatewayProfile_ != null) hash ^= GatewayProfile.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 (gatewayProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GatewayProfile); + } + 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 (gatewayProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GatewayProfile); + } + 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 (gatewayProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GatewayProfile); + } + 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(GetGatewayProfileResponse other) { + if (other == null) { + return; + } + if (other.gatewayProfile_ != null) { + if (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.ApplicationServer.External.Api.GatewayProfile(); + } + GatewayProfile.MergeFrom(other.GatewayProfile); + } + 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 (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.ApplicationServer.External.Api.GatewayProfile(); + } + input.ReadMessage(GatewayProfile); + 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 (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.ApplicationServer.External.Api.GatewayProfile(); + } + input.ReadMessage(GatewayProfile); + 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 UpdateGatewayProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateGatewayProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayProfileReflection.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 UpdateGatewayProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateGatewayProfileRequest(UpdateGatewayProfileRequest other) : this() { + gatewayProfile_ = other.gatewayProfile_ != null ? other.gatewayProfile_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateGatewayProfileRequest Clone() { + return new UpdateGatewayProfileRequest(this); + } + + /// Field number for the "gateway_profile" field. + public const int GatewayProfileFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.GatewayProfile gatewayProfile_; + /// + /// Gateway-profile object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.GatewayProfile GatewayProfile { + get { return gatewayProfile_; } + set { + gatewayProfile_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateGatewayProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateGatewayProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GatewayProfile, other.GatewayProfile)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (gatewayProfile_ != null) hash ^= GatewayProfile.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (gatewayProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GatewayProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (gatewayProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GatewayProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (gatewayProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GatewayProfile); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateGatewayProfileRequest other) { + if (other == null) { + return; + } + if (other.gatewayProfile_ != null) { + if (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.ApplicationServer.External.Api.GatewayProfile(); + } + GatewayProfile.MergeFrom(other.GatewayProfile); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.ApplicationServer.External.Api.GatewayProfile(); + } + input.ReadMessage(GatewayProfile); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.ApplicationServer.External.Api.GatewayProfile(); + } + input.ReadMessage(GatewayProfile); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteGatewayProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteGatewayProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayProfileReflection.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 DeleteGatewayProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteGatewayProfileRequest(DeleteGatewayProfileRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteGatewayProfileRequest Clone() { + return new DeleteGatewayProfileRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Gateway-profile id (UUID string). + /// + [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 DeleteGatewayProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteGatewayProfileRequest 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(DeleteGatewayProfileRequest 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 ListGatewayProfilesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListGatewayProfilesRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayProfileReflection.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 ListGatewayProfilesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListGatewayProfilesRequest(ListGatewayProfilesRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + networkServerId_ = other.networkServerId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListGatewayProfilesRequest Clone() { + return new ListGatewayProfilesRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private long limit_; + /// + /// Max number of items 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 = 2; + private long offset_; + /// + /// Offset in 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; + } + } + + /// Field number for the "network_server_id" field. + public const int NetworkServerIdFieldNumber = 3; + private long networkServerId_; + /// + /// Network-server ID to filter on (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkServerId { + get { return networkServerId_; } + set { + networkServerId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListGatewayProfilesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListGatewayProfilesRequest 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 (NetworkServerId != other.NetworkServerId) return false; + 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 != 0L) hash ^= Limit.GetHashCode(); + if (Offset != 0L) hash ^= Offset.GetHashCode(); + if (NetworkServerId != 0L) hash ^= NetworkServerId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(NetworkServerId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(NetworkServerId); + } + if (_unknownFields != 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); + } + if (Offset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset); + } + if (NetworkServerId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NetworkServerId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListGatewayProfilesRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0L) { + Limit = other.Limit; + } + if (other.Offset != 0L) { + Offset = other.Offset; + } + if (other.NetworkServerId != 0L) { + NetworkServerId = other.NetworkServerId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + NetworkServerId = 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 8: { + Limit = input.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + NetworkServerId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListGatewayProfilesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListGatewayProfilesResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayProfileReflection.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 ListGatewayProfilesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListGatewayProfilesResponse(ListGatewayProfilesResponse 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 ListGatewayProfilesResponse Clone() { + return new ListGatewayProfilesResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private long totalCount_; + /// + /// Total number of gateway-profiles. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.Api.GatewayProfileListItem.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 ListGatewayProfilesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListGatewayProfilesResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(ListGatewayProfilesResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/as/external/api/GatewayProfileGrpc.cs b/csharp/protobuf/as/external/api/GatewayProfileGrpc.cs new file mode 100644 index 00000000..cdbdb1a7 --- /dev/null +++ b/csharp/protobuf/as/external/api/GatewayProfileGrpc.cs @@ -0,0 +1,486 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/gatewayProfile.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer.External.Api { + /// + /// GatewayProfileService is the service managing the gateway-profiles. + /// + public static partial class GatewayProfileService + { + static readonly string __ServiceName = "api.GatewayProfileService"; + + [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_CreateGatewayProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.CreateGatewayProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateGatewayProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.CreateGatewayProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetGatewayProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetGatewayProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetGatewayProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetGatewayProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateGatewayProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.UpdateGatewayProfileRequest.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_DeleteGatewayProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.DeleteGatewayProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListGatewayProfilesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListGatewayProfilesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListGatewayProfilesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListGatewayProfilesResponse.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_CreateGatewayProfileRequest, + __Marshaller_api_CreateGatewayProfileResponse); + + [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_GetGatewayProfileRequest, + __Marshaller_api_GetGatewayProfileResponse); + + [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_UpdateGatewayProfileRequest, + __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_DeleteGatewayProfileRequest, + __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_ListGatewayProfilesRequest, + __Marshaller_api_ListGatewayProfilesResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.ApplicationServer.External.Api.GatewayProfileReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of GatewayProfileService + [grpc::BindServiceMethod(typeof(GatewayProfileService), "BindService")] + public abstract partial class GatewayProfileServiceBase + { + /// + /// Create creates the given gateway-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.ApplicationServer.External.Api.CreateGatewayProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get returns the gateway-profile matching 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.ApplicationServer.External.Api.GetGatewayProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update updates the given gateway-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.ApplicationServer.External.Api.UpdateGatewayProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete deletes the gateway-profile matching 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.ApplicationServer.External.Api.DeleteGatewayProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List returns the existing gateway-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.ApplicationServer.External.Api.ListGatewayProfilesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for GatewayProfileService + public partial class GatewayProfileServiceClient : grpc::ClientBase + { + /// Creates a new client for GatewayProfileService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public GatewayProfileServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for GatewayProfileService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public GatewayProfileServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected GatewayProfileServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected GatewayProfileServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Create creates the given gateway-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.ApplicationServer.External.Api.CreateGatewayProfileResponse Create(global::Chirpstack.ApplicationServer.External.Api.CreateGatewayProfileRequest 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-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.ApplicationServer.External.Api.CreateGatewayProfileResponse Create(global::Chirpstack.ApplicationServer.External.Api.CreateGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create creates the given gateway-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.ApplicationServer.External.Api.CreateGatewayProfileRequest 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-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.ApplicationServer.External.Api.CreateGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get returns the gateway-profile matching 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.ApplicationServer.External.Api.GetGatewayProfileResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetGatewayProfileRequest 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-profile matching 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.ApplicationServer.External.Api.GetGatewayProfileResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get returns the gateway-profile matching 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.ApplicationServer.External.Api.GetGatewayProfileRequest 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-profile matching 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.ApplicationServer.External.Api.GetGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update updates the given gateway-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.ApplicationServer.External.Api.UpdateGatewayProfileRequest 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-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.ApplicationServer.External.Api.UpdateGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update updates the given gateway-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.ApplicationServer.External.Api.UpdateGatewayProfileRequest 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-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.ApplicationServer.External.Api.UpdateGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete deletes the gateway-profile matching 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.ApplicationServer.External.Api.DeleteGatewayProfileRequest 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-profile matching 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.ApplicationServer.External.Api.DeleteGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete deletes the gateway-profile matching 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.ApplicationServer.External.Api.DeleteGatewayProfileRequest 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-profile matching 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.ApplicationServer.External.Api.DeleteGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// List returns the existing gateway-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.ApplicationServer.External.Api.ListGatewayProfilesResponse List(global::Chirpstack.ApplicationServer.External.Api.ListGatewayProfilesRequest 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 returns the existing gateway-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.ApplicationServer.External.Api.ListGatewayProfilesResponse List(global::Chirpstack.ApplicationServer.External.Api.ListGatewayProfilesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// List returns the existing gateway-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.ApplicationServer.External.Api.ListGatewayProfilesRequest 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 returns the existing gateway-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.ApplicationServer.External.Api.ListGatewayProfilesRequest 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 GatewayProfileServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new GatewayProfileServiceClient(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(GatewayProfileServiceBase 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, GatewayProfileServiceBase 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/csharp/protobuf/as/external/api/Internal.cs b/csharp/protobuf/as/external/api/Internal.cs new file mode 100644 index 00000000..74394a49 --- /dev/null +++ b/csharp/protobuf/as/external/api/Internal.cs @@ -0,0 +1,5981 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/internal.proto + public static partial class InternalReflection { + + #region Descriptor + /// File descriptor for as/external/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( + "Ch5hcy9leHRlcm5hbC9hcGkvaW50ZXJuYWwucHJvdG8SA2FwaRocZ29vZ2xl", + "L2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVz", + "dGFtcC5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGhphcy9l", + "eHRlcm5hbC9hcGkvdXNlci5wcm90byKEAQoGQVBJS2V5EgoKAmlkGAEgASgJ", + "EgwKBG5hbWUYAiABKAkSEAoIaXNfYWRtaW4YAyABKAgSJwoPb3JnYW5pemF0", + "aW9uX2lkGAQgASgDUg5vcmdhbml6YXRpb25JRBIlCg5hcHBsaWNhdGlvbl9p", + "ZBgFIAEoA1INYXBwbGljYXRpb25JRCIzChNDcmVhdGVBUElLZXlSZXF1ZXN0", + "EhwKB2FwaV9rZXkYASABKAsyCy5hcGkuQVBJS2V5IjUKFENyZWF0ZUFQSUtl", + "eVJlc3BvbnNlEgoKAmlkGAEgASgJEhEKCWp3dF90b2tlbhgCIAEoCSIhChNE", + "ZWxldGVBUElLZXlSZXF1ZXN0EgoKAmlkGAEgASgJIpUBChJMaXN0QVBJS2V5", + "c1JlcXVlc3QSDQoFbGltaXQYASABKAMSDgoGb2Zmc2V0GAIgASgDEhAKCGlz", + "X2FkbWluGAMgASgIEicKD29yZ2FuaXphdGlvbl9pZBgEIAEoA1IOb3JnYW5p", + "emF0aW9uSUQSJQoOYXBwbGljYXRpb25faWQYBSABKANSDWFwcGxpY2F0aW9u", + "SUQiRwoTTGlzdEFQSUtleXNSZXNwb25zZRITCgt0b3RhbF9jb3VudBgBIAEo", + "AxIbCgZyZXN1bHQYAiADKAsyCy5hcGkuQVBJS2V5IvsBChBPcmdhbml6YXRp", + "b25MaW5rEicKD29yZ2FuaXphdGlvbl9pZBgBIAEoA1IOb3JnYW5pemF0aW9u", + "SUQSGQoRb3JnYW5pemF0aW9uX25hbWUYAiABKAkSEAoIaXNfYWRtaW4YAyAB", + "KAgSFwoPaXNfZGV2aWNlX2FkbWluGAYgASgIEhgKEGlzX2dhdGV3YXlfYWRt", + "aW4YByABKAgSLgoKY3JlYXRlZF9hdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1", + "Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgFIAEoCzIaLmdvb2dsZS5wcm90", + "b2J1Zi5UaW1lc3RhbXAiLwoMTG9naW5SZXF1ZXN0Eg0KBWVtYWlsGAEgASgJ", + "EhAKCHBhc3N3b3JkGAIgASgJIhwKDUxvZ2luUmVzcG9uc2USCwoDand0GAEg", + "ASgJIlgKD1Byb2ZpbGVSZXNwb25zZRIXCgR1c2VyGAEgASgLMgkuYXBpLlVz", + "ZXISLAoNb3JnYW5pemF0aW9ucxgDIAMoCzIVLmFwaS5Pcmdhbml6YXRpb25M", + "aW5rIkQKE0dsb2JhbFNlYXJjaFJlcXVlc3QSDgoGc2VhcmNoGAEgASgJEg0K", + "BWxpbWl0GAIgASgDEg4KBm9mZnNldBgDIAEoAyI/ChRHbG9iYWxTZWFyY2hS", + "ZXNwb25zZRInCgZyZXN1bHQYASADKAsyFy5hcGkuR2xvYmFsU2VhcmNoUmVz", + "dWx0IqgCChJHbG9iYWxTZWFyY2hSZXN1bHQSDAoEa2luZBgBIAEoCRINCgVz", + "Y29yZRgCIAEoAhInCg9vcmdhbml6YXRpb25faWQYAyABKANSDm9yZ2FuaXph", + "dGlvbklEEhkKEW9yZ2FuaXphdGlvbl9uYW1lGAQgASgJEiUKDmFwcGxpY2F0", + "aW9uX2lkGAUgASgDUg1hcHBsaWNhdGlvbklEEhgKEGFwcGxpY2F0aW9uX25h", + "bWUYBiABKAkSJAoOZGV2aWNlX2Rldl9ldWkYByABKAlSDGRldmljZURldkVV", + "SRITCgtkZXZpY2VfbmFtZRgIIAEoCRIfCgtnYXRld2F5X21hYxgJIAEoCVIK", + "Z2F0ZXdheU1BQxIUCgxnYXRld2F5X25hbWUYCiABKAkiXwoQU2V0dGluZ3NS", + "ZXNwb25zZRIfCghicmFuZGluZxgCIAEoCzINLmFwaS5CcmFuZGluZxIqCg5v", + "cGVuaWRfY29ubmVjdBgDIAEoCzISLmFwaS5PcGVuSURDb25uZWN0IjAKCEJy", + "YW5kaW5nEhQKDHJlZ2lzdHJhdGlvbhgBIAEoCRIOCgZmb290ZXIYAiABKAki", + "cQoNT3BlbklEQ29ubmVjdBIPCgdlbmFibGVkGAEgASgIEhsKCWxvZ2luX3Vy", + "bBgCIAEoCVIIbG9naW5VUkwSEwoLbG9naW5fbGFiZWwYAyABKAkSHQoKbG9n", + "b3V0X3VybBgEIAEoCVIJbG9nb3V0VVJMIjgKGU9wZW5JRENvbm5lY3RMb2dp", + "blJlcXVlc3QSDAoEY29kZRgBIAEoCRINCgVzdGF0ZRgCIAEoCSIvChpPcGVu", + "SURDb25uZWN0TG9naW5SZXNwb25zZRIRCglqd3RfdG9rZW4YASABKAkiQwoY", + "R2V0RGV2aWNlc1N1bW1hcnlSZXF1ZXN0EicKD29yZ2FuaXphdGlvbl9pZBgB", + "IAEoA1IOb3JnYW5pemF0aW9uSUQi0gEKGUdldERldmljZXNTdW1tYXJ5UmVz", + "cG9uc2USFAoMYWN0aXZlX2NvdW50GAEgASgNEhYKDmluYWN0aXZlX2NvdW50", + "GAIgASgNEj0KCGRyX2NvdW50GAMgAygLMisuYXBpLkdldERldmljZXNTdW1t", + "YXJ5UmVzcG9uc2UuRHJDb3VudEVudHJ5EhgKEG5ldmVyX3NlZW5fY291bnQY", + "BCABKA0aLgoMRHJDb3VudEVudHJ5EgsKA2tleRgBIAEoDRINCgV2YWx1ZRgC", + "IAEoDToCOAEiRAoZR2V0R2F0ZXdheXNTdW1tYXJ5UmVxdWVzdBInCg9vcmdh", + "bml6YXRpb25faWQYASABKANSDm9yZ2FuaXphdGlvbklEImQKGkdldEdhdGV3", + "YXlzU3VtbWFyeVJlc3BvbnNlEhQKDGFjdGl2ZV9jb3VudBgBIAEoDRIWCg5p", + "bmFjdGl2ZV9jb3VudBgCIAEoDRIYChBuZXZlcl9zZWVuX2NvdW50GAMgASgN", + "MpsICg9JbnRlcm5hbFNlcnZpY2USTgoFTG9naW4SES5hcGkuTG9naW5SZXF1", + "ZXN0GhIuYXBpLkxvZ2luUmVzcG9uc2UiHoLT5JMCGCITL2FwaS9pbnRlcm5h", + "bC9sb2dpbjoBKhJWCgdQcm9maWxlEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", + "GhQuYXBpLlByb2ZpbGVSZXNwb25zZSIdgtPkkwIXEhUvYXBpL2ludGVybmFs", + "L3Byb2ZpbGUSYQoMR2xvYmFsU2VhcmNoEhguYXBpLkdsb2JhbFNlYXJjaFJl", + "cXVlc3QaGS5hcGkuR2xvYmFsU2VhcmNoUmVzcG9uc2UiHILT5JMCFhIUL2Fw", + "aS9pbnRlcm5hbC9zZWFyY2gSZgoMQ3JlYXRlQVBJS2V5EhguYXBpLkNyZWF0", + "ZUFQSUtleVJlcXVlc3QaGS5hcGkuQ3JlYXRlQVBJS2V5UmVzcG9uc2UiIYLT", + "5JMCGyIWL2FwaS9pbnRlcm5hbC9hcGkta2V5czoBKhJlCgxEZWxldGVBUElL", + "ZXkSGC5hcGkuRGVsZXRlQVBJS2V5UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1", + "Zi5FbXB0eSIjgtPkkwIdKhsvYXBpL2ludGVybmFsL2FwaS1rZXlzL3tpZH0S", + "YAoLTGlzdEFQSUtleXMSFy5hcGkuTGlzdEFQSUtleXNSZXF1ZXN0GhguYXBp", + "Lkxpc3RBUElLZXlzUmVzcG9uc2UiHoLT5JMCGBIWL2FwaS9pbnRlcm5hbC9h", + "cGkta2V5cxJZCghTZXR0aW5ncxIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoV", + "LmFwaS5TZXR0aW5nc1Jlc3BvbnNlIh6C0+STAhgSFi9hcGkvaW50ZXJuYWwv", + "c2V0dGluZ3MSdwoST3BlbklEQ29ubmVjdExvZ2luEh4uYXBpLk9wZW5JRENv", + "bm5lY3RMb2dpblJlcXVlc3QaHy5hcGkuT3BlbklEQ29ubmVjdExvZ2luUmVz", + "cG9uc2UiIILT5JMCGhIYL2FwaS9pbnRlcm5hbC9vaWRjL2xvZ2luEnkKEUdl", + "dERldmljZXNTdW1tYXJ5Eh0uYXBpLkdldERldmljZXNTdW1tYXJ5UmVxdWVz", + "dBoeLmFwaS5HZXREZXZpY2VzU3VtbWFyeVJlc3BvbnNlIiWC0+STAh8SHS9h", + "cGkvaW50ZXJuYWwvZGV2aWNlcy9zdW1tYXJ5En0KEkdldEdhdGV3YXlzU3Vt", + "bWFyeRIeLmFwaS5HZXRHYXRld2F5c1N1bW1hcnlSZXF1ZXN0Gh8uYXBpLkdl", + "dEdhdGV3YXlzU3VtbWFyeVJlc3BvbnNlIiaC0+STAiASHi9hcGkvaW50ZXJu", + "YWwvZ2F0ZXdheXMvc3VtbWFyeUKZAQohaW8uY2hpcnBzdGFjay5hcGkuYXMu", + "ZXh0ZXJuYWwuYXBpQg1JbnRlcm5hbFByb3RvUAFaN2dpdGh1Yi5jb20vYnJv", + "Y2Fhci9jaGlycHN0YWNrLWFwaS9nby92My9hcy9leHRlcm5hbC9hcGmqAilD", + "aGlycHN0YWNrLkFwcGxpY2F0aW9uU2VydmVyLkV4dGVybmFsLkFwaWIGcHJv", + "dG8z")); + 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.ApplicationServer.External.Api.UserReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.APIKey), global::Chirpstack.ApplicationServer.External.Api.APIKey.Parser, new[]{ "Id", "Name", "IsAdmin", "OrganizationId", "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateAPIKeyRequest), global::Chirpstack.ApplicationServer.External.Api.CreateAPIKeyRequest.Parser, new[]{ "ApiKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateAPIKeyResponse), global::Chirpstack.ApplicationServer.External.Api.CreateAPIKeyResponse.Parser, new[]{ "Id", "JwtToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteAPIKeyRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteAPIKeyRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListAPIKeysRequest), global::Chirpstack.ApplicationServer.External.Api.ListAPIKeysRequest.Parser, new[]{ "Limit", "Offset", "IsAdmin", "OrganizationId", "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListAPIKeysResponse), global::Chirpstack.ApplicationServer.External.Api.ListAPIKeysResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.OrganizationLink), global::Chirpstack.ApplicationServer.External.Api.OrganizationLink.Parser, new[]{ "OrganizationId", "OrganizationName", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.LoginRequest), global::Chirpstack.ApplicationServer.External.Api.LoginRequest.Parser, new[]{ "Email", "Password" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.LoginResponse), global::Chirpstack.ApplicationServer.External.Api.LoginResponse.Parser, new[]{ "Jwt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ProfileResponse), global::Chirpstack.ApplicationServer.External.Api.ProfileResponse.Parser, new[]{ "User", "Organizations" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GlobalSearchRequest), global::Chirpstack.ApplicationServer.External.Api.GlobalSearchRequest.Parser, new[]{ "Search", "Limit", "Offset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GlobalSearchResponse), global::Chirpstack.ApplicationServer.External.Api.GlobalSearchResponse.Parser, new[]{ "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GlobalSearchResult), global::Chirpstack.ApplicationServer.External.Api.GlobalSearchResult.Parser, new[]{ "Kind", "Score", "OrganizationId", "OrganizationName", "ApplicationId", "ApplicationName", "DeviceDevEui", "DeviceName", "GatewayMac", "GatewayName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.SettingsResponse), global::Chirpstack.ApplicationServer.External.Api.SettingsResponse.Parser, new[]{ "Branding", "OpenidConnect" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.Branding), global::Chirpstack.ApplicationServer.External.Api.Branding.Parser, new[]{ "Registration", "Footer" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.OpenIDConnect), global::Chirpstack.ApplicationServer.External.Api.OpenIDConnect.Parser, new[]{ "Enabled", "LoginUrl", "LoginLabel", "LogoutUrl" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.OpenIDConnectLoginRequest), global::Chirpstack.ApplicationServer.External.Api.OpenIDConnectLoginRequest.Parser, new[]{ "Code", "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.OpenIDConnectLoginResponse), global::Chirpstack.ApplicationServer.External.Api.OpenIDConnectLoginResponse.Parser, new[]{ "JwtToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetDevicesSummaryRequest), global::Chirpstack.ApplicationServer.External.Api.GetDevicesSummaryRequest.Parser, new[]{ "OrganizationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetDevicesSummaryResponse), global::Chirpstack.ApplicationServer.External.Api.GetDevicesSummaryResponse.Parser, new[]{ "ActiveCount", "InactiveCount", "DrCount", "NeverSeenCount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetGatewaysSummaryRequest), global::Chirpstack.ApplicationServer.External.Api.GetGatewaysSummaryRequest.Parser, new[]{ "OrganizationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetGatewaysSummaryResponse), global::Chirpstack.ApplicationServer.External.Api.GetGatewaysSummaryResponse.Parser, new[]{ "ActiveCount", "InactiveCount", "NeverSeenCount" }, 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.ApplicationServer.External.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_; + organizationId_ = other.organizationId_; + applicationId_ = other.applicationId_; + _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 "organization_id" field. + public const int OrganizationIdFieldNumber = 4; + private long organizationId_; + /// + /// Organization ID. + /// In case this API key is to manage resources within a single organization + /// set this to the ID of this organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 5; + private long applicationId_; + /// + /// Application ID. + /// In case the API key is to manage resources within an application, set + /// this to the ID of this application.message + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 (OrganizationId != other.OrganizationId) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (ApplicationId != 0L) 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 (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 (OrganizationId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(OrganizationId); + } + if (ApplicationId != 0L) { + output.WriteRawTag(40); + output.WriteInt64(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 (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 (OrganizationId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(OrganizationId); + } + if (ApplicationId != 0L) { + output.WriteRawTag(40); + output.WriteInt64(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 (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 (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (ApplicationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + 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.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.ApplicationId != 0L) { + 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: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 32: { + OrganizationId = input.ReadInt64(); + break; + } + case 40: { + ApplicationId = 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: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 32: { + OrganizationId = input.ReadInt64(); + break; + } + case 40: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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.ApplicationServer.External.Api.APIKey apiKey_; + /// + /// The API key to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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_; + jwtToken_ = other.jwtToken_; + _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 "jwt_token" field. + public const int JwtTokenFieldNumber = 2; + private string jwtToken_ = ""; + /// + /// JWT token for this API Key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string JwtToken { + get { return jwtToken_; } + set { + jwtToken_ = 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 (JwtToken != other.JwtToken) return false; + 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 (JwtToken.Length != 0) hash ^= JwtToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (JwtToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(JwtToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (JwtToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(JwtToken); + } + if (_unknownFields != 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 (JwtToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(JwtToken); + } + 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.JwtToken.Length != 0) { + JwtToken = other.JwtToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + JwtToken = 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: { + JwtToken = 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.ApplicationServer.External.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.ApplicationServer.External.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_; + organizationId_ = other.organizationId_; + applicationId_ = other.applicationId_; + _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 long limit_; + /// + /// Max number of items 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 = 2; + private long offset_; + /// + /// Offset in 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; + } + } + + /// 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 "organization_id" field. + public const int OrganizationIdFieldNumber = 4; + private long organizationId_; + /// + /// Filter on organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 5; + private long applicationId_; + /// + /// Filter on application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 (OrganizationId != other.OrganizationId) 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 != 0L) hash ^= Limit.GetHashCode(); + if (Offset != 0L) hash ^= Offset.GetHashCode(); + if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (ApplicationId != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (OrganizationId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(OrganizationId); + } + if (ApplicationId != 0L) { + output.WriteRawTag(40); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (OrganizationId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(OrganizationId); + } + if (ApplicationId != 0L) { + output.WriteRawTag(40); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); + } + if (Offset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset); + } + if (IsAdmin != false) { + size += 1 + 1; + } + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (ApplicationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + 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 != 0L) { + Limit = other.Limit; + } + if (other.Offset != 0L) { + Offset = other.Offset; + } + if (other.IsAdmin != false) { + IsAdmin = other.IsAdmin; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.ApplicationId != 0L) { + 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.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 32: { + OrganizationId = input.ReadInt64(); + break; + } + case 40: { + ApplicationId = 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 8: { + Limit = input.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 32: { + OrganizationId = input.ReadInt64(); + break; + } + case 40: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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 long totalCount_; + /// + /// Total number of API keys. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Defines an organization to which an user is associated. + /// + public sealed partial class OrganizationLink : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OrganizationLink()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 OrganizationLink() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OrganizationLink(OrganizationLink other) : this() { + organizationId_ = other.organizationId_; + organizationName_ = other.organizationName_; + isAdmin_ = other.isAdmin_; + isDeviceAdmin_ = other.isDeviceAdmin_; + isGatewayAdmin_ = other.isGatewayAdmin_; + 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 OrganizationLink Clone() { + return new OrganizationLink(this); + } + + /// Field number for the "organization_id" field. + public const int OrganizationIdFieldNumber = 1; + private long organizationId_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "organization_name" field. + public const int OrganizationNameFieldNumber = 2; + private string organizationName_ = ""; + /// + /// Organization name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrganizationName { + get { return organizationName_; } + set { + organizationName_ = 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 this organization. + /// 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 = 6; + 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 = 7; + 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 "created_at" field. + public const int CreatedAtFieldNumber = 4; + 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 = 5; + 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 OrganizationLink); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OrganizationLink other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OrganizationId != other.OrganizationId) return false; + if (OrganizationName != other.OrganizationName) return false; + if (IsAdmin != other.IsAdmin) return false; + if (IsDeviceAdmin != other.IsDeviceAdmin) return false; + if (IsGatewayAdmin != other.IsGatewayAdmin) 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 (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (OrganizationName.Length != 0) hash ^= OrganizationName.GetHashCode(); + if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); + if (IsDeviceAdmin != false) hash ^= IsDeviceAdmin.GetHashCode(); + if (IsGatewayAdmin != false) hash ^= IsGatewayAdmin.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 (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (OrganizationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OrganizationName); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (createdAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdatedAt); + } + if (IsDeviceAdmin != false) { + output.WriteRawTag(48); + output.WriteBool(IsDeviceAdmin); + } + if (IsGatewayAdmin != false) { + output.WriteRawTag(56); + 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 (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (OrganizationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OrganizationName); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (createdAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdatedAt); + } + if (IsDeviceAdmin != false) { + output.WriteRawTag(48); + output.WriteBool(IsDeviceAdmin); + } + if (IsGatewayAdmin != false) { + output.WriteRawTag(56); + 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 (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (OrganizationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrganizationName); + } + if (IsAdmin != false) { + size += 1 + 1; + } + if (IsDeviceAdmin != false) { + size += 1 + 1; + } + if (IsGatewayAdmin != false) { + size += 1 + 1; + } + 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(OrganizationLink other) { + if (other == null) { + return; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.OrganizationName.Length != 0) { + OrganizationName = other.OrganizationName; + } + if (other.IsAdmin != false) { + IsAdmin = other.IsAdmin; + } + if (other.IsDeviceAdmin != false) { + IsDeviceAdmin = other.IsDeviceAdmin; + } + if (other.IsGatewayAdmin != false) { + IsGatewayAdmin = other.IsGatewayAdmin; + } + 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 8: { + OrganizationId = input.ReadInt64(); + break; + } + case 18: { + OrganizationName = input.ReadString(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 34: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 42: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 48: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 56: { + 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 8: { + OrganizationId = input.ReadInt64(); + break; + } + case 18: { + OrganizationName = input.ReadString(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 34: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 42: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 48: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 56: { + 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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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; + organizations_ = other.organizations_.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.ApplicationServer.External.Api.User user_; + /// + /// User object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.User User { + get { return user_; } + set { + user_ = value; + } + } + + /// Field number for the "organizations" field. + public const int OrganizationsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_organizations_codec + = pb::FieldCodec.ForMessage(26, global::Chirpstack.ApplicationServer.External.Api.OrganizationLink.Parser); + private readonly pbc::RepeatedField organizations_ = new pbc::RepeatedField(); + /// + /// Organizations to which the user is associated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Organizations { + get { return organizations_; } + } + + [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(!organizations_.Equals(other.organizations_)) return false; + 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 ^= organizations_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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); + } + organizations_.WriteTo(output, _repeated_organizations_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); + } + organizations_.WriteTo(ref output, _repeated_organizations_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 += organizations_.CalculateSize(_repeated_organizations_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.ApplicationServer.External.Api.User(); + } + User.MergeFrom(other.User); + } + organizations_.Add(other.organizations_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ApplicationServer.External.Api.User(); + } + input.ReadMessage(User); + break; + } + case 26: { + organizations_.AddEntriesFrom(input, _repeated_organizations_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.ApplicationServer.External.Api.User(); + } + input.ReadMessage(User); + break; + } + case 26: { + organizations_.AddEntriesFrom(ref input, _repeated_organizations_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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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_; + organizationId_ = other.organizationId_; + organizationName_ = other.organizationName_; + applicationId_ = other.applicationId_; + applicationName_ = other.applicationName_; + deviceDevEui_ = other.deviceDevEui_; + deviceName_ = other.deviceName_; + gatewayMac_ = other.gatewayMac_; + 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 "organization_id" field. + public const int OrganizationIdFieldNumber = 3; + private long organizationId_; + /// + /// Organization id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "organization_name" field. + public const int OrganizationNameFieldNumber = 4; + private string organizationName_ = ""; + /// + /// Organization name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrganizationName { + get { return organizationName_; } + set { + organizationName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 5; + private long applicationId_; + /// + /// Application id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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_mac" field. + public const int GatewayMacFieldNumber = 9; + private string gatewayMac_ = ""; + /// + /// Gateway MAC (hex encoded). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GatewayMac { + get { return gatewayMac_; } + set { + gatewayMac_ = 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 (OrganizationId != other.OrganizationId) return false; + if (OrganizationName != other.OrganizationName) 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 (GatewayMac != other.GatewayMac) 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 (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (OrganizationName.Length != 0) hash ^= OrganizationName.GetHashCode(); + if (ApplicationId != 0L) 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 (GatewayMac.Length != 0) hash ^= GatewayMac.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 (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (OrganizationName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(OrganizationName); + } + if (ApplicationId != 0L) { + output.WriteRawTag(40); + output.WriteInt64(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 (GatewayMac.Length != 0) { + output.WriteRawTag(74); + output.WriteString(GatewayMac); + } + 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 (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (OrganizationName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(OrganizationName); + } + if (ApplicationId != 0L) { + output.WriteRawTag(40); + output.WriteInt64(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 (GatewayMac.Length != 0) { + output.WriteRawTag(74); + output.WriteString(GatewayMac); + } + 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 (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (OrganizationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrganizationName); + } + if (ApplicationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 (GatewayMac.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayMac); + } + 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.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.OrganizationName.Length != 0) { + OrganizationName = other.OrganizationName; + } + if (other.ApplicationId != 0L) { + 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.GatewayMac.Length != 0) { + GatewayMac = other.GatewayMac; + } + 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 24: { + OrganizationId = input.ReadInt64(); + break; + } + case 34: { + OrganizationName = input.ReadString(); + break; + } + case 40: { + ApplicationId = input.ReadInt64(); + break; + } + case 50: { + ApplicationName = input.ReadString(); + break; + } + case 58: { + DeviceDevEui = input.ReadString(); + break; + } + case 66: { + DeviceName = input.ReadString(); + break; + } + case 74: { + GatewayMac = 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 24: { + OrganizationId = input.ReadInt64(); + break; + } + case 34: { + OrganizationName = input.ReadString(); + break; + } + case 40: { + ApplicationId = input.ReadInt64(); + break; + } + case 50: { + ApplicationName = input.ReadString(); + break; + } + case 58: { + DeviceDevEui = input.ReadString(); + break; + } + case 66: { + DeviceName = input.ReadString(); + break; + } + case 74: { + GatewayMac = 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.ApplicationServer.External.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() { + branding_ = other.branding_ != null ? other.branding_.Clone() : null; + 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 "branding" field. + public const int BrandingFieldNumber = 2; + private global::Chirpstack.ApplicationServer.External.Api.Branding branding_; + /// + /// Branding settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.Branding Branding { + get { return branding_; } + set { + branding_ = value; + } + } + + /// Field number for the "openid_connect" field. + public const int OpenidConnectFieldNumber = 3; + private global::Chirpstack.ApplicationServer.External.Api.OpenIDConnect openidConnect_; + /// + /// OpenID Connect settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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(Branding, other.Branding)) return false; + 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 (branding_ != null) hash ^= Branding.GetHashCode(); + 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 (branding_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Branding); + } + if (openidConnect_ != null) { + output.WriteRawTag(26); + 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 (branding_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Branding); + } + if (openidConnect_ != null) { + output.WriteRawTag(26); + 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 (branding_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Branding); + } + 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.branding_ != null) { + if (branding_ == null) { + Branding = new global::Chirpstack.ApplicationServer.External.Api.Branding(); + } + Branding.MergeFrom(other.Branding); + } + if (other.openidConnect_ != null) { + if (openidConnect_ == null) { + OpenidConnect = new global::Chirpstack.ApplicationServer.External.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 18: { + if (branding_ == null) { + Branding = new global::Chirpstack.ApplicationServer.External.Api.Branding(); + } + input.ReadMessage(Branding); + break; + } + case 26: { + if (openidConnect_ == null) { + OpenidConnect = new global::Chirpstack.ApplicationServer.External.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 18: { + if (branding_ == null) { + Branding = new global::Chirpstack.ApplicationServer.External.Api.Branding(); + } + input.ReadMessage(Branding); + break; + } + case 26: { + if (openidConnect_ == null) { + OpenidConnect = new global::Chirpstack.ApplicationServer.External.Api.OpenIDConnect(); + } + input.ReadMessage(OpenidConnect); + break; + } + } + } + } + #endif + + } + + public sealed partial class Branding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Branding()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 Branding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Branding(Branding other) : this() { + registration_ = other.registration_; + footer_ = other.footer_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Branding Clone() { + return new Branding(this); + } + + /// Field number for the "registration" field. + public const int RegistrationFieldNumber = 1; + private string registration_ = ""; + /// + /// Registration html. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Registration { + get { return registration_; } + set { + registration_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "footer" field. + public const int FooterFieldNumber = 2; + private string footer_ = ""; + /// + /// Footer html. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Footer { + get { return footer_; } + set { + footer_ = 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 Branding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Branding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Registration != other.Registration) return false; + if (Footer != other.Footer) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Registration.Length != 0) hash ^= Registration.GetHashCode(); + if (Footer.Length != 0) hash ^= Footer.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Registration.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Registration); + } + if (Footer.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Footer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Registration.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Registration); + } + if (Footer.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Footer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Registration.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Registration); + } + if (Footer.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Footer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Branding other) { + if (other == null) { + return; + } + if (other.Registration.Length != 0) { + Registration = other.Registration; + } + if (other.Footer.Length != 0) { + Footer = other.Footer; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Registration = input.ReadString(); + break; + } + case 18: { + Footer = 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: { + Registration = input.ReadString(); + break; + } + case 18: { + Footer = input.ReadString(); + 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.ApplicationServer.External.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 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.ApplicationServer.External.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 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.ApplicationServer.External.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 OpenIDConnectLoginResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenIDConnectLoginResponse(OpenIDConnectLoginResponse other) : this() { + jwtToken_ = other.jwtToken_; + _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 "jwt_token" field. + public const int JwtTokenFieldNumber = 1; + private string jwtToken_ = ""; + /// + /// JWT token to use for authentication. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string JwtToken { + get { return jwtToken_; } + set { + jwtToken_ = 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 (JwtToken != other.JwtToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (JwtToken.Length != 0) hash ^= JwtToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (JwtToken.Length != 0) { + output.WriteRawTag(10); + output.WriteString(JwtToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (JwtToken.Length != 0) { + output.WriteRawTag(10); + output.WriteString(JwtToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (JwtToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(JwtToken); + } + 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.JwtToken.Length != 0) { + JwtToken = other.JwtToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + JwtToken = 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: { + JwtToken = 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.ApplicationServer.External.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 GetDevicesSummaryRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDevicesSummaryRequest(GetDevicesSummaryRequest other) : this() { + organizationId_ = other.organizationId_; + _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 "organization_id" field. + public const int OrganizationIdFieldNumber = 1; + private long organizationId_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = 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 (OrganizationId != other.OrganizationId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + 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.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + OrganizationId = 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 8: { + OrganizationId = input.ReadInt64(); + 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.ApplicationServer.External.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 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.ApplicationServer.External.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 GetGatewaysSummaryRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewaysSummaryRequest(GetGatewaysSummaryRequest other) : this() { + organizationId_ = other.organizationId_; + _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 "organization_id" field. + public const int OrganizationIdFieldNumber = 1; + private long organizationId_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = 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 (OrganizationId != other.OrganizationId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + 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.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + OrganizationId = 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 8: { + OrganizationId = input.ReadInt64(); + 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.ApplicationServer.External.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 GetGatewaysSummaryResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewaysSummaryResponse(GetGatewaysSummaryResponse other) : this() { + activeCount_ = other.activeCount_; + inactiveCount_ = other.inactiveCount_; + 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 "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 "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 (ActiveCount != other.ActiveCount) return false; + if (InactiveCount != other.InactiveCount) 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(); + 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); + } + 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 (ActiveCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(ActiveCount); + } + if (InactiveCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(InactiveCount); + } + 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 (ActiveCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ActiveCount); + } + if (InactiveCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(InactiveCount); + } + 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.ActiveCount != 0) { + ActiveCount = other.ActiveCount; + } + if (other.InactiveCount != 0) { + InactiveCount = other.InactiveCount; + } + 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 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: { + ActiveCount = input.ReadUInt32(); + break; + } + case 16: { + InactiveCount = input.ReadUInt32(); + break; + } + case 24: { + NeverSeenCount = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/as/external/api/InternalGrpc.cs b/csharp/protobuf/as/external/api/InternalGrpc.cs new file mode 100644 index 00000000..d1f77e48 --- /dev/null +++ b/csharp/protobuf/as/external/api/InternalGrpc.cs @@ -0,0 +1,854 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/internal.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.GetGatewaysSummaryResponse.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); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.GetGatewaysSummaryRequest 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.ApplicationServer.External.Api.LoginResponse Login(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.LoginResponse Login(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.GlobalSearchResponse GlobalSearch(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.GlobalSearchResponse GlobalSearch(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.CreateAPIKeyResponse CreateAPIKey(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.CreateAPIKeyResponse CreateAPIKey(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.ListAPIKeysResponse ListAPIKeys(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.ListAPIKeysResponse ListAPIKeys(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.OpenIDConnectLoginResponse OpenIDConnectLogin(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.OpenIDConnectLoginResponse OpenIDConnectLogin(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.GetDevicesSummaryResponse GetDevicesSummary(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.GetDevicesSummaryResponse GetDevicesSummary(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.GetGatewaysSummaryResponse GetGatewaysSummary(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.GetGatewaysSummaryResponse GetGatewaysSummary(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.GetGatewaysSummaryRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetGatewaysSummary, 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).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)); + } + + } +} +#endregion diff --git a/csharp/protobuf/as/external/api/MulticastGroup.cs b/csharp/protobuf/as/external/api/MulticastGroup.cs new file mode 100644 index 00000000..007f09f3 --- /dev/null +++ b/csharp/protobuf/as/external/api/MulticastGroup.cs @@ -0,0 +1,4679 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/multicastGroup.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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/multicastGroup.proto + public static partial class MulticastGroupReflection { + + #region Descriptor + /// File descriptor for as/external/api/multicastGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MulticastGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiRhcy9leHRlcm5hbC9hcGkvbXVsdGljYXN0R3JvdXAucHJvdG8SA2FwaRoc", + "Z29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL3Byb3RvYnVm", + "L3RpbWVzdGFtcC5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3Rv", + "IoMCCg5NdWx0aWNhc3RHcm91cBIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJ", + "Eg8KB21jX2FkZHIYAyABKAkSFAoMbWNfbndrX3Nfa2V5GAQgASgJEhQKDG1j", + "X2FwcF9zX2tleRgFIAEoCRINCgVmX2NudBgGIAEoDRIrCgpncm91cF90eXBl", + "GAcgASgOMhcuYXBpLk11bHRpY2FzdEdyb3VwVHlwZRIKCgJkchgIIAEoDRIR", + "CglmcmVxdWVuY3kYCSABKA0SGAoQcGluZ19zbG90X3BlcmlvZBgKIAEoDRIl", + "Cg5hcHBsaWNhdGlvbl9pZBgMIAEoA1INYXBwbGljYXRpb25JRCJzChZNdWx0", + "aWNhc3RHcm91cExpc3RJdGVtEgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkS", + "JQoOYXBwbGljYXRpb25faWQYBSABKANSDWFwcGxpY2F0aW9uSUQSGAoQYXBw", + "bGljYXRpb25fbmFtZRgGIAEoCSJLChtDcmVhdGVNdWx0aWNhc3RHcm91cFJl", + "cXVlc3QSLAoPbXVsdGljYXN0X2dyb3VwGAEgASgLMhMuYXBpLk11bHRpY2Fz", + "dEdyb3VwIioKHENyZWF0ZU11bHRpY2FzdEdyb3VwUmVzcG9uc2USCgoCaWQY", + "ASABKAkiJgoYR2V0TXVsdGljYXN0R3JvdXBSZXF1ZXN0EgoKAmlkGAEgASgJ", + "IqkBChlHZXRNdWx0aWNhc3RHcm91cFJlc3BvbnNlEiwKD211bHRpY2FzdF9n", + "cm91cBgBIAEoCzITLmFwaS5NdWx0aWNhc3RHcm91cBIuCgpjcmVhdGVkX2F0", + "GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVk", + "X2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCJLChtVcGRh", + "dGVNdWx0aWNhc3RHcm91cFJlcXVlc3QSLAoPbXVsdGljYXN0X2dyb3VwGAEg", + "ASgLMhMuYXBpLk11bHRpY2FzdEdyb3VwIikKG0RlbGV0ZU11bHRpY2FzdEdy", + "b3VwUmVxdWVzdBIKCgJpZBgBIAEoCSJpCiBBZGREZXZpY2VUb011bHRpY2Fz", + "dEdyb3VwUmVxdWVzdBIsChJtdWx0aWNhc3RfZ3JvdXBfaWQYASABKAlSEG11", + "bHRpY2FzdEdyb3VwSUQSFwoHZGV2X2V1aRgCIAEoCVIGZGV2RVVJIm4KJVJl", + "bW92ZURldmljZUZyb21NdWx0aWNhc3RHcm91cFJlcXVlc3QSLAoSbXVsdGlj", + "YXN0X2dyb3VwX2lkGAEgASgJUhBtdWx0aWNhc3RHcm91cElEEhcKB2Rldl9l", + "dWkYAiABKAlSBmRldkVVSSKzAQoZTGlzdE11bHRpY2FzdEdyb3VwUmVxdWVz", + "dBINCgVsaW1pdBgBIAEoAxIOCgZvZmZzZXQYAiABKAMSJwoPb3JnYW5pemF0", + "aW9uX2lkGAMgASgDUg5vcmdhbml6YXRpb25JRBIXCgdkZXZfZXVpGAQgASgJ", + "UgZkZXZFVUkSDgoGc2VhcmNoGAYgASgJEiUKDmFwcGxpY2F0aW9uX2lkGAcg", + "ASgDUg1hcHBsaWNhdGlvbklEIl4KGkxpc3RNdWx0aWNhc3RHcm91cFJlc3Bv", + "bnNlEhMKC3RvdGFsX2NvdW50GAEgASgDEisKBnJlc3VsdBgCIAMoCzIbLmFw", + "aS5NdWx0aWNhc3RHcm91cExpc3RJdGVtIm8KEk11bHRpY2FzdFF1ZXVlSXRl", + "bRIsChJtdWx0aWNhc3RfZ3JvdXBfaWQYASABKAlSEG11bHRpY2FzdEdyb3Vw", + "SUQSDQoFZl9jbnQYAiABKA0SDgoGZl9wb3J0GAMgASgNEgwKBGRhdGEYBCAB", + "KAwiWQogRW5xdWV1ZU11bHRpY2FzdFF1ZXVlSXRlbVJlcXVlc3QSNQoUbXVs", + "dGljYXN0X3F1ZXVlX2l0ZW0YASABKAsyFy5hcGkuTXVsdGljYXN0UXVldWVJ", + "dGVtIjIKIUVucXVldWVNdWx0aWNhc3RRdWV1ZUl0ZW1SZXNwb25zZRINCgVm", + "X2NudBgBIAEoDSJUCiRGbHVzaE11bHRpY2FzdEdyb3VwUXVldWVJdGVtc1Jl", + "cXVlc3QSLAoSbXVsdGljYXN0X2dyb3VwX2lkGAEgASgJUhBtdWx0aWNhc3RH", + "cm91cElEIlMKI0xpc3RNdWx0aWNhc3RHcm91cFF1ZXVlSXRlbXNSZXF1ZXN0", + "EiwKEm11bHRpY2FzdF9ncm91cF9pZBgBIAEoCVIQbXVsdGljYXN0R3JvdXBJ", + "RCJeCiRMaXN0TXVsdGljYXN0R3JvdXBRdWV1ZUl0ZW1zUmVzcG9uc2USNgoV", + "bXVsdGljYXN0X3F1ZXVlX2l0ZW1zGAEgAygLMhcuYXBpLk11bHRpY2FzdFF1", + "ZXVlSXRlbSouChJNdWx0aWNhc3RHcm91cFR5cGUSCwoHQ0xBU1NfQxAAEgsK", + "B0NMQVNTX0IQATK6CgoVTXVsdGljYXN0R3JvdXBTZXJ2aWNlEm8KBkNyZWF0", + "ZRIgLmFwaS5DcmVhdGVNdWx0aWNhc3RHcm91cFJlcXVlc3QaIS5hcGkuQ3Jl", + "YXRlTXVsdGljYXN0R3JvdXBSZXNwb25zZSIggtPkkwIaIhUvYXBpL211bHRp", + "Y2FzdC1ncm91cHM6ASoSaAoDR2V0Eh0uYXBpLkdldE11bHRpY2FzdEdyb3Vw", + "UmVxdWVzdBoeLmFwaS5HZXRNdWx0aWNhc3RHcm91cFJlc3BvbnNlIiKC0+ST", + "AhwSGi9hcGkvbXVsdGljYXN0LWdyb3Vwcy97aWR9EnkKBlVwZGF0ZRIgLmFw", + "aS5VcGRhdGVNdWx0aWNhc3RHcm91cFJlcXVlc3QaFi5nb29nbGUucHJvdG9i", + "dWYuRW1wdHkiNYLT5JMCLxoqL2FwaS9tdWx0aWNhc3QtZ3JvdXBzL3ttdWx0", + "aWNhc3RfZ3JvdXAuaWR9OgEqEmYKBkRlbGV0ZRIgLmFwaS5EZWxldGVNdWx0", + "aWNhc3RHcm91cFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiIoLT", + "5JMCHCoaL2FwaS9tdWx0aWNhc3QtZ3JvdXBzL3tpZH0SZgoETGlzdBIeLmFw", + "aS5MaXN0TXVsdGljYXN0R3JvdXBSZXF1ZXN0Gh8uYXBpLkxpc3RNdWx0aWNh", + "c3RHcm91cFJlc3BvbnNlIh2C0+STAhcSFS9hcGkvbXVsdGljYXN0LWdyb3Vw", + "cxKJAQoJQWRkRGV2aWNlEiUuYXBpLkFkZERldmljZVRvTXVsdGljYXN0R3Jv", + "dXBSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Ij2C0+STAjciMi9h", + "cGkvbXVsdGljYXN0LWdyb3Vwcy97bXVsdGljYXN0X2dyb3VwX2lkfS9kZXZp", + "Y2VzOgEqEpgBCgxSZW1vdmVEZXZpY2USKi5hcGkuUmVtb3ZlRGV2aWNlRnJv", + "bU11bHRpY2FzdEdyb3VwUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0", + "eSJEgtPkkwI+KjwvYXBpL211bHRpY2FzdC1ncm91cHMve211bHRpY2FzdF9n", + "cm91cF9pZH0vZGV2aWNlcy97ZGV2X2V1aX0SqgEKB0VucXVldWUSJS5hcGku", + "RW5xdWV1ZU11bHRpY2FzdFF1ZXVlSXRlbVJlcXVlc3QaJi5hcGkuRW5xdWV1", + "ZU11bHRpY2FzdFF1ZXVlSXRlbVJlc3BvbnNlIlCC0+STAkoiRS9hcGkvbXVs", + "dGljYXN0LWdyb3Vwcy97bXVsdGljYXN0X3F1ZXVlX2l0ZW0ubXVsdGljYXN0", + "X2dyb3VwX2lkfS9xdWV1ZToBKhKJAQoKRmx1c2hRdWV1ZRIpLmFwaS5GbHVz", + "aE11bHRpY2FzdEdyb3VwUXVldWVJdGVtc1JlcXVlc3QaFi5nb29nbGUucHJv", + "dG9idWYuRW1wdHkiOILT5JMCMiowL2FwaS9tdWx0aWNhc3QtZ3JvdXBzL3tt", + "dWx0aWNhc3RfZ3JvdXBfaWR9L3F1ZXVlEpoBCglMaXN0UXVldWUSKC5hcGku", + "TGlzdE11bHRpY2FzdEdyb3VwUXVldWVJdGVtc1JlcXVlc3QaKS5hcGkuTGlz", + "dE11bHRpY2FzdEdyb3VwUXVldWVJdGVtc1Jlc3BvbnNlIjiC0+STAjISMC9h", + "cGkvbXVsdGljYXN0LWdyb3Vwcy97bXVsdGljYXN0X2dyb3VwX2lkfS9xdWV1", + "ZUKfAQohaW8uY2hpcnBzdGFjay5hcGkuYXMuZXh0ZXJuYWwuYXBpQhNNdWx0", + "aWNhc3RHcm91cFByb3RvUAFaN2dpdGh1Yi5jb20vYnJvY2Fhci9jaGlycHN0", + "YWNrLWFwaS9nby92My9hcy9leHRlcm5hbC9hcGmqAilDaGlycHN0YWNrLkFw", + "cGxpY2F0aW9uU2VydmVyLkV4dGVybmFsLkFwaWIGcHJvdG8z")); + 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.ApplicationServer.External.Api.MulticastGroupType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.MulticastGroup), global::Chirpstack.ApplicationServer.External.Api.MulticastGroup.Parser, new[]{ "Id", "Name", "McAddr", "McNwkSKey", "McAppSKey", "FCnt", "GroupType", "Dr", "Frequency", "PingSlotPeriod", "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.MulticastGroupListItem), global::Chirpstack.ApplicationServer.External.Api.MulticastGroupListItem.Parser, new[]{ "Id", "Name", "ApplicationId", "ApplicationName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateMulticastGroupRequest), global::Chirpstack.ApplicationServer.External.Api.CreateMulticastGroupRequest.Parser, new[]{ "MulticastGroup" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateMulticastGroupResponse), global::Chirpstack.ApplicationServer.External.Api.CreateMulticastGroupResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetMulticastGroupRequest), global::Chirpstack.ApplicationServer.External.Api.GetMulticastGroupRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetMulticastGroupResponse), global::Chirpstack.ApplicationServer.External.Api.GetMulticastGroupResponse.Parser, new[]{ "MulticastGroup", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateMulticastGroupRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateMulticastGroupRequest.Parser, new[]{ "MulticastGroup" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteMulticastGroupRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteMulticastGroupRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.AddDeviceToMulticastGroupRequest), global::Chirpstack.ApplicationServer.External.Api.AddDeviceToMulticastGroupRequest.Parser, new[]{ "MulticastGroupId", "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.RemoveDeviceFromMulticastGroupRequest), global::Chirpstack.ApplicationServer.External.Api.RemoveDeviceFromMulticastGroupRequest.Parser, new[]{ "MulticastGroupId", "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupRequest), global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupRequest.Parser, new[]{ "Limit", "Offset", "OrganizationId", "DevEui", "Search", "ApplicationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupResponse), global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.MulticastQueueItem), global::Chirpstack.ApplicationServer.External.Api.MulticastQueueItem.Parser, new[]{ "MulticastGroupId", "FCnt", "FPort", "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.EnqueueMulticastQueueItemRequest), global::Chirpstack.ApplicationServer.External.Api.EnqueueMulticastQueueItemRequest.Parser, new[]{ "MulticastQueueItem" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.EnqueueMulticastQueueItemResponse), global::Chirpstack.ApplicationServer.External.Api.EnqueueMulticastQueueItemResponse.Parser, new[]{ "FCnt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.FlushMulticastGroupQueueItemsRequest), global::Chirpstack.ApplicationServer.External.Api.FlushMulticastGroupQueueItemsRequest.Parser, new[]{ "MulticastGroupId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupQueueItemsRequest), global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupQueueItemsRequest.Parser, new[]{ "MulticastGroupId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupQueueItemsResponse), global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupQueueItemsResponse.Parser, new[]{ "MulticastQueueItems" }, 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, + } + + #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.ApplicationServer.External.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_; + mcAddr_ = other.mcAddr_; + mcNwkSKey_ = other.mcNwkSKey_; + mcAppSKey_ = other.mcAppSKey_; + fCnt_ = other.fCnt_; + groupType_ = other.groupType_; + dr_ = other.dr_; + frequency_ = other.frequency_; + pingSlotPeriod_ = other.pingSlotPeriod_; + applicationId_ = other.applicationId_; + _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 (string formatted 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_ = ""; + /// + /// Multicast-group 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 "mc_addr" field. + public const int McAddrFieldNumber = 3; + 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 = 4; + 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 = 5; + 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 = 6; + 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 = 7; + private global::Chirpstack.ApplicationServer.External.Api.MulticastGroupType groupType_ = global::Chirpstack.ApplicationServer.External.Api.MulticastGroupType.ClassC; + /// + /// Multicast type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.MulticastGroupType GroupType { + get { return groupType_; } + set { + groupType_ = value; + } + } + + /// Field number for the "dr" field. + public const int DrFieldNumber = 8; + 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 = 9; + 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 "ping_slot_period" field. + public const int PingSlotPeriodFieldNumber = 10; + private uint pingSlotPeriod_; + /// + /// Ping-slot period. + /// Mandatory for Class-B multicast groups. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PingSlotPeriod { + get { return pingSlotPeriod_; } + set { + pingSlotPeriod_ = value; + } + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 12; + private long applicationId_; + /// + /// Application ID. + /// After creation, this can not be updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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 (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 (PingSlotPeriod != other.PingSlotPeriod) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.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.ApplicationServer.External.Api.MulticastGroupType.ClassC) hash ^= GroupType.GetHashCode(); + if (Dr != 0) hash ^= Dr.GetHashCode(); + if (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (PingSlotPeriod != 0) hash ^= PingSlotPeriod.GetHashCode(); + if (ApplicationId != 0L) 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (McAddr.Length != 0) { + output.WriteRawTag(26); + output.WriteString(McAddr); + } + if (McNwkSKey.Length != 0) { + output.WriteRawTag(34); + output.WriteString(McNwkSKey); + } + if (McAppSKey.Length != 0) { + output.WriteRawTag(42); + output.WriteString(McAppSKey); + } + if (FCnt != 0) { + output.WriteRawTag(48); + output.WriteUInt32(FCnt); + } + if (GroupType != global::Chirpstack.ApplicationServer.External.Api.MulticastGroupType.ClassC) { + output.WriteRawTag(56); + output.WriteEnum((int) GroupType); + } + if (Dr != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Dr); + } + if (Frequency != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Frequency); + } + if (PingSlotPeriod != 0) { + output.WriteRawTag(80); + output.WriteUInt32(PingSlotPeriod); + } + if (ApplicationId != 0L) { + output.WriteRawTag(96); + output.WriteInt64(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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (McAddr.Length != 0) { + output.WriteRawTag(26); + output.WriteString(McAddr); + } + if (McNwkSKey.Length != 0) { + output.WriteRawTag(34); + output.WriteString(McNwkSKey); + } + if (McAppSKey.Length != 0) { + output.WriteRawTag(42); + output.WriteString(McAppSKey); + } + if (FCnt != 0) { + output.WriteRawTag(48); + output.WriteUInt32(FCnt); + } + if (GroupType != global::Chirpstack.ApplicationServer.External.Api.MulticastGroupType.ClassC) { + output.WriteRawTag(56); + output.WriteEnum((int) GroupType); + } + if (Dr != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Dr); + } + if (Frequency != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Frequency); + } + if (PingSlotPeriod != 0) { + output.WriteRawTag(80); + output.WriteUInt32(PingSlotPeriod); + } + if (ApplicationId != 0L) { + output.WriteRawTag(96); + output.WriteInt64(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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + 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.ApplicationServer.External.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 (PingSlotPeriod != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PingSlotPeriod); + } + if (ApplicationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + 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.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.ApplicationServer.External.Api.MulticastGroupType.ClassC) { + GroupType = other.GroupType; + } + if (other.Dr != 0) { + Dr = other.Dr; + } + if (other.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.PingSlotPeriod != 0) { + PingSlotPeriod = other.PingSlotPeriod; + } + if (other.ApplicationId != 0L) { + 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: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + McAddr = input.ReadString(); + break; + } + case 34: { + McNwkSKey = input.ReadString(); + break; + } + case 42: { + McAppSKey = input.ReadString(); + break; + } + case 48: { + FCnt = input.ReadUInt32(); + break; + } + case 56: { + GroupType = (global::Chirpstack.ApplicationServer.External.Api.MulticastGroupType) input.ReadEnum(); + break; + } + case 64: { + Dr = input.ReadUInt32(); + break; + } + case 72: { + Frequency = input.ReadUInt32(); + break; + } + case 80: { + PingSlotPeriod = input.ReadUInt32(); + break; + } + case 96: { + ApplicationId = 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: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + McAddr = input.ReadString(); + break; + } + case 34: { + McNwkSKey = input.ReadString(); + break; + } + case 42: { + McAppSKey = input.ReadString(); + break; + } + case 48: { + FCnt = input.ReadUInt32(); + break; + } + case 56: { + GroupType = (global::Chirpstack.ApplicationServer.External.Api.MulticastGroupType) input.ReadEnum(); + break; + } + case 64: { + Dr = input.ReadUInt32(); + break; + } + case 72: { + Frequency = input.ReadUInt32(); + break; + } + case 80: { + PingSlotPeriod = input.ReadUInt32(); + break; + } + case 96: { + ApplicationId = input.ReadInt64(); + 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.ApplicationServer.External.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_; + name_ = other.name_; + applicationId_ = other.applicationId_; + applicationName_ = other.applicationName_; + _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 (string formatted 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 "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Multicast-group 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 = 5; + private long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = 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"); + } + } + + [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 (Name != other.Name) return false; + if (ApplicationId != other.ApplicationId) return false; + if (ApplicationName != other.ApplicationName) return false; + 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 != 0L) hash ^= ApplicationId.GetHashCode(); + if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0L) { + output.WriteRawTag(40); + output.WriteInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ApplicationName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0L) { + output.WriteRawTag(40); + output.WriteInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ApplicationName); + } + if (_unknownFields != 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + if (ApplicationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationName); + } + 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.Name.Length != 0) { + Name = other.Name; + } + if (other.ApplicationId != 0L) { + ApplicationId = other.ApplicationId; + } + if (other.ApplicationName.Length != 0) { + ApplicationName = other.ApplicationName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 40: { + ApplicationId = input.ReadInt64(); + break; + } + case 50: { + ApplicationName = 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 40: { + ApplicationId = input.ReadInt64(); + break; + } + case 50: { + ApplicationName = input.ReadString(); + 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.ApplicationServer.External.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.ApplicationServer.External.Api.MulticastGroup multicastGroup_; + /// + /// Multicast-group object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 group (string formatted 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.ApplicationServer.External.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_ = ""; + /// + /// ID (string formatted 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 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.ApplicationServer.External.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.ApplicationServer.External.Api.MulticastGroup multicastGroup_; + /// + /// Multicast-group object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.MulticastGroup multicastGroup_; + /// + /// Multicast-group object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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_ = ""; + /// + /// ID (string formatted 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 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 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.ApplicationServer.External.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 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 (string formatted 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 "dev_eui" field. + public const int DevEuiFieldNumber = 2; + private string devEui_ = ""; + /// + /// Device EUI (HEX encoded string). + /// Note that the device and the multicast-group must share the same + /// application ID. + /// + [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.ApplicationServer.External.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 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 (string formatted 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 "dev_eui" field. + public const int DevEuiFieldNumber = 2; + private string devEui_ = ""; + /// + /// Device EUI (HEX encoded string). + /// + [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 ListMulticastGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMulticastGroupRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupRequest(ListMulticastGroupRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + organizationId_ = other.organizationId_; + devEui_ = other.devEui_; + search_ = other.search_; + applicationId_ = other.applicationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupRequest Clone() { + return new ListMulticastGroupRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private long limit_; + /// + /// Max number of items 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 = 2; + private long offset_; + /// + /// Offset in 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; + } + } + + /// Field number for the "organization_id" field. + public const int OrganizationIdFieldNumber = 3; + private long organizationId_; + /// + /// Organization id to filter on. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 4; + private string devEui_ = ""; + /// + /// Device EUI (HEX encoded string) to filter on. + /// + [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 "search" field. + public const int SearchFieldNumber = 6; + private string search_ = ""; + /// + /// Search can be used to search on the multicast-group 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 = 7; + private long applicationId_; + /// + /// Application ID to filter on. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListMulticastGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListMulticastGroupRequest 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 (OrganizationId != other.OrganizationId) return false; + if (DevEui != other.DevEui) 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 != 0L) hash ^= Limit.GetHashCode(); + if (Offset != 0L) hash ^= Offset.GetHashCode(); + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (Search.Length != 0) hash ^= Search.GetHashCode(); + if (ApplicationId != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteString(DevEui); + } + if (Search.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Search); + } + if (ApplicationId != 0L) { + output.WriteRawTag(56); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteString(DevEui); + } + if (Search.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Search); + } + if (ApplicationId != 0L) { + output.WriteRawTag(56); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); + } + if (Offset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset); + } + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); + } + if (Search.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); + } + if (ApplicationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListMulticastGroupRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0L) { + Limit = other.Limit; + } + if (other.Offset != 0L) { + Offset = other.Offset; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.Search.Length != 0) { + Search = other.Search; + } + if (other.ApplicationId != 0L) { + 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.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + OrganizationId = input.ReadInt64(); + break; + } + case 34: { + DevEui = input.ReadString(); + break; + } + case 50: { + Search = input.ReadString(); + break; + } + case 56: { + ApplicationId = 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 8: { + Limit = input.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + OrganizationId = input.ReadInt64(); + break; + } + case 34: { + DevEui = input.ReadString(); + break; + } + case 50: { + Search = input.ReadString(); + break; + } + case 56: { + ApplicationId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListMulticastGroupResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMulticastGroupResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListMulticastGroupResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupResponse(ListMulticastGroupResponse 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 ListMulticastGroupResponse Clone() { + return new ListMulticastGroupResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private long totalCount_; + /// + /// Total number of multicast-groups. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.Api.MulticastGroupListItem.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 ListMulticastGroupResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListMulticastGroupResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(ListMulticastGroupResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class MulticastQueueItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MulticastQueueItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 MulticastQueueItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MulticastQueueItem(MulticastQueueItem 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 MulticastQueueItem Clone() { + return new MulticastQueueItem(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private string multicastGroupId_ = ""; + /// + /// Multicast-group ID (string formatted 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 "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 used (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; + /// + /// Base64 encoded 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MulticastQueueItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MulticastQueueItem 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(MulticastQueueItem 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 EnqueueMulticastQueueItemRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnqueueMulticastQueueItemRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 EnqueueMulticastQueueItemRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueMulticastQueueItemRequest(EnqueueMulticastQueueItemRequest other) : this() { + multicastQueueItem_ = other.multicastQueueItem_ != null ? other.multicastQueueItem_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueMulticastQueueItemRequest Clone() { + return new EnqueueMulticastQueueItemRequest(this); + } + + /// Field number for the "multicast_queue_item" field. + public const int MulticastQueueItemFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.MulticastQueueItem multicastQueueItem_; + /// + /// Multicast queue-item object to enqueue. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.MulticastQueueItem MulticastQueueItem { + get { return multicastQueueItem_; } + set { + multicastQueueItem_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnqueueMulticastQueueItemRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnqueueMulticastQueueItemRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MulticastQueueItem, other.MulticastQueueItem)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (multicastQueueItem_ != null) hash ^= MulticastQueueItem.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (multicastQueueItem_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MulticastQueueItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (multicastQueueItem_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MulticastQueueItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (multicastQueueItem_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MulticastQueueItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnqueueMulticastQueueItemRequest other) { + if (other == null) { + return; + } + if (other.multicastQueueItem_ != null) { + if (multicastQueueItem_ == null) { + MulticastQueueItem = new global::Chirpstack.ApplicationServer.External.Api.MulticastQueueItem(); + } + MulticastQueueItem.MergeFrom(other.MulticastQueueItem); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (multicastQueueItem_ == null) { + MulticastQueueItem = new global::Chirpstack.ApplicationServer.External.Api.MulticastQueueItem(); + } + input.ReadMessage(MulticastQueueItem); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (multicastQueueItem_ == null) { + MulticastQueueItem = new global::Chirpstack.ApplicationServer.External.Api.MulticastQueueItem(); + } + input.ReadMessage(MulticastQueueItem); + break; + } + } + } + } + #endif + + } + + public sealed partial class EnqueueMulticastQueueItemResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnqueueMulticastQueueItemResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 EnqueueMulticastQueueItemResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueMulticastQueueItemResponse(EnqueueMulticastQueueItemResponse other) : this() { + fCnt_ = other.fCnt_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueMulticastQueueItemResponse Clone() { + return new EnqueueMulticastQueueItemResponse(this); + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 1; + private uint fCnt_; + /// + /// Frame-counter for 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 EnqueueMulticastQueueItemResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnqueueMulticastQueueItemResponse 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(EnqueueMulticastQueueItemResponse 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 FlushMulticastGroupQueueItemsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushMulticastGroupQueueItemsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 FlushMulticastGroupQueueItemsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushMulticastGroupQueueItemsRequest(FlushMulticastGroupQueueItemsRequest other) : this() { + multicastGroupId_ = other.multicastGroupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushMulticastGroupQueueItemsRequest Clone() { + return new FlushMulticastGroupQueueItemsRequest(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private string multicastGroupId_ = ""; + /// + /// Multicast-group ID (string formatted 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FlushMulticastGroupQueueItemsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FlushMulticastGroupQueueItemsRequest 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(FlushMulticastGroupQueueItemsRequest 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 ListMulticastGroupQueueItemsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMulticastGroupQueueItemsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListMulticastGroupQueueItemsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupQueueItemsRequest(ListMulticastGroupQueueItemsRequest other) : this() { + multicastGroupId_ = other.multicastGroupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupQueueItemsRequest Clone() { + return new ListMulticastGroupQueueItemsRequest(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private string multicastGroupId_ = ""; + /// + /// Multicast-group ID (string formatted 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListMulticastGroupQueueItemsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListMulticastGroupQueueItemsRequest 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(ListMulticastGroupQueueItemsRequest 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 ListMulticastGroupQueueItemsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMulticastGroupQueueItemsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListMulticastGroupQueueItemsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupQueueItemsResponse(ListMulticastGroupQueueItemsResponse other) : this() { + multicastQueueItems_ = other.multicastQueueItems_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMulticastGroupQueueItemsResponse Clone() { + return new ListMulticastGroupQueueItemsResponse(this); + } + + /// Field number for the "multicast_queue_items" field. + public const int MulticastQueueItemsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_multicastQueueItems_codec + = pb::FieldCodec.ForMessage(10, global::Chirpstack.ApplicationServer.External.Api.MulticastQueueItem.Parser); + private readonly pbc::RepeatedField multicastQueueItems_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MulticastQueueItems { + get { return multicastQueueItems_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListMulticastGroupQueueItemsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListMulticastGroupQueueItemsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!multicastQueueItems_.Equals(other.multicastQueueItems_)) return 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 ^= multicastQueueItems_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + multicastQueueItems_.WriteTo(output, _repeated_multicastQueueItems_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) { + multicastQueueItems_.WriteTo(ref output, _repeated_multicastQueueItems_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 += multicastQueueItems_.CalculateSize(_repeated_multicastQueueItems_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListMulticastGroupQueueItemsResponse other) { + if (other == null) { + return; + } + multicastQueueItems_.Add(other.multicastQueueItems_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + multicastQueueItems_.AddEntriesFrom(input, _repeated_multicastQueueItems_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: { + multicastQueueItems_.AddEntriesFrom(ref input, _repeated_multicastQueueItems_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/as/external/api/MulticastGroupGrpc.cs b/csharp/protobuf/as/external/api/MulticastGroupGrpc.cs new file mode 100644 index 00000000..7fe22550 --- /dev/null +++ b/csharp/protobuf/as/external/api/MulticastGroupGrpc.cs @@ -0,0 +1,850 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/multicastGroup.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.DeleteMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListMulticastGroupResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupResponse.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.ApplicationServer.External.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.ApplicationServer.External.Api.RemoveDeviceFromMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_EnqueueMulticastQueueItemRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.EnqueueMulticastQueueItemRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_EnqueueMulticastQueueItemResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.EnqueueMulticastQueueItemResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_FlushMulticastGroupQueueItemsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.FlushMulticastGroupQueueItemsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListMulticastGroupQueueItemsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupQueueItemsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListMulticastGroupQueueItemsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupQueueItemsResponse.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_ListMulticastGroupRequest, + __Marshaller_api_ListMulticastGroupResponse); + + [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_Enqueue = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Enqueue", + __Marshaller_api_EnqueueMulticastQueueItemRequest, + __Marshaller_api_EnqueueMulticastQueueItemResponse); + + [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_FlushMulticastGroupQueueItemsRequest, + __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_ListMulticastGroupQueueItemsRequest, + __Marshaller_api_ListMulticastGroupQueueItemsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.ApplicationServer.External.Api.MulticastGroupReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of MulticastGroupService + [grpc::BindServiceMethod(typeof(MulticastGroupService), "BindService")] + public abstract partial class MulticastGroupServiceBase + { + /// + /// Create creates 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.ApplicationServer.External.Api.CreateMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get returns a multicast-group given an 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.ApplicationServer.External.Api.GetMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update updates 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.ApplicationServer.External.Api.UpdateMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete deletes a multicast-group given an 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.ApplicationServer.External.Api.DeleteMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List lists 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.ApplicationServer.External.Api.ListMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// AddDevice adds the given 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.ApplicationServer.External.Api.AddDeviceToMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// RemoveDevice removes the given 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.ApplicationServer.External.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Enqueue adds the given item to the multicast-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.ApplicationServer.External.Api.EnqueueMulticastQueueItemRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// FlushQueue flushes 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 FlushQueue(global::Chirpstack.ApplicationServer.External.Api.FlushMulticastGroupQueueItemsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// ListQueue lists 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.ApplicationServer.External.Api.ListMulticastGroupQueueItemsRequest 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 creates 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.ApplicationServer.External.Api.CreateMulticastGroupResponse Create(global::Chirpstack.ApplicationServer.External.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 creates 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.ApplicationServer.External.Api.CreateMulticastGroupResponse Create(global::Chirpstack.ApplicationServer.External.Api.CreateMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create creates 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.ApplicationServer.External.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 creates 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.ApplicationServer.External.Api.CreateMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get returns a multicast-group given an 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.ApplicationServer.External.Api.GetMulticastGroupResponse Get(global::Chirpstack.ApplicationServer.External.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 a multicast-group given an 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.ApplicationServer.External.Api.GetMulticastGroupResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get returns a multicast-group given an 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.ApplicationServer.External.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 a multicast-group given an 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.ApplicationServer.External.Api.GetMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update updates 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.ApplicationServer.External.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 updates 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.ApplicationServer.External.Api.UpdateMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update updates 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.ApplicationServer.External.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 updates 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.ApplicationServer.External.Api.UpdateMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete deletes a multicast-group given an 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.ApplicationServer.External.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 deletes a multicast-group given an 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.ApplicationServer.External.Api.DeleteMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete deletes a multicast-group given an 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.ApplicationServer.External.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 deletes a multicast-group given an 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.ApplicationServer.External.Api.DeleteMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// List lists 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.ApplicationServer.External.Api.ListMulticastGroupResponse List(global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupRequest 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 lists 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.ApplicationServer.External.Api.ListMulticastGroupResponse List(global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// List lists 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.ApplicationServer.External.Api.ListMulticastGroupRequest 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 lists 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.ApplicationServer.External.Api.ListMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// AddDevice adds the given 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.ApplicationServer.External.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)); + } + /// + /// AddDevice adds the given 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.ApplicationServer.External.Api.AddDeviceToMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_AddDevice, null, options, request); + } + /// + /// AddDevice adds the given 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.ApplicationServer.External.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)); + } + /// + /// AddDevice adds the given 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.ApplicationServer.External.Api.AddDeviceToMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_AddDevice, null, options, request); + } + /// + /// RemoveDevice removes the given 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.ApplicationServer.External.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)); + } + /// + /// RemoveDevice removes the given 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.ApplicationServer.External.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_RemoveDevice, null, options, request); + } + /// + /// RemoveDevice removes the given 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.ApplicationServer.External.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)); + } + /// + /// RemoveDevice removes the given 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.ApplicationServer.External.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_RemoveDevice, null, options, request); + } + /// + /// Enqueue adds the given item to the multicast-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.ApplicationServer.External.Api.EnqueueMulticastQueueItemResponse Enqueue(global::Chirpstack.ApplicationServer.External.Api.EnqueueMulticastQueueItemRequest 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 multicast-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.ApplicationServer.External.Api.EnqueueMulticastQueueItemResponse Enqueue(global::Chirpstack.ApplicationServer.External.Api.EnqueueMulticastQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Enqueue, null, options, request); + } + /// + /// Enqueue adds the given item to the multicast-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.ApplicationServer.External.Api.EnqueueMulticastQueueItemRequest 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 multicast-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.ApplicationServer.External.Api.EnqueueMulticastQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Enqueue, null, options, request); + } + /// + /// FlushQueue flushes 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::Google.Protobuf.WellKnownTypes.Empty FlushQueue(global::Chirpstack.ApplicationServer.External.Api.FlushMulticastGroupQueueItemsRequest 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 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::Google.Protobuf.WellKnownTypes.Empty FlushQueue(global::Chirpstack.ApplicationServer.External.Api.FlushMulticastGroupQueueItemsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_FlushQueue, null, options, request); + } + /// + /// FlushQueue flushes 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 FlushQueueAsync(global::Chirpstack.ApplicationServer.External.Api.FlushMulticastGroupQueueItemsRequest 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 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 FlushQueueAsync(global::Chirpstack.ApplicationServer.External.Api.FlushMulticastGroupQueueItemsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_FlushQueue, null, options, request); + } + /// + /// ListQueue lists 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.ApplicationServer.External.Api.ListMulticastGroupQueueItemsResponse ListQueue(global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupQueueItemsRequest 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)); + } + /// + /// ListQueue lists 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.ApplicationServer.External.Api.ListMulticastGroupQueueItemsResponse ListQueue(global::Chirpstack.ApplicationServer.External.Api.ListMulticastGroupQueueItemsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListQueue, null, options, request); + } + /// + /// ListQueue lists 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.ApplicationServer.External.Api.ListMulticastGroupQueueItemsRequest 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)); + } + /// + /// ListQueue lists 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.ApplicationServer.External.Api.ListMulticastGroupQueueItemsRequest 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_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_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/csharp/protobuf/as/external/api/NetworkServer.cs b/csharp/protobuf/as/external/api/NetworkServer.cs new file mode 100644 index 00000000..8e100fea --- /dev/null +++ b/csharp/protobuf/as/external/api/NetworkServer.cs @@ -0,0 +1,3609 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/networkServer.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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/networkServer.proto + public static partial class NetworkServerReflection { + + #region Descriptor + /// File descriptor for as/external/api/networkServer.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static NetworkServerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiNhcy9leHRlcm5hbC9hcGkvbmV0d29ya1NlcnZlci5wcm90bxIDYXBpGhxn", + "b29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGh9nb29nbGUvcHJvdG9idWYv", + "dGltZXN0YW1wLnByb3RvGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8i", + "0gMKDU5ldHdvcmtTZXJ2ZXISCgoCaWQYASABKAMSDAoEbmFtZRgCIAEoCRIO", + "CgZzZXJ2ZXIYAyABKAkSDwoHY2FfY2VydBgEIAEoCRIQCgh0bHNfY2VydBgF", + "IAEoCRIPCgd0bHNfa2V5GAYgASgJEjUKF3JvdXRpbmdfcHJvZmlsZV9jYV9j", + "ZXJ0GAcgASgJUhRyb3V0aW5nUHJvZmlsZUNBQ2VydBI3Chhyb3V0aW5nX3By", + "b2ZpbGVfdGxzX2NlcnQYCCABKAlSFXJvdXRpbmdQcm9maWxlVExTQ2VydBI1", + "Chdyb3V0aW5nX3Byb2ZpbGVfdGxzX2tleRgJIAEoCVIUcm91dGluZ1Byb2Zp", + "bGVUTFNLZXkSIQoZZ2F0ZXdheV9kaXNjb3ZlcnlfZW5hYmxlZBgKIAEoCBIi", + "ChpnYXRld2F5X2Rpc2NvdmVyeV9pbnRlcnZhbBgLIAEoDRJDCh5nYXRld2F5", + "X2Rpc2NvdmVyeV90eF9mcmVxdWVuY3kYDCABKA1SG2dhdGV3YXlEaXNjb3Zl", + "cnlUWEZyZXF1ZW5jeRIwChRnYXRld2F5X2Rpc2NvdmVyeV9kchgNIAEoDVIS", + "Z2F0ZXdheURpc2NvdmVyeURSIqEBChVOZXR3b3JrU2VydmVyTGlzdEl0ZW0S", + "CgoCaWQYASABKAMSDAoEbmFtZRgCIAEoCRIOCgZzZXJ2ZXIYAyABKAkSLgoK", + "Y3JlYXRlZF9hdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAS", + "LgoKdXBkYXRlZF9hdBgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", + "bXAiSAoaQ3JlYXRlTmV0d29ya1NlcnZlclJlcXVlc3QSKgoObmV0d29ya19z", + "ZXJ2ZXIYASABKAsyEi5hcGkuTmV0d29ya1NlcnZlciIpChtDcmVhdGVOZXR3", + "b3JrU2VydmVyUmVzcG9uc2USCgoCaWQYASABKAMiJQoXR2V0TmV0d29ya1Nl", + "cnZlclJlcXVlc3QSCgoCaWQYASABKAMixwEKGEdldE5ldHdvcmtTZXJ2ZXJS", + "ZXNwb25zZRIqCg5uZXR3b3JrX3NlcnZlchgBIAEoCzISLmFwaS5OZXR3b3Jr", + "U2VydmVyEi4KCmNyZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9i", + "dWYuVGltZXN0YW1wEg8KB3ZlcnNpb24YBCABKAkSDgoGcmVnaW9uGAUgASgJ", + "IkgKGlVwZGF0ZU5ldHdvcmtTZXJ2ZXJSZXF1ZXN0EioKDm5ldHdvcmtfc2Vy", + "dmVyGAEgASgLMhIuYXBpLk5ldHdvcmtTZXJ2ZXIiKAoaRGVsZXRlTmV0d29y", + "a1NlcnZlclJlcXVlc3QSCgoCaWQYASABKAMiYgoYTGlzdE5ldHdvcmtTZXJ2", + "ZXJSZXF1ZXN0Eg0KBWxpbWl0GAEgASgDEg4KBm9mZnNldBgCIAEoAxInCg9v", + "cmdhbml6YXRpb25faWQYAyABKANSDm9yZ2FuaXphdGlvbklEIlwKGUxpc3RO", + "ZXR3b3JrU2VydmVyUmVzcG9uc2USEwoLdG90YWxfY291bnQYASABKAMSKgoG", + "cmVzdWx0GAIgAygLMhouYXBpLk5ldHdvcmtTZXJ2ZXJMaXN0SXRlbSI0ChdH", + "ZXRBRFJBbGdvcml0aG1zUmVxdWVzdBIZChFuZXR3b3JrX3NlcnZlcl9pZBgB", + "IAEoAyJFChhHZXRBRFJBbGdvcml0aG1zUmVzcG9uc2USKQoOYWRyX2FsZ29y", + "aXRobXMYASADKAsyES5hcGkuQURSQWxnb3JpdGhtIigKDEFEUkFsZ29yaXRo", + "bRIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJMsEFChROZXR3b3JrU2VydmVy", + "U2VydmljZRJsCgZDcmVhdGUSHy5hcGkuQ3JlYXRlTmV0d29ya1NlcnZlclJl", + "cXVlc3QaIC5hcGkuQ3JlYXRlTmV0d29ya1NlcnZlclJlc3BvbnNlIh+C0+ST", + "AhkiFC9hcGkvbmV0d29yay1zZXJ2ZXJzOgEqEmUKA0dldBIcLmFwaS5HZXRO", + "ZXR3b3JrU2VydmVyUmVxdWVzdBodLmFwaS5HZXROZXR3b3JrU2VydmVyUmVz", + "cG9uc2UiIYLT5JMCGxIZL2FwaS9uZXR3b3JrLXNlcnZlcnMve2lkfRJ2CgZV", + "cGRhdGUSHy5hcGkuVXBkYXRlTmV0d29ya1NlcnZlclJlcXVlc3QaFi5nb29n", + "bGUucHJvdG9idWYuRW1wdHkiM4LT5JMCLRooL2FwaS9uZXR3b3JrLXNlcnZl", + "cnMve25ldHdvcmtfc2VydmVyLmlkfToBKhJkCgZEZWxldGUSHy5hcGkuRGVs", + "ZXRlTmV0d29ya1NlcnZlclJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1w", + "dHkiIYLT5JMCGyoZL2FwaS9uZXR3b3JrLXNlcnZlcnMve2lkfRJjCgRMaXN0", + "Eh0uYXBpLkxpc3ROZXR3b3JrU2VydmVyUmVxdWVzdBoeLmFwaS5MaXN0TmV0", + "d29ya1NlcnZlclJlc3BvbnNlIhyC0+STAhYSFC9hcGkvbmV0d29yay1zZXJ2", + "ZXJzEpABChBHZXRBRFJBbGdvcml0aG1zEhwuYXBpLkdldEFEUkFsZ29yaXRo", + "bXNSZXF1ZXN0Gh0uYXBpLkdldEFEUkFsZ29yaXRobXNSZXNwb25zZSI/gtPk", + "kwI5EjcvYXBpL25ldHdvcmstc2VydmVycy97bmV0d29ya19zZXJ2ZXJfaWR9", + "L2Fkci1hbGdvcml0aG1zQp4BCiFpby5jaGlycHN0YWNrLmFwaS5hcy5leHRl", + "cm5hbC5hcGlCEk5ldHdvcmtTZXJ2ZXJQcm90b1ABWjdnaXRodWIuY29tL2Jy", + "b2NhYXIvY2hpcnBzdGFjay1hcGkvZ28vdjMvYXMvZXh0ZXJuYWwvYXBpqgIp", + "Q2hpcnBzdGFjay5BcHBsaWNhdGlvblNlcnZlci5FeHRlcm5hbC5BcGliBnBy", + "b3RvMw==")); + 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.ApplicationServer.External.Api.NetworkServer), global::Chirpstack.ApplicationServer.External.Api.NetworkServer.Parser, new[]{ "Id", "Name", "Server", "CaCert", "TlsCert", "TlsKey", "RoutingProfileCaCert", "RoutingProfileTlsCert", "RoutingProfileTlsKey", "GatewayDiscoveryEnabled", "GatewayDiscoveryInterval", "GatewayDiscoveryTxFrequency", "GatewayDiscoveryDr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.NetworkServerListItem), global::Chirpstack.ApplicationServer.External.Api.NetworkServerListItem.Parser, new[]{ "Id", "Name", "Server", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateNetworkServerRequest), global::Chirpstack.ApplicationServer.External.Api.CreateNetworkServerRequest.Parser, new[]{ "NetworkServer" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateNetworkServerResponse), global::Chirpstack.ApplicationServer.External.Api.CreateNetworkServerResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetNetworkServerRequest), global::Chirpstack.ApplicationServer.External.Api.GetNetworkServerRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetNetworkServerResponse), global::Chirpstack.ApplicationServer.External.Api.GetNetworkServerResponse.Parser, new[]{ "NetworkServer", "CreatedAt", "UpdatedAt", "Version", "Region" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateNetworkServerRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateNetworkServerRequest.Parser, new[]{ "NetworkServer" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteNetworkServerRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteNetworkServerRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListNetworkServerRequest), global::Chirpstack.ApplicationServer.External.Api.ListNetworkServerRequest.Parser, new[]{ "Limit", "Offset", "OrganizationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListNetworkServerResponse), global::Chirpstack.ApplicationServer.External.Api.ListNetworkServerResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetADRAlgorithmsRequest), global::Chirpstack.ApplicationServer.External.Api.GetADRAlgorithmsRequest.Parser, new[]{ "NetworkServerId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetADRAlgorithmsResponse), global::Chirpstack.ApplicationServer.External.Api.GetADRAlgorithmsResponse.Parser, new[]{ "AdrAlgorithms" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ADRAlgorithm), global::Chirpstack.ApplicationServer.External.Api.ADRAlgorithm.Parser, new[]{ "Id", "Name" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class NetworkServer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NetworkServer()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 NetworkServer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NetworkServer(NetworkServer other) : this() { + id_ = other.id_; + name_ = other.name_; + server_ = other.server_; + caCert_ = other.caCert_; + tlsCert_ = other.tlsCert_; + tlsKey_ = other.tlsKey_; + routingProfileCaCert_ = other.routingProfileCaCert_; + routingProfileTlsCert_ = other.routingProfileTlsCert_; + routingProfileTlsKey_ = other.routingProfileTlsKey_; + gatewayDiscoveryEnabled_ = other.gatewayDiscoveryEnabled_; + gatewayDiscoveryInterval_ = other.gatewayDiscoveryInterval_; + gatewayDiscoveryTxFrequency_ = other.gatewayDiscoveryTxFrequency_; + gatewayDiscoveryDr_ = other.gatewayDiscoveryDr_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NetworkServer Clone() { + return new NetworkServer(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + /// + /// Network-server ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Network-server 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 "server" field. + public const int ServerFieldNumber = 3; + private string server_ = ""; + /// + /// Network-server server. + /// Format: hostname:ip (e.g. localhost:8000). + /// + [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 "ca_cert" field. + public const int CaCertFieldNumber = 4; + private string caCert_ = ""; + /// + /// CA certificate (optional). + /// + [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 "tls_cert" field. + public const int TlsCertFieldNumber = 5; + private string tlsCert_ = ""; + /// + /// TLS (client) certificate for connecting to the network-server (optional). + /// + [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 = 6; + private string tlsKey_ = ""; + /// + /// TLS (client) key for connecting to the network-server (optional). + /// + [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 "routing_profile_ca_cert" field. + public const int RoutingProfileCaCertFieldNumber = 7; + private string routingProfileCaCert_ = ""; + /// + /// Routing-profile ca certificate (used by the network-server to connect + /// back to the application-server) (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoutingProfileCaCert { + get { return routingProfileCaCert_; } + set { + routingProfileCaCert_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "routing_profile_tls_cert" field. + public const int RoutingProfileTlsCertFieldNumber = 8; + private string routingProfileTlsCert_ = ""; + /// + /// Routing-profile TLS certificate (used by the network-server to connect + /// back to the application-server) (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoutingProfileTlsCert { + get { return routingProfileTlsCert_; } + set { + routingProfileTlsCert_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "routing_profile_tls_key" field. + public const int RoutingProfileTlsKeyFieldNumber = 9; + private string routingProfileTlsKey_ = ""; + /// + /// Routing-profile TLS key (used by the network-server to connect + /// back to the application-server) (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoutingProfileTlsKey { + get { return routingProfileTlsKey_; } + set { + routingProfileTlsKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_discovery_enabled" field. + public const int GatewayDiscoveryEnabledFieldNumber = 10; + private bool gatewayDiscoveryEnabled_; + /// + /// Enable gateway discovery for this network-server. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool GatewayDiscoveryEnabled { + get { return gatewayDiscoveryEnabled_; } + set { + gatewayDiscoveryEnabled_ = value; + } + } + + /// Field number for the "gateway_discovery_interval" field. + public const int GatewayDiscoveryIntervalFieldNumber = 11; + private uint gatewayDiscoveryInterval_; + /// + /// The number of times per day the gateway discovery 'ping' must be + /// broadcasted per gateway. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GatewayDiscoveryInterval { + get { return gatewayDiscoveryInterval_; } + set { + gatewayDiscoveryInterval_ = value; + } + } + + /// Field number for the "gateway_discovery_tx_frequency" field. + public const int GatewayDiscoveryTxFrequencyFieldNumber = 12; + private uint gatewayDiscoveryTxFrequency_; + /// + /// The frequency (Hz) of the gateway discovery 'ping'. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GatewayDiscoveryTxFrequency { + get { return gatewayDiscoveryTxFrequency_; } + set { + gatewayDiscoveryTxFrequency_ = value; + } + } + + /// Field number for the "gateway_discovery_dr" field. + public const int GatewayDiscoveryDrFieldNumber = 13; + private uint gatewayDiscoveryDr_; + /// + /// The data-rate of the gateway discovery 'ping'. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GatewayDiscoveryDr { + get { return gatewayDiscoveryDr_; } + set { + gatewayDiscoveryDr_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NetworkServer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NetworkServer 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 (Server != other.Server) return false; + if (CaCert != other.CaCert) return false; + if (TlsCert != other.TlsCert) return false; + if (TlsKey != other.TlsKey) return false; + if (RoutingProfileCaCert != other.RoutingProfileCaCert) return false; + if (RoutingProfileTlsCert != other.RoutingProfileTlsCert) return false; + if (RoutingProfileTlsKey != other.RoutingProfileTlsKey) return false; + if (GatewayDiscoveryEnabled != other.GatewayDiscoveryEnabled) return false; + if (GatewayDiscoveryInterval != other.GatewayDiscoveryInterval) return false; + if (GatewayDiscoveryTxFrequency != other.GatewayDiscoveryTxFrequency) return false; + if (GatewayDiscoveryDr != other.GatewayDiscoveryDr) return false; + 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 != 0L) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Server.Length != 0) hash ^= Server.GetHashCode(); + if (CaCert.Length != 0) hash ^= CaCert.GetHashCode(); + if (TlsCert.Length != 0) hash ^= TlsCert.GetHashCode(); + if (TlsKey.Length != 0) hash ^= TlsKey.GetHashCode(); + if (RoutingProfileCaCert.Length != 0) hash ^= RoutingProfileCaCert.GetHashCode(); + if (RoutingProfileTlsCert.Length != 0) hash ^= RoutingProfileTlsCert.GetHashCode(); + if (RoutingProfileTlsKey.Length != 0) hash ^= RoutingProfileTlsKey.GetHashCode(); + if (GatewayDiscoveryEnabled != false) hash ^= GatewayDiscoveryEnabled.GetHashCode(); + if (GatewayDiscoveryInterval != 0) hash ^= GatewayDiscoveryInterval.GetHashCode(); + if (GatewayDiscoveryTxFrequency != 0) hash ^= GatewayDiscoveryTxFrequency.GetHashCode(); + if (GatewayDiscoveryDr != 0) hash ^= GatewayDiscoveryDr.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Server.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Server); + } + if (CaCert.Length != 0) { + output.WriteRawTag(34); + output.WriteString(CaCert); + } + if (TlsCert.Length != 0) { + output.WriteRawTag(42); + output.WriteString(TlsCert); + } + if (TlsKey.Length != 0) { + output.WriteRawTag(50); + output.WriteString(TlsKey); + } + if (RoutingProfileCaCert.Length != 0) { + output.WriteRawTag(58); + output.WriteString(RoutingProfileCaCert); + } + if (RoutingProfileTlsCert.Length != 0) { + output.WriteRawTag(66); + output.WriteString(RoutingProfileTlsCert); + } + if (RoutingProfileTlsKey.Length != 0) { + output.WriteRawTag(74); + output.WriteString(RoutingProfileTlsKey); + } + if (GatewayDiscoveryEnabled != false) { + output.WriteRawTag(80); + output.WriteBool(GatewayDiscoveryEnabled); + } + if (GatewayDiscoveryInterval != 0) { + output.WriteRawTag(88); + output.WriteUInt32(GatewayDiscoveryInterval); + } + if (GatewayDiscoveryTxFrequency != 0) { + output.WriteRawTag(96); + output.WriteUInt32(GatewayDiscoveryTxFrequency); + } + if (GatewayDiscoveryDr != 0) { + output.WriteRawTag(104); + output.WriteUInt32(GatewayDiscoveryDr); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Server.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Server); + } + if (CaCert.Length != 0) { + output.WriteRawTag(34); + output.WriteString(CaCert); + } + if (TlsCert.Length != 0) { + output.WriteRawTag(42); + output.WriteString(TlsCert); + } + if (TlsKey.Length != 0) { + output.WriteRawTag(50); + output.WriteString(TlsKey); + } + if (RoutingProfileCaCert.Length != 0) { + output.WriteRawTag(58); + output.WriteString(RoutingProfileCaCert); + } + if (RoutingProfileTlsCert.Length != 0) { + output.WriteRawTag(66); + output.WriteString(RoutingProfileTlsCert); + } + if (RoutingProfileTlsKey.Length != 0) { + output.WriteRawTag(74); + output.WriteString(RoutingProfileTlsKey); + } + if (GatewayDiscoveryEnabled != false) { + output.WriteRawTag(80); + output.WriteBool(GatewayDiscoveryEnabled); + } + if (GatewayDiscoveryInterval != 0) { + output.WriteRawTag(88); + output.WriteUInt32(GatewayDiscoveryInterval); + } + if (GatewayDiscoveryTxFrequency != 0) { + output.WriteRawTag(96); + output.WriteUInt32(GatewayDiscoveryTxFrequency); + } + if (GatewayDiscoveryDr != 0) { + output.WriteRawTag(104); + output.WriteUInt32(GatewayDiscoveryDr); + } + if (_unknownFields != 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Server.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Server); + } + if (CaCert.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CaCert); + } + if (TlsCert.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsCert); + } + if (TlsKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsKey); + } + if (RoutingProfileCaCert.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoutingProfileCaCert); + } + if (RoutingProfileTlsCert.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoutingProfileTlsCert); + } + if (RoutingProfileTlsKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoutingProfileTlsKey); + } + if (GatewayDiscoveryEnabled != false) { + size += 1 + 1; + } + if (GatewayDiscoveryInterval != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GatewayDiscoveryInterval); + } + if (GatewayDiscoveryTxFrequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GatewayDiscoveryTxFrequency); + } + if (GatewayDiscoveryDr != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GatewayDiscoveryDr); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NetworkServer other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Server.Length != 0) { + Server = other.Server; + } + if (other.CaCert.Length != 0) { + CaCert = other.CaCert; + } + if (other.TlsCert.Length != 0) { + TlsCert = other.TlsCert; + } + if (other.TlsKey.Length != 0) { + TlsKey = other.TlsKey; + } + if (other.RoutingProfileCaCert.Length != 0) { + RoutingProfileCaCert = other.RoutingProfileCaCert; + } + if (other.RoutingProfileTlsCert.Length != 0) { + RoutingProfileTlsCert = other.RoutingProfileTlsCert; + } + if (other.RoutingProfileTlsKey.Length != 0) { + RoutingProfileTlsKey = other.RoutingProfileTlsKey; + } + if (other.GatewayDiscoveryEnabled != false) { + GatewayDiscoveryEnabled = other.GatewayDiscoveryEnabled; + } + if (other.GatewayDiscoveryInterval != 0) { + GatewayDiscoveryInterval = other.GatewayDiscoveryInterval; + } + if (other.GatewayDiscoveryTxFrequency != 0) { + GatewayDiscoveryTxFrequency = other.GatewayDiscoveryTxFrequency; + } + if (other.GatewayDiscoveryDr != 0) { + GatewayDiscoveryDr = other.GatewayDiscoveryDr; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + Id = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Server = input.ReadString(); + break; + } + case 34: { + CaCert = input.ReadString(); + break; + } + case 42: { + TlsCert = input.ReadString(); + break; + } + case 50: { + TlsKey = input.ReadString(); + break; + } + case 58: { + RoutingProfileCaCert = input.ReadString(); + break; + } + case 66: { + RoutingProfileTlsCert = input.ReadString(); + break; + } + case 74: { + RoutingProfileTlsKey = input.ReadString(); + break; + } + case 80: { + GatewayDiscoveryEnabled = input.ReadBool(); + break; + } + case 88: { + GatewayDiscoveryInterval = input.ReadUInt32(); + break; + } + case 96: { + GatewayDiscoveryTxFrequency = input.ReadUInt32(); + break; + } + case 104: { + GatewayDiscoveryDr = 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: { + Id = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Server = input.ReadString(); + break; + } + case 34: { + CaCert = input.ReadString(); + break; + } + case 42: { + TlsCert = input.ReadString(); + break; + } + case 50: { + TlsKey = input.ReadString(); + break; + } + case 58: { + RoutingProfileCaCert = input.ReadString(); + break; + } + case 66: { + RoutingProfileTlsCert = input.ReadString(); + break; + } + case 74: { + RoutingProfileTlsKey = input.ReadString(); + break; + } + case 80: { + GatewayDiscoveryEnabled = input.ReadBool(); + break; + } + case 88: { + GatewayDiscoveryInterval = input.ReadUInt32(); + break; + } + case 96: { + GatewayDiscoveryTxFrequency = input.ReadUInt32(); + break; + } + case 104: { + GatewayDiscoveryDr = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class NetworkServerListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NetworkServerListItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 NetworkServerListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NetworkServerListItem(NetworkServerListItem other) : this() { + id_ = other.id_; + name_ = other.name_; + server_ = other.server_; + 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 NetworkServerListItem Clone() { + return new NetworkServerListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + /// + /// Network-server ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Network-server 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 "server" field. + public const int ServerFieldNumber = 3; + private string server_ = ""; + /// + /// Network-server server. + /// Format: hostname:ip (e.g. localhost:8000). + /// + [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 "created_at" field. + public const int CreatedAtFieldNumber = 4; + 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 = 5; + 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 NetworkServerListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NetworkServerListItem 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 (Server != other.Server) 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 (Id != 0L) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Server.Length != 0) hash ^= Server.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 (Id != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Server.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Server); + } + if (createdAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(42); + 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 (Id != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Server.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Server); + } + if (createdAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(42); + 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 (Id != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Server.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Server); + } + 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(NetworkServerListItem other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Server.Length != 0) { + Server = other.Server; + } + 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 8: { + Id = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Server = input.ReadString(); + break; + } + case 34: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 42: { + 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 8: { + Id = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Server = input.ReadString(); + break; + } + case 34: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 42: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateNetworkServerRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateNetworkServerRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 CreateNetworkServerRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateNetworkServerRequest(CreateNetworkServerRequest other) : this() { + networkServer_ = other.networkServer_ != null ? other.networkServer_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateNetworkServerRequest Clone() { + return new CreateNetworkServerRequest(this); + } + + /// Field number for the "network_server" field. + public const int NetworkServerFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.NetworkServer networkServer_; + /// + /// Network-server object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.NetworkServer NetworkServer { + get { return networkServer_; } + set { + networkServer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateNetworkServerRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateNetworkServerRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(NetworkServer, other.NetworkServer)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (networkServer_ != null) hash ^= NetworkServer.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (networkServer_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NetworkServer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (networkServer_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NetworkServer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (networkServer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NetworkServer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateNetworkServerRequest other) { + if (other == null) { + return; + } + if (other.networkServer_ != null) { + if (networkServer_ == null) { + NetworkServer = new global::Chirpstack.ApplicationServer.External.Api.NetworkServer(); + } + NetworkServer.MergeFrom(other.NetworkServer); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (networkServer_ == null) { + NetworkServer = new global::Chirpstack.ApplicationServer.External.Api.NetworkServer(); + } + input.ReadMessage(NetworkServer); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (networkServer_ == null) { + NetworkServer = new global::Chirpstack.ApplicationServer.External.Api.NetworkServer(); + } + input.ReadMessage(NetworkServer); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateNetworkServerResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateNetworkServerResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 CreateNetworkServerResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateNetworkServerResponse(CreateNetworkServerResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateNetworkServerResponse Clone() { + return new CreateNetworkServerResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + /// + /// Network-server ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateNetworkServerResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateNetworkServerResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateNetworkServerResponse other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + 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 8: { + Id = 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 8: { + Id = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetNetworkServerRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetNetworkServerRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 GetNetworkServerRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNetworkServerRequest(GetNetworkServerRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNetworkServerRequest Clone() { + return new GetNetworkServerRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + /// + /// Network-server ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetNetworkServerRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetNetworkServerRequest 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetNetworkServerRequest other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + 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 8: { + Id = 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 8: { + Id = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetNetworkServerResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetNetworkServerResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 GetNetworkServerResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNetworkServerResponse(GetNetworkServerResponse other) : this() { + networkServer_ = other.networkServer_ != null ? other.networkServer_.Clone() : null; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + version_ = other.version_; + region_ = other.region_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNetworkServerResponse Clone() { + return new GetNetworkServerResponse(this); + } + + /// Field number for the "network_server" field. + public const int NetworkServerFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.NetworkServer networkServer_; + /// + /// Network-server object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.NetworkServer NetworkServer { + get { return networkServer_; } + set { + networkServer_ = 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 "version" field. + public const int VersionFieldNumber = 4; + private string version_ = ""; + /// + /// The ChirpStack Network Server 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 "region" field. + public const int RegionFieldNumber = 5; + private string region_ = ""; + /// + /// The ChirpStack Network Server region configured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Region { + get { return region_; } + set { + region_ = 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 GetNetworkServerResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetNetworkServerResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(NetworkServer, other.NetworkServer)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (Version != other.Version) return false; + if (Region != other.Region) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (networkServer_ != null) hash ^= NetworkServer.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); + if (Region.Length != 0) hash ^= Region.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (networkServer_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NetworkServer); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Version.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Version); + } + if (Region.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Region); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (networkServer_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NetworkServer); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (Version.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Version); + } + if (Region.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Region); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (networkServer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NetworkServer); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (Region.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetNetworkServerResponse other) { + if (other == null) { + return; + } + if (other.networkServer_ != null) { + if (networkServer_ == null) { + NetworkServer = new global::Chirpstack.ApplicationServer.External.Api.NetworkServer(); + } + NetworkServer.MergeFrom(other.NetworkServer); + } + 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.Version.Length != 0) { + Version = other.Version; + } + if (other.Region.Length != 0) { + Region = other.Region; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (networkServer_ == null) { + NetworkServer = new global::Chirpstack.ApplicationServer.External.Api.NetworkServer(); + } + input.ReadMessage(NetworkServer); + 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: { + Version = input.ReadString(); + break; + } + case 42: { + Region = 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: { + if (networkServer_ == null) { + NetworkServer = new global::Chirpstack.ApplicationServer.External.Api.NetworkServer(); + } + input.ReadMessage(NetworkServer); + 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: { + Version = input.ReadString(); + break; + } + case 42: { + Region = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateNetworkServerRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateNetworkServerRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 UpdateNetworkServerRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateNetworkServerRequest(UpdateNetworkServerRequest other) : this() { + networkServer_ = other.networkServer_ != null ? other.networkServer_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateNetworkServerRequest Clone() { + return new UpdateNetworkServerRequest(this); + } + + /// Field number for the "network_server" field. + public const int NetworkServerFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.NetworkServer networkServer_; + /// + /// Network-server object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.NetworkServer NetworkServer { + get { return networkServer_; } + set { + networkServer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateNetworkServerRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateNetworkServerRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(NetworkServer, other.NetworkServer)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (networkServer_ != null) hash ^= NetworkServer.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (networkServer_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NetworkServer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (networkServer_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NetworkServer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (networkServer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NetworkServer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateNetworkServerRequest other) { + if (other == null) { + return; + } + if (other.networkServer_ != null) { + if (networkServer_ == null) { + NetworkServer = new global::Chirpstack.ApplicationServer.External.Api.NetworkServer(); + } + NetworkServer.MergeFrom(other.NetworkServer); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (networkServer_ == null) { + NetworkServer = new global::Chirpstack.ApplicationServer.External.Api.NetworkServer(); + } + input.ReadMessage(NetworkServer); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (networkServer_ == null) { + NetworkServer = new global::Chirpstack.ApplicationServer.External.Api.NetworkServer(); + } + input.ReadMessage(NetworkServer); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteNetworkServerRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteNetworkServerRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 DeleteNetworkServerRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteNetworkServerRequest(DeleteNetworkServerRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteNetworkServerRequest Clone() { + return new DeleteNetworkServerRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + /// + /// Network-server ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteNetworkServerRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteNetworkServerRequest 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteNetworkServerRequest other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + 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 8: { + Id = 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 8: { + Id = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListNetworkServerRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListNetworkServerRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 ListNetworkServerRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListNetworkServerRequest(ListNetworkServerRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + organizationId_ = other.organizationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListNetworkServerRequest Clone() { + return new ListNetworkServerRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private long limit_; + /// + /// Max number of items 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 = 2; + private long offset_; + /// + /// Offset in 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; + } + } + + /// Field number for the "organization_id" field. + public const int OrganizationIdFieldNumber = 3; + private long organizationId_; + /// + /// Organization id to filter on. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListNetworkServerRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListNetworkServerRequest 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 (OrganizationId != other.OrganizationId) return false; + 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 != 0L) hash ^= Limit.GetHashCode(); + if (Offset != 0L) hash ^= Offset.GetHashCode(); + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (_unknownFields != 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); + } + if (Offset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset); + } + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListNetworkServerRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0L) { + Limit = other.Limit; + } + if (other.Offset != 0L) { + Offset = other.Offset; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + OrganizationId = 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 8: { + Limit = input.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + OrganizationId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListNetworkServerResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListNetworkServerResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 ListNetworkServerResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListNetworkServerResponse(ListNetworkServerResponse 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 ListNetworkServerResponse Clone() { + return new ListNetworkServerResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private long totalCount_; + /// + /// Total number of network-servers. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.Api.NetworkServerListItem.Parser); + private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); + /// + /// Network-servers within the 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 ListNetworkServerResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListNetworkServerResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(ListNetworkServerResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetADRAlgorithmsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetADRAlgorithmsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 GetADRAlgorithmsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetADRAlgorithmsRequest(GetADRAlgorithmsRequest other) : this() { + networkServerId_ = other.networkServerId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetADRAlgorithmsRequest Clone() { + return new GetADRAlgorithmsRequest(this); + } + + /// Field number for the "network_server_id" field. + public const int NetworkServerIdFieldNumber = 1; + private long networkServerId_; + /// + /// Network-server ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkServerId { + get { return networkServerId_; } + set { + networkServerId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetADRAlgorithmsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetADRAlgorithmsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NetworkServerId != other.NetworkServerId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (NetworkServerId != 0L) hash ^= NetworkServerId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (NetworkServerId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(NetworkServerId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (NetworkServerId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(NetworkServerId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (NetworkServerId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NetworkServerId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetADRAlgorithmsRequest other) { + if (other == null) { + return; + } + if (other.NetworkServerId != 0L) { + NetworkServerId = other.NetworkServerId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + NetworkServerId = 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 8: { + NetworkServerId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetADRAlgorithmsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetADRAlgorithmsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 GetADRAlgorithmsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetADRAlgorithmsResponse(GetADRAlgorithmsResponse other) : this() { + adrAlgorithms_ = other.adrAlgorithms_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetADRAlgorithmsResponse Clone() { + return new GetADRAlgorithmsResponse(this); + } + + /// Field number for the "adr_algorithms" field. + public const int AdrAlgorithmsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_adrAlgorithms_codec + = pb::FieldCodec.ForMessage(10, global::Chirpstack.ApplicationServer.External.Api.ADRAlgorithm.Parser); + private readonly pbc::RepeatedField adrAlgorithms_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AdrAlgorithms { + get { return adrAlgorithms_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetADRAlgorithmsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetADRAlgorithmsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!adrAlgorithms_.Equals(other.adrAlgorithms_)) return 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 ^= adrAlgorithms_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + adrAlgorithms_.WriteTo(output, _repeated_adrAlgorithms_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) { + adrAlgorithms_.WriteTo(ref output, _repeated_adrAlgorithms_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 += adrAlgorithms_.CalculateSize(_repeated_adrAlgorithms_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetADRAlgorithmsResponse other) { + if (other == null) { + return; + } + adrAlgorithms_.Add(other.adrAlgorithms_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + adrAlgorithms_.AddEntriesFrom(input, _repeated_adrAlgorithms_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: { + adrAlgorithms_.AddEntriesFrom(ref input, _repeated_adrAlgorithms_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ADRAlgorithm : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ADRAlgorithm()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.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 ADRAlgorithm() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ADRAlgorithm(ADRAlgorithm 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 ADRAlgorithm Clone() { + return new ADRAlgorithm(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ADR 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_ = ""; + /// + /// ADR 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 ADRAlgorithm); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ADRAlgorithm 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(ADRAlgorithm 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/csharp/protobuf/as/external/api/NetworkServerGrpc.cs b/csharp/protobuf/as/external/api/NetworkServerGrpc.cs new file mode 100644 index 00000000..0f800ca1 --- /dev/null +++ b/csharp/protobuf/as/external/api/NetworkServerGrpc.cs @@ -0,0 +1,560 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/networkServer.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer.External.Api { + /// + /// NetworkServerService is the service managing network-servers. + /// + public static partial class NetworkServerService + { + static readonly string __ServiceName = "api.NetworkServerService"; + + [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_CreateNetworkServerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.CreateNetworkServerRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateNetworkServerResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.CreateNetworkServerResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetNetworkServerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetNetworkServerRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetNetworkServerResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetNetworkServerResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateNetworkServerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.UpdateNetworkServerRequest.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_DeleteNetworkServerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.DeleteNetworkServerRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListNetworkServerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListNetworkServerRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListNetworkServerResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListNetworkServerResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetADRAlgorithmsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetADRAlgorithmsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetADRAlgorithmsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetADRAlgorithmsResponse.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_CreateNetworkServerRequest, + __Marshaller_api_CreateNetworkServerResponse); + + [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_GetNetworkServerRequest, + __Marshaller_api_GetNetworkServerResponse); + + [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_UpdateNetworkServerRequest, + __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_DeleteNetworkServerRequest, + __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_ListNetworkServerRequest, + __Marshaller_api_ListNetworkServerResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetADRAlgorithms = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetADRAlgorithms", + __Marshaller_api_GetADRAlgorithmsRequest, + __Marshaller_api_GetADRAlgorithmsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.ApplicationServer.External.Api.NetworkServerReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of NetworkServerService + [grpc::BindServiceMethod(typeof(NetworkServerService), "BindService")] + public abstract partial class NetworkServerServiceBase + { + /// + /// Create creates the given network-server. + /// + /// 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.ApplicationServer.External.Api.CreateNetworkServerRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get returns the network-server matching 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.ApplicationServer.External.Api.GetNetworkServerRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update updates the given network-server. + /// + /// 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.ApplicationServer.External.Api.UpdateNetworkServerRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete deletes the network-server matching 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.ApplicationServer.External.Api.DeleteNetworkServerRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List lists the available network-servers. + /// + /// 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.ApplicationServer.External.Api.ListNetworkServerRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetADRAlgorithms returns the 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 GetADRAlgorithms(global::Chirpstack.ApplicationServer.External.Api.GetADRAlgorithmsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for NetworkServerService + public partial class NetworkServerServiceClient : grpc::ClientBase + { + /// Creates a new client for NetworkServerService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public NetworkServerServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for NetworkServerService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public NetworkServerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected NetworkServerServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected NetworkServerServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Create creates the given network-server. + /// + /// 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.ApplicationServer.External.Api.CreateNetworkServerResponse Create(global::Chirpstack.ApplicationServer.External.Api.CreateNetworkServerRequest 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 network-server. + /// + /// 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.ApplicationServer.External.Api.CreateNetworkServerResponse Create(global::Chirpstack.ApplicationServer.External.Api.CreateNetworkServerRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create creates the given network-server. + /// + /// 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.ApplicationServer.External.Api.CreateNetworkServerRequest 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 network-server. + /// + /// 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.ApplicationServer.External.Api.CreateNetworkServerRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get returns the network-server matching 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.ApplicationServer.External.Api.GetNetworkServerResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetNetworkServerRequest 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 network-server matching 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.ApplicationServer.External.Api.GetNetworkServerResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetNetworkServerRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get returns the network-server matching 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.ApplicationServer.External.Api.GetNetworkServerRequest 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 network-server matching 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.ApplicationServer.External.Api.GetNetworkServerRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update updates the given network-server. + /// + /// 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.ApplicationServer.External.Api.UpdateNetworkServerRequest 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 network-server. + /// + /// 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.ApplicationServer.External.Api.UpdateNetworkServerRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update updates the given network-server. + /// + /// 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.ApplicationServer.External.Api.UpdateNetworkServerRequest 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 network-server. + /// + /// 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.ApplicationServer.External.Api.UpdateNetworkServerRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete deletes the network-server matching 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.ApplicationServer.External.Api.DeleteNetworkServerRequest 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 network-server matching 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.ApplicationServer.External.Api.DeleteNetworkServerRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete deletes the network-server matching 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.ApplicationServer.External.Api.DeleteNetworkServerRequest 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 network-server matching 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.ApplicationServer.External.Api.DeleteNetworkServerRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// List lists the available network-servers. + /// + /// 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.ApplicationServer.External.Api.ListNetworkServerResponse List(global::Chirpstack.ApplicationServer.External.Api.ListNetworkServerRequest 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 lists the available network-servers. + /// + /// 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.ApplicationServer.External.Api.ListNetworkServerResponse List(global::Chirpstack.ApplicationServer.External.Api.ListNetworkServerRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// List lists the available network-servers. + /// + /// 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.ApplicationServer.External.Api.ListNetworkServerRequest 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 lists the available network-servers. + /// + /// 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.ApplicationServer.External.Api.ListNetworkServerRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// GetADRAlgorithms returns the 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.ApplicationServer.External.Api.GetADRAlgorithmsResponse GetADRAlgorithms(global::Chirpstack.ApplicationServer.External.Api.GetADRAlgorithmsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetADRAlgorithms(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetADRAlgorithms returns the 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.ApplicationServer.External.Api.GetADRAlgorithmsResponse GetADRAlgorithms(global::Chirpstack.ApplicationServer.External.Api.GetADRAlgorithmsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetADRAlgorithms, null, options, request); + } + /// + /// GetADRAlgorithms returns the 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 GetADRAlgorithmsAsync(global::Chirpstack.ApplicationServer.External.Api.GetADRAlgorithmsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetADRAlgorithmsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetADRAlgorithms returns the 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 GetADRAlgorithmsAsync(global::Chirpstack.ApplicationServer.External.Api.GetADRAlgorithmsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetADRAlgorithms, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override NetworkServerServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new NetworkServerServiceClient(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(NetworkServerServiceBase 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_GetADRAlgorithms, serviceImpl.GetADRAlgorithms).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, NetworkServerServiceBase 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_GetADRAlgorithms, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetADRAlgorithms)); + } + + } +} +#endregion diff --git a/csharp/protobuf/as/external/api/Organization.cs b/csharp/protobuf/as/external/api/Organization.cs new file mode 100644 index 00000000..85276b91 --- /dev/null +++ b/csharp/protobuf/as/external/api/Organization.cs @@ -0,0 +1,5219 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/organization.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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/organization.proto + public static partial class OrganizationReflection { + + #region Descriptor + /// File descriptor for as/external/api/organization.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static OrganizationReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJhcy9leHRlcm5hbC9hcGkvb3JnYW5pemF0aW9uLnByb3RvEgNhcGkaHGdv", + "b2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90", + "aW1lc3RhbXAucHJvdG8aG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90byKO", + "AQoMT3JnYW5pemF0aW9uEgoKAmlkGAEgASgDEgwKBG5hbWUYAiABKAkSFAoM", + "ZGlzcGxheV9uYW1lGAMgASgJEhkKEWNhbl9oYXZlX2dhdGV3YXlzGAQgASgI", + "EhkKEW1heF9nYXRld2F5X2NvdW50GAUgASgNEhgKEG1heF9kZXZpY2VfY291", + "bnQYBiABKA0iwQEKFE9yZ2FuaXphdGlvbkxpc3RJdGVtEgoKAmlkGAEgASgD", + "EgwKBG5hbWUYAiABKAkSFAoMZGlzcGxheV9uYW1lGAMgASgJEhkKEWNhbl9o", + "YXZlX2dhdGV3YXlzGAQgASgIEi4KCmNyZWF0ZWRfYXQYBSABKAsyGi5nb29n", + "bGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYBiABKAsyGi5n", + "b29nbGUucHJvdG9idWYuVGltZXN0YW1wIiQKFkdldE9yZ2FuaXphdGlvblJl", + "cXVlc3QSCgoCaWQYASABKAMiogEKF0dldE9yZ2FuaXphdGlvblJlc3BvbnNl", + "EicKDG9yZ2FuaXphdGlvbhgBIAEoCzIRLmFwaS5Pcmdhbml6YXRpb24SLgoK", + "Y3JlYXRlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAS", + "LgoKdXBkYXRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", + "bXAiRAoZQ3JlYXRlT3JnYW5pemF0aW9uUmVxdWVzdBInCgxvcmdhbml6YXRp", + "b24YASABKAsyES5hcGkuT3JnYW5pemF0aW9uIigKGkNyZWF0ZU9yZ2FuaXph", + "dGlvblJlc3BvbnNlEgoKAmlkGAEgASgDIkQKGVVwZGF0ZU9yZ2FuaXphdGlv", + "blJlcXVlc3QSJwoMb3JnYW5pemF0aW9uGAEgASgLMhEuYXBpLk9yZ2FuaXph", + "dGlvbiInChlEZWxldGVPcmdhbml6YXRpb25SZXF1ZXN0EgoKAmlkGAEgASgD", + "IkgKF0xpc3RPcmdhbml6YXRpb25SZXF1ZXN0Eg0KBWxpbWl0GAEgASgDEg4K", + "Bm9mZnNldBgCIAEoAxIOCgZzZWFyY2gYAyABKAkiWgoYTGlzdE9yZ2FuaXph", + "dGlvblJlc3BvbnNlEhMKC3RvdGFsX2NvdW50GAEgASgDEikKBnJlc3VsdBgC", + "IAMoCzIZLmFwaS5Pcmdhbml6YXRpb25MaXN0SXRlbSKoAQoQT3JnYW5pemF0", + "aW9uVXNlchInCg9vcmdhbml6YXRpb25faWQYASABKANSDm9yZ2FuaXphdGlv", + "bklEEhcKB3VzZXJfaWQYAiABKANSBnVzZXJJRBIQCghpc19hZG1pbhgDIAEo", + "CBIXCg9pc19kZXZpY2VfYWRtaW4YBSABKAgSGAoQaXNfZ2F0ZXdheV9hZG1p", + "bhgGIAEoCBINCgVlbWFpbBgEIAEoCSLnAQoYT3JnYW5pemF0aW9uVXNlckxp", + "c3RJdGVtEhcKB3VzZXJfaWQYASABKANSBnVzZXJJRBINCgVlbWFpbBgCIAEo", + "CRIQCghpc19hZG1pbhgDIAEoCBIXCg9pc19kZXZpY2VfYWRtaW4YBiABKAgS", + "GAoQaXNfZ2F0ZXdheV9hZG1pbhgHIAEoCBIuCgpjcmVhdGVkX2F0GAQgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAUg", + "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCJOChpBZGRPcmdhbml6", + "YXRpb25Vc2VyUmVxdWVzdBIwChFvcmdhbml6YXRpb25fdXNlchgBIAEoCzIV", + "LmFwaS5Pcmdhbml6YXRpb25Vc2VyIlEKHVVwZGF0ZU9yZ2FuaXphdGlvblVz", + "ZXJSZXF1ZXN0EjAKEW9yZ2FuaXphdGlvbl91c2VyGAEgASgLMhUuYXBpLk9y", + "Z2FuaXphdGlvblVzZXIiYQodRGVsZXRlT3JnYW5pemF0aW9uVXNlclJlcXVl", + "c3QSJwoPb3JnYW5pemF0aW9uX2lkGAEgASgDUg5vcmdhbml6YXRpb25JRBIX", + "Cgd1c2VyX2lkGAIgASgDUgZ1c2VySUQiZgocTGlzdE9yZ2FuaXphdGlvblVz", + "ZXJzUmVxdWVzdBInCg9vcmdhbml6YXRpb25faWQYASABKANSDm9yZ2FuaXph", + "dGlvbklEEg0KBWxpbWl0GAIgASgFEg4KBm9mZnNldBgDIAEoBSJjCh1MaXN0", + "T3JnYW5pemF0aW9uVXNlcnNSZXNwb25zZRITCgt0b3RhbF9jb3VudBgBIAEo", + "AxItCgZyZXN1bHQYAiADKAsyHS5hcGkuT3JnYW5pemF0aW9uVXNlckxpc3RJ", + "dGVtIl4KGkdldE9yZ2FuaXphdGlvblVzZXJSZXF1ZXN0EicKD29yZ2FuaXph", + "dGlvbl9pZBgBIAEoA1IOb3JnYW5pemF0aW9uSUQSFwoHdXNlcl9pZBgCIAEo", + "A1IGdXNlcklEIq8BChtHZXRPcmdhbml6YXRpb25Vc2VyUmVzcG9uc2USMAoR", + "b3JnYW5pemF0aW9uX3VzZXIYASABKAsyFS5hcGkuT3JnYW5pemF0aW9uVXNl", + "chIuCgpjcmVhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", + "dGFtcBIuCgp1cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRp", + "bWVzdGFtcDL2CQoTT3JnYW5pemF0aW9uU2VydmljZRJfCgRMaXN0EhwuYXBp", + "Lkxpc3RPcmdhbml6YXRpb25SZXF1ZXN0Gh0uYXBpLkxpc3RPcmdhbml6YXRp", + "b25SZXNwb25zZSIagtPkkwIUEhIvYXBpL29yZ2FuaXphdGlvbnMSYQoDR2V0", + "EhsuYXBpLkdldE9yZ2FuaXphdGlvblJlcXVlc3QaHC5hcGkuR2V0T3JnYW5p", + "emF0aW9uUmVzcG9uc2UiH4LT5JMCGRIXL2FwaS9vcmdhbml6YXRpb25zL3tp", + "ZH0SaAoGQ3JlYXRlEh4uYXBpLkNyZWF0ZU9yZ2FuaXphdGlvblJlcXVlc3Qa", + "Hy5hcGkuQ3JlYXRlT3JnYW5pemF0aW9uUmVzcG9uc2UiHYLT5JMCFyISL2Fw", + "aS9vcmdhbml6YXRpb25zOgEqEnEKBlVwZGF0ZRIeLmFwaS5VcGRhdGVPcmdh", + "bml6YXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Ii+C0+ST", + "AikaJC9hcGkvb3JnYW5pemF0aW9ucy97b3JnYW5pemF0aW9uLmlkfToBKhJh", + "CgZEZWxldGUSHi5hcGkuRGVsZXRlT3JnYW5pemF0aW9uUmVxdWVzdBoWLmdv", + "b2dsZS5wcm90b2J1Zi5FbXB0eSIfgtPkkwIZKhcvYXBpL29yZ2FuaXphdGlv", + "bnMve2lkfRKGAQoJTGlzdFVzZXJzEiEuYXBpLkxpc3RPcmdhbml6YXRpb25V", + "c2Vyc1JlcXVlc3QaIi5hcGkuTGlzdE9yZ2FuaXphdGlvblVzZXJzUmVzcG9u", + "c2UiMoLT5JMCLBIqL2FwaS9vcmdhbml6YXRpb25zL3tvcmdhbml6YXRpb25f", + "aWR9L3VzZXJzEooBCgdHZXRVc2VyEh8uYXBpLkdldE9yZ2FuaXphdGlvblVz", + "ZXJSZXF1ZXN0GiAuYXBpLkdldE9yZ2FuaXphdGlvblVzZXJSZXNwb25zZSI8", + "gtPkkwI2EjQvYXBpL29yZ2FuaXphdGlvbnMve29yZ2FuaXphdGlvbl9pZH0v", + "dXNlcnMve3VzZXJfaWR9EosBCgdBZGRVc2VyEh8uYXBpLkFkZE9yZ2FuaXph", + "dGlvblVzZXJSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IkeC0+ST", + "AkEiPC9hcGkvb3JnYW5pemF0aW9ucy97b3JnYW5pemF0aW9uX3VzZXIub3Jn", + "YW5pemF0aW9uX2lkfS91c2VyczoBKhKtAQoKVXBkYXRlVXNlchIiLmFwaS5V", + "cGRhdGVPcmdhbml6YXRpb25Vc2VyUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1", + "Zi5FbXB0eSJjgtPkkwJdGlgvYXBpL29yZ2FuaXphdGlvbnMve29yZ2FuaXph", + "dGlvbl91c2VyLm9yZ2FuaXphdGlvbl9pZH0vdXNlcnMve29yZ2FuaXphdGlv", + "bl91c2VyLnVzZXJfaWR9OgEqEoYBCgpEZWxldGVVc2VyEiIuYXBpLkRlbGV0", + "ZU9yZ2FuaXphdGlvblVzZXJSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5IjyC0+STAjYqNC9hcGkvb3JnYW5pemF0aW9ucy97b3JnYW5pemF0aW9u", + "X2lkfS91c2Vycy97dXNlcl9pZH1CnQEKIWlvLmNoaXJwc3RhY2suYXBpLmFz", + "LmV4dGVybmFsLmFwaUIRT3JnYW5pemF0aW9uUHJvdG9QAVo3Z2l0aHViLmNv", + "bS9icm9jYWFyL2NoaXJwc3RhY2stYXBpL2dvL3YzL2FzL2V4dGVybmFsL2Fw", + "aaoCKUNoaXJwc3RhY2suQXBwbGljYXRpb25TZXJ2ZXIuRXh0ZXJuYWwuQXBp", + "YgZwcm90bzM=")); + 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.ApplicationServer.External.Api.Organization), global::Chirpstack.ApplicationServer.External.Api.Organization.Parser, new[]{ "Id", "Name", "DisplayName", "CanHaveGateways", "MaxGatewayCount", "MaxDeviceCount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.OrganizationListItem), global::Chirpstack.ApplicationServer.External.Api.OrganizationListItem.Parser, new[]{ "Id", "Name", "DisplayName", "CanHaveGateways", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetOrganizationRequest), global::Chirpstack.ApplicationServer.External.Api.GetOrganizationRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetOrganizationResponse), global::Chirpstack.ApplicationServer.External.Api.GetOrganizationResponse.Parser, new[]{ "Organization", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateOrganizationRequest), global::Chirpstack.ApplicationServer.External.Api.CreateOrganizationRequest.Parser, new[]{ "Organization" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateOrganizationResponse), global::Chirpstack.ApplicationServer.External.Api.CreateOrganizationResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateOrganizationRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateOrganizationRequest.Parser, new[]{ "Organization" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteOrganizationRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteOrganizationRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListOrganizationRequest), global::Chirpstack.ApplicationServer.External.Api.ListOrganizationRequest.Parser, new[]{ "Limit", "Offset", "Search" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListOrganizationResponse), global::Chirpstack.ApplicationServer.External.Api.ListOrganizationResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.OrganizationUser), global::Chirpstack.ApplicationServer.External.Api.OrganizationUser.Parser, new[]{ "OrganizationId", "UserId", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin", "Email" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.OrganizationUserListItem), global::Chirpstack.ApplicationServer.External.Api.OrganizationUserListItem.Parser, new[]{ "UserId", "Email", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.AddOrganizationUserRequest), global::Chirpstack.ApplicationServer.External.Api.AddOrganizationUserRequest.Parser, new[]{ "OrganizationUser" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateOrganizationUserRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateOrganizationUserRequest.Parser, new[]{ "OrganizationUser" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteOrganizationUserRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteOrganizationUserRequest.Parser, new[]{ "OrganizationId", "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListOrganizationUsersRequest), global::Chirpstack.ApplicationServer.External.Api.ListOrganizationUsersRequest.Parser, new[]{ "OrganizationId", "Limit", "Offset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListOrganizationUsersResponse), global::Chirpstack.ApplicationServer.External.Api.ListOrganizationUsersResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetOrganizationUserRequest), global::Chirpstack.ApplicationServer.External.Api.GetOrganizationUserRequest.Parser, new[]{ "OrganizationId", "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetOrganizationUserResponse), global::Chirpstack.ApplicationServer.External.Api.GetOrganizationUserResponse.Parser, new[]{ "OrganizationUser", "CreatedAt", "UpdatedAt" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class Organization : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Organization()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 Organization() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Organization(Organization other) : this() { + id_ = other.id_; + name_ = other.name_; + displayName_ = other.displayName_; + canHaveGateways_ = other.canHaveGateways_; + maxGatewayCount_ = other.maxGatewayCount_; + maxDeviceCount_ = other.maxDeviceCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Organization Clone() { + return new Organization(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Organization 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 "display_name" field. + public const int DisplayNameFieldNumber = 3; + private string displayName_ = ""; + /// + /// Organization display name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "can_have_gateways" field. + public const int CanHaveGatewaysFieldNumber = 4; + private bool canHaveGateways_; + /// + /// Can the organization 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 organization. + /// When set to 0, the organization 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 organization. + /// When set to 0, the organization can have unlimited devices. + /// + [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 Organization); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Organization 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 (DisplayName != other.DisplayName) return false; + if (CanHaveGateways != other.CanHaveGateways) 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 != 0L) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (CanHaveGateways != false) hash ^= CanHaveGateways.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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + 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 (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + 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 (_unknownFields != 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + 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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Organization other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.CanHaveGateways != false) { + CanHaveGateways = other.CanHaveGateways; + } + 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 8: { + Id = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + case 32: { + CanHaveGateways = input.ReadBool(); + break; + } + case 40: { + MaxGatewayCount = input.ReadUInt32(); + break; + } + case 48: { + 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 8: { + Id = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + case 32: { + CanHaveGateways = input.ReadBool(); + break; + } + case 40: { + MaxGatewayCount = input.ReadUInt32(); + break; + } + case 48: { + MaxDeviceCount = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class OrganizationListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OrganizationListItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 OrganizationListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OrganizationListItem(OrganizationListItem other) : this() { + id_ = other.id_; + name_ = other.name_; + displayName_ = other.displayName_; + canHaveGateways_ = other.canHaveGateways_; + 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 OrganizationListItem Clone() { + return new OrganizationListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Organization 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 "display_name" field. + public const int DisplayNameFieldNumber = 3; + private string displayName_ = ""; + /// + /// Organization display name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "can_have_gateways" field. + public const int CanHaveGatewaysFieldNumber = 4; + private bool canHaveGateways_; + /// + /// Can the organization 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 "created_at" field. + public const int CreatedAtFieldNumber = 5; + 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 = 6; + 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 OrganizationListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OrganizationListItem 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 (DisplayName != other.DisplayName) return false; + if (CanHaveGateways != other.CanHaveGateways) 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 (Id != 0L) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (CanHaveGateways != false) hash ^= CanHaveGateways.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 (Id != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + if (CanHaveGateways != false) { + output.WriteRawTag(32); + output.WriteBool(CanHaveGateways); + } + if (createdAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(50); + 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 (Id != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + if (CanHaveGateways != false) { + output.WriteRawTag(32); + output.WriteBool(CanHaveGateways); + } + if (createdAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(50); + 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 (Id != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (CanHaveGateways != false) { + size += 1 + 1; + } + 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(OrganizationListItem other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.CanHaveGateways != false) { + CanHaveGateways = other.CanHaveGateways; + } + 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 8: { + Id = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + case 32: { + CanHaveGateways = input.ReadBool(); + break; + } + case 42: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 50: { + 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 8: { + Id = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + case 32: { + CanHaveGateways = input.ReadBool(); + break; + } + case 42: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 50: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetOrganizationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOrganizationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 GetOrganizationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetOrganizationRequest(GetOrganizationRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetOrganizationRequest Clone() { + return new GetOrganizationRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetOrganizationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetOrganizationRequest 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetOrganizationRequest other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + 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 8: { + Id = 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 8: { + Id = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetOrganizationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOrganizationResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 GetOrganizationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetOrganizationResponse(GetOrganizationResponse other) : this() { + organization_ = other.organization_ != null ? other.organization_.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 GetOrganizationResponse Clone() { + return new GetOrganizationResponse(this); + } + + /// Field number for the "organization" field. + public const int OrganizationFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.Organization organization_; + /// + /// Organization object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.Organization Organization { + get { return organization_; } + set { + organization_ = 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 GetOrganizationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetOrganizationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Organization, other.Organization)) 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 (organization_ != null) hash ^= Organization.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 (organization_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Organization); + } + 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 (organization_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Organization); + } + 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 (organization_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Organization); + } + 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(GetOrganizationResponse other) { + if (other == null) { + return; + } + if (other.organization_ != null) { + if (organization_ == null) { + Organization = new global::Chirpstack.ApplicationServer.External.Api.Organization(); + } + Organization.MergeFrom(other.Organization); + } + 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 (organization_ == null) { + Organization = new global::Chirpstack.ApplicationServer.External.Api.Organization(); + } + input.ReadMessage(Organization); + 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 (organization_ == null) { + Organization = new global::Chirpstack.ApplicationServer.External.Api.Organization(); + } + input.ReadMessage(Organization); + 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 CreateOrganizationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateOrganizationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 CreateOrganizationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateOrganizationRequest(CreateOrganizationRequest other) : this() { + organization_ = other.organization_ != null ? other.organization_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateOrganizationRequest Clone() { + return new CreateOrganizationRequest(this); + } + + /// Field number for the "organization" field. + public const int OrganizationFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.Organization organization_; + /// + /// Organization object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.Organization Organization { + get { return organization_; } + set { + organization_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateOrganizationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateOrganizationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Organization, other.Organization)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (organization_ != null) hash ^= Organization.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (organization_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Organization); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (organization_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Organization); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (organization_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Organization); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateOrganizationRequest other) { + if (other == null) { + return; + } + if (other.organization_ != null) { + if (organization_ == null) { + Organization = new global::Chirpstack.ApplicationServer.External.Api.Organization(); + } + Organization.MergeFrom(other.Organization); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (organization_ == null) { + Organization = new global::Chirpstack.ApplicationServer.External.Api.Organization(); + } + input.ReadMessage(Organization); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (organization_ == null) { + Organization = new global::Chirpstack.ApplicationServer.External.Api.Organization(); + } + input.ReadMessage(Organization); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateOrganizationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateOrganizationResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 CreateOrganizationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateOrganizationResponse(CreateOrganizationResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateOrganizationResponse Clone() { + return new CreateOrganizationResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateOrganizationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateOrganizationResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateOrganizationResponse other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + 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 8: { + Id = 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 8: { + Id = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateOrganizationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateOrganizationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 UpdateOrganizationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateOrganizationRequest(UpdateOrganizationRequest other) : this() { + organization_ = other.organization_ != null ? other.organization_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateOrganizationRequest Clone() { + return new UpdateOrganizationRequest(this); + } + + /// Field number for the "organization" field. + public const int OrganizationFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.Organization organization_; + /// + /// Organization object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.Organization Organization { + get { return organization_; } + set { + organization_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateOrganizationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateOrganizationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Organization, other.Organization)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (organization_ != null) hash ^= Organization.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (organization_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Organization); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (organization_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Organization); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (organization_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Organization); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateOrganizationRequest other) { + if (other == null) { + return; + } + if (other.organization_ != null) { + if (organization_ == null) { + Organization = new global::Chirpstack.ApplicationServer.External.Api.Organization(); + } + Organization.MergeFrom(other.Organization); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (organization_ == null) { + Organization = new global::Chirpstack.ApplicationServer.External.Api.Organization(); + } + input.ReadMessage(Organization); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (organization_ == null) { + Organization = new global::Chirpstack.ApplicationServer.External.Api.Organization(); + } + input.ReadMessage(Organization); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteOrganizationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteOrganizationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 DeleteOrganizationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteOrganizationRequest(DeleteOrganizationRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteOrganizationRequest Clone() { + return new DeleteOrganizationRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteOrganizationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteOrganizationRequest 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteOrganizationRequest other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + 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 8: { + Id = 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 8: { + Id = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListOrganizationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListOrganizationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 ListOrganizationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListOrganizationRequest(ListOrganizationRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + search_ = other.search_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListOrganizationRequest Clone() { + return new ListOrganizationRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private long limit_; + /// + /// Max number of organizations to return in the result-set. + /// + [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 = 2; + private long offset_; + /// + /// Offset in 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; + } + } + + /// Field number for the "search" field. + public const int SearchFieldNumber = 3; + private string search_ = ""; + /// + /// When provided, the given string will be used to search on + /// displayName. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Search { + get { return search_; } + set { + search_ = 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 ListOrganizationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListOrganizationRequest 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; + 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 != 0L) hash ^= Limit.GetHashCode(); + if (Offset != 0L) hash ^= Offset.GetHashCode(); + if (Search.Length != 0) hash ^= Search.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (Search.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Search); + } + if (_unknownFields != 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); + } + if (Offset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset); + } + if (Search.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListOrganizationRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0L) { + Limit = other.Limit; + } + if (other.Offset != 0L) { + Offset = other.Offset; + } + if (other.Search.Length != 0) { + Search = other.Search; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 26: { + Search = 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.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 26: { + Search = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListOrganizationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListOrganizationResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 ListOrganizationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListOrganizationResponse(ListOrganizationResponse 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 ListOrganizationResponse Clone() { + return new ListOrganizationResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private long totalCount_; + /// + /// Total number of organizations. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.Api.OrganizationListItem.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 ListOrganizationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListOrganizationResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(ListOrganizationResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class OrganizationUser : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OrganizationUser()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 OrganizationUser() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OrganizationUser(OrganizationUser other) : this() { + organizationId_ = other.organizationId_; + 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 OrganizationUser Clone() { + return new OrganizationUser(this); + } + + /// Field number for the "organization_id" field. + public const int OrganizationIdFieldNumber = 1; + private long organizationId_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 2; + private long userId_; + /// + /// User ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long UserId { + get { return userId_; } + set { + userId_ = value; + } + } + + /// Field number for the "is_admin" field. + public const int IsAdminFieldNumber = 3; + private bool isAdmin_; + /// + /// User is admin within the context of the organization. + /// 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; + } + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 4; + private string email_ = ""; + /// + /// Email (only used on get and when adding a user to an organization). + /// + [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 OrganizationUser); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OrganizationUser other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OrganizationId != other.OrganizationId) 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 (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (UserId != 0L) 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 (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (UserId != 0L) { + output.WriteRawTag(16); + output.WriteInt64(UserId); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (Email.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Email); + } + 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 (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (UserId != 0L) { + output.WriteRawTag(16); + output.WriteInt64(UserId); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (Email.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Email); + } + 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 (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (UserId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(OrganizationUser other) { + if (other == null) { + return; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.UserId != 0L) { + 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 8: { + OrganizationId = input.ReadInt64(); + break; + } + case 16: { + UserId = input.ReadInt64(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 34: { + Email = input.ReadString(); + 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 8: { + OrganizationId = input.ReadInt64(); + break; + } + case 16: { + UserId = input.ReadInt64(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 34: { + Email = input.ReadString(); + break; + } + case 40: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 48: { + IsGatewayAdmin = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class OrganizationUserListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OrganizationUserListItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 OrganizationUserListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OrganizationUserListItem(OrganizationUserListItem other) : this() { + userId_ = other.userId_; + email_ = other.email_; + isAdmin_ = other.isAdmin_; + isDeviceAdmin_ = other.isDeviceAdmin_; + isGatewayAdmin_ = other.isGatewayAdmin_; + 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 OrganizationUserListItem Clone() { + return new OrganizationUserListItem(this); + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private long userId_; + /// + /// User ID. + /// This is not used on create, you must set the user email address + /// associated with the user to add an user to an organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long UserId { + get { return userId_; } + set { + userId_ = value; + } + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 2; + 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 = 3; + private bool isAdmin_; + /// + /// User is admin within the context of the organization. + /// 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 = 6; + 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 = 7; + 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 "created_at" field. + public const int CreatedAtFieldNumber = 4; + 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 = 5; + 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 OrganizationUserListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OrganizationUserListItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UserId != other.UserId) 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; + 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 (UserId != 0L) hash ^= UserId.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 (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 (UserId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(UserId); + } + if (Email.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Email); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (createdAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdatedAt); + } + if (IsDeviceAdmin != false) { + output.WriteRawTag(48); + output.WriteBool(IsDeviceAdmin); + } + if (IsGatewayAdmin != false) { + output.WriteRawTag(56); + 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 (UserId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(UserId); + } + if (Email.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Email); + } + if (IsAdmin != false) { + output.WriteRawTag(24); + output.WriteBool(IsAdmin); + } + if (createdAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdatedAt); + } + if (IsDeviceAdmin != false) { + output.WriteRawTag(48); + output.WriteBool(IsDeviceAdmin); + } + if (IsGatewayAdmin != false) { + output.WriteRawTag(56); + 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 (UserId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(UserId); + } + 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 (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(OrganizationUserListItem other) { + if (other == null) { + return; + } + if (other.UserId != 0L) { + UserId = other.UserId; + } + 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; + } + 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 8: { + UserId = input.ReadInt64(); + break; + } + case 18: { + Email = input.ReadString(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 34: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 42: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 48: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 56: { + 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 8: { + UserId = input.ReadInt64(); + break; + } + case 18: { + Email = input.ReadString(); + break; + } + case 24: { + IsAdmin = input.ReadBool(); + break; + } + case 34: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 42: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 48: { + IsDeviceAdmin = input.ReadBool(); + break; + } + case 56: { + IsGatewayAdmin = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AddOrganizationUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddOrganizationUserRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 AddOrganizationUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddOrganizationUserRequest(AddOrganizationUserRequest other) : this() { + organizationUser_ = other.organizationUser_ != null ? other.organizationUser_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddOrganizationUserRequest Clone() { + return new AddOrganizationUserRequest(this); + } + + /// Field number for the "organization_user" field. + public const int OrganizationUserFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.OrganizationUser organizationUser_; + /// + /// Organization-user object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.OrganizationUser OrganizationUser { + get { return organizationUser_; } + set { + organizationUser_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddOrganizationUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddOrganizationUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OrganizationUser, other.OrganizationUser)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (organizationUser_ != null) hash ^= OrganizationUser.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (organizationUser_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OrganizationUser); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (organizationUser_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OrganizationUser); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (organizationUser_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationUser); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddOrganizationUserRequest other) { + if (other == null) { + return; + } + if (other.organizationUser_ != null) { + if (organizationUser_ == null) { + OrganizationUser = new global::Chirpstack.ApplicationServer.External.Api.OrganizationUser(); + } + OrganizationUser.MergeFrom(other.OrganizationUser); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (organizationUser_ == null) { + OrganizationUser = new global::Chirpstack.ApplicationServer.External.Api.OrganizationUser(); + } + input.ReadMessage(OrganizationUser); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (organizationUser_ == null) { + OrganizationUser = new global::Chirpstack.ApplicationServer.External.Api.OrganizationUser(); + } + input.ReadMessage(OrganizationUser); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateOrganizationUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateOrganizationUserRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 UpdateOrganizationUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateOrganizationUserRequest(UpdateOrganizationUserRequest other) : this() { + organizationUser_ = other.organizationUser_ != null ? other.organizationUser_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateOrganizationUserRequest Clone() { + return new UpdateOrganizationUserRequest(this); + } + + /// Field number for the "organization_user" field. + public const int OrganizationUserFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.OrganizationUser organizationUser_; + /// + /// Organization-user object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.OrganizationUser OrganizationUser { + get { return organizationUser_; } + set { + organizationUser_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateOrganizationUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateOrganizationUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OrganizationUser, other.OrganizationUser)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (organizationUser_ != null) hash ^= OrganizationUser.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (organizationUser_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OrganizationUser); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (organizationUser_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OrganizationUser); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (organizationUser_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationUser); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateOrganizationUserRequest other) { + if (other == null) { + return; + } + if (other.organizationUser_ != null) { + if (organizationUser_ == null) { + OrganizationUser = new global::Chirpstack.ApplicationServer.External.Api.OrganizationUser(); + } + OrganizationUser.MergeFrom(other.OrganizationUser); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (organizationUser_ == null) { + OrganizationUser = new global::Chirpstack.ApplicationServer.External.Api.OrganizationUser(); + } + input.ReadMessage(OrganizationUser); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (organizationUser_ == null) { + OrganizationUser = new global::Chirpstack.ApplicationServer.External.Api.OrganizationUser(); + } + input.ReadMessage(OrganizationUser); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteOrganizationUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteOrganizationUserRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 DeleteOrganizationUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteOrganizationUserRequest(DeleteOrganizationUserRequest other) : this() { + organizationId_ = other.organizationId_; + userId_ = other.userId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteOrganizationUserRequest Clone() { + return new DeleteOrganizationUserRequest(this); + } + + /// Field number for the "organization_id" field. + public const int OrganizationIdFieldNumber = 1; + private long organizationId_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 2; + private long userId_; + /// + /// User ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long UserId { + get { return userId_; } + set { + userId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteOrganizationUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteOrganizationUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OrganizationId != other.OrganizationId) 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 (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (UserId != 0L) 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 (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (UserId != 0L) { + output.WriteRawTag(16); + output.WriteInt64(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 (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (UserId != 0L) { + output.WriteRawTag(16); + output.WriteInt64(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 (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (UserId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(UserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteOrganizationUserRequest other) { + if (other == null) { + return; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.UserId != 0L) { + 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: { + OrganizationId = input.ReadInt64(); + break; + } + case 16: { + UserId = 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 8: { + OrganizationId = input.ReadInt64(); + break; + } + case 16: { + UserId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListOrganizationUsersRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListOrganizationUsersRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 ListOrganizationUsersRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListOrganizationUsersRequest(ListOrganizationUsersRequest other) : this() { + organizationId_ = other.organizationId_; + limit_ = other.limit_; + offset_ = other.offset_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListOrganizationUsersRequest Clone() { + return new ListOrganizationUsersRequest(this); + } + + /// Field number for the "organization_id" field. + public const int OrganizationIdFieldNumber = 1; + private long organizationId_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 2; + private int limit_; + /// + /// Max number of users to return in the result-set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 3; + private int offset_; + /// + /// Offset in the result-set (for pagination). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Offset { + get { return offset_; } + set { + offset_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListOrganizationUsersRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListOrganizationUsersRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OrganizationId != other.OrganizationId) 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 (OrganizationId != 0L) hash ^= OrganizationId.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 (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (Limit != 0) { + output.WriteRawTag(16); + output.WriteInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(24); + output.WriteInt32(Offset); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (Limit != 0) { + output.WriteRawTag(16); + output.WriteInt32(Limit); + } + if (Offset != 0) { + output.WriteRawTag(24); + output.WriteInt32(Offset); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (Limit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit); + } + if (Offset != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Offset); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListOrganizationUsersRequest other) { + if (other == null) { + return; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + 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: { + OrganizationId = input.ReadInt64(); + break; + } + case 16: { + Limit = input.ReadInt32(); + break; + } + case 24: { + Offset = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + OrganizationId = input.ReadInt64(); + break; + } + case 16: { + Limit = input.ReadInt32(); + break; + } + case 24: { + Offset = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListOrganizationUsersResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListOrganizationUsersResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 ListOrganizationUsersResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListOrganizationUsersResponse(ListOrganizationUsersResponse 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 ListOrganizationUsersResponse Clone() { + return new ListOrganizationUsersResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private long totalCount_; + /// + /// The total number of users in the organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.Api.OrganizationUserListItem.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 ListOrganizationUsersResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListOrganizationUsersResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(ListOrganizationUsersResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetOrganizationUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOrganizationUserRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 GetOrganizationUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetOrganizationUserRequest(GetOrganizationUserRequest other) : this() { + organizationId_ = other.organizationId_; + userId_ = other.userId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetOrganizationUserRequest Clone() { + return new GetOrganizationUserRequest(this); + } + + /// Field number for the "organization_id" field. + public const int OrganizationIdFieldNumber = 1; + private long organizationId_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 2; + private long userId_; + /// + /// User ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long UserId { + get { return userId_; } + set { + userId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetOrganizationUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetOrganizationUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OrganizationId != other.OrganizationId) 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 (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (UserId != 0L) 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 (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (UserId != 0L) { + output.WriteRawTag(16); + output.WriteInt64(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 (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + if (UserId != 0L) { + output.WriteRawTag(16); + output.WriteInt64(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 (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (UserId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(UserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetOrganizationUserRequest other) { + if (other == null) { + return; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.UserId != 0L) { + 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: { + OrganizationId = input.ReadInt64(); + break; + } + case 16: { + UserId = 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 8: { + OrganizationId = input.ReadInt64(); + break; + } + case 16: { + UserId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Response for a user in the organization + /// + public sealed partial class GetOrganizationUserResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOrganizationUserResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.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 GetOrganizationUserResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetOrganizationUserResponse(GetOrganizationUserResponse other) : this() { + organizationUser_ = other.organizationUser_ != null ? other.organizationUser_.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 GetOrganizationUserResponse Clone() { + return new GetOrganizationUserResponse(this); + } + + /// Field number for the "organization_user" field. + public const int OrganizationUserFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.OrganizationUser organizationUser_; + /// + /// Organization-user object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.OrganizationUser OrganizationUser { + get { return organizationUser_; } + set { + organizationUser_ = 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 GetOrganizationUserResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetOrganizationUserResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OrganizationUser, other.OrganizationUser)) 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 (organizationUser_ != null) hash ^= OrganizationUser.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 (organizationUser_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OrganizationUser); + } + 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 (organizationUser_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OrganizationUser); + } + 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 (organizationUser_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrganizationUser); + } + 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(GetOrganizationUserResponse other) { + if (other == null) { + return; + } + if (other.organizationUser_ != null) { + if (organizationUser_ == null) { + OrganizationUser = new global::Chirpstack.ApplicationServer.External.Api.OrganizationUser(); + } + OrganizationUser.MergeFrom(other.OrganizationUser); + } + 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 (organizationUser_ == null) { + OrganizationUser = new global::Chirpstack.ApplicationServer.External.Api.OrganizationUser(); + } + input.ReadMessage(OrganizationUser); + 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 (organizationUser_ == null) { + OrganizationUser = new global::Chirpstack.ApplicationServer.External.Api.OrganizationUser(); + } + input.ReadMessage(OrganizationUser); + 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 + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/as/external/api/OrganizationGrpc.cs b/csharp/protobuf/as/external/api/OrganizationGrpc.cs new file mode 100644 index 00000000..6051943e --- /dev/null +++ b/csharp/protobuf/as/external/api/OrganizationGrpc.cs @@ -0,0 +1,850 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/organization.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer.External.Api { + /// + /// OrganizationService is the service managing the organization access. + /// + public static partial class OrganizationService + { + static readonly string __ServiceName = "api.OrganizationService"; + + [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_ListOrganizationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListOrganizationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListOrganizationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListOrganizationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetOrganizationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetOrganizationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetOrganizationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetOrganizationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateOrganizationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.CreateOrganizationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateOrganizationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.CreateOrganizationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateOrganizationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.UpdateOrganizationRequest.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_DeleteOrganizationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.DeleteOrganizationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListOrganizationUsersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListOrganizationUsersRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListOrganizationUsersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListOrganizationUsersResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetOrganizationUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetOrganizationUserRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetOrganizationUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetOrganizationUserResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_AddOrganizationUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.AddOrganizationUserRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateOrganizationUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.UpdateOrganizationUserRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_DeleteOrganizationUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.DeleteOrganizationUserRequest.Parser)); + + [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_ListOrganizationRequest, + __Marshaller_api_ListOrganizationResponse); + + [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_GetOrganizationRequest, + __Marshaller_api_GetOrganizationResponse); + + [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_CreateOrganizationRequest, + __Marshaller_api_CreateOrganizationResponse); + + [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_UpdateOrganizationRequest, + __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_DeleteOrganizationRequest, + __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_ListOrganizationUsersRequest, + __Marshaller_api_ListOrganizationUsersResponse); + + [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_GetOrganizationUserRequest, + __Marshaller_api_GetOrganizationUserResponse); + + [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_AddOrganizationUserRequest, + __Marshaller_google_protobuf_Empty); + + [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_UpdateOrganizationUserRequest, + __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_DeleteOrganizationUserRequest, + __Marshaller_google_protobuf_Empty); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.ApplicationServer.External.Api.OrganizationReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of OrganizationService + [grpc::BindServiceMethod(typeof(OrganizationService), "BindService")] + public abstract partial class OrganizationServiceBase + { + /// + /// Get organization list. + /// + /// 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.ApplicationServer.External.Api.ListOrganizationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get data for a particular organization. + /// + /// 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.ApplicationServer.External.Api.GetOrganizationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create a new organization. + /// + /// 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.ApplicationServer.External.Api.CreateOrganizationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update an existing organization. + /// + /// 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.ApplicationServer.External.Api.UpdateOrganizationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete an organization. + /// + /// 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.ApplicationServer.External.Api.DeleteOrganizationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get organization's user list. + /// + /// 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.ApplicationServer.External.Api.ListOrganizationUsersRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get data for a particular organization 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 GetUser(global::Chirpstack.ApplicationServer.External.Api.GetOrganizationUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Add a new user to an organization. The user is matched based on email, not user 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 AddUser(global::Chirpstack.ApplicationServer.External.Api.AddOrganizationUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update a user in an organization. + /// + /// 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.ApplicationServer.External.Api.UpdateOrganizationUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete a user from an organization. + /// + /// 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.ApplicationServer.External.Api.DeleteOrganizationUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for OrganizationService + public partial class OrganizationServiceClient : grpc::ClientBase + { + /// Creates a new client for OrganizationService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public OrganizationServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for OrganizationService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public OrganizationServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected OrganizationServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected OrganizationServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Get organization list. + /// + /// 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.ApplicationServer.External.Api.ListOrganizationResponse List(global::Chirpstack.ApplicationServer.External.Api.ListOrganizationRequest 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 organization list. + /// + /// 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.ApplicationServer.External.Api.ListOrganizationResponse List(global::Chirpstack.ApplicationServer.External.Api.ListOrganizationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// Get organization list. + /// + /// 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.ApplicationServer.External.Api.ListOrganizationRequest 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 organization list. + /// + /// 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.ApplicationServer.External.Api.ListOrganizationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// Get data for a particular organization. + /// + /// 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.ApplicationServer.External.Api.GetOrganizationResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetOrganizationRequest 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 data for a particular organization. + /// + /// 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.ApplicationServer.External.Api.GetOrganizationResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetOrganizationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get data for a particular organization. + /// + /// 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.ApplicationServer.External.Api.GetOrganizationRequest 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 data for a particular organization. + /// + /// 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.ApplicationServer.External.Api.GetOrganizationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Create a new organization. + /// + /// 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.ApplicationServer.External.Api.CreateOrganizationResponse Create(global::Chirpstack.ApplicationServer.External.Api.CreateOrganizationRequest 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 organization. + /// + /// 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.ApplicationServer.External.Api.CreateOrganizationResponse Create(global::Chirpstack.ApplicationServer.External.Api.CreateOrganizationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create a new organization. + /// + /// 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.ApplicationServer.External.Api.CreateOrganizationRequest 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 organization. + /// + /// 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.ApplicationServer.External.Api.CreateOrganizationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Update an existing organization. + /// + /// 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.ApplicationServer.External.Api.UpdateOrganizationRequest 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 an existing organization. + /// + /// 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.ApplicationServer.External.Api.UpdateOrganizationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update an existing organization. + /// + /// 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.ApplicationServer.External.Api.UpdateOrganizationRequest 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 an existing organization. + /// + /// 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.ApplicationServer.External.Api.UpdateOrganizationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete an organization. + /// + /// 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.ApplicationServer.External.Api.DeleteOrganizationRequest 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 an organization. + /// + /// 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.ApplicationServer.External.Api.DeleteOrganizationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete an organization. + /// + /// 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.ApplicationServer.External.Api.DeleteOrganizationRequest 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 an organization. + /// + /// 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.ApplicationServer.External.Api.DeleteOrganizationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Get organization's user list. + /// + /// 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.ApplicationServer.External.Api.ListOrganizationUsersResponse ListUsers(global::Chirpstack.ApplicationServer.External.Api.ListOrganizationUsersRequest 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 organization's user list. + /// + /// 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.ApplicationServer.External.Api.ListOrganizationUsersResponse ListUsers(global::Chirpstack.ApplicationServer.External.Api.ListOrganizationUsersRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListUsers, null, options, request); + } + /// + /// Get organization's user list. + /// + /// 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.ApplicationServer.External.Api.ListOrganizationUsersRequest 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 organization's user list. + /// + /// 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.ApplicationServer.External.Api.ListOrganizationUsersRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListUsers, null, options, request); + } + /// + /// Get data for a particular organization 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.ApplicationServer.External.Api.GetOrganizationUserResponse GetUser(global::Chirpstack.ApplicationServer.External.Api.GetOrganizationUserRequest 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 data for a particular organization 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.ApplicationServer.External.Api.GetOrganizationUserResponse GetUser(global::Chirpstack.ApplicationServer.External.Api.GetOrganizationUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetUser, null, options, request); + } + /// + /// Get data for a particular organization 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 GetUserAsync(global::Chirpstack.ApplicationServer.External.Api.GetOrganizationUserRequest 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 data for a particular organization 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 GetUserAsync(global::Chirpstack.ApplicationServer.External.Api.GetOrganizationUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetUser, null, options, request); + } + /// + /// Add a new user to an organization. The user is matched based on email, not user 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 AddUser(global::Chirpstack.ApplicationServer.External.Api.AddOrganizationUserRequest 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 a new user to an organization. The user is matched based on email, not user 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 AddUser(global::Chirpstack.ApplicationServer.External.Api.AddOrganizationUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_AddUser, null, options, request); + } + /// + /// Add a new user to an organization. The user is matched based on email, not user 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 AddUserAsync(global::Chirpstack.ApplicationServer.External.Api.AddOrganizationUserRequest 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 a new user to an organization. The user is matched based on email, not user 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 AddUserAsync(global::Chirpstack.ApplicationServer.External.Api.AddOrganizationUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_AddUser, null, options, request); + } + /// + /// Update a user in an organization. + /// + /// 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.ApplicationServer.External.Api.UpdateOrganizationUserRequest 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 a user in an organization. + /// + /// 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.ApplicationServer.External.Api.UpdateOrganizationUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateUser, null, options, request); + } + /// + /// Update a user in an organization. + /// + /// 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.ApplicationServer.External.Api.UpdateOrganizationUserRequest 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 a user in an organization. + /// + /// 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.ApplicationServer.External.Api.UpdateOrganizationUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateUser, null, options, request); + } + /// + /// Delete a user from an organization. + /// + /// 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.ApplicationServer.External.Api.DeleteOrganizationUserRequest 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 a user from an organization. + /// + /// 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.ApplicationServer.External.Api.DeleteOrganizationUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteUser, null, options, request); + } + /// + /// Delete a user from an organization. + /// + /// 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.ApplicationServer.External.Api.DeleteOrganizationUserRequest 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 a user from an organization. + /// + /// 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.ApplicationServer.External.Api.DeleteOrganizationUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteUser, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override OrganizationServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new OrganizationServiceClient(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(OrganizationServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_List, serviceImpl.List) + .AddMethod(__Method_Get, serviceImpl.Get) + .AddMethod(__Method_Create, serviceImpl.Create) + .AddMethod(__Method_Update, serviceImpl.Update) + .AddMethod(__Method_Delete, serviceImpl.Delete) + .AddMethod(__Method_ListUsers, serviceImpl.ListUsers) + .AddMethod(__Method_GetUser, serviceImpl.GetUser) + .AddMethod(__Method_AddUser, serviceImpl.AddUser) + .AddMethod(__Method_UpdateUser, serviceImpl.UpdateUser) + .AddMethod(__Method_DeleteUser, serviceImpl.DeleteUser).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, OrganizationServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); + serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); + serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); + 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_ListUsers, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListUsers)); + serviceBinder.AddMethod(__Method_GetUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetUser)); + serviceBinder.AddMethod(__Method_AddUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddUser)); + serviceBinder.AddMethod(__Method_UpdateUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateUser)); + serviceBinder.AddMethod(__Method_DeleteUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteUser)); + } + + } +} +#endregion diff --git a/csharp/protobuf/as/external/api/Profiles.cs b/csharp/protobuf/as/external/api/Profiles.cs new file mode 100644 index 00000000..2a19c4ff --- /dev/null +++ b/csharp/protobuf/as/external/api/Profiles.cs @@ -0,0 +1,2609 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/profiles.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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/profiles.proto + public static partial class ProfilesReflection { + + #region Descriptor + /// File descriptor for as/external/api/profiles.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ProfilesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5hcy9leHRlcm5hbC9hcGkvcHJvZmlsZXMucHJvdG8SA2FwaRoeZ29vZ2xl", + "L3Byb3RvYnVmL2R1cmF0aW9uLnByb3RvIp4FCg5TZXJ2aWNlUHJvZmlsZRIK", + "CgJpZBgBIAEoCRIMCgRuYW1lGBUgASgJEicKD29yZ2FuaXphdGlvbl9pZBgW", + "IAEoA1IOb3JnYW5pemF0aW9uSUQSKgoRbmV0d29ya19zZXJ2ZXJfaWQYFyAB", + "KANSD25ldHdvcmtTZXJ2ZXJJRBIPCgd1bF9yYXRlGAIgASgNEhYKDnVsX2J1", + "Y2tldF9zaXplGAMgASgNEicKDnVsX3JhdGVfcG9saWN5GAQgASgOMg8uYXBp", + "LlJhdGVQb2xpY3kSDwoHZGxfcmF0ZRgFIAEoDRIWCg5kbF9idWNrZXRfc2l6", + "ZRgGIAEoDRInCg5kbF9yYXRlX3BvbGljeRgHIAEoDjIPLmFwaS5SYXRlUG9s", + "aWN5EiYKD2FkZF9nd19tZXRhZGF0YRgIIAEoCFINYWRkR1dNZXRhRGF0YRIb", + "ChNkZXZfc3RhdHVzX3JlcV9mcmVxGAkgASgNEiEKGXJlcG9ydF9kZXZfc3Rh", + "dHVzX2JhdHRlcnkYCiABKAgSIAoYcmVwb3J0X2Rldl9zdGF0dXNfbWFyZ2lu", + "GAsgASgIEg4KBmRyX21pbhgMIAEoDRIOCgZkcl9tYXgYDSABKA0SFAoMY2hh", + "bm5lbF9tYXNrGA4gASgMEhIKCnByX2FsbG93ZWQYDyABKAgSEgoKaHJfYWxs", + "b3dlZBgQIAEoCBISCgpyYV9hbGxvd2VkGBEgASgIEhMKC253a19nZW9fbG9j", + "GBIgASgIEh0KCnRhcmdldF9wZXIYEyABKA1SCXRhcmdldFBFUhIoChBtaW5f", + "Z3dfZGl2ZXJzaXR5GBQgASgNUg5taW5HV0RpdmVyc2l0eRIfCgtnd3NfcHJp", + "dmF0ZRgYIAEoCFIKZ3dzUHJpdmF0ZSLgBwoNRGV2aWNlUHJvZmlsZRIKCgJp", + "ZBgBIAEoCRIMCgRuYW1lGBUgASgJEicKD29yZ2FuaXphdGlvbl9pZBgWIAEo", + "A1IOb3JnYW5pemF0aW9uSUQSKgoRbmV0d29ya19zZXJ2ZXJfaWQYFyABKANS", + "D25ldHdvcmtTZXJ2ZXJJRBIYChBzdXBwb3J0c19jbGFzc19iGAIgASgIEhcK", + "D2NsYXNzX2JfdGltZW91dBgDIAEoDRIYChBwaW5nX3Nsb3RfcGVyaW9kGAQg", + "ASgNEiAKDHBpbmdfc2xvdF9kchgFIAEoDVIKcGluZ1Nsb3REUhIWCg5waW5n", + "X3Nsb3RfZnJlcRgGIAEoDRIYChBzdXBwb3J0c19jbGFzc19jGAcgASgIEhcK", + "D2NsYXNzX2NfdGltZW91dBgIIAEoDRITCgttYWNfdmVyc2lvbhgJIAEoCRIb", + "ChNyZWdfcGFyYW1zX3JldmlzaW9uGAogASgJEhIKCnJ4X2RlbGF5XzEYCyAB", + "KA0SIwoOcnhfZHJfb2Zmc2V0XzEYDCABKA1SC3J4RFJPZmZzZXQxEiIKDXJ4", + "X2RhdGFyYXRlXzIYDSABKA1SC3J4RGF0YVJhdGUyEhEKCXJ4X2ZyZXFfMhgO", + "IAEoDRIcChRmYWN0b3J5X3ByZXNldF9mcmVxcxgPIAMoDRIZCghtYXhfZWly", + "cBgQIAEoDVIHbWF4RUlSUBIWCg5tYXhfZHV0eV9jeWNsZRgRIAEoDRIVCg1z", + "dXBwb3J0c19qb2luGBIgASgIEhEKCXJmX3JlZ2lvbhgTIAEoCRIvChRzdXBw", + "b3J0c18zMmJpdF9mX2NudBgUIAEoCFIRc3VwcG9ydHMzMkJpdEZDbnQSFQoN", + "cGF5bG9hZF9jb2RlYxgYIAEoCRIeChZwYXlsb2FkX2VuY29kZXJfc2NyaXB0", + "GBkgASgJEh4KFnBheWxvYWRfZGVjb2Rlcl9zY3JpcHQYGiABKAkSKgoRZ2Vv", + "bG9jX2J1ZmZlcl90dGwYGyABKA1SD2dlb2xvY0J1ZmZlclRUTBIeChZnZW9s", + "b2NfbWluX2J1ZmZlcl9zaXplGBwgASgNEioKBHRhZ3MYHSADKAsyHC5hcGku", + "RGV2aWNlUHJvZmlsZS5UYWdzRW50cnkSMgoPdXBsaW5rX2ludGVydmFsGB4g", + "ASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEigKEGFkcl9hbGdvcml0", + "aG1faWQYHyABKAlSDmFkckFsZ29yaXRobUlEGisKCVRhZ3NFbnRyeRILCgNr", + "ZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBKiAKClJhdGVQb2xpY3kSCAoE", + "RFJPUBAAEggKBE1BUksQAUKZAQohaW8uY2hpcnBzdGFjay5hcGkuYXMuZXh0", + "ZXJuYWwuYXBpQg1Qcm9maWxlc1Byb3RvUAFaN2dpdGh1Yi5jb20vYnJvY2Fh", + "ci9jaGlycHN0YWNrLWFwaS9nby92My9hcy9leHRlcm5hbC9hcGmqAilDaGly", + "cHN0YWNrLkFwcGxpY2F0aW9uU2VydmVyLkV4dGVybmFsLkFwaWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.ApplicationServer.External.Api.RatePolicy), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ServiceProfile), global::Chirpstack.ApplicationServer.External.Api.ServiceProfile.Parser, new[]{ "Id", "Name", "OrganizationId", "NetworkServerId", "UlRate", "UlBucketSize", "UlRatePolicy", "DlRate", "DlBucketSize", "DlRatePolicy", "AddGwMetadata", "DevStatusReqFreq", "ReportDevStatusBattery", "ReportDevStatusMargin", "DrMin", "DrMax", "ChannelMask", "PrAllowed", "HrAllowed", "RaAllowed", "NwkGeoLoc", "TargetPer", "MinGwDiversity", "GwsPrivate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeviceProfile), global::Chirpstack.ApplicationServer.External.Api.DeviceProfile.Parser, new[]{ "Id", "Name", "OrganizationId", "NetworkServerId", "SupportsClassB", "ClassBTimeout", "PingSlotPeriod", "PingSlotDr", "PingSlotFreq", "SupportsClassC", "ClassCTimeout", "MacVersion", "RegParamsRevision", "RxDelay1", "RxDrOffset1", "RxDatarate2", "RxFreq2", "FactoryPresetFreqs", "MaxEirp", "MaxDutyCycle", "SupportsJoin", "RfRegion", "Supports32BitFCnt", "PayloadCodec", "PayloadEncoderScript", "PayloadDecoderScript", "GeolocBufferTtl", "GeolocMinBufferSize", "Tags", "UplinkInterval", "AdrAlgorithmId" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Enums + public enum RatePolicy { + /// + /// Drop + /// + [pbr::OriginalName("DROP")] Drop = 0, + /// + /// Mark + /// + [pbr::OriginalName("MARK")] Mark = 1, + } + + #endregion + + #region Messages + public sealed partial class ServiceProfile : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceProfile()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.ProfilesReflection.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 ServiceProfile() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceProfile(ServiceProfile other) : this() { + id_ = other.id_; + name_ = other.name_; + organizationId_ = other.organizationId_; + networkServerId_ = other.networkServerId_; + ulRate_ = other.ulRate_; + ulBucketSize_ = other.ulBucketSize_; + ulRatePolicy_ = other.ulRatePolicy_; + dlRate_ = other.dlRate_; + dlBucketSize_ = other.dlBucketSize_; + dlRatePolicy_ = other.dlRatePolicy_; + addGwMetadata_ = other.addGwMetadata_; + devStatusReqFreq_ = other.devStatusReqFreq_; + reportDevStatusBattery_ = other.reportDevStatusBattery_; + reportDevStatusMargin_ = other.reportDevStatusMargin_; + drMin_ = other.drMin_; + drMax_ = other.drMax_; + channelMask_ = other.channelMask_; + prAllowed_ = other.prAllowed_; + hrAllowed_ = other.hrAllowed_; + raAllowed_ = other.raAllowed_; + nwkGeoLoc_ = other.nwkGeoLoc_; + targetPer_ = other.targetPer_; + minGwDiversity_ = other.minGwDiversity_; + gwsPrivate_ = other.gwsPrivate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceProfile Clone() { + return new ServiceProfile(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Service-profile ID (UUID string). + /// This will be automatically set 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 = 21; + private string name_ = ""; + /// + /// Service-profile 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 "organization_id" field. + public const int OrganizationIdFieldNumber = 22; + private long organizationId_; + /// + /// Organization ID to which the service-profile is assigned. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "network_server_id" field. + public const int NetworkServerIdFieldNumber = 23; + private long networkServerId_; + /// + /// Network-server ID on which the service-profile is provisioned. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkServerId { + get { return networkServerId_; } + set { + networkServerId_ = value; + } + } + + /// Field number for the "ul_rate" field. + public const int UlRateFieldNumber = 2; + private uint ulRate_; + /// + /// Token bucket filling rate, including ACKs (packet/h). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UlRate { + get { return ulRate_; } + set { + ulRate_ = value; + } + } + + /// Field number for the "ul_bucket_size" field. + public const int UlBucketSizeFieldNumber = 3; + private uint ulBucketSize_; + /// + /// Token bucket burst size. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UlBucketSize { + get { return ulBucketSize_; } + set { + ulBucketSize_ = value; + } + } + + /// Field number for the "ul_rate_policy" field. + public const int UlRatePolicyFieldNumber = 4; + private global::Chirpstack.ApplicationServer.External.Api.RatePolicy ulRatePolicy_ = global::Chirpstack.ApplicationServer.External.Api.RatePolicy.Drop; + /// + /// Drop or mark when exceeding ULRate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.RatePolicy UlRatePolicy { + get { return ulRatePolicy_; } + set { + ulRatePolicy_ = value; + } + } + + /// Field number for the "dl_rate" field. + public const int DlRateFieldNumber = 5; + private uint dlRate_; + /// + /// Token bucket filling rate, including ACKs (packet/h). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DlRate { + get { return dlRate_; } + set { + dlRate_ = value; + } + } + + /// Field number for the "dl_bucket_size" field. + public const int DlBucketSizeFieldNumber = 6; + private uint dlBucketSize_; + /// + /// Token bucket burst size. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DlBucketSize { + get { return dlBucketSize_; } + set { + dlBucketSize_ = value; + } + } + + /// Field number for the "dl_rate_policy" field. + public const int DlRatePolicyFieldNumber = 7; + private global::Chirpstack.ApplicationServer.External.Api.RatePolicy dlRatePolicy_ = global::Chirpstack.ApplicationServer.External.Api.RatePolicy.Drop; + /// + /// Drop or mark when exceeding DLRate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.RatePolicy DlRatePolicy { + get { return dlRatePolicy_; } + set { + dlRatePolicy_ = value; + } + } + + /// Field number for the "add_gw_metadata" field. + public const int AddGwMetadataFieldNumber = 8; + private bool addGwMetadata_; + /// + /// GW metadata (RSSI, SNR, GW geoloc., etc.) are added to the packet sent to AS. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AddGwMetadata { + get { return addGwMetadata_; } + set { + addGwMetadata_ = value; + } + } + + /// Field number for the "dev_status_req_freq" field. + public const int DevStatusReqFreqFieldNumber = 9; + private uint devStatusReqFreq_; + /// + /// Frequency to initiate an End-Device status request (request/day). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DevStatusReqFreq { + get { return devStatusReqFreq_; } + set { + devStatusReqFreq_ = value; + } + } + + /// Field number for the "report_dev_status_battery" field. + public const int ReportDevStatusBatteryFieldNumber = 10; + private bool reportDevStatusBattery_; + /// + /// Report End-Device battery level to AS. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ReportDevStatusBattery { + get { return reportDevStatusBattery_; } + set { + reportDevStatusBattery_ = value; + } + } + + /// Field number for the "report_dev_status_margin" field. + public const int ReportDevStatusMarginFieldNumber = 11; + private bool reportDevStatusMargin_; + /// + /// Report End-Device margin to AS. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ReportDevStatusMargin { + get { return reportDevStatusMargin_; } + set { + reportDevStatusMargin_ = value; + } + } + + /// Field number for the "dr_min" field. + public const int DrMinFieldNumber = 12; + private uint drMin_; + /// + /// Minimum allowed data rate. Used for ADR. + /// + [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 = 13; + private uint drMax_; + /// + /// Maximum allowed data rate. Used for ADR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DrMax { + get { return drMax_; } + set { + drMax_ = value; + } + } + + /// Field number for the "channel_mask" field. + public const int ChannelMaskFieldNumber = 14; + private pb::ByteString channelMask_ = pb::ByteString.Empty; + /// + /// Channel mask. sNS does not have to obey (i.e., informative). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString ChannelMask { + get { return channelMask_; } + set { + channelMask_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "pr_allowed" field. + public const int PrAllowedFieldNumber = 15; + private bool prAllowed_; + /// + /// Passive Roaming allowed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PrAllowed { + get { return prAllowed_; } + set { + prAllowed_ = value; + } + } + + /// Field number for the "hr_allowed" field. + public const int HrAllowedFieldNumber = 16; + private bool hrAllowed_; + /// + /// Handover Roaming allowed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HrAllowed { + get { return hrAllowed_; } + set { + hrAllowed_ = value; + } + } + + /// Field number for the "ra_allowed" field. + public const int RaAllowedFieldNumber = 17; + private bool raAllowed_; + /// + /// Roaming Activation allowed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool RaAllowed { + get { return raAllowed_; } + set { + raAllowed_ = value; + } + } + + /// Field number for the "nwk_geo_loc" field. + public const int NwkGeoLocFieldNumber = 18; + private bool nwkGeoLoc_; + /// + /// Enable network geolocation service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool NwkGeoLoc { + get { return nwkGeoLoc_; } + set { + nwkGeoLoc_ = value; + } + } + + /// Field number for the "target_per" field. + public const int TargetPerFieldNumber = 19; + private uint targetPer_; + /// + /// Target Packet Error Rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TargetPer { + get { return targetPer_; } + set { + targetPer_ = value; + } + } + + /// Field number for the "min_gw_diversity" field. + public const int MinGwDiversityFieldNumber = 20; + private uint minGwDiversity_; + /// + /// Minimum number of receiving GWs (informative). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MinGwDiversity { + get { return minGwDiversity_; } + set { + minGwDiversity_ = value; + } + } + + /// Field number for the "gws_private" field. + public const int GwsPrivateFieldNumber = 24; + private bool gwsPrivate_; + /// + /// Gateways under this service-profile are private. + /// This means that these gateways can only be used by devices under the + /// same service-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool GwsPrivate { + get { return gwsPrivate_; } + set { + gwsPrivate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServiceProfile); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceProfile 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 (OrganizationId != other.OrganizationId) return false; + if (NetworkServerId != other.NetworkServerId) return false; + if (UlRate != other.UlRate) return false; + if (UlBucketSize != other.UlBucketSize) return false; + if (UlRatePolicy != other.UlRatePolicy) return false; + if (DlRate != other.DlRate) return false; + if (DlBucketSize != other.DlBucketSize) return false; + if (DlRatePolicy != other.DlRatePolicy) return false; + if (AddGwMetadata != other.AddGwMetadata) return false; + if (DevStatusReqFreq != other.DevStatusReqFreq) return false; + if (ReportDevStatusBattery != other.ReportDevStatusBattery) return false; + if (ReportDevStatusMargin != other.ReportDevStatusMargin) return false; + if (DrMin != other.DrMin) return false; + if (DrMax != other.DrMax) return false; + if (ChannelMask != other.ChannelMask) return false; + if (PrAllowed != other.PrAllowed) return false; + if (HrAllowed != other.HrAllowed) return false; + if (RaAllowed != other.RaAllowed) return false; + if (NwkGeoLoc != other.NwkGeoLoc) return false; + if (TargetPer != other.TargetPer) return false; + if (MinGwDiversity != other.MinGwDiversity) return false; + if (GwsPrivate != other.GwsPrivate) return false; + 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 (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (NetworkServerId != 0L) hash ^= NetworkServerId.GetHashCode(); + if (UlRate != 0) hash ^= UlRate.GetHashCode(); + if (UlBucketSize != 0) hash ^= UlBucketSize.GetHashCode(); + if (UlRatePolicy != global::Chirpstack.ApplicationServer.External.Api.RatePolicy.Drop) hash ^= UlRatePolicy.GetHashCode(); + if (DlRate != 0) hash ^= DlRate.GetHashCode(); + if (DlBucketSize != 0) hash ^= DlBucketSize.GetHashCode(); + if (DlRatePolicy != global::Chirpstack.ApplicationServer.External.Api.RatePolicy.Drop) hash ^= DlRatePolicy.GetHashCode(); + if (AddGwMetadata != false) hash ^= AddGwMetadata.GetHashCode(); + if (DevStatusReqFreq != 0) hash ^= DevStatusReqFreq.GetHashCode(); + if (ReportDevStatusBattery != false) hash ^= ReportDevStatusBattery.GetHashCode(); + if (ReportDevStatusMargin != false) hash ^= ReportDevStatusMargin.GetHashCode(); + if (DrMin != 0) hash ^= DrMin.GetHashCode(); + if (DrMax != 0) hash ^= DrMax.GetHashCode(); + if (ChannelMask.Length != 0) hash ^= ChannelMask.GetHashCode(); + if (PrAllowed != false) hash ^= PrAllowed.GetHashCode(); + if (HrAllowed != false) hash ^= HrAllowed.GetHashCode(); + if (RaAllowed != false) hash ^= RaAllowed.GetHashCode(); + if (NwkGeoLoc != false) hash ^= NwkGeoLoc.GetHashCode(); + if (TargetPer != 0) hash ^= TargetPer.GetHashCode(); + if (MinGwDiversity != 0) hash ^= MinGwDiversity.GetHashCode(); + if (GwsPrivate != false) hash ^= GwsPrivate.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (UlRate != 0) { + output.WriteRawTag(16); + output.WriteUInt32(UlRate); + } + if (UlBucketSize != 0) { + output.WriteRawTag(24); + output.WriteUInt32(UlBucketSize); + } + if (UlRatePolicy != global::Chirpstack.ApplicationServer.External.Api.RatePolicy.Drop) { + output.WriteRawTag(32); + output.WriteEnum((int) UlRatePolicy); + } + if (DlRate != 0) { + output.WriteRawTag(40); + output.WriteUInt32(DlRate); + } + if (DlBucketSize != 0) { + output.WriteRawTag(48); + output.WriteUInt32(DlBucketSize); + } + if (DlRatePolicy != global::Chirpstack.ApplicationServer.External.Api.RatePolicy.Drop) { + output.WriteRawTag(56); + output.WriteEnum((int) DlRatePolicy); + } + if (AddGwMetadata != false) { + output.WriteRawTag(64); + output.WriteBool(AddGwMetadata); + } + if (DevStatusReqFreq != 0) { + output.WriteRawTag(72); + output.WriteUInt32(DevStatusReqFreq); + } + if (ReportDevStatusBattery != false) { + output.WriteRawTag(80); + output.WriteBool(ReportDevStatusBattery); + } + if (ReportDevStatusMargin != false) { + output.WriteRawTag(88); + output.WriteBool(ReportDevStatusMargin); + } + if (DrMin != 0) { + output.WriteRawTag(96); + output.WriteUInt32(DrMin); + } + if (DrMax != 0) { + output.WriteRawTag(104); + output.WriteUInt32(DrMax); + } + if (ChannelMask.Length != 0) { + output.WriteRawTag(114); + output.WriteBytes(ChannelMask); + } + if (PrAllowed != false) { + output.WriteRawTag(120); + output.WriteBool(PrAllowed); + } + if (HrAllowed != false) { + output.WriteRawTag(128, 1); + output.WriteBool(HrAllowed); + } + if (RaAllowed != false) { + output.WriteRawTag(136, 1); + output.WriteBool(RaAllowed); + } + if (NwkGeoLoc != false) { + output.WriteRawTag(144, 1); + output.WriteBool(NwkGeoLoc); + } + if (TargetPer != 0) { + output.WriteRawTag(152, 1); + output.WriteUInt32(TargetPer); + } + if (MinGwDiversity != 0) { + output.WriteRawTag(160, 1); + output.WriteUInt32(MinGwDiversity); + } + if (Name.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Name); + } + if (OrganizationId != 0L) { + output.WriteRawTag(176, 1); + output.WriteInt64(OrganizationId); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(184, 1); + output.WriteInt64(NetworkServerId); + } + if (GwsPrivate != false) { + output.WriteRawTag(192, 1); + output.WriteBool(GwsPrivate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (UlRate != 0) { + output.WriteRawTag(16); + output.WriteUInt32(UlRate); + } + if (UlBucketSize != 0) { + output.WriteRawTag(24); + output.WriteUInt32(UlBucketSize); + } + if (UlRatePolicy != global::Chirpstack.ApplicationServer.External.Api.RatePolicy.Drop) { + output.WriteRawTag(32); + output.WriteEnum((int) UlRatePolicy); + } + if (DlRate != 0) { + output.WriteRawTag(40); + output.WriteUInt32(DlRate); + } + if (DlBucketSize != 0) { + output.WriteRawTag(48); + output.WriteUInt32(DlBucketSize); + } + if (DlRatePolicy != global::Chirpstack.ApplicationServer.External.Api.RatePolicy.Drop) { + output.WriteRawTag(56); + output.WriteEnum((int) DlRatePolicy); + } + if (AddGwMetadata != false) { + output.WriteRawTag(64); + output.WriteBool(AddGwMetadata); + } + if (DevStatusReqFreq != 0) { + output.WriteRawTag(72); + output.WriteUInt32(DevStatusReqFreq); + } + if (ReportDevStatusBattery != false) { + output.WriteRawTag(80); + output.WriteBool(ReportDevStatusBattery); + } + if (ReportDevStatusMargin != false) { + output.WriteRawTag(88); + output.WriteBool(ReportDevStatusMargin); + } + if (DrMin != 0) { + output.WriteRawTag(96); + output.WriteUInt32(DrMin); + } + if (DrMax != 0) { + output.WriteRawTag(104); + output.WriteUInt32(DrMax); + } + if (ChannelMask.Length != 0) { + output.WriteRawTag(114); + output.WriteBytes(ChannelMask); + } + if (PrAllowed != false) { + output.WriteRawTag(120); + output.WriteBool(PrAllowed); + } + if (HrAllowed != false) { + output.WriteRawTag(128, 1); + output.WriteBool(HrAllowed); + } + if (RaAllowed != false) { + output.WriteRawTag(136, 1); + output.WriteBool(RaAllowed); + } + if (NwkGeoLoc != false) { + output.WriteRawTag(144, 1); + output.WriteBool(NwkGeoLoc); + } + if (TargetPer != 0) { + output.WriteRawTag(152, 1); + output.WriteUInt32(TargetPer); + } + if (MinGwDiversity != 0) { + output.WriteRawTag(160, 1); + output.WriteUInt32(MinGwDiversity); + } + if (Name.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Name); + } + if (OrganizationId != 0L) { + output.WriteRawTag(176, 1); + output.WriteInt64(OrganizationId); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(184, 1); + output.WriteInt64(NetworkServerId); + } + if (GwsPrivate != false) { + output.WriteRawTag(192, 1); + output.WriteBool(GwsPrivate); + } + if (_unknownFields != 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 += 2 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (OrganizationId != 0L) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (NetworkServerId != 0L) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(NetworkServerId); + } + if (UlRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UlRate); + } + if (UlBucketSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UlBucketSize); + } + if (UlRatePolicy != global::Chirpstack.ApplicationServer.External.Api.RatePolicy.Drop) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) UlRatePolicy); + } + if (DlRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DlRate); + } + if (DlBucketSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DlBucketSize); + } + if (DlRatePolicy != global::Chirpstack.ApplicationServer.External.Api.RatePolicy.Drop) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DlRatePolicy); + } + if (AddGwMetadata != false) { + size += 1 + 1; + } + if (DevStatusReqFreq != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DevStatusReqFreq); + } + if (ReportDevStatusBattery != false) { + size += 1 + 1; + } + if (ReportDevStatusMargin != false) { + size += 1 + 1; + } + if (DrMin != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DrMin); + } + if (DrMax != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DrMax); + } + if (ChannelMask.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ChannelMask); + } + if (PrAllowed != false) { + size += 1 + 1; + } + if (HrAllowed != false) { + size += 2 + 1; + } + if (RaAllowed != false) { + size += 2 + 1; + } + if (NwkGeoLoc != false) { + size += 2 + 1; + } + if (TargetPer != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(TargetPer); + } + if (MinGwDiversity != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(MinGwDiversity); + } + if (GwsPrivate != 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(ServiceProfile other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.NetworkServerId != 0L) { + NetworkServerId = other.NetworkServerId; + } + if (other.UlRate != 0) { + UlRate = other.UlRate; + } + if (other.UlBucketSize != 0) { + UlBucketSize = other.UlBucketSize; + } + if (other.UlRatePolicy != global::Chirpstack.ApplicationServer.External.Api.RatePolicy.Drop) { + UlRatePolicy = other.UlRatePolicy; + } + if (other.DlRate != 0) { + DlRate = other.DlRate; + } + if (other.DlBucketSize != 0) { + DlBucketSize = other.DlBucketSize; + } + if (other.DlRatePolicy != global::Chirpstack.ApplicationServer.External.Api.RatePolicy.Drop) { + DlRatePolicy = other.DlRatePolicy; + } + if (other.AddGwMetadata != false) { + AddGwMetadata = other.AddGwMetadata; + } + if (other.DevStatusReqFreq != 0) { + DevStatusReqFreq = other.DevStatusReqFreq; + } + if (other.ReportDevStatusBattery != false) { + ReportDevStatusBattery = other.ReportDevStatusBattery; + } + if (other.ReportDevStatusMargin != false) { + ReportDevStatusMargin = other.ReportDevStatusMargin; + } + if (other.DrMin != 0) { + DrMin = other.DrMin; + } + if (other.DrMax != 0) { + DrMax = other.DrMax; + } + if (other.ChannelMask.Length != 0) { + ChannelMask = other.ChannelMask; + } + if (other.PrAllowed != false) { + PrAllowed = other.PrAllowed; + } + if (other.HrAllowed != false) { + HrAllowed = other.HrAllowed; + } + if (other.RaAllowed != false) { + RaAllowed = other.RaAllowed; + } + if (other.NwkGeoLoc != false) { + NwkGeoLoc = other.NwkGeoLoc; + } + if (other.TargetPer != 0) { + TargetPer = other.TargetPer; + } + if (other.MinGwDiversity != 0) { + MinGwDiversity = other.MinGwDiversity; + } + if (other.GwsPrivate != false) { + GwsPrivate = other.GwsPrivate; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + UlRate = input.ReadUInt32(); + break; + } + case 24: { + UlBucketSize = input.ReadUInt32(); + break; + } + case 32: { + UlRatePolicy = (global::Chirpstack.ApplicationServer.External.Api.RatePolicy) input.ReadEnum(); + break; + } + case 40: { + DlRate = input.ReadUInt32(); + break; + } + case 48: { + DlBucketSize = input.ReadUInt32(); + break; + } + case 56: { + DlRatePolicy = (global::Chirpstack.ApplicationServer.External.Api.RatePolicy) input.ReadEnum(); + break; + } + case 64: { + AddGwMetadata = input.ReadBool(); + break; + } + case 72: { + DevStatusReqFreq = input.ReadUInt32(); + break; + } + case 80: { + ReportDevStatusBattery = input.ReadBool(); + break; + } + case 88: { + ReportDevStatusMargin = input.ReadBool(); + break; + } + case 96: { + DrMin = input.ReadUInt32(); + break; + } + case 104: { + DrMax = input.ReadUInt32(); + break; + } + case 114: { + ChannelMask = input.ReadBytes(); + break; + } + case 120: { + PrAllowed = input.ReadBool(); + break; + } + case 128: { + HrAllowed = input.ReadBool(); + break; + } + case 136: { + RaAllowed = input.ReadBool(); + break; + } + case 144: { + NwkGeoLoc = input.ReadBool(); + break; + } + case 152: { + TargetPer = input.ReadUInt32(); + break; + } + case 160: { + MinGwDiversity = input.ReadUInt32(); + break; + } + case 170: { + Name = input.ReadString(); + break; + } + case 176: { + OrganizationId = input.ReadInt64(); + break; + } + case 184: { + NetworkServerId = input.ReadInt64(); + break; + } + case 192: { + GwsPrivate = 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 16: { + UlRate = input.ReadUInt32(); + break; + } + case 24: { + UlBucketSize = input.ReadUInt32(); + break; + } + case 32: { + UlRatePolicy = (global::Chirpstack.ApplicationServer.External.Api.RatePolicy) input.ReadEnum(); + break; + } + case 40: { + DlRate = input.ReadUInt32(); + break; + } + case 48: { + DlBucketSize = input.ReadUInt32(); + break; + } + case 56: { + DlRatePolicy = (global::Chirpstack.ApplicationServer.External.Api.RatePolicy) input.ReadEnum(); + break; + } + case 64: { + AddGwMetadata = input.ReadBool(); + break; + } + case 72: { + DevStatusReqFreq = input.ReadUInt32(); + break; + } + case 80: { + ReportDevStatusBattery = input.ReadBool(); + break; + } + case 88: { + ReportDevStatusMargin = input.ReadBool(); + break; + } + case 96: { + DrMin = input.ReadUInt32(); + break; + } + case 104: { + DrMax = input.ReadUInt32(); + break; + } + case 114: { + ChannelMask = input.ReadBytes(); + break; + } + case 120: { + PrAllowed = input.ReadBool(); + break; + } + case 128: { + HrAllowed = input.ReadBool(); + break; + } + case 136: { + RaAllowed = input.ReadBool(); + break; + } + case 144: { + NwkGeoLoc = input.ReadBool(); + break; + } + case 152: { + TargetPer = input.ReadUInt32(); + break; + } + case 160: { + MinGwDiversity = input.ReadUInt32(); + break; + } + case 170: { + Name = input.ReadString(); + break; + } + case 176: { + OrganizationId = input.ReadInt64(); + break; + } + case 184: { + NetworkServerId = input.ReadInt64(); + break; + } + case 192: { + GwsPrivate = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + 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.ApplicationServer.External.Api.ProfilesReflection.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 DeviceProfile() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceProfile(DeviceProfile other) : this() { + id_ = other.id_; + name_ = other.name_; + organizationId_ = other.organizationId_; + networkServerId_ = other.networkServerId_; + supportsClassB_ = other.supportsClassB_; + classBTimeout_ = other.classBTimeout_; + pingSlotPeriod_ = other.pingSlotPeriod_; + pingSlotDr_ = other.pingSlotDr_; + pingSlotFreq_ = other.pingSlotFreq_; + supportsClassC_ = other.supportsClassC_; + classCTimeout_ = other.classCTimeout_; + macVersion_ = other.macVersion_; + regParamsRevision_ = other.regParamsRevision_; + rxDelay1_ = other.rxDelay1_; + rxDrOffset1_ = other.rxDrOffset1_; + rxDatarate2_ = other.rxDatarate2_; + rxFreq2_ = other.rxFreq2_; + factoryPresetFreqs_ = other.factoryPresetFreqs_.Clone(); + maxEirp_ = other.maxEirp_; + maxDutyCycle_ = other.maxDutyCycle_; + supportsJoin_ = other.supportsJoin_; + rfRegion_ = other.rfRegion_; + supports32BitFCnt_ = other.supports32BitFCnt_; + payloadCodec_ = other.payloadCodec_; + payloadEncoderScript_ = other.payloadEncoderScript_; + payloadDecoderScript_ = other.payloadDecoderScript_; + geolocBufferTtl_ = other.geolocBufferTtl_; + geolocMinBufferSize_ = other.geolocMinBufferSize_; + tags_ = other.tags_.Clone(); + uplinkInterval_ = other.uplinkInterval_ != null ? other.uplinkInterval_.Clone() : null; + adrAlgorithmId_ = other.adrAlgorithmId_; + _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 string). + /// + [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 = 21; + private string name_ = ""; + /// + /// Device-profile 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 "organization_id" field. + public const int OrganizationIdFieldNumber = 22; + private long organizationId_; + /// + /// Organization ID to which the service-profile is assigned. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "network_server_id" field. + public const int NetworkServerIdFieldNumber = 23; + private long networkServerId_; + /// + /// Network-server ID on which the service-profile is provisioned. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkServerId { + get { return networkServerId_; } + set { + networkServerId_ = value; + } + } + + /// Field number for the "supports_class_b" field. + public const int SupportsClassBFieldNumber = 2; + private bool supportsClassB_; + /// + /// End-Device 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 "class_b_timeout" field. + public const int ClassBTimeoutFieldNumber = 3; + private uint classBTimeout_; + /// + /// Maximum delay for the End-Device to answer a MAC request or a confirmed DL frame (mandatory if class B mode supported). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBTimeout { + get { return classBTimeout_; } + set { + classBTimeout_ = value; + } + } + + /// Field number for the "ping_slot_period" field. + public const int PingSlotPeriodFieldNumber = 4; + private uint pingSlotPeriod_; + /// + /// Mandatory if class B mode supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PingSlotPeriod { + get { return pingSlotPeriod_; } + set { + pingSlotPeriod_ = value; + } + } + + /// Field number for the "ping_slot_dr" field. + public const int PingSlotDrFieldNumber = 5; + private uint pingSlotDr_; + /// + /// Mandatory if class B mode supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PingSlotDr { + get { return pingSlotDr_; } + set { + pingSlotDr_ = value; + } + } + + /// Field number for the "ping_slot_freq" field. + public const int PingSlotFreqFieldNumber = 6; + private uint pingSlotFreq_; + /// + /// Mandatory if class B mode supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PingSlotFreq { + get { return pingSlotFreq_; } + set { + pingSlotFreq_ = value; + } + } + + /// Field number for the "supports_class_c" field. + public const int SupportsClassCFieldNumber = 7; + private bool supportsClassC_; + /// + /// End-Device 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_c_timeout" field. + public const int ClassCTimeoutFieldNumber = 8; + private uint classCTimeout_; + /// + /// Maximum delay for the End-Device to answer a MAC request or a confirmed DL frame (mandatory if class C mode supported). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassCTimeout { + get { return classCTimeout_; } + set { + classCTimeout_ = value; + } + } + + /// Field number for the "mac_version" field. + public const int MacVersionFieldNumber = 9; + private string macVersion_ = ""; + /// + /// Version of the LoRaWAN supported by the End-Device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MacVersion { + get { return macVersion_; } + set { + macVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reg_params_revision" field. + public const int RegParamsRevisionFieldNumber = 10; + private string regParamsRevision_ = ""; + /// + /// Revision of the Regional Parameters document supported by the End-Device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RegParamsRevision { + get { return regParamsRevision_; } + set { + regParamsRevision_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "rx_delay_1" field. + public const int RxDelay1FieldNumber = 11; + private uint rxDelay1_; + /// + /// Class A RX1 delay (mandatory for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RxDelay1 { + get { return rxDelay1_; } + set { + rxDelay1_ = value; + } + } + + /// Field number for the "rx_dr_offset_1" field. + public const int RxDrOffset1FieldNumber = 12; + private uint rxDrOffset1_; + /// + /// RX1 data rate offset (mandatory for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RxDrOffset1 { + get { return rxDrOffset1_; } + set { + rxDrOffset1_ = value; + } + } + + /// Field number for the "rx_datarate_2" field. + public const int RxDatarate2FieldNumber = 13; + private uint rxDatarate2_; + /// + /// RX2 data rate (mandatory for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RxDatarate2 { + get { return rxDatarate2_; } + set { + rxDatarate2_ = value; + } + } + + /// Field number for the "rx_freq_2" field. + public const int RxFreq2FieldNumber = 14; + private uint rxFreq2_; + /// + /// RX2 channel frequency (mandatory for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RxFreq2 { + get { return rxFreq2_; } + set { + rxFreq2_ = value; + } + } + + /// Field number for the "factory_preset_freqs" field. + public const int FactoryPresetFreqsFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_factoryPresetFreqs_codec + = pb::FieldCodec.ForUInt32(122); + private readonly pbc::RepeatedField factoryPresetFreqs_ = new pbc::RepeatedField(); + /// + /// List of factory-preset frequencies (mandatory for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FactoryPresetFreqs { + get { return factoryPresetFreqs_; } + } + + /// Field number for the "max_eirp" field. + public const int MaxEirpFieldNumber = 16; + private uint maxEirp_; + /// + /// Maximum EIRP supported by the End-Device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxEirp { + get { return maxEirp_; } + set { + maxEirp_ = value; + } + } + + /// Field number for the "max_duty_cycle" field. + public const int MaxDutyCycleFieldNumber = 17; + private uint maxDutyCycle_; + /// + /// Maximum duty cycle supported by the End-Device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxDutyCycle { + get { return maxDutyCycle_; } + set { + maxDutyCycle_ = value; + } + } + + /// Field number for the "supports_join" field. + public const int SupportsJoinFieldNumber = 18; + private bool supportsJoin_; + /// + /// End-Device supports Join (OTAA) or not (ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsJoin { + get { return supportsJoin_; } + set { + supportsJoin_ = value; + } + } + + /// Field number for the "rf_region" field. + public const int RfRegionFieldNumber = 19; + private string rfRegion_ = ""; + /// + /// RF region name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RfRegion { + get { return rfRegion_; } + set { + rfRegion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "supports_32bit_f_cnt" field. + public const int Supports32BitFCntFieldNumber = 20; + private bool supports32BitFCnt_; + /// + /// End-Device uses 32bit FCnt (mandatory for LoRaWAN 1.0 End-Device). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Supports32BitFCnt { + get { return supports32BitFCnt_; } + set { + supports32BitFCnt_ = value; + } + } + + /// Field number for the "payload_codec" field. + public const int PayloadCodecFieldNumber = 24; + private string payloadCodec_ = ""; + /// + /// Payload codec. + /// Leave blank to disable the codec feature. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PayloadCodec { + get { return payloadCodec_; } + set { + payloadCodec_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "payload_encoder_script" field. + public const int PayloadEncoderScriptFieldNumber = 25; + private string payloadEncoderScript_ = ""; + /// + /// Payload encoder script. + /// Depending the codec, it is possible to provide a script which implements + /// the encoder function. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PayloadEncoderScript { + get { return payloadEncoderScript_; } + set { + payloadEncoderScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "payload_decoder_script" field. + public const int PayloadDecoderScriptFieldNumber = 26; + private string payloadDecoderScript_ = ""; + /// + /// Payload decoder script. + /// Depending the codec, it is possible to provide a script which implements + /// the decoder function. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PayloadDecoderScript { + get { return payloadDecoderScript_; } + set { + payloadDecoderScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "geoloc_buffer_ttl" field. + public const int GeolocBufferTtlFieldNumber = 27; + private uint geolocBufferTtl_; + /// + /// Geolocation buffer TTL (in seconds). + /// When > 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 GeolocBufferTtl { + get { return geolocBufferTtl_; } + set { + geolocBufferTtl_ = value; + } + } + + /// Field number for the "geoloc_min_buffer_size" field. + public const int GeolocMinBufferSizeFieldNumber = 28; + private uint geolocMinBufferSize_; + /// + /// Geolocation minimum buffer size. + /// When > 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 GeolocMinBufferSize { + get { return geolocMinBufferSize_; } + set { + geolocMinBufferSize_ = value; + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 29; + private static readonly pbc::MapField.Codec _map_tags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 234); + 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 "uplink_interval" field. + public const int UplinkIntervalFieldNumber = 30; + private global::Google.Protobuf.WellKnownTypes.Duration uplinkInterval_; + /// + /// Uplink interval. + /// 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 global::Google.Protobuf.WellKnownTypes.Duration UplinkInterval { + get { return uplinkInterval_; } + set { + uplinkInterval_ = value; + } + } + + /// Field number for the "adr_algorithm_id" field. + public const int AdrAlgorithmIdFieldNumber = 31; + private string adrAlgorithmId_ = ""; + /// + /// ADR algorithm ID. + /// In case this is left blank, or is configured to a non-existing ADR + /// algorithm (plugin), then it falls back to 'default'. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AdrAlgorithmId { + get { return adrAlgorithmId_; } + set { + adrAlgorithmId_ = 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 (Name != other.Name) return false; + if (OrganizationId != other.OrganizationId) return false; + if (NetworkServerId != other.NetworkServerId) return false; + if (SupportsClassB != other.SupportsClassB) return false; + if (ClassBTimeout != other.ClassBTimeout) return false; + if (PingSlotPeriod != other.PingSlotPeriod) return false; + if (PingSlotDr != other.PingSlotDr) return false; + if (PingSlotFreq != other.PingSlotFreq) return false; + if (SupportsClassC != other.SupportsClassC) return false; + if (ClassCTimeout != other.ClassCTimeout) return false; + if (MacVersion != other.MacVersion) return false; + if (RegParamsRevision != other.RegParamsRevision) return false; + if (RxDelay1 != other.RxDelay1) return false; + if (RxDrOffset1 != other.RxDrOffset1) return false; + if (RxDatarate2 != other.RxDatarate2) return false; + if (RxFreq2 != other.RxFreq2) return false; + if(!factoryPresetFreqs_.Equals(other.factoryPresetFreqs_)) return false; + if (MaxEirp != other.MaxEirp) return false; + if (MaxDutyCycle != other.MaxDutyCycle) return false; + if (SupportsJoin != other.SupportsJoin) return false; + if (RfRegion != other.RfRegion) return false; + if (Supports32BitFCnt != other.Supports32BitFCnt) return false; + if (PayloadCodec != other.PayloadCodec) return false; + if (PayloadEncoderScript != other.PayloadEncoderScript) return false; + if (PayloadDecoderScript != other.PayloadDecoderScript) return false; + if (GeolocBufferTtl != other.GeolocBufferTtl) return false; + if (GeolocMinBufferSize != other.GeolocMinBufferSize) return false; + if (!Tags.Equals(other.Tags)) return false; + if (!object.Equals(UplinkInterval, other.UplinkInterval)) return false; + if (AdrAlgorithmId != other.AdrAlgorithmId) return false; + 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 (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (NetworkServerId != 0L) hash ^= NetworkServerId.GetHashCode(); + if (SupportsClassB != false) hash ^= SupportsClassB.GetHashCode(); + if (ClassBTimeout != 0) hash ^= ClassBTimeout.GetHashCode(); + if (PingSlotPeriod != 0) hash ^= PingSlotPeriod.GetHashCode(); + if (PingSlotDr != 0) hash ^= PingSlotDr.GetHashCode(); + if (PingSlotFreq != 0) hash ^= PingSlotFreq.GetHashCode(); + if (SupportsClassC != false) hash ^= SupportsClassC.GetHashCode(); + if (ClassCTimeout != 0) hash ^= ClassCTimeout.GetHashCode(); + if (MacVersion.Length != 0) hash ^= MacVersion.GetHashCode(); + if (RegParamsRevision.Length != 0) hash ^= RegParamsRevision.GetHashCode(); + if (RxDelay1 != 0) hash ^= RxDelay1.GetHashCode(); + if (RxDrOffset1 != 0) hash ^= RxDrOffset1.GetHashCode(); + if (RxDatarate2 != 0) hash ^= RxDatarate2.GetHashCode(); + if (RxFreq2 != 0) hash ^= RxFreq2.GetHashCode(); + hash ^= factoryPresetFreqs_.GetHashCode(); + if (MaxEirp != 0) hash ^= MaxEirp.GetHashCode(); + if (MaxDutyCycle != 0) hash ^= MaxDutyCycle.GetHashCode(); + if (SupportsJoin != false) hash ^= SupportsJoin.GetHashCode(); + if (RfRegion.Length != 0) hash ^= RfRegion.GetHashCode(); + if (Supports32BitFCnt != false) hash ^= Supports32BitFCnt.GetHashCode(); + if (PayloadCodec.Length != 0) hash ^= PayloadCodec.GetHashCode(); + if (PayloadEncoderScript.Length != 0) hash ^= PayloadEncoderScript.GetHashCode(); + if (PayloadDecoderScript.Length != 0) hash ^= PayloadDecoderScript.GetHashCode(); + if (GeolocBufferTtl != 0) hash ^= GeolocBufferTtl.GetHashCode(); + if (GeolocMinBufferSize != 0) hash ^= GeolocMinBufferSize.GetHashCode(); + hash ^= Tags.GetHashCode(); + if (uplinkInterval_ != null) hash ^= UplinkInterval.GetHashCode(); + if (AdrAlgorithmId.Length != 0) hash ^= AdrAlgorithmId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (SupportsClassB != false) { + output.WriteRawTag(16); + output.WriteBool(SupportsClassB); + } + if (ClassBTimeout != 0) { + output.WriteRawTag(24); + output.WriteUInt32(ClassBTimeout); + } + if (PingSlotPeriod != 0) { + output.WriteRawTag(32); + output.WriteUInt32(PingSlotPeriod); + } + if (PingSlotDr != 0) { + output.WriteRawTag(40); + output.WriteUInt32(PingSlotDr); + } + if (PingSlotFreq != 0) { + output.WriteRawTag(48); + output.WriteUInt32(PingSlotFreq); + } + if (SupportsClassC != false) { + output.WriteRawTag(56); + output.WriteBool(SupportsClassC); + } + if (ClassCTimeout != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ClassCTimeout); + } + if (MacVersion.Length != 0) { + output.WriteRawTag(74); + output.WriteString(MacVersion); + } + if (RegParamsRevision.Length != 0) { + output.WriteRawTag(82); + output.WriteString(RegParamsRevision); + } + if (RxDelay1 != 0) { + output.WriteRawTag(88); + output.WriteUInt32(RxDelay1); + } + if (RxDrOffset1 != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RxDrOffset1); + } + if (RxDatarate2 != 0) { + output.WriteRawTag(104); + output.WriteUInt32(RxDatarate2); + } + if (RxFreq2 != 0) { + output.WriteRawTag(112); + output.WriteUInt32(RxFreq2); + } + factoryPresetFreqs_.WriteTo(output, _repeated_factoryPresetFreqs_codec); + if (MaxEirp != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(MaxEirp); + } + if (MaxDutyCycle != 0) { + output.WriteRawTag(136, 1); + output.WriteUInt32(MaxDutyCycle); + } + if (SupportsJoin != false) { + output.WriteRawTag(144, 1); + output.WriteBool(SupportsJoin); + } + if (RfRegion.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(RfRegion); + } + if (Supports32BitFCnt != false) { + output.WriteRawTag(160, 1); + output.WriteBool(Supports32BitFCnt); + } + if (Name.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Name); + } + if (OrganizationId != 0L) { + output.WriteRawTag(176, 1); + output.WriteInt64(OrganizationId); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(184, 1); + output.WriteInt64(NetworkServerId); + } + if (PayloadCodec.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(PayloadCodec); + } + if (PayloadEncoderScript.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(PayloadEncoderScript); + } + if (PayloadDecoderScript.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(PayloadDecoderScript); + } + if (GeolocBufferTtl != 0) { + output.WriteRawTag(216, 1); + output.WriteUInt32(GeolocBufferTtl); + } + if (GeolocMinBufferSize != 0) { + output.WriteRawTag(224, 1); + output.WriteUInt32(GeolocMinBufferSize); + } + tags_.WriteTo(output, _map_tags_codec); + if (uplinkInterval_ != null) { + output.WriteRawTag(242, 1); + output.WriteMessage(UplinkInterval); + } + if (AdrAlgorithmId.Length != 0) { + output.WriteRawTag(250, 1); + output.WriteString(AdrAlgorithmId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (SupportsClassB != false) { + output.WriteRawTag(16); + output.WriteBool(SupportsClassB); + } + if (ClassBTimeout != 0) { + output.WriteRawTag(24); + output.WriteUInt32(ClassBTimeout); + } + if (PingSlotPeriod != 0) { + output.WriteRawTag(32); + output.WriteUInt32(PingSlotPeriod); + } + if (PingSlotDr != 0) { + output.WriteRawTag(40); + output.WriteUInt32(PingSlotDr); + } + if (PingSlotFreq != 0) { + output.WriteRawTag(48); + output.WriteUInt32(PingSlotFreq); + } + if (SupportsClassC != false) { + output.WriteRawTag(56); + output.WriteBool(SupportsClassC); + } + if (ClassCTimeout != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ClassCTimeout); + } + if (MacVersion.Length != 0) { + output.WriteRawTag(74); + output.WriteString(MacVersion); + } + if (RegParamsRevision.Length != 0) { + output.WriteRawTag(82); + output.WriteString(RegParamsRevision); + } + if (RxDelay1 != 0) { + output.WriteRawTag(88); + output.WriteUInt32(RxDelay1); + } + if (RxDrOffset1 != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RxDrOffset1); + } + if (RxDatarate2 != 0) { + output.WriteRawTag(104); + output.WriteUInt32(RxDatarate2); + } + if (RxFreq2 != 0) { + output.WriteRawTag(112); + output.WriteUInt32(RxFreq2); + } + factoryPresetFreqs_.WriteTo(ref output, _repeated_factoryPresetFreqs_codec); + if (MaxEirp != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(MaxEirp); + } + if (MaxDutyCycle != 0) { + output.WriteRawTag(136, 1); + output.WriteUInt32(MaxDutyCycle); + } + if (SupportsJoin != false) { + output.WriteRawTag(144, 1); + output.WriteBool(SupportsJoin); + } + if (RfRegion.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(RfRegion); + } + if (Supports32BitFCnt != false) { + output.WriteRawTag(160, 1); + output.WriteBool(Supports32BitFCnt); + } + if (Name.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Name); + } + if (OrganizationId != 0L) { + output.WriteRawTag(176, 1); + output.WriteInt64(OrganizationId); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(184, 1); + output.WriteInt64(NetworkServerId); + } + if (PayloadCodec.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(PayloadCodec); + } + if (PayloadEncoderScript.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(PayloadEncoderScript); + } + if (PayloadDecoderScript.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(PayloadDecoderScript); + } + if (GeolocBufferTtl != 0) { + output.WriteRawTag(216, 1); + output.WriteUInt32(GeolocBufferTtl); + } + if (GeolocMinBufferSize != 0) { + output.WriteRawTag(224, 1); + output.WriteUInt32(GeolocMinBufferSize); + } + tags_.WriteTo(ref output, _map_tags_codec); + if (uplinkInterval_ != null) { + output.WriteRawTag(242, 1); + output.WriteMessage(UplinkInterval); + } + if (AdrAlgorithmId.Length != 0) { + output.WriteRawTag(250, 1); + output.WriteString(AdrAlgorithmId); + } + if (_unknownFields != 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 += 2 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (OrganizationId != 0L) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (NetworkServerId != 0L) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(NetworkServerId); + } + if (SupportsClassB != false) { + size += 1 + 1; + } + if (ClassBTimeout != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClassBTimeout); + } + if (PingSlotPeriod != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PingSlotPeriod); + } + if (PingSlotDr != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PingSlotDr); + } + if (PingSlotFreq != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PingSlotFreq); + } + if (SupportsClassC != false) { + size += 1 + 1; + } + if (ClassCTimeout != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClassCTimeout); + } + if (MacVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MacVersion); + } + if (RegParamsRevision.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RegParamsRevision); + } + if (RxDelay1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxDelay1); + } + if (RxDrOffset1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxDrOffset1); + } + if (RxDatarate2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxDatarate2); + } + if (RxFreq2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxFreq2); + } + size += factoryPresetFreqs_.CalculateSize(_repeated_factoryPresetFreqs_codec); + if (MaxEirp != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(MaxEirp); + } + if (MaxDutyCycle != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(MaxDutyCycle); + } + if (SupportsJoin != false) { + size += 2 + 1; + } + if (RfRegion.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RfRegion); + } + if (Supports32BitFCnt != false) { + size += 2 + 1; + } + if (PayloadCodec.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(PayloadCodec); + } + if (PayloadEncoderScript.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(PayloadEncoderScript); + } + if (PayloadDecoderScript.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(PayloadDecoderScript); + } + if (GeolocBufferTtl != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GeolocBufferTtl); + } + if (GeolocMinBufferSize != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GeolocMinBufferSize); + } + size += tags_.CalculateSize(_map_tags_codec); + if (uplinkInterval_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UplinkInterval); + } + if (AdrAlgorithmId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AdrAlgorithmId); + } + 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.Name.Length != 0) { + Name = other.Name; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.NetworkServerId != 0L) { + NetworkServerId = other.NetworkServerId; + } + if (other.SupportsClassB != false) { + SupportsClassB = other.SupportsClassB; + } + if (other.ClassBTimeout != 0) { + ClassBTimeout = other.ClassBTimeout; + } + if (other.PingSlotPeriod != 0) { + PingSlotPeriod = other.PingSlotPeriod; + } + if (other.PingSlotDr != 0) { + PingSlotDr = other.PingSlotDr; + } + if (other.PingSlotFreq != 0) { + PingSlotFreq = other.PingSlotFreq; + } + if (other.SupportsClassC != false) { + SupportsClassC = other.SupportsClassC; + } + if (other.ClassCTimeout != 0) { + ClassCTimeout = other.ClassCTimeout; + } + if (other.MacVersion.Length != 0) { + MacVersion = other.MacVersion; + } + if (other.RegParamsRevision.Length != 0) { + RegParamsRevision = other.RegParamsRevision; + } + if (other.RxDelay1 != 0) { + RxDelay1 = other.RxDelay1; + } + if (other.RxDrOffset1 != 0) { + RxDrOffset1 = other.RxDrOffset1; + } + if (other.RxDatarate2 != 0) { + RxDatarate2 = other.RxDatarate2; + } + if (other.RxFreq2 != 0) { + RxFreq2 = other.RxFreq2; + } + factoryPresetFreqs_.Add(other.factoryPresetFreqs_); + if (other.MaxEirp != 0) { + MaxEirp = other.MaxEirp; + } + if (other.MaxDutyCycle != 0) { + MaxDutyCycle = other.MaxDutyCycle; + } + if (other.SupportsJoin != false) { + SupportsJoin = other.SupportsJoin; + } + if (other.RfRegion.Length != 0) { + RfRegion = other.RfRegion; + } + if (other.Supports32BitFCnt != false) { + Supports32BitFCnt = other.Supports32BitFCnt; + } + if (other.PayloadCodec.Length != 0) { + PayloadCodec = other.PayloadCodec; + } + if (other.PayloadEncoderScript.Length != 0) { + PayloadEncoderScript = other.PayloadEncoderScript; + } + if (other.PayloadDecoderScript.Length != 0) { + PayloadDecoderScript = other.PayloadDecoderScript; + } + if (other.GeolocBufferTtl != 0) { + GeolocBufferTtl = other.GeolocBufferTtl; + } + if (other.GeolocMinBufferSize != 0) { + GeolocMinBufferSize = other.GeolocMinBufferSize; + } + tags_.Add(other.tags_); + if (other.uplinkInterval_ != null) { + if (uplinkInterval_ == null) { + UplinkInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + UplinkInterval.MergeFrom(other.UplinkInterval); + } + if (other.AdrAlgorithmId.Length != 0) { + AdrAlgorithmId = other.AdrAlgorithmId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + SupportsClassB = input.ReadBool(); + break; + } + case 24: { + ClassBTimeout = input.ReadUInt32(); + break; + } + case 32: { + PingSlotPeriod = input.ReadUInt32(); + break; + } + case 40: { + PingSlotDr = input.ReadUInt32(); + break; + } + case 48: { + PingSlotFreq = input.ReadUInt32(); + break; + } + case 56: { + SupportsClassC = input.ReadBool(); + break; + } + case 64: { + ClassCTimeout = input.ReadUInt32(); + break; + } + case 74: { + MacVersion = input.ReadString(); + break; + } + case 82: { + RegParamsRevision = input.ReadString(); + break; + } + case 88: { + RxDelay1 = input.ReadUInt32(); + break; + } + case 96: { + RxDrOffset1 = input.ReadUInt32(); + break; + } + case 104: { + RxDatarate2 = input.ReadUInt32(); + break; + } + case 112: { + RxFreq2 = input.ReadUInt32(); + break; + } + case 122: + case 120: { + factoryPresetFreqs_.AddEntriesFrom(input, _repeated_factoryPresetFreqs_codec); + break; + } + case 128: { + MaxEirp = input.ReadUInt32(); + break; + } + case 136: { + MaxDutyCycle = input.ReadUInt32(); + break; + } + case 144: { + SupportsJoin = input.ReadBool(); + break; + } + case 154: { + RfRegion = input.ReadString(); + break; + } + case 160: { + Supports32BitFCnt = input.ReadBool(); + break; + } + case 170: { + Name = input.ReadString(); + break; + } + case 176: { + OrganizationId = input.ReadInt64(); + break; + } + case 184: { + NetworkServerId = input.ReadInt64(); + break; + } + case 194: { + PayloadCodec = input.ReadString(); + break; + } + case 202: { + PayloadEncoderScript = input.ReadString(); + break; + } + case 210: { + PayloadDecoderScript = input.ReadString(); + break; + } + case 216: { + GeolocBufferTtl = input.ReadUInt32(); + break; + } + case 224: { + GeolocMinBufferSize = input.ReadUInt32(); + break; + } + case 234: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 242: { + if (uplinkInterval_ == null) { + UplinkInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(UplinkInterval); + break; + } + case 250: { + AdrAlgorithmId = 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: { + SupportsClassB = input.ReadBool(); + break; + } + case 24: { + ClassBTimeout = input.ReadUInt32(); + break; + } + case 32: { + PingSlotPeriod = input.ReadUInt32(); + break; + } + case 40: { + PingSlotDr = input.ReadUInt32(); + break; + } + case 48: { + PingSlotFreq = input.ReadUInt32(); + break; + } + case 56: { + SupportsClassC = input.ReadBool(); + break; + } + case 64: { + ClassCTimeout = input.ReadUInt32(); + break; + } + case 74: { + MacVersion = input.ReadString(); + break; + } + case 82: { + RegParamsRevision = input.ReadString(); + break; + } + case 88: { + RxDelay1 = input.ReadUInt32(); + break; + } + case 96: { + RxDrOffset1 = input.ReadUInt32(); + break; + } + case 104: { + RxDatarate2 = input.ReadUInt32(); + break; + } + case 112: { + RxFreq2 = input.ReadUInt32(); + break; + } + case 122: + case 120: { + factoryPresetFreqs_.AddEntriesFrom(ref input, _repeated_factoryPresetFreqs_codec); + break; + } + case 128: { + MaxEirp = input.ReadUInt32(); + break; + } + case 136: { + MaxDutyCycle = input.ReadUInt32(); + break; + } + case 144: { + SupportsJoin = input.ReadBool(); + break; + } + case 154: { + RfRegion = input.ReadString(); + break; + } + case 160: { + Supports32BitFCnt = input.ReadBool(); + break; + } + case 170: { + Name = input.ReadString(); + break; + } + case 176: { + OrganizationId = input.ReadInt64(); + break; + } + case 184: { + NetworkServerId = input.ReadInt64(); + break; + } + case 194: { + PayloadCodec = input.ReadString(); + break; + } + case 202: { + PayloadEncoderScript = input.ReadString(); + break; + } + case 210: { + PayloadDecoderScript = input.ReadString(); + break; + } + case 216: { + GeolocBufferTtl = input.ReadUInt32(); + break; + } + case 224: { + GeolocMinBufferSize = input.ReadUInt32(); + break; + } + case 234: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 242: { + if (uplinkInterval_ == null) { + UplinkInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(UplinkInterval); + break; + } + case 250: { + AdrAlgorithmId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/as/external/api/ServiceProfile.cs b/csharp/protobuf/as/external/api/ServiceProfile.cs new file mode 100644 index 00000000..0fd5ce01 --- /dev/null +++ b/csharp/protobuf/as/external/api/ServiceProfile.cs @@ -0,0 +1,2348 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/serviceProfile.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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/serviceProfile.proto + public static partial class ServiceProfileReflection { + + #region Descriptor + /// File descriptor for as/external/api/serviceProfile.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ServiceProfileReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiRhcy9leHRlcm5hbC9hcGkvc2VydmljZVByb2ZpbGUucHJvdG8SA2FwaRoc", + "Z29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL3Byb3RvYnVm", + "L3RpbWVzdGFtcC5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3Rv", + "Gh5hcy9leHRlcm5hbC9hcGkvcHJvZmlsZXMucHJvdG8iSwobQ3JlYXRlU2Vy", + "dmljZVByb2ZpbGVSZXF1ZXN0EiwKD3NlcnZpY2VfcHJvZmlsZRgBIAEoCzIT", + "LmFwaS5TZXJ2aWNlUHJvZmlsZSIqChxDcmVhdGVTZXJ2aWNlUHJvZmlsZVJl", + "c3BvbnNlEgoKAmlkGAEgASgJIiYKGEdldFNlcnZpY2VQcm9maWxlUmVxdWVz", + "dBIKCgJpZBgBIAEoCSKpAQoZR2V0U2VydmljZVByb2ZpbGVSZXNwb25zZRIs", + "Cg9zZXJ2aWNlX3Byb2ZpbGUYASABKAsyEy5hcGkuU2VydmljZVByb2ZpbGUS", + "LgoKY3JlYXRlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", + "bXASLgoKdXBkYXRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXAiSwobVXBkYXRlU2VydmljZVByb2ZpbGVSZXF1ZXN0EiwKD3NlcnZp", + "Y2VfcHJvZmlsZRgBIAEoCzITLmFwaS5TZXJ2aWNlUHJvZmlsZSIpChtEZWxl", + "dGVTZXJ2aWNlUHJvZmlsZVJlcXVlc3QSCgoCaWQYASABKAkijwEKGUxpc3RT", + "ZXJ2aWNlUHJvZmlsZVJlcXVlc3QSDQoFbGltaXQYASABKAMSDgoGb2Zmc2V0", + "GAIgASgDEicKD29yZ2FuaXphdGlvbl9pZBgDIAEoA1IOb3JnYW5pemF0aW9u", + "SUQSKgoRbmV0d29ya19zZXJ2ZXJfaWQYBCABKANSD25ldHdvcmtTZXJ2ZXJJ", + "RCKEAgoWU2VydmljZVByb2ZpbGVMaXN0SXRlbRIKCgJpZBgBIAEoCRIMCgRu", + "YW1lGAIgASgJEicKD29yZ2FuaXphdGlvbl9pZBgDIAEoA1IOb3JnYW5pemF0", + "aW9uSUQSKgoRbmV0d29ya19zZXJ2ZXJfaWQYBCABKANSD25ldHdvcmtTZXJ2", + "ZXJJRBIuCgpjcmVhdGVkX2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRp", + "bWVzdGFtcBIuCgp1cGRhdGVkX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LlRpbWVzdGFtcBIbChNuZXR3b3JrX3NlcnZlcl9uYW1lGAcgASgJIl4KGkxp", + "c3RTZXJ2aWNlUHJvZmlsZVJlc3BvbnNlEhMKC3RvdGFsX2NvdW50GAEgASgD", + "EisKBnJlc3VsdBgCIAMoCzIbLmFwaS5TZXJ2aWNlUHJvZmlsZUxpc3RJdGVt", + "Mr0EChVTZXJ2aWNlUHJvZmlsZVNlcnZpY2USbwoGQ3JlYXRlEiAuYXBpLkNy", + "ZWF0ZVNlcnZpY2VQcm9maWxlUmVxdWVzdBohLmFwaS5DcmVhdGVTZXJ2aWNl", + "UHJvZmlsZVJlc3BvbnNlIiCC0+STAhoiFS9hcGkvc2VydmljZS1wcm9maWxl", + "czoBKhJoCgNHZXQSHS5hcGkuR2V0U2VydmljZVByb2ZpbGVSZXF1ZXN0Gh4u", + "YXBpLkdldFNlcnZpY2VQcm9maWxlUmVzcG9uc2UiIoLT5JMCHBIaL2FwaS9z", + "ZXJ2aWNlLXByb2ZpbGVzL3tpZH0SeQoGVXBkYXRlEiAuYXBpLlVwZGF0ZVNl", + "cnZpY2VQcm9maWxlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSI1", + "gtPkkwIvGiovYXBpL3NlcnZpY2UtcHJvZmlsZXMve3NlcnZpY2VfcHJvZmls", + "ZS5pZH06ASoSZgoGRGVsZXRlEiAuYXBpLkRlbGV0ZVNlcnZpY2VQcm9maWxl", + "UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIigtPkkwIcKhovYXBp", + "L3NlcnZpY2UtcHJvZmlsZXMve2lkfRJmCgRMaXN0Eh4uYXBpLkxpc3RTZXJ2", + "aWNlUHJvZmlsZVJlcXVlc3QaHy5hcGkuTGlzdFNlcnZpY2VQcm9maWxlUmVz", + "cG9uc2UiHYLT5JMCFxIVL2FwaS9zZXJ2aWNlLXByb2ZpbGVzQp8BCiFpby5j", + "aGlycHN0YWNrLmFwaS5hcy5leHRlcm5hbC5hcGlCE1NlcnZpY2VQcm9maWxl", + "UHJvdG9QAVo3Z2l0aHViLmNvbS9icm9jYWFyL2NoaXJwc3RhY2stYXBpL2dv", + "L3YzL2FzL2V4dGVybmFsL2FwaaoCKUNoaXJwc3RhY2suQXBwbGljYXRpb25T", + "ZXJ2ZXIuRXh0ZXJuYWwuQXBpYgZwcm90bzM=")); + 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.ApplicationServer.External.Api.ProfilesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateServiceProfileRequest), global::Chirpstack.ApplicationServer.External.Api.CreateServiceProfileRequest.Parser, new[]{ "ServiceProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateServiceProfileResponse), global::Chirpstack.ApplicationServer.External.Api.CreateServiceProfileResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetServiceProfileRequest), global::Chirpstack.ApplicationServer.External.Api.GetServiceProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetServiceProfileResponse), global::Chirpstack.ApplicationServer.External.Api.GetServiceProfileResponse.Parser, new[]{ "ServiceProfile", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateServiceProfileRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateServiceProfileRequest.Parser, new[]{ "ServiceProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteServiceProfileRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteServiceProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListServiceProfileRequest), global::Chirpstack.ApplicationServer.External.Api.ListServiceProfileRequest.Parser, new[]{ "Limit", "Offset", "OrganizationId", "NetworkServerId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ServiceProfileListItem), global::Chirpstack.ApplicationServer.External.Api.ServiceProfileListItem.Parser, new[]{ "Id", "Name", "OrganizationId", "NetworkServerId", "CreatedAt", "UpdatedAt", "NetworkServerName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListServiceProfileResponse), global::Chirpstack.ApplicationServer.External.Api.ListServiceProfileResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class CreateServiceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateServiceProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.ServiceProfileReflection.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 CreateServiceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateServiceProfileRequest(CreateServiceProfileRequest other) : this() { + serviceProfile_ = other.serviceProfile_ != null ? other.serviceProfile_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateServiceProfileRequest Clone() { + return new CreateServiceProfileRequest(this); + } + + /// Field number for the "service_profile" field. + public const int ServiceProfileFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.ServiceProfile serviceProfile_; + /// + /// Service-profile object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.ServiceProfile ServiceProfile { + get { return serviceProfile_; } + set { + serviceProfile_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateServiceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateServiceProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ServiceProfile, other.ServiceProfile)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (serviceProfile_ != null) hash ^= ServiceProfile.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (serviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (serviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (serviceProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServiceProfile); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateServiceProfileRequest other) { + if (other == null) { + return; + } + if (other.serviceProfile_ != null) { + if (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.ApplicationServer.External.Api.ServiceProfile(); + } + ServiceProfile.MergeFrom(other.ServiceProfile); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.ApplicationServer.External.Api.ServiceProfile(); + } + input.ReadMessage(ServiceProfile); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.ApplicationServer.External.Api.ServiceProfile(); + } + input.ReadMessage(ServiceProfile); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateServiceProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateServiceProfileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.ServiceProfileReflection.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 CreateServiceProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateServiceProfileResponse(CreateServiceProfileResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateServiceProfileResponse Clone() { + return new CreateServiceProfileResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Service-profile ID (UUID string). + /// + [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 CreateServiceProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateServiceProfileResponse 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(CreateServiceProfileResponse 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 GetServiceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetServiceProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.ServiceProfileReflection.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 GetServiceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceProfileRequest(GetServiceProfileRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceProfileRequest Clone() { + return new GetServiceProfileRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Service-profile ID (UUID string). + /// + [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 GetServiceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetServiceProfileRequest 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(GetServiceProfileRequest 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 GetServiceProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetServiceProfileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.ServiceProfileReflection.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 GetServiceProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceProfileResponse(GetServiceProfileResponse other) : this() { + serviceProfile_ = other.serviceProfile_ != null ? other.serviceProfile_.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 GetServiceProfileResponse Clone() { + return new GetServiceProfileResponse(this); + } + + /// Field number for the "service_profile" field. + public const int ServiceProfileFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.ServiceProfile serviceProfile_; + /// + /// Service-profile object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.ServiceProfile ServiceProfile { + get { return serviceProfile_; } + set { + serviceProfile_ = 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 GetServiceProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetServiceProfileResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ServiceProfile, other.ServiceProfile)) 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 (serviceProfile_ != null) hash ^= ServiceProfile.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 (serviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceProfile); + } + 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 (serviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceProfile); + } + 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 (serviceProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServiceProfile); + } + 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(GetServiceProfileResponse other) { + if (other == null) { + return; + } + if (other.serviceProfile_ != null) { + if (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.ApplicationServer.External.Api.ServiceProfile(); + } + ServiceProfile.MergeFrom(other.ServiceProfile); + } + 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 (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.ApplicationServer.External.Api.ServiceProfile(); + } + input.ReadMessage(ServiceProfile); + 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 (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.ApplicationServer.External.Api.ServiceProfile(); + } + input.ReadMessage(ServiceProfile); + 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 UpdateServiceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateServiceProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.ServiceProfileReflection.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 UpdateServiceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateServiceProfileRequest(UpdateServiceProfileRequest other) : this() { + serviceProfile_ = other.serviceProfile_ != null ? other.serviceProfile_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateServiceProfileRequest Clone() { + return new UpdateServiceProfileRequest(this); + } + + /// Field number for the "service_profile" field. + public const int ServiceProfileFieldNumber = 1; + private global::Chirpstack.ApplicationServer.External.Api.ServiceProfile serviceProfile_; + /// + /// Service-profile object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.ServiceProfile ServiceProfile { + get { return serviceProfile_; } + set { + serviceProfile_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateServiceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateServiceProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ServiceProfile, other.ServiceProfile)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (serviceProfile_ != null) hash ^= ServiceProfile.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (serviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (serviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (serviceProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServiceProfile); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateServiceProfileRequest other) { + if (other == null) { + return; + } + if (other.serviceProfile_ != null) { + if (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.ApplicationServer.External.Api.ServiceProfile(); + } + ServiceProfile.MergeFrom(other.ServiceProfile); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.ApplicationServer.External.Api.ServiceProfile(); + } + input.ReadMessage(ServiceProfile); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.ApplicationServer.External.Api.ServiceProfile(); + } + input.ReadMessage(ServiceProfile); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteServiceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteServiceProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.ServiceProfileReflection.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 DeleteServiceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteServiceProfileRequest(DeleteServiceProfileRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteServiceProfileRequest Clone() { + return new DeleteServiceProfileRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Service-profile ID (UUID string). + /// + [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 DeleteServiceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteServiceProfileRequest 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(DeleteServiceProfileRequest 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 ListServiceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListServiceProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.ServiceProfileReflection.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 ListServiceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListServiceProfileRequest(ListServiceProfileRequest other) : this() { + limit_ = other.limit_; + offset_ = other.offset_; + organizationId_ = other.organizationId_; + networkServerId_ = other.networkServerId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListServiceProfileRequest Clone() { + return new ListServiceProfileRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private long limit_; + /// + /// Max number of items 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 = 2; + private long offset_; + /// + /// Offset in 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; + } + } + + /// Field number for the "organization_id" field. + public const int OrganizationIdFieldNumber = 3; + private long organizationId_; + /// + /// Organization id to filter on. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "network_server_id" field. + public const int NetworkServerIdFieldNumber = 4; + private long networkServerId_; + /// + /// Network-server id to filter on. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkServerId { + get { return networkServerId_; } + set { + networkServerId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListServiceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListServiceProfileRequest 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 (OrganizationId != other.OrganizationId) return false; + if (NetworkServerId != other.NetworkServerId) return false; + 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 != 0L) hash ^= Limit.GetHashCode(); + if (Offset != 0L) hash ^= Offset.GetHashCode(); + if (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (NetworkServerId != 0L) hash ^= NetworkServerId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(NetworkServerId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Offset); + } + if (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(NetworkServerId); + } + if (_unknownFields != 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); + } + if (Offset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset); + } + if (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (NetworkServerId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NetworkServerId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListServiceProfileRequest other) { + if (other == null) { + return; + } + if (other.Limit != 0L) { + Limit = other.Limit; + } + if (other.Offset != 0L) { + Offset = other.Offset; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.NetworkServerId != 0L) { + NetworkServerId = other.NetworkServerId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + OrganizationId = input.ReadInt64(); + break; + } + case 32: { + NetworkServerId = 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 8: { + Limit = input.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + case 24: { + OrganizationId = input.ReadInt64(); + break; + } + case 32: { + NetworkServerId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ServiceProfileListItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceProfileListItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.ServiceProfileReflection.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 ServiceProfileListItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceProfileListItem(ServiceProfileListItem other) : this() { + id_ = other.id_; + name_ = other.name_; + organizationId_ = other.organizationId_; + networkServerId_ = other.networkServerId_; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + networkServerName_ = other.networkServerName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceProfileListItem Clone() { + return new ServiceProfileListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Service-profile ID (UUID string). + /// + [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_ = ""; + /// + /// Service-profile 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 "organization_id" field. + public const int OrganizationIdFieldNumber = 3; + private long organizationId_; + /// + /// Organization ID of the service-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "network_server_id" field. + public const int NetworkServerIdFieldNumber = 4; + private long networkServerId_; + /// + /// Network-server ID of the service-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkServerId { + get { return networkServerId_; } + set { + networkServerId_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 5; + 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 = 6; + 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 "network_server_name" field. + public const int NetworkServerNameFieldNumber = 7; + private string networkServerName_ = ""; + /// + /// Network-server name of the service-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NetworkServerName { + get { return networkServerName_; } + set { + networkServerName_ = 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 ServiceProfileListItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceProfileListItem 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 (OrganizationId != other.OrganizationId) return false; + if (NetworkServerId != other.NetworkServerId) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (NetworkServerName != other.NetworkServerName) return false; + 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 (OrganizationId != 0L) hash ^= OrganizationId.GetHashCode(); + if (NetworkServerId != 0L) hash ^= NetworkServerId.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (NetworkServerName.Length != 0) hash ^= NetworkServerName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(NetworkServerId); + } + if (createdAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdatedAt); + } + if (NetworkServerName.Length != 0) { + output.WriteRawTag(58); + output.WriteString(NetworkServerName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (OrganizationId != 0L) { + output.WriteRawTag(24); + output.WriteInt64(OrganizationId); + } + if (NetworkServerId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(NetworkServerId); + } + if (createdAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdatedAt); + } + if (NetworkServerName.Length != 0) { + output.WriteRawTag(58); + output.WriteString(NetworkServerName); + } + if (_unknownFields != 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 (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + if (NetworkServerId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NetworkServerId); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (NetworkServerName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NetworkServerName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceProfileListItem other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + if (other.NetworkServerId != 0L) { + NetworkServerId = other.NetworkServerId; + } + 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.NetworkServerName.Length != 0) { + NetworkServerName = other.NetworkServerName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + OrganizationId = input.ReadInt64(); + break; + } + case 32: { + NetworkServerId = input.ReadInt64(); + break; + } + case 42: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 50: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 58: { + NetworkServerName = 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: { + OrganizationId = input.ReadInt64(); + break; + } + case 32: { + NetworkServerId = input.ReadInt64(); + break; + } + case 42: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 50: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + case 58: { + NetworkServerName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListServiceProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListServiceProfileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.Api.ServiceProfileReflection.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 ListServiceProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListServiceProfileResponse(ListServiceProfileResponse 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 ListServiceProfileResponse Clone() { + return new ListServiceProfileResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private long totalCount_; + /// + /// Total number of service-profiles. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.Api.ServiceProfileListItem.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 ListServiceProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListServiceProfileResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(ListServiceProfileResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + break; + } + case 18: { + result_.AddEntriesFrom(ref input, _repeated_result_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/as/external/api/ServiceProfileGrpc.cs b/csharp/protobuf/as/external/api/ServiceProfileGrpc.cs new file mode 100644 index 00000000..960a4b9b --- /dev/null +++ b/csharp/protobuf/as/external/api/ServiceProfileGrpc.cs @@ -0,0 +1,486 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/serviceProfile.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer.External.Api { + /// + /// ServiceProfileService is the service managing service-profiles. + /// + public static partial class ServiceProfileService + { + static readonly string __ServiceName = "api.ServiceProfileService"; + + [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_CreateServiceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.CreateServiceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_CreateServiceProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.CreateServiceProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetServiceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetServiceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_GetServiceProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.GetServiceProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_UpdateServiceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.UpdateServiceProfileRequest.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_DeleteServiceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.DeleteServiceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListServiceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListServiceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListServiceProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListServiceProfileResponse.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_CreateServiceProfileRequest, + __Marshaller_api_CreateServiceProfileResponse); + + [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_GetServiceProfileRequest, + __Marshaller_api_GetServiceProfileResponse); + + [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_UpdateServiceProfileRequest, + __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_DeleteServiceProfileRequest, + __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_ListServiceProfileRequest, + __Marshaller_api_ListServiceProfileResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.ApplicationServer.External.Api.ServiceProfileReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of ServiceProfileService + [grpc::BindServiceMethod(typeof(ServiceProfileService), "BindService")] + public abstract partial class ServiceProfileServiceBase + { + /// + /// Create creates the given service-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.ApplicationServer.External.Api.CreateServiceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get returns the service-profile matching 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.ApplicationServer.External.Api.GetServiceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update updates the given serviceprofile. + /// + /// 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.ApplicationServer.External.Api.UpdateServiceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete deletes the service-profile matching 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.ApplicationServer.External.Api.DeleteServiceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// List lists the available service-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.ApplicationServer.External.Api.ListServiceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for ServiceProfileService + public partial class ServiceProfileServiceClient : grpc::ClientBase + { + /// Creates a new client for ServiceProfileService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public ServiceProfileServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for ServiceProfileService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public ServiceProfileServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected ServiceProfileServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected ServiceProfileServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Create creates the given service-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.ApplicationServer.External.Api.CreateServiceProfileResponse Create(global::Chirpstack.ApplicationServer.External.Api.CreateServiceProfileRequest 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 service-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.ApplicationServer.External.Api.CreateServiceProfileResponse Create(global::Chirpstack.ApplicationServer.External.Api.CreateServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); + } + /// + /// Create creates the given service-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.ApplicationServer.External.Api.CreateServiceProfileRequest 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 service-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.ApplicationServer.External.Api.CreateServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Get returns the service-profile matching 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.ApplicationServer.External.Api.GetServiceProfileResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetServiceProfileRequest 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 service-profile matching 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.ApplicationServer.External.Api.GetServiceProfileResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get returns the service-profile matching 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.ApplicationServer.External.Api.GetServiceProfileRequest 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 service-profile matching 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.ApplicationServer.External.Api.GetServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); + } + /// + /// Update updates the given serviceprofile. + /// + /// 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.ApplicationServer.External.Api.UpdateServiceProfileRequest 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 serviceprofile. + /// + /// 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.ApplicationServer.External.Api.UpdateServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update updates the given serviceprofile. + /// + /// 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.ApplicationServer.External.Api.UpdateServiceProfileRequest 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 serviceprofile. + /// + /// 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.ApplicationServer.External.Api.UpdateServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete deletes the service-profile matching 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.ApplicationServer.External.Api.DeleteServiceProfileRequest 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 service-profile matching 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.ApplicationServer.External.Api.DeleteServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete deletes the service-profile matching 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.ApplicationServer.External.Api.DeleteServiceProfileRequest 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 service-profile matching 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.ApplicationServer.External.Api.DeleteServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// List lists the available service-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.ApplicationServer.External.Api.ListServiceProfileResponse List(global::Chirpstack.ApplicationServer.External.Api.ListServiceProfileRequest 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 lists the available service-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.ApplicationServer.External.Api.ListServiceProfileResponse List(global::Chirpstack.ApplicationServer.External.Api.ListServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// List lists the available service-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.ApplicationServer.External.Api.ListServiceProfileRequest 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 lists the available service-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.ApplicationServer.External.Api.ListServiceProfileRequest 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 ServiceProfileServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new ServiceProfileServiceClient(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(ServiceProfileServiceBase 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, ServiceProfileServiceBase 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/csharp/protobuf/as/external/api/User.cs b/csharp/protobuf/as/external/api/User.cs new file mode 100644 index 00000000..3af5a19c --- /dev/null +++ b/csharp/protobuf/as/external/api/User.cs @@ -0,0 +1,3283 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/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.ApplicationServer.External.Api { + + /// Holder for reflection information generated from as/external/api/user.proto + public static partial class UserReflection { + + #region Descriptor + /// File descriptor for as/external/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( + "Chphcy9leHRlcm5hbC9hcGkvdXNlci5wcm90bxIDYXBpGhxnb29nbGUvYXBp", + "L2Fubm90YXRpb25zLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1w", + "LnByb3RvGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8idQoEVXNlchIK", + "CgJpZBgBIAEoAxIfCgtzZXNzaW9uX3R0bBgDIAEoBVIKc2Vzc2lvblRUTBIQ", + "Cghpc19hZG1pbhgEIAEoCBIRCglpc19hY3RpdmUYBSABKAgSDQoFZW1haWwY", + "BiABKAkSDAoEbm90ZRgHIAEoCSLPAQoMVXNlckxpc3RJdGVtEgoKAmlkGAEg", + "ASgDEg0KBWVtYWlsGAIgASgJEh8KC3Nlc3Npb25fdHRsGAMgASgFUgpzZXNz", + "aW9uVFRMEhAKCGlzX2FkbWluGAQgASgIEhEKCWlzX2FjdGl2ZRgFIAEoCBIu", + "CgpjcmVhdGVkX2F0GAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", + "cBIuCgp1cGRhdGVkX2F0GAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", + "dGFtcCKAAQoQVXNlck9yZ2FuaXphdGlvbhInCg9vcmdhbml6YXRpb25faWQY", + "ASABKANSDm9yZ2FuaXphdGlvbklEEhAKCGlzX2FkbWluGAIgASgIEhcKD2lz", + "X2RldmljZV9hZG1pbhgDIAEoCBIYChBpc19nYXRld2F5X2FkbWluGAQgASgI", + "ImwKEUNyZWF0ZVVzZXJSZXF1ZXN0EhcKBHVzZXIYASABKAsyCS5hcGkuVXNl", + "chIQCghwYXNzd29yZBgCIAEoCRIsCg1vcmdhbml6YXRpb25zGAMgAygLMhUu", + "YXBpLlVzZXJPcmdhbml6YXRpb24iIAoSQ3JlYXRlVXNlclJlc3BvbnNlEgoK", + "AmlkGAEgASgDIhwKDkdldFVzZXJSZXF1ZXN0EgoKAmlkGAEgASgDIooBCg9H", + "ZXRVc2VyUmVzcG9uc2USFwoEdXNlchgBIAEoCzIJLmFwaS5Vc2VyEi4KCmNy", + "ZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4K", + "CnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "IiwKEVVwZGF0ZVVzZXJSZXF1ZXN0EhcKBHVzZXIYASABKAsyCS5hcGkuVXNl", + "ciIfChFEZWxldGVVc2VyUmVxdWVzdBIKCgJpZBgBIAEoAyIwCg9MaXN0VXNl", + "clJlcXVlc3QSDQoFbGltaXQYASABKAMSDgoGb2Zmc2V0GAIgASgDIkoKEExp", + "c3RVc2VyUmVzcG9uc2USEwoLdG90YWxfY291bnQYASABKAMSIQoGcmVzdWx0", + "GAIgAygLMhEuYXBpLlVzZXJMaXN0SXRlbSI+ChlVcGRhdGVVc2VyUGFzc3dv", + "cmRSZXF1ZXN0Eg8KB3VzZXJfaWQYASABKAMSEAoIcGFzc3dvcmQYAiABKAky", + "lQQKC1VzZXJTZXJ2aWNlEkcKBExpc3QSFC5hcGkuTGlzdFVzZXJSZXF1ZXN0", + "GhUuYXBpLkxpc3RVc2VyUmVzcG9uc2UiEoLT5JMCDBIKL2FwaS91c2VycxJJ", + "CgNHZXQSEy5hcGkuR2V0VXNlclJlcXVlc3QaFC5hcGkuR2V0VXNlclJlc3Bv", + "bnNlIheC0+STAhESDy9hcGkvdXNlcnMve2lkfRJQCgZDcmVhdGUSFi5hcGku", + "Q3JlYXRlVXNlclJlcXVlc3QaFy5hcGkuQ3JlYXRlVXNlclJlc3BvbnNlIhWC", + "0+STAg8iCi9hcGkvdXNlcnM6ASoSWQoGVXBkYXRlEhYuYXBpLlVwZGF0ZVVz", + "ZXJSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Ih+C0+STAhkaFC9h", + "cGkvdXNlcnMve3VzZXIuaWR9OgEqElEKBkRlbGV0ZRIWLmFwaS5EZWxldGVV", + "c2VyUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIXgtPkkwIRKg8v", + "YXBpL3VzZXJzL3tpZH0ScgoOVXBkYXRlUGFzc3dvcmQSHi5hcGkuVXBkYXRl", + "VXNlclBhc3N3b3JkUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIo", + "gtPkkwIiGh0vYXBpL3VzZXJzL3t1c2VyX2lkfS9wYXNzd29yZDoBKkKVAQoh", + "aW8uY2hpcnBzdGFjay5hcGkuYXMuZXh0ZXJuYWwuYXBpQglVc2VyUHJvdG9Q", + "AVo3Z2l0aHViLmNvbS9icm9jYWFyL2NoaXJwc3RhY2stYXBpL2dvL3YzL2Fz", + "L2V4dGVybmFsL2FwaaoCKUNoaXJwc3RhY2suQXBwbGljYXRpb25TZXJ2ZXIu", + "RXh0ZXJuYWwuQXBpYgZwcm90bzM=")); + 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.ApplicationServer.External.Api.User), global::Chirpstack.ApplicationServer.External.Api.User.Parser, new[]{ "Id", "SessionTtl", "IsAdmin", "IsActive", "Email", "Note" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UserListItem), global::Chirpstack.ApplicationServer.External.Api.UserListItem.Parser, new[]{ "Id", "Email", "SessionTtl", "IsAdmin", "IsActive", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UserOrganization), global::Chirpstack.ApplicationServer.External.Api.UserOrganization.Parser, new[]{ "OrganizationId", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateUserRequest), global::Chirpstack.ApplicationServer.External.Api.CreateUserRequest.Parser, new[]{ "User", "Password", "Organizations" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.CreateUserResponse), global::Chirpstack.ApplicationServer.External.Api.CreateUserResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetUserRequest), global::Chirpstack.ApplicationServer.External.Api.GetUserRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.GetUserResponse), global::Chirpstack.ApplicationServer.External.Api.GetUserResponse.Parser, new[]{ "User", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateUserRequest), global::Chirpstack.ApplicationServer.External.Api.UpdateUserRequest.Parser, new[]{ "User" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.DeleteUserRequest), global::Chirpstack.ApplicationServer.External.Api.DeleteUserRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListUserRequest), global::Chirpstack.ApplicationServer.External.Api.ListUserRequest.Parser, new[]{ "Limit", "Offset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.ListUserResponse), global::Chirpstack.ApplicationServer.External.Api.ListUserResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.External.Api.UpdateUserPasswordRequest), global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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_; + sessionTtl_ = other.sessionTtl_; + 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 long id_; + /// + /// User ID. + /// Will be set automatically on create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "session_ttl" field. + public const int SessionTtlFieldNumber = 3; + private int sessionTtl_; + /// + /// The session timeout, in minutes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SessionTtl { + get { return sessionTtl_; } + set { + sessionTtl_ = 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 (SessionTtl != other.SessionTtl) 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 != 0L) hash ^= Id.GetHashCode(); + if (SessionTtl != 0) hash ^= SessionTtl.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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (SessionTtl != 0) { + output.WriteRawTag(24); + output.WriteInt32(SessionTtl); + } + 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (SessionTtl != 0) { + output.WriteRawTag(24); + output.WriteInt32(SessionTtl); + } + 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (SessionTtl != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SessionTtl); + } + 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 != 0L) { + Id = other.Id; + } + if (other.SessionTtl != 0) { + SessionTtl = other.SessionTtl; + } + 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 8: { + Id = input.ReadInt64(); + break; + } + case 24: { + SessionTtl = input.ReadInt32(); + 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 8: { + Id = input.ReadInt64(); + break; + } + case 24: { + SessionTtl = input.ReadInt32(); + 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.ApplicationServer.External.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_; + email_ = other.email_; + sessionTtl_ = other.sessionTtl_; + isAdmin_ = other.isAdmin_; + isActive_ = other.isActive_; + 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 UserListItem Clone() { + return new UserListItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + /// + /// User ID. + /// Will be set automatically on create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 2; + 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 "session_ttl" field. + public const int SessionTtlFieldNumber = 3; + private int sessionTtl_; + /// + /// The session timeout, in minutes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SessionTtl { + get { return sessionTtl_; } + set { + sessionTtl_ = 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 "created_at" field. + public const int CreatedAtFieldNumber = 8; + 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 = 9; + 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 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 (Email != other.Email) return false; + if (SessionTtl != other.SessionTtl) return false; + if (IsAdmin != other.IsAdmin) return false; + if (IsActive != other.IsActive) 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 (Id != 0L) hash ^= Id.GetHashCode(); + if (Email.Length != 0) hash ^= Email.GetHashCode(); + if (SessionTtl != 0) hash ^= SessionTtl.GetHashCode(); + if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); + if (IsActive != false) hash ^= IsActive.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 (Id != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Email.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Email); + } + if (SessionTtl != 0) { + output.WriteRawTag(24); + output.WriteInt32(SessionTtl); + } + if (IsAdmin != false) { + output.WriteRawTag(32); + output.WriteBool(IsAdmin); + } + if (IsActive != false) { + output.WriteRawTag(40); + output.WriteBool(IsActive); + } + if (createdAt_ != null) { + output.WriteRawTag(66); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(74); + 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 (Id != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (Email.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Email); + } + if (SessionTtl != 0) { + output.WriteRawTag(24); + output.WriteInt32(SessionTtl); + } + if (IsAdmin != false) { + output.WriteRawTag(32); + output.WriteBool(IsAdmin); + } + if (IsActive != false) { + output.WriteRawTag(40); + output.WriteBool(IsActive); + } + if (createdAt_ != null) { + output.WriteRawTag(66); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(74); + 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 (Id != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (Email.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + if (SessionTtl != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SessionTtl); + } + if (IsAdmin != false) { + size += 1 + 1; + } + if (IsActive != false) { + size += 1 + 1; + } + 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(UserListItem other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + Id = other.Id; + } + if (other.Email.Length != 0) { + Email = other.Email; + } + if (other.SessionTtl != 0) { + SessionTtl = other.SessionTtl; + } + if (other.IsAdmin != false) { + IsAdmin = other.IsAdmin; + } + if (other.IsActive != false) { + IsActive = other.IsActive; + } + 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 8: { + Id = input.ReadInt64(); + break; + } + case 18: { + Email = input.ReadString(); + break; + } + case 24: { + SessionTtl = input.ReadInt32(); + break; + } + case 32: { + IsAdmin = input.ReadBool(); + break; + } + case 40: { + IsActive = input.ReadBool(); + break; + } + case 66: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 74: { + 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 8: { + Id = input.ReadInt64(); + break; + } + case 18: { + Email = input.ReadString(); + break; + } + case 24: { + SessionTtl = input.ReadInt32(); + break; + } + case 32: { + IsAdmin = input.ReadBool(); + break; + } + case 40: { + IsActive = input.ReadBool(); + break; + } + case 66: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 74: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class UserOrganization : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserOrganization()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 UserOrganization() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserOrganization(UserOrganization other) : this() { + organizationId_ = other.organizationId_; + 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 UserOrganization Clone() { + return new UserOrganization(this); + } + + /// Field number for the "organization_id" field. + public const int OrganizationIdFieldNumber = 1; + private long organizationId_; + /// + /// Organization ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OrganizationId { + get { return organizationId_; } + set { + organizationId_ = value; + } + } + + /// Field number for the "is_admin" field. + public const int IsAdminFieldNumber = 2; + private bool isAdmin_; + /// + /// User is admin within the context of the organization. + /// 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 UserOrganization); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserOrganization other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OrganizationId != other.OrganizationId) 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 (OrganizationId != 0L) hash ^= OrganizationId.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 (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + 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 (OrganizationId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(OrganizationId); + } + 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 (OrganizationId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrganizationId); + } + 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(UserOrganization other) { + if (other == null) { + return; + } + if (other.OrganizationId != 0L) { + OrganizationId = other.OrganizationId; + } + 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 8: { + OrganizationId = input.ReadInt64(); + 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 8: { + OrganizationId = input.ReadInt64(); + 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.ApplicationServer.External.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_; + organizations_ = other.organizations_.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.ApplicationServer.External.Api.User user_; + /// + /// User object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.Api.User User { + get { return user_; } + set { + user_ = 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"); + } + } + + /// Field number for the "organizations" field. + public const int OrganizationsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_organizations_codec + = pb::FieldCodec.ForMessage(26, global::Chirpstack.ApplicationServer.External.Api.UserOrganization.Parser); + private readonly pbc::RepeatedField organizations_ = new pbc::RepeatedField(); + /// + /// Add the user to the following organizations. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Organizations { + get { return organizations_; } + } + + [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(!organizations_.Equals(other.organizations_)) return false; + 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 ^= organizations_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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); + } + organizations_.WriteTo(output, _repeated_organizations_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); + } + organizations_.WriteTo(ref output, _repeated_organizations_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 += organizations_.CalculateSize(_repeated_organizations_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.ApplicationServer.External.Api.User(); + } + User.MergeFrom(other.User); + } + if (other.Password.Length != 0) { + Password = other.Password; + } + organizations_.Add(other.organizations_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ApplicationServer.External.Api.User(); + } + input.ReadMessage(User); + break; + } + case 18: { + Password = input.ReadString(); + break; + } + case 26: { + organizations_.AddEntriesFrom(input, _repeated_organizations_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.ApplicationServer.External.Api.User(); + } + input.ReadMessage(User); + break; + } + case 18: { + Password = input.ReadString(); + break; + } + case 26: { + organizations_.AddEntriesFrom(ref input, _repeated_organizations_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.ApplicationServer.External.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 long id_; + /// + /// User ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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 8: { + Id = 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 8: { + Id = input.ReadInt64(); + 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.ApplicationServer.External.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 long id_; + /// + /// User ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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 8: { + Id = 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 8: { + Id = input.ReadInt64(); + 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.ApplicationServer.External.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.ApplicationServer.External.Api.User user_; + /// + /// User object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.User user_; + /// + /// User object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.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 long id_; + /// + /// User ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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 8: { + Id = 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 8: { + Id = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListUserRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListUserRequest(ListUserRequest 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 ListUserRequest Clone() { + return new ListUserRequest(this); + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 1; + private long limit_; + /// + /// Max number of user to return in the result-set. + /// + [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 = 2; + private long offset_; + /// + /// Offset in 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 ListUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListUserRequest 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 != 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 (Limit != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + 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 (Limit != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Limit); + } + if (Offset != 0L) { + output.WriteRawTag(16); + 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 (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(ListUserRequest other) { + if (other == null) { + return; + } + 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 8: { + Limit = input.ReadInt64(); + break; + } + case 16: { + 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 8: { + Limit = input.ReadInt64(); + break; + } + case 16: { + Offset = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListUserResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListUserResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.External.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 ListUserResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListUserResponse(ListUserResponse 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 ListUserResponse Clone() { + return new ListUserResponse(this); + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 1; + private long totalCount_; + /// + /// Total number of users. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long 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.ApplicationServer.External.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 ListUserResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListUserResponse 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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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(ListUserResponse other) { + if (other == null) { + return; + } + if (other.TotalCount != 0L) { + 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.ReadInt64(); + 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.ReadInt64(); + 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.ApplicationServer.External.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 long userId_; + /// + /// User ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long UserId { + get { return userId_; } + set { + userId_ = value; + } + } + + /// Field number for the "password" field. + public const int PasswordFieldNumber = 2; + private string password_ = ""; + /// + /// New pasword. + /// + [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 != 0L) 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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(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 != 0L) { + 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 8: { + UserId = input.ReadInt64(); + 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 8: { + UserId = input.ReadInt64(); + break; + } + case 18: { + Password = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/as/external/api/UserGrpc.cs b/csharp/protobuf/as/external/api/UserGrpc.cs new file mode 100644 index 00000000..4320f6e0 --- /dev/null +++ b/csharp/protobuf/as/external/api/UserGrpc.cs @@ -0,0 +1,558 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/external/api/user.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.ApplicationServer.External.Api { + /// + /// UserService is the service managing the user access. + /// + 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_ListUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListUserRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_api_ListUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.ApplicationServer.External.Api.ListUserResponse.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.ApplicationServer.External.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.ApplicationServer.External.Api.GetUserResponse.Parser)); + [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.ApplicationServer.External.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.ApplicationServer.External.Api.CreateUserResponse.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.ApplicationServer.External.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.ApplicationServer.External.Api.DeleteUserRequest.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.ApplicationServer.External.Api.UpdateUserPasswordRequest.Parser)); + + [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_ListUserRequest, + __Marshaller_api_ListUserResponse); + + [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_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_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_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.ApplicationServer.External.Api.UserReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of UserService + [grpc::BindServiceMethod(typeof(UserService), "BindService")] + public abstract partial class UserServiceBase + { + /// + /// Get user list. + /// + /// 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.ApplicationServer.External.Api.ListUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get data for a particular 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 Get(global::Chirpstack.ApplicationServer.External.Api.GetUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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.ApplicationServer.External.Api.CreateUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update an existing 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.ApplicationServer.External.Api.UpdateUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete 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 Delete(global::Chirpstack.ApplicationServer.External.Api.DeleteUserRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdatePassword updates a password. + /// + /// 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.ApplicationServer.External.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) + { + } + + /// + /// Get user list. + /// + /// 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.ApplicationServer.External.Api.ListUserResponse List(global::Chirpstack.ApplicationServer.External.Api.ListUserRequest 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 user list. + /// + /// 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.ApplicationServer.External.Api.ListUserResponse List(global::Chirpstack.ApplicationServer.External.Api.ListUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); + } + /// + /// Get user list. + /// + /// 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.ApplicationServer.External.Api.ListUserRequest 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 user list. + /// + /// 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.ApplicationServer.External.Api.ListUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); + } + /// + /// Get data for a particular 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.ApplicationServer.External.Api.GetUserResponse Get(global::Chirpstack.ApplicationServer.External.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 data for a particular 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.ApplicationServer.External.Api.GetUserResponse Get(global::Chirpstack.ApplicationServer.External.Api.GetUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); + } + /// + /// Get data for a particular 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 GetAsync(global::Chirpstack.ApplicationServer.External.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 data for a particular 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 GetAsync(global::Chirpstack.ApplicationServer.External.Api.GetUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Get, 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 response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Chirpstack.ApplicationServer.External.Api.CreateUserResponse Create(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.Api.CreateUserResponse Create(global::Chirpstack.ApplicationServer.External.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.ApplicationServer.External.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.ApplicationServer.External.Api.CreateUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); + } + /// + /// Update an existing 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.ApplicationServer.External.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 an existing 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.ApplicationServer.External.Api.UpdateUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); + } + /// + /// Update an existing 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.ApplicationServer.External.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 an existing 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.ApplicationServer.External.Api.UpdateUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); + } + /// + /// Delete 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::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.ApplicationServer.External.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 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::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.ApplicationServer.External.Api.DeleteUserRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); + } + /// + /// Delete 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 DeleteAsync(global::Chirpstack.ApplicationServer.External.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 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 DeleteAsync(global::Chirpstack.ApplicationServer.External.Api.DeleteUserRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); + } + /// + /// UpdatePassword updates a password. + /// + /// 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.ApplicationServer.External.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)); + } + /// + /// UpdatePassword updates a password. + /// + /// 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.ApplicationServer.External.Api.UpdateUserPasswordRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdatePassword, null, options, request); + } + /// + /// UpdatePassword updates a password. + /// + /// 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.ApplicationServer.External.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)); + } + /// + /// UpdatePassword updates a password. + /// + /// 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.ApplicationServer.External.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_List, serviceImpl.List) + .AddMethod(__Method_Get, serviceImpl.Get) + .AddMethod(__Method_Create, serviceImpl.Create) + .AddMethod(__Method_Update, serviceImpl.Update) + .AddMethod(__Method_Delete, serviceImpl.Delete) + .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_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); + serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); + serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); + 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_UpdatePassword, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdatePassword)); + } + + } +} +#endregion diff --git a/csharp/protobuf/as/integration/Integration.cs b/csharp/protobuf/as/integration/Integration.cs new file mode 100644 index 00000000..76532db6 --- /dev/null +++ b/csharp/protobuf/as/integration/Integration.cs @@ -0,0 +1,4694 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: as/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.ApplicationServer.Integration { + + /// Holder for reflection information generated from as/integration/integration.proto + public static partial class IntegrationReflection { + + #region Descriptor + /// File descriptor for as/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( + "CiBhcy9pbnRlZ3JhdGlvbi9pbnRlZ3JhdGlvbi5wcm90bxILaW50ZWdyYXRp", + "b24aE2NvbW1vbi9jb21tb24ucHJvdG8aC2d3L2d3LnByb3RvGh9nb29nbGUv", + "cHJvdG9idWYvdGltZXN0YW1wLnByb3RvIq8ECgtVcGxpbmtFdmVudBIlCg5h", + "cHBsaWNhdGlvbl9pZBgBIAEoBFINYXBwbGljYXRpb25JRBIYChBhcHBsaWNh", + "dGlvbl9uYW1lGAIgASgJEhMKC2RldmljZV9uYW1lGAMgASgJEhcKB2Rldl9l", + "dWkYBCABKAxSBmRldkVVSRIhCgdyeF9pbmZvGAUgAygLMhAuZ3cuVXBsaW5r", + "UlhJbmZvEiEKB3R4X2luZm8YBiABKAsyEC5ndy5VcGxpbmtUWEluZm8SCwoD", + "YWRyGAcgASgIEgoKAmRyGAggASgNEg0KBWZfY250GAkgASgNEg4KBmZfcG9y", + "dBgKIAEoDRIMCgRkYXRhGAsgASgMEh8KC29iamVjdF9qc29uGAwgASgJUgpv", + "YmplY3RKU09OEjAKBHRhZ3MYDSADKAsyIi5pbnRlZ3JhdGlvbi5VcGxpbmtF", + "dmVudC5UYWdzRW50cnkSGAoQY29uZmlybWVkX3VwbGluaxgOIAEoCBIQCghk", + "ZXZfYWRkchgPIAEoDBIwCgxwdWJsaXNoZWRfYXQYECABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wEioKEWRldmljZV9wcm9maWxlX2lkGBEgASgJ", + "Ug9kZXZpY2VQcm9maWxlSUQSGwoTZGV2aWNlX3Byb2ZpbGVfbmFtZRgSIAEo", + "CRorCglUYWdzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4", + "ASLtAgoJSm9pbkV2ZW50EiUKDmFwcGxpY2F0aW9uX2lkGAEgASgEUg1hcHBs", + "aWNhdGlvbklEEhgKEGFwcGxpY2F0aW9uX25hbWUYAiABKAkSEwoLZGV2aWNl", + "X25hbWUYAyABKAkSFwoHZGV2X2V1aRgEIAEoDFIGZGV2RVVJEhAKCGRldl9h", + "ZGRyGAUgASgMEiEKB3J4X2luZm8YBiADKAsyEC5ndy5VcGxpbmtSWEluZm8S", + "IQoHdHhfaW5mbxgHIAEoCzIQLmd3LlVwbGlua1RYSW5mbxIKCgJkchgIIAEo", + "DRIuCgR0YWdzGAkgAygLMiAuaW50ZWdyYXRpb24uSm9pbkV2ZW50LlRhZ3NF", + "bnRyeRIwCgxwdWJsaXNoZWRfYXQYCiABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wGisKCVRhZ3NFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY", + "AiABKAk6AjgBIqwCCghBY2tFdmVudBIlCg5hcHBsaWNhdGlvbl9pZBgBIAEo", + "BFINYXBwbGljYXRpb25JRBIYChBhcHBsaWNhdGlvbl9uYW1lGAIgASgJEhMK", + "C2RldmljZV9uYW1lGAMgASgJEhcKB2Rldl9ldWkYBCABKAxSBmRldkVVSRIU", + "CgxhY2tub3dsZWRnZWQYBSABKAgSDQoFZl9jbnQYBiABKA0SLQoEdGFncxgH", + "IAMoCzIfLmludGVncmF0aW9uLkFja0V2ZW50LlRhZ3NFbnRyeRIwCgxwdWJs", + "aXNoZWRfYXQYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wGisK", + "CVRhZ3NFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIt4C", + "CgpUeEFja0V2ZW50EiUKDmFwcGxpY2F0aW9uX2lkGAEgASgEUg1hcHBsaWNh", + "dGlvbklEEhgKEGFwcGxpY2F0aW9uX25hbWUYAiABKAkSEwoLZGV2aWNlX25h", + "bWUYAyABKAkSFwoHZGV2X2V1aRgEIAEoDFIGZGV2RVVJEg0KBWZfY250GAUg", + "ASgNEi8KBHRhZ3MYBiADKAsyIS5pbnRlZ3JhdGlvbi5UeEFja0V2ZW50LlRh", + "Z3NFbnRyeRIdCgpnYXRld2F5X2lkGAcgASgMUglnYXRld2F5SUQSIwoHdHhf", + "aW5mbxgIIAEoCzISLmd3LkRvd25saW5rVFhJbmZvEjAKDHB1Ymxpc2hlZF9h", + "dBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAaKwoJVGFnc0Vu", + "dHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEizwIKCkVycm9y", + "RXZlbnQSJQoOYXBwbGljYXRpb25faWQYASABKARSDWFwcGxpY2F0aW9uSUQS", + "GAoQYXBwbGljYXRpb25fbmFtZRgCIAEoCRITCgtkZXZpY2VfbmFtZRgDIAEo", + "CRIXCgdkZXZfZXVpGAQgASgMUgZkZXZFVUkSJAoEdHlwZRgFIAEoDjIWLmlu", + "dGVncmF0aW9uLkVycm9yVHlwZRINCgVlcnJvchgGIAEoCRINCgVmX2NudBgH", + "IAEoDRIvCgR0YWdzGAggAygLMiEuaW50ZWdyYXRpb24uRXJyb3JFdmVudC5U", + "YWdzRW50cnkSMAoMcHVibGlzaGVkX2F0GAkgASgLMhouZ29vZ2xlLnByb3Rv", + "YnVmLlRpbWVzdGFtcBorCglUYWdzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZh", + "bHVlGAIgASgJOgI4ASL2AgoLU3RhdHVzRXZlbnQSJQoOYXBwbGljYXRpb25f", + "aWQYASABKARSDWFwcGxpY2F0aW9uSUQSGAoQYXBwbGljYXRpb25fbmFtZRgC", + "IAEoCRITCgtkZXZpY2VfbmFtZRgDIAEoCRIXCgdkZXZfZXVpGAQgASgMUgZk", + "ZXZFVUkSDgoGbWFyZ2luGAUgASgFEh0KFWV4dGVybmFsX3Bvd2VyX3NvdXJj", + "ZRgGIAEoCBIhChliYXR0ZXJ5X2xldmVsX3VuYXZhaWxhYmxlGAcgASgIEhUK", + "DWJhdHRlcnlfbGV2ZWwYCCABKAISMAoEdGFncxgJIAMoCzIiLmludGVncmF0", + "aW9uLlN0YXR1c0V2ZW50LlRhZ3NFbnRyeRIwCgxwdWJsaXNoZWRfYXQYCiAB", + "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wGisKCVRhZ3NFbnRyeRIL", + "CgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIuMCCg1Mb2NhdGlvbkV2", + "ZW50EiUKDmFwcGxpY2F0aW9uX2lkGAEgASgEUg1hcHBsaWNhdGlvbklEEhgK", + "EGFwcGxpY2F0aW9uX25hbWUYAiABKAkSEwoLZGV2aWNlX25hbWUYAyABKAkS", + "FwoHZGV2X2V1aRgEIAEoDFIGZGV2RVVJEiIKCGxvY2F0aW9uGAUgASgLMhAu", + "Y29tbW9uLkxvY2F0aW9uEjIKBHRhZ3MYBiADKAsyJC5pbnRlZ3JhdGlvbi5M", + "b2NhdGlvbkV2ZW50LlRhZ3NFbnRyeRIdCgp1cGxpbmtfaWRzGAcgAygMUgl1", + "cGxpbmtJRHMSDQoFZl9jbnQYCCABKA0SMAoMcHVibGlzaGVkX2F0GAkgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBorCglUYWdzRW50cnkSCwoD", + "a2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASLmAgoQSW50ZWdyYXRpb25F", + "dmVudBIlCg5hcHBsaWNhdGlvbl9pZBgBIAEoBFINYXBwbGljYXRpb25JRBIY", + "ChBhcHBsaWNhdGlvbl9uYW1lGAIgASgJEhMKC2RldmljZV9uYW1lGAMgASgJ", + "EhcKB2Rldl9ldWkYBCABKAxSBmRldkVVSRI1CgR0YWdzGAUgAygLMicuaW50", + "ZWdyYXRpb24uSW50ZWdyYXRpb25FdmVudC5UYWdzRW50cnkSGAoQaW50ZWdy", + "YXRpb25fbmFtZRgGIAEoCRISCgpldmVudF90eXBlGAcgASgJEh8KC29iamVj", + "dF9qc29uGAggASgJUgpvYmplY3RKU09OEjAKDHB1Ymxpc2hlZF9hdBgJIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAaKwoJVGFnc0VudHJ5EgsK", + "A2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEq0wEKCUVycm9yVHlwZRIL", + "CgdVTktOT1dOEAASGQoVRE9XTkxJTktfUEFZTE9BRF9TSVpFEAESEQoNRE9X", + "TkxJTktfRkNOVBACEhAKDFVQTElOS19DT0RFQxADEhIKDkRPV05MSU5LX0NP", + "REVDEAQSCAoET1RBQRAFEhUKEVVQTElOS19GQ05UX1JFU0VUEAYSDgoKVVBM", + "SU5LX01JQxAHEh4KGlVQTElOS19GQ05UX1JFVFJBTlNNSVNTSU9OEAgSFAoQ", + "RE9XTkxJTktfR0FURVdBWRAJQpkBCiBpby5jaGlycHN0YWNrLmFwaS5hcy5p", + "bnRlZ3JhdGlvbkIQSW50ZWdyYXRpb25Qcm90b1ABWjZnaXRodWIuY29tL2Jy", + "b2NhYXIvY2hpcnBzdGFjay1hcGkvZ28vdjMvYXMvaW50ZWdyYXRpb26qAihD", + "aGlycHN0YWNrLkFwcGxpY2F0aW9uU2VydmVyLkludGVncmF0aW9uYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.ApplicationServer.Integration.ErrorType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.Integration.UplinkEvent), global::Chirpstack.ApplicationServer.Integration.UplinkEvent.Parser, new[]{ "ApplicationId", "ApplicationName", "DeviceName", "DevEui", "RxInfo", "TxInfo", "Adr", "Dr", "FCnt", "FPort", "Data", "ObjectJson", "Tags", "ConfirmedUplink", "DevAddr", "PublishedAt", "DeviceProfileId", "DeviceProfileName" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.Integration.JoinEvent), global::Chirpstack.ApplicationServer.Integration.JoinEvent.Parser, new[]{ "ApplicationId", "ApplicationName", "DeviceName", "DevEui", "DevAddr", "RxInfo", "TxInfo", "Dr", "Tags", "PublishedAt" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.Integration.AckEvent), global::Chirpstack.ApplicationServer.Integration.AckEvent.Parser, new[]{ "ApplicationId", "ApplicationName", "DeviceName", "DevEui", "Acknowledged", "FCnt", "Tags", "PublishedAt" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.Integration.TxAckEvent), global::Chirpstack.ApplicationServer.Integration.TxAckEvent.Parser, new[]{ "ApplicationId", "ApplicationName", "DeviceName", "DevEui", "FCnt", "Tags", "GatewayId", "TxInfo", "PublishedAt" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.Integration.ErrorEvent), global::Chirpstack.ApplicationServer.Integration.ErrorEvent.Parser, new[]{ "ApplicationId", "ApplicationName", "DeviceName", "DevEui", "Type", "Error", "FCnt", "Tags", "PublishedAt" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.Integration.StatusEvent), global::Chirpstack.ApplicationServer.Integration.StatusEvent.Parser, new[]{ "ApplicationId", "ApplicationName", "DeviceName", "DevEui", "Margin", "ExternalPowerSource", "BatteryLevelUnavailable", "BatteryLevel", "Tags", "PublishedAt" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.Integration.LocationEvent), global::Chirpstack.ApplicationServer.Integration.LocationEvent.Parser, new[]{ "ApplicationId", "ApplicationName", "DeviceName", "DevEui", "Location", "Tags", "UplinkIds", "FCnt", "PublishedAt" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.ApplicationServer.Integration.IntegrationEvent), global::Chirpstack.ApplicationServer.Integration.IntegrationEvent.Parser, new[]{ "ApplicationId", "ApplicationName", "DeviceName", "DevEui", "Tags", "IntegrationName", "EventType", "ObjectJson", "PublishedAt" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Enums + public enum ErrorType { + /// + /// 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, + /// + /// Error related to the downlink frame-counter. + /// Usually seen when the frame-counter has already been used. + /// + [pbr::OriginalName("DOWNLINK_FCNT")] DownlinkFcnt = 2, + /// + /// Uplink codec error. + /// + [pbr::OriginalName("UPLINK_CODEC")] UplinkCodec = 3, + /// + /// Downlink codec error. + /// + [pbr::OriginalName("DOWNLINK_CODEC")] DownlinkCodec = 4, + /// + /// OTAA error. + /// + [pbr::OriginalName("OTAA")] Otaa = 5, + /// + /// Uplink frame-counter was reset. + /// + [pbr::OriginalName("UPLINK_FCNT_RESET")] UplinkFcntReset = 6, + /// + /// Uplink MIC error. + /// + [pbr::OriginalName("UPLINK_MIC")] UplinkMic = 7, + /// + /// Uplink frame-counter retransmission. + /// + [pbr::OriginalName("UPLINK_FCNT_RETRANSMISSION")] UplinkFcntRetransmission = 8, + /// + /// Downlink gateway error. + /// + [pbr::OriginalName("DOWNLINK_GATEWAY")] DownlinkGateway = 9, + } + + #endregion + + #region Messages + /// + /// 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.ApplicationServer.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 UplinkEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkEvent(UplinkEvent other) : this() { + applicationId_ = other.applicationId_; + applicationName_ = other.applicationName_; + deviceName_ = other.deviceName_; + devEui_ = other.devEui_; + rxInfo_ = other.rxInfo_.Clone(); + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + adr_ = other.adr_; + dr_ = other.dr_; + fCnt_ = other.fCnt_; + fPort_ = other.fPort_; + data_ = other.data_; + objectJson_ = other.objectJson_; + tags_ = other.tags_.Clone(); + confirmedUplink_ = other.confirmedUplink_; + devAddr_ = other.devAddr_; + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.Clone() : null; + deviceProfileId_ = other.deviceProfileId_; + deviceProfileName_ = other.deviceProfileName_; + _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 "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private ulong applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "application_name" field. + public const int ApplicationNameFieldNumber = 2; + 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_name" field. + public const int DeviceNameFieldNumber = 3; + 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 = 4; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "rx_info" field. + public const int RxInfoFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_rxInfo_codec + = pb::FieldCodec.ForMessage(42, 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 = 6; + private global::Chirpstack.Gateway.UplinkTXInfo txInfo_; + /// + /// TX info. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.UplinkTXInfo TxInfo { + get { return txInfo_; } + set { + txInfo_ = value; + } + } + + /// Field number for the "adr" field. + public const int AdrFieldNumber = 7; + 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 = 8; + 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 = 9; + 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 = 10; + 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 "data" field. + public const int DataFieldNumber = 11; + 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_json" field. + public const int ObjectJsonFieldNumber = 12; + private string objectJson_ = ""; + /// + /// JSON string containing the decoded 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 string ObjectJson { + get { return objectJson_; } + set { + objectJson_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 13; + private static readonly pbc::MapField.Codec _map_tags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 106); + private readonly pbc::MapField tags_ = new pbc::MapField(); + /// + /// User-defined device tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Tags { + get { return tags_; } + } + + /// Field number for the "confirmed_uplink" field. + public const int ConfirmedUplinkFieldNumber = 14; + private bool confirmedUplink_; + /// + /// Uplink was of type confirmed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ConfirmedUplink { + get { return confirmedUplink_; } + set { + confirmedUplink_ = value; + } + } + + /// Field number for the "dev_addr" field. + public const int DevAddrFieldNumber = 15; + private pb::ByteString devAddr_ = pb::ByteString.Empty; + /// + /// Device address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevAddr { + get { return devAddr_; } + set { + devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "published_at" field. + public const int PublishedAtFieldNumber = 16; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = value; + } + } + + /// Field number for the "device_profile_id" field. + public const int DeviceProfileIdFieldNumber = 17; + private string deviceProfileId_ = ""; + /// + /// Device Profile UUID as string + /// + [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 = 18; + 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"); + } + } + + [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 (ApplicationId != other.ApplicationId) return false; + if (ApplicationName != other.ApplicationName) return false; + if (DeviceName != other.DeviceName) return false; + if (DevEui != other.DevEui) return false; + if(!rxInfo_.Equals(other.rxInfo_)) return false; + if (!object.Equals(TxInfo, other.TxInfo)) 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 (Data != other.Data) return false; + if (ObjectJson != other.ObjectJson) return false; + if (!Tags.Equals(other.Tags)) return false; + if (ConfirmedUplink != other.ConfirmedUplink) return false; + if (DevAddr != other.DevAddr) return false; + if (!object.Equals(PublishedAt, other.PublishedAt)) return false; + if (DeviceProfileId != other.DeviceProfileId) return false; + if (DeviceProfileName != other.DeviceProfileName) return false; + 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 != 0UL) hash ^= ApplicationId.GetHashCode(); + if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); + if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + hash ^= rxInfo_.GetHashCode(); + if (txInfo_ != null) hash ^= TxInfo.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 (Data.Length != 0) hash ^= Data.GetHashCode(); + if (ObjectJson.Length != 0) hash ^= ObjectJson.GetHashCode(); + hash ^= Tags.GetHashCode(); + if (ConfirmedUplink != false) hash ^= ConfirmedUplink.GetHashCode(); + if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); + if (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (DeviceProfileId.Length != 0) hash ^= DeviceProfileId.GetHashCode(); + if (DeviceProfileName.Length != 0) hash ^= DeviceProfileName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + rxInfo_.WriteTo(output, _repeated_rxInfo_codec); + if (txInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(TxInfo); + } + if (Adr != false) { + output.WriteRawTag(56); + output.WriteBool(Adr); + } + if (Dr != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Dr); + } + if (FCnt != 0) { + output.WriteRawTag(72); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(80); + output.WriteUInt32(FPort); + } + if (Data.Length != 0) { + output.WriteRawTag(90); + output.WriteBytes(Data); + } + if (ObjectJson.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ObjectJson); + } + tags_.WriteTo(output, _map_tags_codec); + if (ConfirmedUplink != false) { + output.WriteRawTag(112); + output.WriteBool(ConfirmedUplink); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(122); + output.WriteBytes(DevAddr); + } + if (publishedAt_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(PublishedAt); + } + if (DeviceProfileId.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(DeviceProfileId); + } + if (DeviceProfileName.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(DeviceProfileName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + rxInfo_.WriteTo(ref output, _repeated_rxInfo_codec); + if (txInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(TxInfo); + } + if (Adr != false) { + output.WriteRawTag(56); + output.WriteBool(Adr); + } + if (Dr != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Dr); + } + if (FCnt != 0) { + output.WriteRawTag(72); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(80); + output.WriteUInt32(FPort); + } + if (Data.Length != 0) { + output.WriteRawTag(90); + output.WriteBytes(Data); + } + if (ObjectJson.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ObjectJson); + } + tags_.WriteTo(ref output, _map_tags_codec); + if (ConfirmedUplink != false) { + output.WriteRawTag(112); + output.WriteBool(ConfirmedUplink); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(122); + output.WriteBytes(DevAddr); + } + if (publishedAt_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(PublishedAt); + } + if (DeviceProfileId.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(DeviceProfileId); + } + if (DeviceProfileName.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(DeviceProfileName); + } + if (_unknownFields != 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 != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApplicationId); + } + if (ApplicationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationName); + } + if (DeviceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + size += rxInfo_.CalculateSize(_repeated_rxInfo_codec); + if (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + 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 (Data.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); + } + if (ObjectJson.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ObjectJson); + } + size += tags_.CalculateSize(_map_tags_codec); + if (ConfirmedUplink != false) { + size += 1 + 1; + } + if (DevAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevAddr); + } + if (publishedAt_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + if (DeviceProfileId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileId); + } + if (DeviceProfileName.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileName); + } + 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.ApplicationId != 0UL) { + ApplicationId = other.ApplicationId; + } + if (other.ApplicationName.Length != 0) { + ApplicationName = other.ApplicationName; + } + if (other.DeviceName.Length != 0) { + DeviceName = other.DeviceName; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + rxInfo_.Add(other.rxInfo_); + if (other.txInfo_ != null) { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + TxInfo.MergeFrom(other.TxInfo); + } + 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.Data.Length != 0) { + Data = other.Data; + } + if (other.ObjectJson.Length != 0) { + ObjectJson = other.ObjectJson; + } + tags_.Add(other.tags_); + if (other.ConfirmedUplink != false) { + ConfirmedUplink = other.ConfirmedUplink; + } + if (other.DevAddr.Length != 0) { + DevAddr = other.DevAddr; + } + if (other.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + if (other.DeviceProfileId.Length != 0) { + DeviceProfileId = other.DeviceProfileId; + } + if (other.DeviceProfileName.Length != 0) { + DeviceProfileName = other.DeviceProfileName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 42: { + rxInfo_.AddEntriesFrom(input, _repeated_rxInfo_codec); + break; + } + case 50: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 56: { + Adr = input.ReadBool(); + break; + } + case 64: { + Dr = input.ReadUInt32(); + break; + } + case 72: { + FCnt = input.ReadUInt32(); + break; + } + case 80: { + FPort = input.ReadUInt32(); + break; + } + case 90: { + Data = input.ReadBytes(); + break; + } + case 98: { + ObjectJson = input.ReadString(); + break; + } + case 106: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 112: { + ConfirmedUplink = input.ReadBool(); + break; + } + case 122: { + DevAddr = input.ReadBytes(); + break; + } + case 130: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + case 138: { + DeviceProfileId = input.ReadString(); + break; + } + case 146: { + DeviceProfileName = 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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 42: { + rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); + break; + } + case 50: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 56: { + Adr = input.ReadBool(); + break; + } + case 64: { + Dr = input.ReadUInt32(); + break; + } + case 72: { + FCnt = input.ReadUInt32(); + break; + } + case 80: { + FPort = input.ReadUInt32(); + break; + } + case 90: { + Data = input.ReadBytes(); + break; + } + case 98: { + ObjectJson = input.ReadString(); + break; + } + case 106: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 112: { + ConfirmedUplink = input.ReadBool(); + break; + } + case 122: { + DevAddr = input.ReadBytes(); + break; + } + case 130: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + case 138: { + DeviceProfileId = input.ReadString(); + break; + } + case 146: { + DeviceProfileName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// JoinEvent is the message sent when a device joined the network. + /// Note that this is only sent after the first received uplink after the + /// device (re)activation. + /// + 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.ApplicationServer.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 JoinEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JoinEvent(JoinEvent other) : this() { + applicationId_ = other.applicationId_; + applicationName_ = other.applicationName_; + deviceName_ = other.deviceName_; + devEui_ = other.devEui_; + devAddr_ = other.devAddr_; + rxInfo_ = other.rxInfo_.Clone(); + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + dr_ = other.dr_; + tags_ = other.tags_.Clone(); + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JoinEvent Clone() { + return new JoinEvent(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private ulong applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "application_name" field. + public const int ApplicationNameFieldNumber = 2; + 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_name" field. + public const int DeviceNameFieldNumber = 3; + 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 = 4; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dev_addr" field. + public const int DevAddrFieldNumber = 5; + private pb::ByteString devAddr_ = pb::ByteString.Empty; + /// + /// Device address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevAddr { + get { return devAddr_; } + set { + devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "rx_info" field. + public const int RxInfoFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_rxInfo_codec + = pb::FieldCodec.ForMessage(50, 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 = 7; + private global::Chirpstack.Gateway.UplinkTXInfo txInfo_; + /// + /// TX info. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.UplinkTXInfo TxInfo { + get { return txInfo_; } + set { + txInfo_ = value; + } + } + + /// Field number for the "dr" field. + public const int DrFieldNumber = 8; + 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 "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(); + /// + /// User-defined device tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Tags { + get { return tags_; } + } + + /// Field number for the "published_at" field. + public const int PublishedAtFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = 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 (ApplicationId != other.ApplicationId) return false; + if (ApplicationName != other.ApplicationName) return false; + if (DeviceName != other.DeviceName) return false; + if (DevEui != other.DevEui) return false; + if (DevAddr != other.DevAddr) return false; + if(!rxInfo_.Equals(other.rxInfo_)) return false; + if (!object.Equals(TxInfo, other.TxInfo)) return false; + if (Dr != other.Dr) return false; + if (!Tags.Equals(other.Tags)) return false; + if (!object.Equals(PublishedAt, other.PublishedAt)) return false; + 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 != 0UL) hash ^= ApplicationId.GetHashCode(); + if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); + if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); + hash ^= rxInfo_.GetHashCode(); + if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); + if (Dr != 0) hash ^= Dr.GetHashCode(); + hash ^= Tags.GetHashCode(); + if (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(DevAddr); + } + rxInfo_.WriteTo(output, _repeated_rxInfo_codec); + if (txInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(TxInfo); + } + if (Dr != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Dr); + } + tags_.WriteTo(output, _map_tags_codec); + if (publishedAt_ != null) { + output.WriteRawTag(82); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(DevAddr); + } + rxInfo_.WriteTo(ref output, _repeated_rxInfo_codec); + if (txInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(TxInfo); + } + if (Dr != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Dr); + } + tags_.WriteTo(ref output, _map_tags_codec); + if (publishedAt_ != null) { + output.WriteRawTag(82); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != 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 != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApplicationId); + } + if (ApplicationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationName); + } + if (DeviceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (DevAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevAddr); + } + size += rxInfo_.CalculateSize(_repeated_rxInfo_codec); + if (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + if (Dr != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Dr); + } + size += tags_.CalculateSize(_map_tags_codec); + if (publishedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + 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.ApplicationId != 0UL) { + ApplicationId = other.ApplicationId; + } + if (other.ApplicationName.Length != 0) { + ApplicationName = other.ApplicationName; + } + if (other.DeviceName.Length != 0) { + DeviceName = other.DeviceName; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.DevAddr.Length != 0) { + DevAddr = other.DevAddr; + } + rxInfo_.Add(other.rxInfo_); + if (other.txInfo_ != null) { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + TxInfo.MergeFrom(other.TxInfo); + } + if (other.Dr != 0) { + Dr = other.Dr; + } + tags_.Add(other.tags_); + if (other.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 42: { + DevAddr = input.ReadBytes(); + break; + } + case 50: { + rxInfo_.AddEntriesFrom(input, _repeated_rxInfo_codec); + break; + } + case 58: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 64: { + Dr = input.ReadUInt32(); + break; + } + case 74: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 82: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 42: { + DevAddr = input.ReadBytes(); + break; + } + case 50: { + rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); + break; + } + case 58: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 64: { + Dr = input.ReadUInt32(); + break; + } + case 74: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 82: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + 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.ApplicationServer.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 AckEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AckEvent(AckEvent other) : this() { + applicationId_ = other.applicationId_; + applicationName_ = other.applicationName_; + deviceName_ = other.deviceName_; + devEui_ = other.devEui_; + acknowledged_ = other.acknowledged_; + fCnt_ = other.fCnt_; + tags_ = other.tags_.Clone(); + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.Clone() : null; + _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 "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private ulong applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "application_name" field. + public const int ApplicationNameFieldNumber = 2; + 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_name" field. + public const int DeviceNameFieldNumber = 3; + 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 = 4; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = 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" field. + public const int FCntFieldNumber = 6; + private uint fCnt_; + /// + /// Downlink frame counter to which the acknowledgement relates. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FCnt { + get { return fCnt_; } + set { + fCnt_ = value; + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 7; + private static readonly pbc::MapField.Codec _map_tags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 58); + private readonly pbc::MapField tags_ = new pbc::MapField(); + /// + /// User-defined device tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Tags { + get { return tags_; } + } + + /// Field number for the "published_at" field. + public const int PublishedAtFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = 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 (ApplicationId != other.ApplicationId) return false; + if (ApplicationName != other.ApplicationName) return false; + if (DeviceName != other.DeviceName) return false; + if (DevEui != other.DevEui) return false; + if (Acknowledged != other.Acknowledged) return false; + if (FCnt != other.FCnt) return false; + if (!Tags.Equals(other.Tags)) return false; + if (!object.Equals(PublishedAt, other.PublishedAt)) return false; + 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 != 0UL) hash ^= ApplicationId.GetHashCode(); + if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); + if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (Acknowledged != false) hash ^= Acknowledged.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.GetHashCode(); + hash ^= Tags.GetHashCode(); + if (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + if (Acknowledged != false) { + output.WriteRawTag(40); + output.WriteBool(Acknowledged); + } + if (FCnt != 0) { + output.WriteRawTag(48); + output.WriteUInt32(FCnt); + } + tags_.WriteTo(output, _map_tags_codec); + if (publishedAt_ != null) { + output.WriteRawTag(66); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + if (Acknowledged != false) { + output.WriteRawTag(40); + output.WriteBool(Acknowledged); + } + if (FCnt != 0) { + output.WriteRawTag(48); + output.WriteUInt32(FCnt); + } + tags_.WriteTo(ref output, _map_tags_codec); + if (publishedAt_ != null) { + output.WriteRawTag(66); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != 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 != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApplicationId); + } + if (ApplicationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationName); + } + if (DeviceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (Acknowledged != false) { + size += 1 + 1; + } + if (FCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); + } + size += tags_.CalculateSize(_map_tags_codec); + if (publishedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + 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.ApplicationId != 0UL) { + ApplicationId = other.ApplicationId; + } + if (other.ApplicationName.Length != 0) { + ApplicationName = other.ApplicationName; + } + if (other.DeviceName.Length != 0) { + DeviceName = other.DeviceName; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.Acknowledged != false) { + Acknowledged = other.Acknowledged; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + tags_.Add(other.tags_); + if (other.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 40: { + Acknowledged = input.ReadBool(); + break; + } + case 48: { + FCnt = input.ReadUInt32(); + break; + } + case 58: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 66: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 40: { + Acknowledged = input.ReadBool(); + break; + } + case 48: { + FCnt = input.ReadUInt32(); + break; + } + case 58: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 66: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + 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.ApplicationServer.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 TxAckEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TxAckEvent(TxAckEvent other) : this() { + applicationId_ = other.applicationId_; + applicationName_ = other.applicationName_; + deviceName_ = other.deviceName_; + devEui_ = other.devEui_; + fCnt_ = other.fCnt_; + tags_ = other.tags_.Clone(); + gatewayId_ = other.gatewayId_; + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.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 "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private ulong applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "application_name" field. + public const int ApplicationNameFieldNumber = 2; + 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_name" field. + public const int DeviceNameFieldNumber = 3; + 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 = 4; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 5; + private uint fCnt_; + /// + /// Downlink 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 "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(); + /// + /// User-defined device tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Tags { + get { return tags_; } + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 7; + 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 "tx_info" field. + public const int TxInfoFieldNumber = 8; + 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; + } + } + + /// Field number for the "published_at" field. + public const int PublishedAtFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = 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 (ApplicationId != other.ApplicationId) return false; + if (ApplicationName != other.ApplicationName) return false; + if (DeviceName != other.DeviceName) return false; + if (DevEui != other.DevEui) return false; + if (FCnt != other.FCnt) return false; + if (!Tags.Equals(other.Tags)) return false; + if (GatewayId != other.GatewayId) return false; + if (!object.Equals(TxInfo, other.TxInfo)) return false; + if (!object.Equals(PublishedAt, other.PublishedAt)) return false; + 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 != 0UL) hash ^= ApplicationId.GetHashCode(); + if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); + if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.GetHashCode(); + hash ^= Tags.GetHashCode(); + if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); + if (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + if (FCnt != 0) { + output.WriteRawTag(40); + output.WriteUInt32(FCnt); + } + tags_.WriteTo(output, _map_tags_codec); + if (GatewayId.Length != 0) { + output.WriteRawTag(58); + output.WriteBytes(GatewayId); + } + if (txInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(TxInfo); + } + if (publishedAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + if (FCnt != 0) { + output.WriteRawTag(40); + output.WriteUInt32(FCnt); + } + tags_.WriteTo(ref output, _map_tags_codec); + if (GatewayId.Length != 0) { + output.WriteRawTag(58); + output.WriteBytes(GatewayId); + } + if (txInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(TxInfo); + } + if (publishedAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != 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 != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApplicationId); + } + if (ApplicationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationName); + } + if (DeviceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (FCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); + } + size += tags_.CalculateSize(_map_tags_codec); + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayId); + } + if (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + if (publishedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + 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.ApplicationId != 0UL) { + ApplicationId = other.ApplicationId; + } + if (other.ApplicationName.Length != 0) { + ApplicationName = other.ApplicationName; + } + if (other.DeviceName.Length != 0) { + DeviceName = other.DeviceName; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + tags_.Add(other.tags_); + 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); + } + if (other.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 40: { + FCnt = input.ReadUInt32(); + break; + } + case 50: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 58: { + GatewayId = input.ReadBytes(); + break; + } + case 66: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 74: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 40: { + FCnt = input.ReadUInt32(); + break; + } + case 50: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 58: { + GatewayId = input.ReadBytes(); + break; + } + case 66: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 74: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + } + #endif + + } + + /// + /// ErrorEvent is the message sent when an error occurred. + /// + public sealed partial class ErrorEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.ApplicationServer.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 ErrorEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorEvent(ErrorEvent other) : this() { + applicationId_ = other.applicationId_; + applicationName_ = other.applicationName_; + deviceName_ = other.deviceName_; + devEui_ = other.devEui_; + type_ = other.type_; + error_ = other.error_; + fCnt_ = other.fCnt_; + tags_ = other.tags_.Clone(); + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorEvent Clone() { + return new ErrorEvent(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private ulong applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "application_name" field. + public const int ApplicationNameFieldNumber = 2; + 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_name" field. + public const int DeviceNameFieldNumber = 3; + 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 = 4; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 5; + private global::Chirpstack.ApplicationServer.Integration.ErrorType type_ = global::Chirpstack.ApplicationServer.Integration.ErrorType.Unknown; + /// + /// Error type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.ApplicationServer.Integration.ErrorType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 6; + 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"); + } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 7; + private uint fCnt_; + /// + /// Downlink frame-counter (in case the downlink is related to a scheduled downlink). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FCnt { + get { return fCnt_; } + set { + fCnt_ = value; + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 8; + private static readonly pbc::MapField.Codec _map_tags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 66); + private readonly pbc::MapField tags_ = new pbc::MapField(); + /// + /// User-defined device tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Tags { + get { return tags_; } + } + + /// Field number for the "published_at" field. + public const int PublishedAtFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) return false; + if (ApplicationName != other.ApplicationName) return false; + if (DeviceName != other.DeviceName) return false; + if (DevEui != other.DevEui) return false; + if (Type != other.Type) return false; + if (Error != other.Error) return false; + if (FCnt != other.FCnt) return false; + if (!Tags.Equals(other.Tags)) return false; + if (!object.Equals(PublishedAt, other.PublishedAt)) return false; + 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 != 0UL) hash ^= ApplicationId.GetHashCode(); + if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); + if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (Type != global::Chirpstack.ApplicationServer.Integration.ErrorType.Unknown) hash ^= Type.GetHashCode(); + if (Error.Length != 0) hash ^= Error.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.GetHashCode(); + hash ^= Tags.GetHashCode(); + if (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + if (Type != global::Chirpstack.ApplicationServer.Integration.ErrorType.Unknown) { + output.WriteRawTag(40); + output.WriteEnum((int) Type); + } + if (Error.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Error); + } + if (FCnt != 0) { + output.WriteRawTag(56); + output.WriteUInt32(FCnt); + } + tags_.WriteTo(output, _map_tags_codec); + if (publishedAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + if (Type != global::Chirpstack.ApplicationServer.Integration.ErrorType.Unknown) { + output.WriteRawTag(40); + output.WriteEnum((int) Type); + } + if (Error.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Error); + } + if (FCnt != 0) { + output.WriteRawTag(56); + output.WriteUInt32(FCnt); + } + tags_.WriteTo(ref output, _map_tags_codec); + if (publishedAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != 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 != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApplicationId); + } + if (ApplicationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationName); + } + if (DeviceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (Type != global::Chirpstack.ApplicationServer.Integration.ErrorType.Unknown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (Error.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } + if (FCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); + } + size += tags_.CalculateSize(_map_tags_codec); + if (publishedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorEvent other) { + if (other == null) { + return; + } + if (other.ApplicationId != 0UL) { + ApplicationId = other.ApplicationId; + } + if (other.ApplicationName.Length != 0) { + ApplicationName = other.ApplicationName; + } + if (other.DeviceName.Length != 0) { + DeviceName = other.DeviceName; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.Type != global::Chirpstack.ApplicationServer.Integration.ErrorType.Unknown) { + Type = other.Type; + } + if (other.Error.Length != 0) { + Error = other.Error; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + tags_.Add(other.tags_); + if (other.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 40: { + Type = (global::Chirpstack.ApplicationServer.Integration.ErrorType) input.ReadEnum(); + break; + } + case 50: { + Error = input.ReadString(); + break; + } + case 56: { + FCnt = input.ReadUInt32(); + break; + } + case 66: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 74: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 40: { + Type = (global::Chirpstack.ApplicationServer.Integration.ErrorType) input.ReadEnum(); + break; + } + case 50: { + Error = input.ReadString(); + break; + } + case 56: { + FCnt = input.ReadUInt32(); + break; + } + case 66: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 74: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + 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.ApplicationServer.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 StatusEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StatusEvent(StatusEvent other) : this() { + applicationId_ = other.applicationId_; + applicationName_ = other.applicationName_; + deviceName_ = other.deviceName_; + devEui_ = other.devEui_; + margin_ = other.margin_; + externalPowerSource_ = other.externalPowerSource_; + batteryLevelUnavailable_ = other.batteryLevelUnavailable_; + batteryLevel_ = other.batteryLevel_; + tags_ = other.tags_.Clone(); + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.Clone() : null; + _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 "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private ulong applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "application_name" field. + public const int ApplicationNameFieldNumber = 2; + 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_name" field. + public const int DeviceNameFieldNumber = 3; + 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 = 4; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "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; + } + } + + /// 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(); + /// + /// User-defined device tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Tags { + get { return tags_; } + } + + /// Field number for the "published_at" field. + public const int PublishedAtFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = 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 (ApplicationId != other.ApplicationId) return false; + if (ApplicationName != other.ApplicationName) return false; + if (DeviceName != other.DeviceName) return false; + if (DevEui != other.DevEui) 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; + if (!Tags.Equals(other.Tags)) return false; + if (!object.Equals(PublishedAt, other.PublishedAt)) return false; + 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 != 0UL) hash ^= ApplicationId.GetHashCode(); + if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); + if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.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); + hash ^= Tags.GetHashCode(); + if (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + 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); + } + tags_.WriteTo(output, _map_tags_codec); + if (publishedAt_ != null) { + output.WriteRawTag(82); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + 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); + } + tags_.WriteTo(ref output, _map_tags_codec); + if (publishedAt_ != null) { + output.WriteRawTag(82); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != 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 != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApplicationId); + } + if (ApplicationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationName); + } + if (DeviceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + 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; + } + size += tags_.CalculateSize(_map_tags_codec); + if (publishedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + 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.ApplicationId != 0UL) { + ApplicationId = other.ApplicationId; + } + if (other.ApplicationName.Length != 0) { + ApplicationName = other.ApplicationName; + } + if (other.DeviceName.Length != 0) { + DeviceName = other.DeviceName; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + 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; + } + tags_.Add(other.tags_); + if (other.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + 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; + } + case 74: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 82: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + 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; + } + case 74: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 82: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + 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.ApplicationServer.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 LocationEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocationEvent(LocationEvent other) : this() { + applicationId_ = other.applicationId_; + applicationName_ = other.applicationName_; + deviceName_ = other.deviceName_; + devEui_ = other.devEui_; + location_ = other.location_ != null ? other.location_.Clone() : null; + tags_ = other.tags_.Clone(); + uplinkIds_ = other.uplinkIds_.Clone(); + fCnt_ = other.fCnt_; + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.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 "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private ulong applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "application_name" field. + public const int ApplicationNameFieldNumber = 2; + 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_name" field. + public const int DeviceNameFieldNumber = 3; + 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 = 4; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = 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 "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(); + /// + /// User-defined device tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Tags { + get { return tags_; } + } + + /// Field number for the "uplink_ids" field. + public const int UplinkIdsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_uplinkIds_codec + = pb::FieldCodec.ForBytes(58); + private readonly pbc::RepeatedField uplinkIds_ = new pbc::RepeatedField(); + /// + /// Uplink IDs used for geolocation. + /// This is set in case the geolocation is based on the uplink meta-data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UplinkIds { + get { return uplinkIds_; } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 8; + private uint fCnt_; + /// + /// Frame counter (in case the geolocation is based on the payload). + /// This is set in case the geolocation is based on the uplink payload content. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FCnt { + get { return fCnt_; } + set { + fCnt_ = value; + } + } + + /// Field number for the "published_at" field. + public const int PublishedAtFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = 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 (ApplicationId != other.ApplicationId) return false; + if (ApplicationName != other.ApplicationName) return false; + if (DeviceName != other.DeviceName) return false; + if (DevEui != other.DevEui) return false; + if (!object.Equals(Location, other.Location)) return false; + if (!Tags.Equals(other.Tags)) return false; + if(!uplinkIds_.Equals(other.uplinkIds_)) return false; + if (FCnt != other.FCnt) return false; + if (!object.Equals(PublishedAt, other.PublishedAt)) return false; + 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 != 0UL) hash ^= ApplicationId.GetHashCode(); + if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); + if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (location_ != null) hash ^= Location.GetHashCode(); + hash ^= Tags.GetHashCode(); + hash ^= uplinkIds_.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.GetHashCode(); + if (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + if (location_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Location); + } + tags_.WriteTo(output, _map_tags_codec); + uplinkIds_.WriteTo(output, _repeated_uplinkIds_codec); + if (FCnt != 0) { + output.WriteRawTag(64); + output.WriteUInt32(FCnt); + } + if (publishedAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + if (location_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Location); + } + tags_.WriteTo(ref output, _map_tags_codec); + uplinkIds_.WriteTo(ref output, _repeated_uplinkIds_codec); + if (FCnt != 0) { + output.WriteRawTag(64); + output.WriteUInt32(FCnt); + } + if (publishedAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != 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 != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApplicationId); + } + if (ApplicationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationName); + } + if (DeviceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + size += tags_.CalculateSize(_map_tags_codec); + size += uplinkIds_.CalculateSize(_repeated_uplinkIds_codec); + if (FCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); + } + if (publishedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + 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.ApplicationId != 0UL) { + ApplicationId = other.ApplicationId; + } + if (other.ApplicationName.Length != 0) { + ApplicationName = other.ApplicationName; + } + if (other.DeviceName.Length != 0) { + DeviceName = other.DeviceName; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.location_ != null) { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + Location.MergeFrom(other.Location); + } + tags_.Add(other.tags_); + uplinkIds_.Add(other.uplinkIds_); + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + if (other.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 42: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 50: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 58: { + uplinkIds_.AddEntriesFrom(input, _repeated_uplinkIds_codec); + break; + } + case 64: { + FCnt = input.ReadUInt32(); + break; + } + case 74: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 42: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 50: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 58: { + uplinkIds_.AddEntriesFrom(ref input, _repeated_uplinkIds_codec); + break; + } + case 64: { + FCnt = input.ReadUInt32(); + break; + } + case 74: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + 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.ApplicationServer.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 IntegrationEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IntegrationEvent(IntegrationEvent other) : this() { + applicationId_ = other.applicationId_; + applicationName_ = other.applicationName_; + deviceName_ = other.deviceName_; + devEui_ = other.devEui_; + tags_ = other.tags_.Clone(); + integrationName_ = other.integrationName_; + eventType_ = other.eventType_; + objectJson_ = other.objectJson_; + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.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 "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private ulong applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "application_name" field. + public const int ApplicationNameFieldNumber = 2; + 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_name" field. + public const int DeviceNameFieldNumber = 3; + 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 = 4; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_tags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); + private readonly pbc::MapField tags_ = new pbc::MapField(); + /// + /// User-defined device tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Tags { + get { return tags_; } + } + + /// Field number for the "integration_name" field. + public const int IntegrationNameFieldNumber = 6; + 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 = 7; + 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_json" field. + public const int ObjectJsonFieldNumber = 8; + private string objectJson_ = ""; + /// + /// JSON string containing the event object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ObjectJson { + get { return objectJson_; } + set { + objectJson_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "published_at" field. + public const int PublishedAtFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = 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 (ApplicationId != other.ApplicationId) return false; + if (ApplicationName != other.ApplicationName) return false; + if (DeviceName != other.DeviceName) return false; + if (DevEui != other.DevEui) return false; + if (!Tags.Equals(other.Tags)) return false; + if (IntegrationName != other.IntegrationName) return false; + if (EventType != other.EventType) return false; + if (ObjectJson != other.ObjectJson) return false; + if (!object.Equals(PublishedAt, other.PublishedAt)) return false; + 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 != 0UL) hash ^= ApplicationId.GetHashCode(); + if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); + if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); + if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + hash ^= Tags.GetHashCode(); + if (IntegrationName.Length != 0) hash ^= IntegrationName.GetHashCode(); + if (EventType.Length != 0) hash ^= EventType.GetHashCode(); + if (ObjectJson.Length != 0) hash ^= ObjectJson.GetHashCode(); + if (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + tags_.WriteTo(output, _map_tags_codec); + if (IntegrationName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(IntegrationName); + } + if (EventType.Length != 0) { + output.WriteRawTag(58); + output.WriteString(EventType); + } + if (ObjectJson.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ObjectJson); + } + if (publishedAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ApplicationId); + } + if (ApplicationName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ApplicationName); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DevEui.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DevEui); + } + tags_.WriteTo(ref output, _map_tags_codec); + if (IntegrationName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(IntegrationName); + } + if (EventType.Length != 0) { + output.WriteRawTag(58); + output.WriteString(EventType); + } + if (ObjectJson.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ObjectJson); + } + if (publishedAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != 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 != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApplicationId); + } + if (ApplicationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationName); + } + if (DeviceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + size += tags_.CalculateSize(_map_tags_codec); + if (IntegrationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IntegrationName); + } + if (EventType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EventType); + } + if (ObjectJson.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ObjectJson); + } + if (publishedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + 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.ApplicationId != 0UL) { + ApplicationId = other.ApplicationId; + } + if (other.ApplicationName.Length != 0) { + ApplicationName = other.ApplicationName; + } + if (other.DeviceName.Length != 0) { + DeviceName = other.DeviceName; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + tags_.Add(other.tags_); + if (other.IntegrationName.Length != 0) { + IntegrationName = other.IntegrationName; + } + if (other.EventType.Length != 0) { + EventType = other.EventType; + } + if (other.ObjectJson.Length != 0) { + ObjectJson = other.ObjectJson; + } + if (other.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 42: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 50: { + IntegrationName = input.ReadString(); + break; + } + case 58: { + EventType = input.ReadString(); + break; + } + case 66: { + ObjectJson = input.ReadString(); + break; + } + case 74: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.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: { + ApplicationId = input.ReadUInt64(); + break; + } + case 18: { + ApplicationName = input.ReadString(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + DevEui = input.ReadBytes(); + break; + } + case 42: { + tags_.AddEntriesFrom(ref input, _map_tags_codec); + break; + } + case 50: { + IntegrationName = input.ReadString(); + break; + } + case 58: { + EventType = input.ReadString(); + break; + } + case 66: { + ObjectJson = input.ReadString(); + break; + } + case 74: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/common/Common.cs b/csharp/protobuf/common/Common.cs new file mode 100644 index 00000000..455ba61f --- /dev/null +++ b/csharp/protobuf/common/Common.cs @@ -0,0 +1,792 @@ +// +// 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( + "ChNjb21tb24vY29tbW9uLnByb3RvEgZjb21tb24iMQoLS2V5RW52ZWxvcGUS", + "EQoJa2VrX2xhYmVsGAEgASgJEg8KB2Flc19rZXkYAiABKAwiewoITG9jYXRp", + "b24SEAoIbGF0aXR1ZGUYASABKAESEQoJbG9uZ2l0dWRlGAIgASgBEhAKCGFs", + "dGl0dWRlGAMgASgBEiYKBnNvdXJjZRgEIAEoDjIWLmNvbW1vbi5Mb2NhdGlv", + "blNvdXJjZRIQCghhY2N1cmFjeRgFIAEoDSosCgpNb2R1bGF0aW9uEggKBExP", + "UkEQABIHCgNGU0sQARILCgdMUl9GSFNTEAIqqgEKBlJlZ2lvbhIJCgVFVTg2", + "OBAAEgkKBVVTOTE1EAISCQoFQ043NzkQAxIJCgVFVTQzMxAEEgkKBUFVOTE1", + "EAUSCQoFQ040NzAQBhIJCgVBUzkyMxAHEgsKB0FTOTIzXzIQDBILCgdBUzky", + "M18zEA0SCwoHQVM5MjNfNBAOEgkKBUtSOTIwEAgSCQoFSU44NjUQCRIJCgVS", + "VTg2NBAKEgsKB0lTTTI0MDAQCyqoAQoFTVR5cGUSDwoLSm9pblJlcXVlc3QQ", + "ABIOCgpKb2luQWNjZXB0EAESFQoRVW5jb25maXJtZWREYXRhVXAQAhIXChNV", + "bmNvbmZpcm1lZERhdGFEb3duEAMSEwoPQ29uZmlybWVkRGF0YVVwEAQSFQoR", + "Q29uZmlybWVkRGF0YURvd24QBRIRCg1SZWpvaW5SZXF1ZXN0EAYSDwoLUHJv", + "cHJpZXRhcnkQByqOAQoOTG9jYXRpb25Tb3VyY2USCwoHVU5LTk9XThAAEgcK", + "A0dQUxABEgoKBkNPTkZJRxACEhUKEUdFT19SRVNPTFZFUl9URE9BEAMSFQoR", + "R0VPX1JFU09MVkVSX1JTU0kQBBIVChFHRU9fUkVTT0xWRVJfR05TUxAFEhUK", + "EUdFT19SRVNPTFZFUl9XSUZJEAZCbQoYaW8uY2hpcnBzdGFjay5hcGkuY29t", + "bW9uQgtDb21tb25Qcm90b1ABWi5naXRodWIuY29tL2Jyb2NhYXIvY2hpcnBz", + "dGFjay1hcGkvZ28vdjMvY29tbW9uqgIRQ2hpcnBzdGFjay5Db21tb25iBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Common.Modulation), typeof(global::Chirpstack.Common.Region), typeof(global::Chirpstack.Common.MType), typeof(global::Chirpstack.Common.LocationSource), }, null, new pbr::GeneratedClrTypeInfo[] { + 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.Location), global::Chirpstack.Common.Location.Parser, new[]{ "Latitude", "Longitude", "Altitude", "Source", "Accuracy" }, 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("JoinRequest")] JoinRequest = 0, + /// + /// JoinAccept. + /// + [pbr::OriginalName("JoinAccept")] JoinAccept = 1, + /// + /// UnconfirmedDataUp. + /// + [pbr::OriginalName("UnconfirmedDataUp")] UnconfirmedDataUp = 2, + /// + /// UnconfirmedDataDown. + /// + [pbr::OriginalName("UnconfirmedDataDown")] UnconfirmedDataDown = 3, + /// + /// ConfirmedDataUp. + /// + [pbr::OriginalName("ConfirmedDataUp")] ConfirmedDataUp = 4, + /// + /// ConfirmedDataDown. + /// + [pbr::OriginalName("ConfirmedDataDown")] ConfirmedDataDown = 5, + /// + /// RejoinRequest. + /// + [pbr::OriginalName("RejoinRequest")] RejoinRequest = 6, + /// + /// Proprietary. + /// + [pbr::OriginalName("Proprietary")] Proprietary = 7, + } + + 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, + } + + #endregion + + #region Messages + 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[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 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 key is encrypted using a key + /// known to the join-server and application-server. + /// For more information please refer to the LoRaWAN Backend Interface + /// 'Key Transport Security' section. + /// + [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 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[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 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 uint accuracy_; + /// + /// Accuracy (in meters). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 (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 != 0) hash ^= Accuracy.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0) { + output.WriteRawTag(40); + output.WriteUInt32(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 != 0) { + output.WriteRawTag(40); + output.WriteUInt32(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 != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Accuracy); + } + 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 != 0) { + 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 40: { + Accuracy = 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 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 40: { + Accuracy = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/fuota/Fuota.cs b/csharp/protobuf/fuota/Fuota.cs new file mode 100644 index 00000000..02dc1477 --- /dev/null +++ b/csharp/protobuf/fuota/Fuota.cs @@ -0,0 +1,3577 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: fuota/fuota.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.Fuota { + + /// Holder for reflection information generated from fuota/fuota.proto + public static partial class FuotaReflection { + + #region Descriptor + /// File descriptor for fuota/fuota.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FuotaReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFmdW90YS9mdW90YS5wcm90bxIFZnVvdGEaH2dvb2dsZS9wcm90b2J1Zi90", + "aW1lc3RhbXAucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi9kdXJhdGlvbi5wcm90", + "byI4ChBEZXBsb3ltZW50RGV2aWNlEg8KB2Rldl9ldWkYASABKAwSEwoLbWNf", + "cm9vdF9rZXkYAiABKAwipAUKCkRlcGxveW1lbnQSFgoOYXBwbGljYXRpb25f", + "aWQYASABKAMSKAoHZGV2aWNlcxgCIAMoCzIXLmZ1b3RhLkRlcGxveW1lbnRE", + "ZXZpY2USNwoUbXVsdGljYXN0X2dyb3VwX3R5cGUYAyABKA4yGS5mdW90YS5N", + "dWx0aWNhc3RHcm91cFR5cGUSFAoMbXVsdGljYXN0X2RyGAQgASgNEiIKGm11", + "bHRpY2FzdF9waW5nX3Nsb3RfcGVyaW9kGAUgASgNEhsKE211bHRpY2FzdF9m", + "cmVxdWVuY3kYBiABKA0SGgoSbXVsdGljYXN0X2dyb3VwX2lkGAcgASgNEhkK", + "EW11bHRpY2FzdF90aW1lb3V0GAggASgNEjIKD3VuaWNhc3RfdGltZW91dBgJ", + "IAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIdChV1bmljYXN0X2F0", + "dGVtcHRfY291bnQYCiABKA0SIwobZnJhZ21lbnRhdGlvbl9mcmFnbWVudF9z", + "aXplGAsgASgNEg8KB3BheWxvYWQYDCABKAwSIAoYZnJhZ21lbnRhdGlvbl9y", + "ZWR1bmRhbmN5GA0gASgNEiMKG2ZyYWdtZW50YXRpb25fc2Vzc2lvbl9pbmRl", + "eBgOIAEoDRIcChRmcmFnbWVudGF0aW9uX21hdHJpeBgPIAEoDRIlCh1mcmFn", + "bWVudGF0aW9uX2Jsb2NrX2Fja19kZWxheRgQIAEoDRIgChhmcmFnbWVudGF0", + "aW9uX2Rlc2NyaXB0b3IYESABKAwSVgokcmVxdWVzdF9mcmFnbWVudGF0aW9u", + "X3Nlc3Npb25fc3RhdHVzGBIgASgOMiguZnVvdGEuUmVxdWVzdEZyYWdtZW50", + "YXRpb25TZXNzaW9uU3RhdHVzIkAKF0NyZWF0ZURlcGxveW1lbnRSZXF1ZXN0", + "EiUKCmRlcGxveW1lbnQYASABKAsyES5mdW90YS5EZXBsb3ltZW50IiYKGENy", + "ZWF0ZURlcGxveW1lbnRSZXNwb25zZRIKCgJpZBgBIAEoDCIoChpHZXREZXBs", + "b3ltZW50U3RhdHVzUmVxdWVzdBIKCgJpZBgBIAEoDCKKAwoWRGVwbG95bWVu", + "dERldmljZVN0YXR1cxIPCgdkZXZfZXVpGAEgASgMEi4KCmNyZWF0ZWRfYXQY", + "AiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRf", + "YXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEj8KG21jX2dy", + "b3VwX3NldHVwX2NvbXBsZXRlZF9hdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1", + "Zi5UaW1lc3RhbXASOwoXbWNfc2Vzc2lvbl9jb21wbGV0ZWRfYXQYBSABKAsy", + "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEkMKH2ZyYWdfc2Vzc2lvbl9z", + "ZXR1cF9jb21wbGV0ZWRfYXQYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", + "ZXN0YW1wEjwKGGZyYWdfc3RhdHVzX2NvbXBsZXRlZF9hdBgHIAEoCzIaLmdv", + "b2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAi7gMKG0dldERlcGxveW1lbnRTdGF0", + "dXNSZXNwb25zZRIuCgpjcmVhdGVkX2F0GAEgASgLMhouZ29vZ2xlLnByb3Rv", + "YnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnBy", + "b3RvYnVmLlRpbWVzdGFtcBI/ChttY19ncm91cF9zZXR1cF9jb21wbGV0ZWRf", + "YXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjsKF21jX3Nl", + "c3Npb25fY29tcGxldGVkX2F0GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRp", + "bWVzdGFtcBJDCh9mcmFnX3Nlc3Npb25fc2V0dXBfY29tcGxldGVkX2F0GAUg", + "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBI4ChRlbnF1ZXVlX2Nv", + "bXBsZXRlZF9hdBgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAS", + "PAoYZnJhZ19zdGF0dXNfY29tcGxldGVkX2F0GAcgASgLMhouZ29vZ2xlLnBy", + "b3RvYnVmLlRpbWVzdGFtcBI0Cg1kZXZpY2Vfc3RhdHVzGAggAygLMh0uZnVv", + "dGEuRGVwbG95bWVudERldmljZVN0YXR1cyJICh5HZXREZXBsb3ltZW50RGV2", + "aWNlTG9nc1JlcXVlc3QSFQoNZGVwbG95bWVudF9pZBgBIAEoDBIPCgdkZXZf", + "ZXVpGAIgASgMIs0BChNEZXBsb3ltZW50RGV2aWNlTG9nEi4KCmNyZWF0ZWRf", + "YXQYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEg4KBmZfcG9y", + "dBgCIAEoDRIPCgdjb21tYW5kGAMgASgJEjYKBmZpZWxkcxgEIAMoCzImLmZ1", + "b3RhLkRlcGxveW1lbnREZXZpY2VMb2cuRmllbGRzRW50cnkaLQoLRmllbGRz", + "RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJLCh9HZXRE", + "ZXBsb3ltZW50RGV2aWNlTG9nc1Jlc3BvbnNlEigKBGxvZ3MYASADKAsyGi5m", + "dW90YS5EZXBsb3ltZW50RGV2aWNlTG9nKi4KEk11bHRpY2FzdEdyb3VwVHlw", + "ZRILCgdDTEFTU19CEAASCwoHQ0xBU1NfQxABKmoKIVJlcXVlc3RGcmFnbWVu", + "dGF0aW9uU2Vzc2lvblN0YXR1cxIaChZBRlRFUl9GUkFHTUVOVF9FTlFVRVVF", + "EAASGQoVQUZURVJfU0VTU0lPTl9USU1FT1VUEAESDgoKTk9fUkVRVUVTVBAC", + "MrcCChJGVU9UQVNlcnZlclNlcnZpY2USVQoQQ3JlYXRlRGVwbG95bWVudBIe", + "LmZ1b3RhLkNyZWF0ZURlcGxveW1lbnRSZXF1ZXN0Gh8uZnVvdGEuQ3JlYXRl", + "RGVwbG95bWVudFJlc3BvbnNlIgASXgoTR2V0RGVwbG95bWVudFN0YXR1cxIh", + "LmZ1b3RhLkdldERlcGxveW1lbnRTdGF0dXNSZXF1ZXN0GiIuZnVvdGEuR2V0", + "RGVwbG95bWVudFN0YXR1c1Jlc3BvbnNlIgASagoXR2V0RGVwbG95bWVudERl", + "dmljZUxvZ3MSJS5mdW90YS5HZXREZXBsb3ltZW50RGV2aWNlTG9nc1JlcXVl", + "c3QaJi5mdW90YS5HZXREZXBsb3ltZW50RGV2aWNlTG9nc1Jlc3BvbnNlIgBC", + "WwoXaW8uY2hpcnBzdGFjay5hcGkuZnVvdGFaLWdpdGh1Yi5jb20vYnJvY2Fh", + "ci9jaGlycHN0YWNrLWFwaS9nby92My9mdW90YaoCEENoaXJwc3RhY2suRnVv", + "dGFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Fuota.MulticastGroupType), typeof(global::Chirpstack.Fuota.RequestFragmentationSessionStatus), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Fuota.DeploymentDevice), global::Chirpstack.Fuota.DeploymentDevice.Parser, new[]{ "DevEui", "McRootKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Fuota.Deployment), global::Chirpstack.Fuota.Deployment.Parser, new[]{ "ApplicationId", "Devices", "MulticastGroupType", "MulticastDr", "MulticastPingSlotPeriod", "MulticastFrequency", "MulticastGroupId", "MulticastTimeout", "UnicastTimeout", "UnicastAttemptCount", "FragmentationFragmentSize", "Payload", "FragmentationRedundancy", "FragmentationSessionIndex", "FragmentationMatrix", "FragmentationBlockAckDelay", "FragmentationDescriptor", "RequestFragmentationSessionStatus" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Fuota.CreateDeploymentRequest), global::Chirpstack.Fuota.CreateDeploymentRequest.Parser, new[]{ "Deployment" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Fuota.CreateDeploymentResponse), global::Chirpstack.Fuota.CreateDeploymentResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Fuota.GetDeploymentStatusRequest), global::Chirpstack.Fuota.GetDeploymentStatusRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Fuota.DeploymentDeviceStatus), global::Chirpstack.Fuota.DeploymentDeviceStatus.Parser, new[]{ "DevEui", "CreatedAt", "UpdatedAt", "McGroupSetupCompletedAt", "McSessionCompletedAt", "FragSessionSetupCompletedAt", "FragStatusCompletedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Fuota.GetDeploymentStatusResponse), global::Chirpstack.Fuota.GetDeploymentStatusResponse.Parser, new[]{ "CreatedAt", "UpdatedAt", "McGroupSetupCompletedAt", "McSessionCompletedAt", "FragSessionSetupCompletedAt", "EnqueueCompletedAt", "FragStatusCompletedAt", "DeviceStatus" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Fuota.GetDeploymentDeviceLogsRequest), global::Chirpstack.Fuota.GetDeploymentDeviceLogsRequest.Parser, new[]{ "DeploymentId", "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Fuota.DeploymentDeviceLog), global::Chirpstack.Fuota.DeploymentDeviceLog.Parser, new[]{ "CreatedAt", "FPort", "Command", "Fields" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Fuota.GetDeploymentDeviceLogsResponse), global::Chirpstack.Fuota.GetDeploymentDeviceLogsResponse.Parser, new[]{ "Logs" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum MulticastGroupType { + /// + /// Class-B. + /// + [pbr::OriginalName("CLASS_B")] ClassB = 0, + /// + /// Class-C. + /// + [pbr::OriginalName("CLASS_C")] ClassC = 1, + } + + public enum RequestFragmentationSessionStatus { + /// + /// Enqueue the fragmentation-session status request command directly after + /// enqueueing the fragmentation-session fragments. This is the recommended + /// option for Class-A devices as the status request will stay in the + /// downlink queue until the device sends its next uplink. + /// + [pbr::OriginalName("AFTER_FRAGMENT_ENQUEUE")] AfterFragmentEnqueue = 0, + /// + /// Enqueue the fragmentation-session status request after the multicast + /// session-timeout. This is the recommended option for Class-B and -C + /// devices as selecting AFTER_FRAGMENT_ENQUEUE will likely cause the NS + /// to schedule the downlink frame during the FUOTA multicast-session. + /// + [pbr::OriginalName("AFTER_SESSION_TIMEOUT")] AfterSessionTimeout = 1, + /// + /// Do not request the fragmentation-session status. + /// + [pbr::OriginalName("NO_REQUEST")] NoRequest = 2, + } + + #endregion + + #region Messages + public sealed partial class DeploymentDevice : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeploymentDevice()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Fuota.FuotaReflection.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 DeploymentDevice() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeploymentDevice(DeploymentDevice other) : this() { + devEui_ = other.devEui_; + mcRootKey_ = other.mcRootKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeploymentDevice Clone() { + return new DeploymentDevice(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mc_root_key" field. + public const int McRootKeyFieldNumber = 2; + private pb::ByteString mcRootKey_ = pb::ByteString.Empty; + /// + /// McRootKey. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString McRootKey { + get { return mcRootKey_; } + set { + mcRootKey_ = 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 DeploymentDevice); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeploymentDevice other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (McRootKey != other.McRootKey) return false; + 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 (McRootKey.Length != 0) hash ^= McRootKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevEui); + } + if (McRootKey.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(McRootKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(DevEui); + } + if (McRootKey.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(McRootKey); + } + if (_unknownFields != 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.ComputeBytesSize(DevEui); + } + if (McRootKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(McRootKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeploymentDevice other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.McRootKey.Length != 0) { + McRootKey = other.McRootKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 18: { + McRootKey = 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: { + DevEui = input.ReadBytes(); + break; + } + case 18: { + McRootKey = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Deployment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Deployment()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Fuota.FuotaReflection.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 Deployment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Deployment(Deployment other) : this() { + applicationId_ = other.applicationId_; + devices_ = other.devices_.Clone(); + multicastGroupType_ = other.multicastGroupType_; + multicastDr_ = other.multicastDr_; + multicastPingSlotPeriod_ = other.multicastPingSlotPeriod_; + multicastFrequency_ = other.multicastFrequency_; + multicastGroupId_ = other.multicastGroupId_; + multicastTimeout_ = other.multicastTimeout_; + unicastTimeout_ = other.unicastTimeout_ != null ? other.unicastTimeout_.Clone() : null; + unicastAttemptCount_ = other.unicastAttemptCount_; + fragmentationFragmentSize_ = other.fragmentationFragmentSize_; + payload_ = other.payload_; + fragmentationRedundancy_ = other.fragmentationRedundancy_; + fragmentationSessionIndex_ = other.fragmentationSessionIndex_; + fragmentationMatrix_ = other.fragmentationMatrix_; + fragmentationBlockAckDelay_ = other.fragmentationBlockAckDelay_; + fragmentationDescriptor_ = other.fragmentationDescriptor_; + requestFragmentationSessionStatus_ = other.requestFragmentationSessionStatus_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Deployment Clone() { + return new Deployment(this); + } + + /// Field number for the "application_id" field. + public const int ApplicationIdFieldNumber = 1; + private long applicationId_; + /// + /// Application ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ApplicationId { + get { return applicationId_; } + set { + applicationId_ = value; + } + } + + /// Field number for the "devices" field. + public const int DevicesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_devices_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Fuota.DeploymentDevice.Parser); + private readonly pbc::RepeatedField devices_ = new pbc::RepeatedField(); + /// + /// Devices to include in this deployment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Devices { + get { return devices_; } + } + + /// Field number for the "multicast_group_type" field. + public const int MulticastGroupTypeFieldNumber = 3; + private global::Chirpstack.Fuota.MulticastGroupType multicastGroupType_ = global::Chirpstack.Fuota.MulticastGroupType.ClassB; + /// + /// Multicast-group type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Fuota.MulticastGroupType MulticastGroupType { + get { return multicastGroupType_; } + set { + multicastGroupType_ = value; + } + } + + /// Field number for the "multicast_dr" field. + public const int MulticastDrFieldNumber = 4; + private uint multicastDr_; + /// + /// Multicast data-rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MulticastDr { + get { return multicastDr_; } + set { + multicastDr_ = value; + } + } + + /// Field number for the "multicast_ping_slot_period" field. + public const int MulticastPingSlotPeriodFieldNumber = 5; + private uint multicastPingSlotPeriod_; + /// + /// Multicast ping-slot period (Class-B only). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MulticastPingSlotPeriod { + get { return multicastPingSlotPeriod_; } + set { + multicastPingSlotPeriod_ = value; + } + } + + /// Field number for the "multicast_frequency" field. + public const int MulticastFrequencyFieldNumber = 6; + private uint multicastFrequency_; + /// + /// Multicast frequency (Hz). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MulticastFrequency { + get { return multicastFrequency_; } + set { + multicastFrequency_ = value; + } + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 7; + private uint multicastGroupId_; + /// + /// Multicast group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MulticastGroupId { + get { return multicastGroupId_; } + set { + multicastGroupId_ = value; + } + } + + /// Field number for the "multicast_timeout" field. + public const int MulticastTimeoutFieldNumber = 8; + private uint multicastTimeout_; + /// + /// Multicast timeout. + /// This defines the timeout of the multicast-session. + /// Please refer to the Remote Multicast Setup specification as this field + /// has a different meaning for Class-B and Class-C groups. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MulticastTimeout { + get { return multicastTimeout_; } + set { + multicastTimeout_ = value; + } + } + + /// Field number for the "unicast_timeout" field. + public const int UnicastTimeoutFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Duration unicastTimeout_; + /// + /// Unicast timeout. + /// Set this to the value in which you at least expect an uplink frame from + /// the device. The FUOTA server will wait for the given time before + /// attempting a retry or continuing with the next step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration UnicastTimeout { + get { return unicastTimeout_; } + set { + unicastTimeout_ = value; + } + } + + /// Field number for the "unicast_attempt_count" field. + public const int UnicastAttemptCountFieldNumber = 10; + private uint unicastAttemptCount_; + /// + /// Unicast attempt count. + /// The number of attempts before considering an unicast command + /// to be failed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UnicastAttemptCount { + get { return unicastAttemptCount_; } + set { + unicastAttemptCount_ = value; + } + } + + /// Field number for the "fragmentation_fragment_size" field. + public const int FragmentationFragmentSizeFieldNumber = 11; + private uint fragmentationFragmentSize_; + /// + /// FragmentationFragmentSize. + /// This defines the size of each payload fragment. Please refer to the + /// Regional Parameters specification for the maximum payload sizes + /// per data-rate and region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FragmentationFragmentSize { + get { return fragmentationFragmentSize_; } + set { + fragmentationFragmentSize_ = value; + } + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 12; + private pb::ByteString payload_ = pb::ByteString.Empty; + /// + /// 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"); + } + } + + /// Field number for the "fragmentation_redundancy" field. + public const int FragmentationRedundancyFieldNumber = 13; + private uint fragmentationRedundancy_; + /// + /// Fragmentation redundancy. + /// The number represents the additional redundant frames to send. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FragmentationRedundancy { + get { return fragmentationRedundancy_; } + set { + fragmentationRedundancy_ = value; + } + } + + /// Field number for the "fragmentation_session_index" field. + public const int FragmentationSessionIndexFieldNumber = 14; + private uint fragmentationSessionIndex_; + /// + /// Fragmentation session index. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FragmentationSessionIndex { + get { return fragmentationSessionIndex_; } + set { + fragmentationSessionIndex_ = value; + } + } + + /// Field number for the "fragmentation_matrix" field. + public const int FragmentationMatrixFieldNumber = 15; + private uint fragmentationMatrix_; + /// + /// Fragmentation matrix. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FragmentationMatrix { + get { return fragmentationMatrix_; } + set { + fragmentationMatrix_ = value; + } + } + + /// Field number for the "fragmentation_block_ack_delay" field. + public const int FragmentationBlockAckDelayFieldNumber = 16; + private uint fragmentationBlockAckDelay_; + /// + /// Block ack delay. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FragmentationBlockAckDelay { + get { return fragmentationBlockAckDelay_; } + set { + fragmentationBlockAckDelay_ = value; + } + } + + /// Field number for the "fragmentation_descriptor" field. + public const int FragmentationDescriptorFieldNumber = 17; + private pb::ByteString fragmentationDescriptor_ = pb::ByteString.Empty; + /// + /// Descriptor (4 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString FragmentationDescriptor { + get { return fragmentationDescriptor_; } + set { + fragmentationDescriptor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_fragmentation_session_status" field. + public const int RequestFragmentationSessionStatusFieldNumber = 18; + private global::Chirpstack.Fuota.RequestFragmentationSessionStatus requestFragmentationSessionStatus_ = global::Chirpstack.Fuota.RequestFragmentationSessionStatus.AfterFragmentEnqueue; + /// + /// Request fragmentation session status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Fuota.RequestFragmentationSessionStatus RequestFragmentationSessionStatus { + get { return requestFragmentationSessionStatus_; } + set { + requestFragmentationSessionStatus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Deployment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Deployment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplicationId != other.ApplicationId) return false; + if(!devices_.Equals(other.devices_)) return false; + if (MulticastGroupType != other.MulticastGroupType) return false; + if (MulticastDr != other.MulticastDr) return false; + if (MulticastPingSlotPeriod != other.MulticastPingSlotPeriod) return false; + if (MulticastFrequency != other.MulticastFrequency) return false; + if (MulticastGroupId != other.MulticastGroupId) return false; + if (MulticastTimeout != other.MulticastTimeout) return false; + if (!object.Equals(UnicastTimeout, other.UnicastTimeout)) return false; + if (UnicastAttemptCount != other.UnicastAttemptCount) return false; + if (FragmentationFragmentSize != other.FragmentationFragmentSize) return false; + if (Payload != other.Payload) return false; + if (FragmentationRedundancy != other.FragmentationRedundancy) return false; + if (FragmentationSessionIndex != other.FragmentationSessionIndex) return false; + if (FragmentationMatrix != other.FragmentationMatrix) return false; + if (FragmentationBlockAckDelay != other.FragmentationBlockAckDelay) return false; + if (FragmentationDescriptor != other.FragmentationDescriptor) return false; + if (RequestFragmentationSessionStatus != other.RequestFragmentationSessionStatus) return false; + 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 != 0L) hash ^= ApplicationId.GetHashCode(); + hash ^= devices_.GetHashCode(); + if (MulticastGroupType != global::Chirpstack.Fuota.MulticastGroupType.ClassB) hash ^= MulticastGroupType.GetHashCode(); + if (MulticastDr != 0) hash ^= MulticastDr.GetHashCode(); + if (MulticastPingSlotPeriod != 0) hash ^= MulticastPingSlotPeriod.GetHashCode(); + if (MulticastFrequency != 0) hash ^= MulticastFrequency.GetHashCode(); + if (MulticastGroupId != 0) hash ^= MulticastGroupId.GetHashCode(); + if (MulticastTimeout != 0) hash ^= MulticastTimeout.GetHashCode(); + if (unicastTimeout_ != null) hash ^= UnicastTimeout.GetHashCode(); + if (UnicastAttemptCount != 0) hash ^= UnicastAttemptCount.GetHashCode(); + if (FragmentationFragmentSize != 0) hash ^= FragmentationFragmentSize.GetHashCode(); + if (Payload.Length != 0) hash ^= Payload.GetHashCode(); + if (FragmentationRedundancy != 0) hash ^= FragmentationRedundancy.GetHashCode(); + if (FragmentationSessionIndex != 0) hash ^= FragmentationSessionIndex.GetHashCode(); + if (FragmentationMatrix != 0) hash ^= FragmentationMatrix.GetHashCode(); + if (FragmentationBlockAckDelay != 0) hash ^= FragmentationBlockAckDelay.GetHashCode(); + if (FragmentationDescriptor.Length != 0) hash ^= FragmentationDescriptor.GetHashCode(); + if (RequestFragmentationSessionStatus != global::Chirpstack.Fuota.RequestFragmentationSessionStatus.AfterFragmentEnqueue) hash ^= RequestFragmentationSessionStatus.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ApplicationId); + } + devices_.WriteTo(output, _repeated_devices_codec); + if (MulticastGroupType != global::Chirpstack.Fuota.MulticastGroupType.ClassB) { + output.WriteRawTag(24); + output.WriteEnum((int) MulticastGroupType); + } + if (MulticastDr != 0) { + output.WriteRawTag(32); + output.WriteUInt32(MulticastDr); + } + if (MulticastPingSlotPeriod != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MulticastPingSlotPeriod); + } + if (MulticastFrequency != 0) { + output.WriteRawTag(48); + output.WriteUInt32(MulticastFrequency); + } + if (MulticastGroupId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(MulticastGroupId); + } + if (MulticastTimeout != 0) { + output.WriteRawTag(64); + output.WriteUInt32(MulticastTimeout); + } + if (unicastTimeout_ != null) { + output.WriteRawTag(74); + output.WriteMessage(UnicastTimeout); + } + if (UnicastAttemptCount != 0) { + output.WriteRawTag(80); + output.WriteUInt32(UnicastAttemptCount); + } + if (FragmentationFragmentSize != 0) { + output.WriteRawTag(88); + output.WriteUInt32(FragmentationFragmentSize); + } + if (Payload.Length != 0) { + output.WriteRawTag(98); + output.WriteBytes(Payload); + } + if (FragmentationRedundancy != 0) { + output.WriteRawTag(104); + output.WriteUInt32(FragmentationRedundancy); + } + if (FragmentationSessionIndex != 0) { + output.WriteRawTag(112); + output.WriteUInt32(FragmentationSessionIndex); + } + if (FragmentationMatrix != 0) { + output.WriteRawTag(120); + output.WriteUInt32(FragmentationMatrix); + } + if (FragmentationBlockAckDelay != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(FragmentationBlockAckDelay); + } + if (FragmentationDescriptor.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteBytes(FragmentationDescriptor); + } + if (RequestFragmentationSessionStatus != global::Chirpstack.Fuota.RequestFragmentationSessionStatus.AfterFragmentEnqueue) { + output.WriteRawTag(144, 1); + output.WriteEnum((int) RequestFragmentationSessionStatus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ApplicationId); + } + devices_.WriteTo(ref output, _repeated_devices_codec); + if (MulticastGroupType != global::Chirpstack.Fuota.MulticastGroupType.ClassB) { + output.WriteRawTag(24); + output.WriteEnum((int) MulticastGroupType); + } + if (MulticastDr != 0) { + output.WriteRawTag(32); + output.WriteUInt32(MulticastDr); + } + if (MulticastPingSlotPeriod != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MulticastPingSlotPeriod); + } + if (MulticastFrequency != 0) { + output.WriteRawTag(48); + output.WriteUInt32(MulticastFrequency); + } + if (MulticastGroupId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(MulticastGroupId); + } + if (MulticastTimeout != 0) { + output.WriteRawTag(64); + output.WriteUInt32(MulticastTimeout); + } + if (unicastTimeout_ != null) { + output.WriteRawTag(74); + output.WriteMessage(UnicastTimeout); + } + if (UnicastAttemptCount != 0) { + output.WriteRawTag(80); + output.WriteUInt32(UnicastAttemptCount); + } + if (FragmentationFragmentSize != 0) { + output.WriteRawTag(88); + output.WriteUInt32(FragmentationFragmentSize); + } + if (Payload.Length != 0) { + output.WriteRawTag(98); + output.WriteBytes(Payload); + } + if (FragmentationRedundancy != 0) { + output.WriteRawTag(104); + output.WriteUInt32(FragmentationRedundancy); + } + if (FragmentationSessionIndex != 0) { + output.WriteRawTag(112); + output.WriteUInt32(FragmentationSessionIndex); + } + if (FragmentationMatrix != 0) { + output.WriteRawTag(120); + output.WriteUInt32(FragmentationMatrix); + } + if (FragmentationBlockAckDelay != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(FragmentationBlockAckDelay); + } + if (FragmentationDescriptor.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteBytes(FragmentationDescriptor); + } + if (RequestFragmentationSessionStatus != global::Chirpstack.Fuota.RequestFragmentationSessionStatus.AfterFragmentEnqueue) { + output.WriteRawTag(144, 1); + output.WriteEnum((int) RequestFragmentationSessionStatus); + } + if (_unknownFields != 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 != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ApplicationId); + } + size += devices_.CalculateSize(_repeated_devices_codec); + if (MulticastGroupType != global::Chirpstack.Fuota.MulticastGroupType.ClassB) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MulticastGroupType); + } + if (MulticastDr != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MulticastDr); + } + if (MulticastPingSlotPeriod != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MulticastPingSlotPeriod); + } + if (MulticastFrequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MulticastFrequency); + } + if (MulticastGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MulticastGroupId); + } + if (MulticastTimeout != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MulticastTimeout); + } + if (unicastTimeout_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UnicastTimeout); + } + if (UnicastAttemptCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UnicastAttemptCount); + } + if (FragmentationFragmentSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FragmentationFragmentSize); + } + if (Payload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); + } + if (FragmentationRedundancy != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FragmentationRedundancy); + } + if (FragmentationSessionIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FragmentationSessionIndex); + } + if (FragmentationMatrix != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FragmentationMatrix); + } + if (FragmentationBlockAckDelay != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FragmentationBlockAckDelay); + } + if (FragmentationDescriptor.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeBytesSize(FragmentationDescriptor); + } + if (RequestFragmentationSessionStatus != global::Chirpstack.Fuota.RequestFragmentationSessionStatus.AfterFragmentEnqueue) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RequestFragmentationSessionStatus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Deployment other) { + if (other == null) { + return; + } + if (other.ApplicationId != 0L) { + ApplicationId = other.ApplicationId; + } + devices_.Add(other.devices_); + if (other.MulticastGroupType != global::Chirpstack.Fuota.MulticastGroupType.ClassB) { + MulticastGroupType = other.MulticastGroupType; + } + if (other.MulticastDr != 0) { + MulticastDr = other.MulticastDr; + } + if (other.MulticastPingSlotPeriod != 0) { + MulticastPingSlotPeriod = other.MulticastPingSlotPeriod; + } + if (other.MulticastFrequency != 0) { + MulticastFrequency = other.MulticastFrequency; + } + if (other.MulticastGroupId != 0) { + MulticastGroupId = other.MulticastGroupId; + } + if (other.MulticastTimeout != 0) { + MulticastTimeout = other.MulticastTimeout; + } + if (other.unicastTimeout_ != null) { + if (unicastTimeout_ == null) { + UnicastTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + UnicastTimeout.MergeFrom(other.UnicastTimeout); + } + if (other.UnicastAttemptCount != 0) { + UnicastAttemptCount = other.UnicastAttemptCount; + } + if (other.FragmentationFragmentSize != 0) { + FragmentationFragmentSize = other.FragmentationFragmentSize; + } + if (other.Payload.Length != 0) { + Payload = other.Payload; + } + if (other.FragmentationRedundancy != 0) { + FragmentationRedundancy = other.FragmentationRedundancy; + } + if (other.FragmentationSessionIndex != 0) { + FragmentationSessionIndex = other.FragmentationSessionIndex; + } + if (other.FragmentationMatrix != 0) { + FragmentationMatrix = other.FragmentationMatrix; + } + if (other.FragmentationBlockAckDelay != 0) { + FragmentationBlockAckDelay = other.FragmentationBlockAckDelay; + } + if (other.FragmentationDescriptor.Length != 0) { + FragmentationDescriptor = other.FragmentationDescriptor; + } + if (other.RequestFragmentationSessionStatus != global::Chirpstack.Fuota.RequestFragmentationSessionStatus.AfterFragmentEnqueue) { + RequestFragmentationSessionStatus = other.RequestFragmentationSessionStatus; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + ApplicationId = input.ReadInt64(); + break; + } + case 18: { + devices_.AddEntriesFrom(input, _repeated_devices_codec); + break; + } + case 24: { + MulticastGroupType = (global::Chirpstack.Fuota.MulticastGroupType) input.ReadEnum(); + break; + } + case 32: { + MulticastDr = input.ReadUInt32(); + break; + } + case 40: { + MulticastPingSlotPeriod = input.ReadUInt32(); + break; + } + case 48: { + MulticastFrequency = input.ReadUInt32(); + break; + } + case 56: { + MulticastGroupId = input.ReadUInt32(); + break; + } + case 64: { + MulticastTimeout = input.ReadUInt32(); + break; + } + case 74: { + if (unicastTimeout_ == null) { + UnicastTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(UnicastTimeout); + break; + } + case 80: { + UnicastAttemptCount = input.ReadUInt32(); + break; + } + case 88: { + FragmentationFragmentSize = input.ReadUInt32(); + break; + } + case 98: { + Payload = input.ReadBytes(); + break; + } + case 104: { + FragmentationRedundancy = input.ReadUInt32(); + break; + } + case 112: { + FragmentationSessionIndex = input.ReadUInt32(); + break; + } + case 120: { + FragmentationMatrix = input.ReadUInt32(); + break; + } + case 128: { + FragmentationBlockAckDelay = input.ReadUInt32(); + break; + } + case 138: { + FragmentationDescriptor = input.ReadBytes(); + break; + } + case 144: { + RequestFragmentationSessionStatus = (global::Chirpstack.Fuota.RequestFragmentationSessionStatus) 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: { + ApplicationId = input.ReadInt64(); + break; + } + case 18: { + devices_.AddEntriesFrom(ref input, _repeated_devices_codec); + break; + } + case 24: { + MulticastGroupType = (global::Chirpstack.Fuota.MulticastGroupType) input.ReadEnum(); + break; + } + case 32: { + MulticastDr = input.ReadUInt32(); + break; + } + case 40: { + MulticastPingSlotPeriod = input.ReadUInt32(); + break; + } + case 48: { + MulticastFrequency = input.ReadUInt32(); + break; + } + case 56: { + MulticastGroupId = input.ReadUInt32(); + break; + } + case 64: { + MulticastTimeout = input.ReadUInt32(); + break; + } + case 74: { + if (unicastTimeout_ == null) { + UnicastTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(UnicastTimeout); + break; + } + case 80: { + UnicastAttemptCount = input.ReadUInt32(); + break; + } + case 88: { + FragmentationFragmentSize = input.ReadUInt32(); + break; + } + case 98: { + Payload = input.ReadBytes(); + break; + } + case 104: { + FragmentationRedundancy = input.ReadUInt32(); + break; + } + case 112: { + FragmentationSessionIndex = input.ReadUInt32(); + break; + } + case 120: { + FragmentationMatrix = input.ReadUInt32(); + break; + } + case 128: { + FragmentationBlockAckDelay = input.ReadUInt32(); + break; + } + case 138: { + FragmentationDescriptor = input.ReadBytes(); + break; + } + case 144: { + RequestFragmentationSessionStatus = (global::Chirpstack.Fuota.RequestFragmentationSessionStatus) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateDeploymentRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeploymentRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Fuota.FuotaReflection.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 CreateDeploymentRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeploymentRequest(CreateDeploymentRequest other) : this() { + deployment_ = other.deployment_ != null ? other.deployment_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeploymentRequest Clone() { + return new CreateDeploymentRequest(this); + } + + /// Field number for the "deployment" field. + public const int DeploymentFieldNumber = 1; + private global::Chirpstack.Fuota.Deployment deployment_; + /// + /// Deployment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Fuota.Deployment Deployment { + get { return deployment_; } + set { + deployment_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateDeploymentRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateDeploymentRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Deployment, other.Deployment)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (deployment_ != null) hash ^= Deployment.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (deployment_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Deployment); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (deployment_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Deployment); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (deployment_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Deployment); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateDeploymentRequest other) { + if (other == null) { + return; + } + if (other.deployment_ != null) { + if (deployment_ == null) { + Deployment = new global::Chirpstack.Fuota.Deployment(); + } + Deployment.MergeFrom(other.Deployment); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (deployment_ == null) { + Deployment = new global::Chirpstack.Fuota.Deployment(); + } + input.ReadMessage(Deployment); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (deployment_ == null) { + Deployment = new global::Chirpstack.Fuota.Deployment(); + } + input.ReadMessage(Deployment); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateDeploymentResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeploymentResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Fuota.FuotaReflection.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 CreateDeploymentResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeploymentResponse(CreateDeploymentResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeploymentResponse Clone() { + return new CreateDeploymentResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// ID of the created deployment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 CreateDeploymentResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateDeploymentResponse 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateDeploymentResponse 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.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: { + Id = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeploymentStatusRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeploymentStatusRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Fuota.FuotaReflection.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 GetDeploymentStatusRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeploymentStatusRequest(GetDeploymentStatusRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeploymentStatusRequest Clone() { + return new GetDeploymentStatusRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Deployment ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 GetDeploymentStatusRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeploymentStatusRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeploymentStatusRequest 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.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: { + Id = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeploymentDeviceStatus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeploymentDeviceStatus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Fuota.FuotaReflection.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 DeploymentDeviceStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeploymentDeviceStatus(DeploymentDeviceStatus other) : this() { + devEui_ = other.devEui_; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + mcGroupSetupCompletedAt_ = other.mcGroupSetupCompletedAt_ != null ? other.mcGroupSetupCompletedAt_.Clone() : null; + mcSessionCompletedAt_ = other.mcSessionCompletedAt_ != null ? other.mcSessionCompletedAt_.Clone() : null; + fragSessionSetupCompletedAt_ = other.fragSessionSetupCompletedAt_ != null ? other.fragSessionSetupCompletedAt_.Clone() : null; + fragStatusCompletedAt_ = other.fragStatusCompletedAt_ != null ? other.fragStatusCompletedAt_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeploymentDeviceStatus Clone() { + return new DeploymentDeviceStatus(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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. + /// + [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_; + /// + /// Updated at. + /// + [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 "mc_group_setup_completed_at" field. + public const int McGroupSetupCompletedAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp mcGroupSetupCompletedAt_; + /// + /// Multicast-group setup completed at. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp McGroupSetupCompletedAt { + get { return mcGroupSetupCompletedAt_; } + set { + mcGroupSetupCompletedAt_ = value; + } + } + + /// Field number for the "mc_session_completed_at" field. + public const int McSessionCompletedAtFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp mcSessionCompletedAt_; + /// + /// Multicast-session completed at. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp McSessionCompletedAt { + get { return mcSessionCompletedAt_; } + set { + mcSessionCompletedAt_ = value; + } + } + + /// Field number for the "frag_session_setup_completed_at" field. + public const int FragSessionSetupCompletedAtFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp fragSessionSetupCompletedAt_; + /// + /// Fragmentation session setup completed at. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FragSessionSetupCompletedAt { + get { return fragSessionSetupCompletedAt_; } + set { + fragSessionSetupCompletedAt_ = value; + } + } + + /// Field number for the "frag_status_completed_at" field. + public const int FragStatusCompletedAtFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp fragStatusCompletedAt_; + /// + /// Fragmentation status completed at. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FragStatusCompletedAt { + get { return fragStatusCompletedAt_; } + set { + fragStatusCompletedAt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeploymentDeviceStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeploymentDeviceStatus 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(McGroupSetupCompletedAt, other.McGroupSetupCompletedAt)) return false; + if (!object.Equals(McSessionCompletedAt, other.McSessionCompletedAt)) return false; + if (!object.Equals(FragSessionSetupCompletedAt, other.FragSessionSetupCompletedAt)) return false; + if (!object.Equals(FragStatusCompletedAt, other.FragStatusCompletedAt)) return false; + 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 (mcGroupSetupCompletedAt_ != null) hash ^= McGroupSetupCompletedAt.GetHashCode(); + if (mcSessionCompletedAt_ != null) hash ^= McSessionCompletedAt.GetHashCode(); + if (fragSessionSetupCompletedAt_ != null) hash ^= FragSessionSetupCompletedAt.GetHashCode(); + if (fragStatusCompletedAt_ != null) hash ^= FragStatusCompletedAt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevEui); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (mcGroupSetupCompletedAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(McGroupSetupCompletedAt); + } + if (mcSessionCompletedAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(McSessionCompletedAt); + } + if (fragSessionSetupCompletedAt_ != null) { + output.WriteRawTag(50); + output.WriteMessage(FragSessionSetupCompletedAt); + } + if (fragStatusCompletedAt_ != null) { + output.WriteRawTag(58); + output.WriteMessage(FragStatusCompletedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(DevEui); + } + if (createdAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdatedAt); + } + if (mcGroupSetupCompletedAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(McGroupSetupCompletedAt); + } + if (mcSessionCompletedAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(McSessionCompletedAt); + } + if (fragSessionSetupCompletedAt_ != null) { + output.WriteRawTag(50); + output.WriteMessage(FragSessionSetupCompletedAt); + } + if (fragStatusCompletedAt_ != null) { + output.WriteRawTag(58); + output.WriteMessage(FragStatusCompletedAt); + } + if (_unknownFields != 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.ComputeBytesSize(DevEui); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (mcGroupSetupCompletedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(McGroupSetupCompletedAt); + } + if (mcSessionCompletedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(McSessionCompletedAt); + } + if (fragSessionSetupCompletedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FragSessionSetupCompletedAt); + } + if (fragStatusCompletedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FragStatusCompletedAt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeploymentDeviceStatus 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.mcGroupSetupCompletedAt_ != null) { + if (mcGroupSetupCompletedAt_ == null) { + McGroupSetupCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + McGroupSetupCompletedAt.MergeFrom(other.McGroupSetupCompletedAt); + } + if (other.mcSessionCompletedAt_ != null) { + if (mcSessionCompletedAt_ == null) { + McSessionCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + McSessionCompletedAt.MergeFrom(other.McSessionCompletedAt); + } + if (other.fragSessionSetupCompletedAt_ != null) { + if (fragSessionSetupCompletedAt_ == null) { + FragSessionSetupCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FragSessionSetupCompletedAt.MergeFrom(other.FragSessionSetupCompletedAt); + } + if (other.fragStatusCompletedAt_ != null) { + if (fragStatusCompletedAt_ == null) { + FragStatusCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FragStatusCompletedAt.MergeFrom(other.FragStatusCompletedAt); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + 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 (mcGroupSetupCompletedAt_ == null) { + McGroupSetupCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(McGroupSetupCompletedAt); + break; + } + case 42: { + if (mcSessionCompletedAt_ == null) { + McSessionCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(McSessionCompletedAt); + break; + } + case 50: { + if (fragSessionSetupCompletedAt_ == null) { + FragSessionSetupCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FragSessionSetupCompletedAt); + break; + } + case 58: { + if (fragStatusCompletedAt_ == null) { + FragStatusCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FragStatusCompletedAt); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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.ReadBytes(); + 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 (mcGroupSetupCompletedAt_ == null) { + McGroupSetupCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(McGroupSetupCompletedAt); + break; + } + case 42: { + if (mcSessionCompletedAt_ == null) { + McSessionCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(McSessionCompletedAt); + break; + } + case 50: { + if (fragSessionSetupCompletedAt_ == null) { + FragSessionSetupCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FragSessionSetupCompletedAt); + break; + } + case 58: { + if (fragStatusCompletedAt_ == null) { + FragStatusCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FragStatusCompletedAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeploymentStatusResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeploymentStatusResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Fuota.FuotaReflection.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 GetDeploymentStatusResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeploymentStatusResponse(GetDeploymentStatusResponse other) : this() { + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; + mcGroupSetupCompletedAt_ = other.mcGroupSetupCompletedAt_ != null ? other.mcGroupSetupCompletedAt_.Clone() : null; + mcSessionCompletedAt_ = other.mcSessionCompletedAt_ != null ? other.mcSessionCompletedAt_.Clone() : null; + fragSessionSetupCompletedAt_ = other.fragSessionSetupCompletedAt_ != null ? other.fragSessionSetupCompletedAt_.Clone() : null; + enqueueCompletedAt_ = other.enqueueCompletedAt_ != null ? other.enqueueCompletedAt_.Clone() : null; + fragStatusCompletedAt_ = other.fragStatusCompletedAt_ != null ? other.fragStatusCompletedAt_.Clone() : null; + deviceStatus_ = other.deviceStatus_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeploymentStatusResponse Clone() { + return new GetDeploymentStatusResponse(this); + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at. + /// + [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_; + /// + /// Updated at. + /// + [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 "mc_group_setup_completed_at" field. + public const int McGroupSetupCompletedAtFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp mcGroupSetupCompletedAt_; + /// + /// Multicast-group setup completed at. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp McGroupSetupCompletedAt { + get { return mcGroupSetupCompletedAt_; } + set { + mcGroupSetupCompletedAt_ = value; + } + } + + /// Field number for the "mc_session_completed_at" field. + public const int McSessionCompletedAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp mcSessionCompletedAt_; + /// + /// Multicast-session completed at. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp McSessionCompletedAt { + get { return mcSessionCompletedAt_; } + set { + mcSessionCompletedAt_ = value; + } + } + + /// Field number for the "frag_session_setup_completed_at" field. + public const int FragSessionSetupCompletedAtFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp fragSessionSetupCompletedAt_; + /// + /// Fragmentation session setup completed at. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FragSessionSetupCompletedAt { + get { return fragSessionSetupCompletedAt_; } + set { + fragSessionSetupCompletedAt_ = value; + } + } + + /// Field number for the "enqueue_completed_at" field. + public const int EnqueueCompletedAtFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp enqueueCompletedAt_; + /// + /// Enqueue completed at. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EnqueueCompletedAt { + get { return enqueueCompletedAt_; } + set { + enqueueCompletedAt_ = value; + } + } + + /// Field number for the "frag_status_completed_at" field. + public const int FragStatusCompletedAtFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp fragStatusCompletedAt_; + /// + /// Fragmentation status completed at. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FragStatusCompletedAt { + get { return fragStatusCompletedAt_; } + set { + fragStatusCompletedAt_ = value; + } + } + + /// Field number for the "device_status" field. + public const int DeviceStatusFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_deviceStatus_codec + = pb::FieldCodec.ForMessage(66, global::Chirpstack.Fuota.DeploymentDeviceStatus.Parser); + private readonly pbc::RepeatedField deviceStatus_ = new pbc::RepeatedField(); + /// + /// Per device status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DeviceStatus { + get { return deviceStatus_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeploymentStatusResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeploymentStatusResponse 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 (!object.Equals(McGroupSetupCompletedAt, other.McGroupSetupCompletedAt)) return false; + if (!object.Equals(McSessionCompletedAt, other.McSessionCompletedAt)) return false; + if (!object.Equals(FragSessionSetupCompletedAt, other.FragSessionSetupCompletedAt)) return false; + if (!object.Equals(EnqueueCompletedAt, other.EnqueueCompletedAt)) return false; + if (!object.Equals(FragStatusCompletedAt, other.FragStatusCompletedAt)) return false; + if(!deviceStatus_.Equals(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 (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (mcGroupSetupCompletedAt_ != null) hash ^= McGroupSetupCompletedAt.GetHashCode(); + if (mcSessionCompletedAt_ != null) hash ^= McSessionCompletedAt.GetHashCode(); + if (fragSessionSetupCompletedAt_ != null) hash ^= FragSessionSetupCompletedAt.GetHashCode(); + if (enqueueCompletedAt_ != null) hash ^= EnqueueCompletedAt.GetHashCode(); + if (fragStatusCompletedAt_ != null) hash ^= FragStatusCompletedAt.GetHashCode(); + 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 (createdAt_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdatedAt); + } + if (mcGroupSetupCompletedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(McGroupSetupCompletedAt); + } + if (mcSessionCompletedAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(McSessionCompletedAt); + } + if (fragSessionSetupCompletedAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(FragSessionSetupCompletedAt); + } + if (enqueueCompletedAt_ != null) { + output.WriteRawTag(50); + output.WriteMessage(EnqueueCompletedAt); + } + if (fragStatusCompletedAt_ != null) { + output.WriteRawTag(58); + output.WriteMessage(FragStatusCompletedAt); + } + deviceStatus_.WriteTo(output, _repeated_deviceStatus_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 (createdAt_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdatedAt); + } + if (mcGroupSetupCompletedAt_ != null) { + output.WriteRawTag(26); + output.WriteMessage(McGroupSetupCompletedAt); + } + if (mcSessionCompletedAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(McSessionCompletedAt); + } + if (fragSessionSetupCompletedAt_ != null) { + output.WriteRawTag(42); + output.WriteMessage(FragSessionSetupCompletedAt); + } + if (enqueueCompletedAt_ != null) { + output.WriteRawTag(50); + output.WriteMessage(EnqueueCompletedAt); + } + if (fragStatusCompletedAt_ != null) { + output.WriteRawTag(58); + output.WriteMessage(FragStatusCompletedAt); + } + deviceStatus_.WriteTo(ref output, _repeated_deviceStatus_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 (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + } + if (mcGroupSetupCompletedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(McGroupSetupCompletedAt); + } + if (mcSessionCompletedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(McSessionCompletedAt); + } + if (fragSessionSetupCompletedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FragSessionSetupCompletedAt); + } + if (enqueueCompletedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EnqueueCompletedAt); + } + if (fragStatusCompletedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FragStatusCompletedAt); + } + size += deviceStatus_.CalculateSize(_repeated_deviceStatus_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeploymentStatusResponse 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.mcGroupSetupCompletedAt_ != null) { + if (mcGroupSetupCompletedAt_ == null) { + McGroupSetupCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + McGroupSetupCompletedAt.MergeFrom(other.McGroupSetupCompletedAt); + } + if (other.mcSessionCompletedAt_ != null) { + if (mcSessionCompletedAt_ == null) { + McSessionCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + McSessionCompletedAt.MergeFrom(other.McSessionCompletedAt); + } + if (other.fragSessionSetupCompletedAt_ != null) { + if (fragSessionSetupCompletedAt_ == null) { + FragSessionSetupCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FragSessionSetupCompletedAt.MergeFrom(other.FragSessionSetupCompletedAt); + } + if (other.enqueueCompletedAt_ != null) { + if (enqueueCompletedAt_ == null) { + EnqueueCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EnqueueCompletedAt.MergeFrom(other.EnqueueCompletedAt); + } + if (other.fragStatusCompletedAt_ != null) { + if (fragStatusCompletedAt_ == null) { + FragStatusCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FragStatusCompletedAt.MergeFrom(other.FragStatusCompletedAt); + } + deviceStatus_.Add(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 (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: { + if (mcGroupSetupCompletedAt_ == null) { + McGroupSetupCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(McGroupSetupCompletedAt); + break; + } + case 34: { + if (mcSessionCompletedAt_ == null) { + McSessionCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(McSessionCompletedAt); + break; + } + case 42: { + if (fragSessionSetupCompletedAt_ == null) { + FragSessionSetupCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FragSessionSetupCompletedAt); + break; + } + case 50: { + if (enqueueCompletedAt_ == null) { + EnqueueCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EnqueueCompletedAt); + break; + } + case 58: { + if (fragStatusCompletedAt_ == null) { + FragStatusCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FragStatusCompletedAt); + break; + } + case 66: { + deviceStatus_.AddEntriesFrom(input, _repeated_deviceStatus_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 (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: { + if (mcGroupSetupCompletedAt_ == null) { + McGroupSetupCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(McGroupSetupCompletedAt); + break; + } + case 34: { + if (mcSessionCompletedAt_ == null) { + McSessionCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(McSessionCompletedAt); + break; + } + case 42: { + if (fragSessionSetupCompletedAt_ == null) { + FragSessionSetupCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FragSessionSetupCompletedAt); + break; + } + case 50: { + if (enqueueCompletedAt_ == null) { + EnqueueCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EnqueueCompletedAt); + break; + } + case 58: { + if (fragStatusCompletedAt_ == null) { + FragStatusCompletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FragStatusCompletedAt); + break; + } + case 66: { + deviceStatus_.AddEntriesFrom(ref input, _repeated_deviceStatus_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeploymentDeviceLogsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeploymentDeviceLogsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Fuota.FuotaReflection.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 GetDeploymentDeviceLogsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeploymentDeviceLogsRequest(GetDeploymentDeviceLogsRequest other) : this() { + deploymentId_ = other.deploymentId_; + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeploymentDeviceLogsRequest Clone() { + return new GetDeploymentDeviceLogsRequest(this); + } + + /// Field number for the "deployment_id" field. + public const int DeploymentIdFieldNumber = 1; + private pb::ByteString deploymentId_ = pb::ByteString.Empty; + /// + /// Deployment ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DeploymentId { + get { return deploymentId_; } + set { + deploymentId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 2; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 GetDeploymentDeviceLogsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeploymentDeviceLogsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DeploymentId != other.DeploymentId) 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 (DeploymentId.Length != 0) hash ^= DeploymentId.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 (DeploymentId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DeploymentId); + } + if (DevEui.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(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 (DeploymentId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DeploymentId); + } + if (DevEui.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(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 (DeploymentId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DeploymentId); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeploymentDeviceLogsRequest other) { + if (other == null) { + return; + } + if (other.DeploymentId.Length != 0) { + DeploymentId = other.DeploymentId; + } + 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: { + DeploymentId = input.ReadBytes(); + break; + } + case 18: { + DevEui = 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: { + DeploymentId = input.ReadBytes(); + break; + } + case 18: { + DevEui = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeploymentDeviceLog : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeploymentDeviceLog()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Fuota.FuotaReflection.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 DeploymentDeviceLog() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeploymentDeviceLog(DeploymentDeviceLog other) : this() { + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + fPort_ = other.fPort_; + command_ = other.command_; + fields_ = other.fields_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeploymentDeviceLog Clone() { + return new DeploymentDeviceLog(this); + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// + /// Created at. + /// + [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 "f_port" field. + public const int FPortFieldNumber = 2; + private uint fPort_; + /// + /// FPort. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FPort { + get { return fPort_; } + set { + fPort_ = value; + } + } + + /// Field number for the "command" field. + public const int CommandFieldNumber = 3; + private string command_ = ""; + /// + /// Command. + /// + [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 "fields" field. + public const int FieldsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_fields_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField fields_ = new pbc::MapField(); + /// + /// Fields. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Fields { + get { return fields_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeploymentDeviceLog); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeploymentDeviceLog other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (FPort != other.FPort) return false; + if (Command != other.Command) return false; + if (!Fields.Equals(other.Fields)) return false; + 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 (FPort != 0) hash ^= FPort.GetHashCode(); + if (Command.Length != 0) hash ^= Command.GetHashCode(); + hash ^= Fields.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (FPort != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FPort); + } + if (Command.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Command); + } + fields_.WriteTo(output, _map_fields_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 (createdAt_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreatedAt); + } + if (FPort != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FPort); + } + if (Command.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Command); + } + fields_.WriteTo(ref output, _map_fields_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 (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (FPort != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FPort); + } + if (Command.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Command); + } + size += fields_.CalculateSize(_map_fields_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeploymentDeviceLog 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.FPort != 0) { + FPort = other.FPort; + } + if (other.Command.Length != 0) { + Command = other.Command; + } + fields_.Add(other.fields_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 16: { + FPort = input.ReadUInt32(); + break; + } + case 26: { + Command = input.ReadString(); + break; + } + case 34: { + fields_.AddEntriesFrom(input, _map_fields_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 (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 16: { + FPort = input.ReadUInt32(); + break; + } + case 26: { + Command = input.ReadString(); + break; + } + case 34: { + fields_.AddEntriesFrom(ref input, _map_fields_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeploymentDeviceLogsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeploymentDeviceLogsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Fuota.FuotaReflection.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 GetDeploymentDeviceLogsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeploymentDeviceLogsResponse(GetDeploymentDeviceLogsResponse other) : this() { + logs_ = other.logs_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeploymentDeviceLogsResponse Clone() { + return new GetDeploymentDeviceLogsResponse(this); + } + + /// Field number for the "logs" field. + public const int LogsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_logs_codec + = pb::FieldCodec.ForMessage(10, global::Chirpstack.Fuota.DeploymentDeviceLog.Parser); + private readonly pbc::RepeatedField logs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Logs { + get { return logs_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeploymentDeviceLogsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeploymentDeviceLogsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!logs_.Equals(other.logs_)) return 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 ^= logs_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + logs_.WriteTo(output, _repeated_logs_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) { + logs_.WriteTo(ref output, _repeated_logs_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 += logs_.CalculateSize(_repeated_logs_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeploymentDeviceLogsResponse other) { + if (other == null) { + return; + } + logs_.Add(other.logs_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + logs_.AddEntriesFrom(input, _repeated_logs_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: { + logs_.AddEntriesFrom(ref input, _repeated_logs_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/fuota/FuotaGrpc.cs b/csharp/protobuf/fuota/FuotaGrpc.cs new file mode 100644 index 00000000..8b9dec66 --- /dev/null +++ b/csharp/protobuf/fuota/FuotaGrpc.cs @@ -0,0 +1,341 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: fuota/fuota.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.Fuota { + /// + /// FUOTAServerService provides the fuota-server API methods. + /// Note: this API considered experimental. + /// + public static partial class FUOTAServerService + { + static readonly string __ServiceName = "fuota.FUOTAServerService"; + + [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_fuota_CreateDeploymentRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Fuota.CreateDeploymentRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_fuota_CreateDeploymentResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Fuota.CreateDeploymentResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_fuota_GetDeploymentStatusRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Fuota.GetDeploymentStatusRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_fuota_GetDeploymentStatusResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Fuota.GetDeploymentStatusResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_fuota_GetDeploymentDeviceLogsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Fuota.GetDeploymentDeviceLogsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_fuota_GetDeploymentDeviceLogsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Fuota.GetDeploymentDeviceLogsResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateDeployment = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateDeployment", + __Marshaller_fuota_CreateDeploymentRequest, + __Marshaller_fuota_CreateDeploymentResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetDeploymentStatus = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetDeploymentStatus", + __Marshaller_fuota_GetDeploymentStatusRequest, + __Marshaller_fuota_GetDeploymentStatusResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetDeploymentDeviceLogs = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetDeploymentDeviceLogs", + __Marshaller_fuota_GetDeploymentDeviceLogsRequest, + __Marshaller_fuota_GetDeploymentDeviceLogsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.Fuota.FuotaReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of FUOTAServerService + [grpc::BindServiceMethod(typeof(FUOTAServerService), "BindService")] + public abstract partial class FUOTAServerServiceBase + { + /// + /// CreateDeployment creates the given FUOTA deployment. + /// + /// 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 CreateDeployment(global::Chirpstack.Fuota.CreateDeploymentRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetDeploymentStatus returns the FUOTA deployment status given an 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 GetDeploymentStatus(global::Chirpstack.Fuota.GetDeploymentStatusRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetDeploymentDeviceLogs returns the FUOTA logs given a deployment ID and 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 GetDeploymentDeviceLogs(global::Chirpstack.Fuota.GetDeploymentDeviceLogsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for FUOTAServerService + public partial class FUOTAServerServiceClient : grpc::ClientBase + { + /// Creates a new client for FUOTAServerService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public FUOTAServerServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for FUOTAServerService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public FUOTAServerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected FUOTAServerServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected FUOTAServerServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// CreateDeployment creates the given FUOTA deployment. + /// + /// 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.Fuota.CreateDeploymentResponse CreateDeployment(global::Chirpstack.Fuota.CreateDeploymentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateDeployment(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateDeployment creates the given FUOTA deployment. + /// + /// 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.Fuota.CreateDeploymentResponse CreateDeployment(global::Chirpstack.Fuota.CreateDeploymentRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateDeployment, null, options, request); + } + /// + /// CreateDeployment creates the given FUOTA deployment. + /// + /// 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 CreateDeploymentAsync(global::Chirpstack.Fuota.CreateDeploymentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateDeploymentAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateDeployment creates the given FUOTA deployment. + /// + /// 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 CreateDeploymentAsync(global::Chirpstack.Fuota.CreateDeploymentRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateDeployment, null, options, request); + } + /// + /// GetDeploymentStatus returns the FUOTA deployment status given an 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.Fuota.GetDeploymentStatusResponse GetDeploymentStatus(global::Chirpstack.Fuota.GetDeploymentStatusRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDeploymentStatus(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDeploymentStatus returns the FUOTA deployment status given an 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.Fuota.GetDeploymentStatusResponse GetDeploymentStatus(global::Chirpstack.Fuota.GetDeploymentStatusRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetDeploymentStatus, null, options, request); + } + /// + /// GetDeploymentStatus returns the FUOTA deployment status given an 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 GetDeploymentStatusAsync(global::Chirpstack.Fuota.GetDeploymentStatusRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDeploymentStatusAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDeploymentStatus returns the FUOTA deployment status given an 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 GetDeploymentStatusAsync(global::Chirpstack.Fuota.GetDeploymentStatusRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetDeploymentStatus, null, options, request); + } + /// + /// GetDeploymentDeviceLogs returns the FUOTA logs given a deployment ID and 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.Fuota.GetDeploymentDeviceLogsResponse GetDeploymentDeviceLogs(global::Chirpstack.Fuota.GetDeploymentDeviceLogsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDeploymentDeviceLogs(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDeploymentDeviceLogs returns the FUOTA logs given a deployment ID and 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.Fuota.GetDeploymentDeviceLogsResponse GetDeploymentDeviceLogs(global::Chirpstack.Fuota.GetDeploymentDeviceLogsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetDeploymentDeviceLogs, null, options, request); + } + /// + /// GetDeploymentDeviceLogs returns the FUOTA logs given a deployment ID and 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 GetDeploymentDeviceLogsAsync(global::Chirpstack.Fuota.GetDeploymentDeviceLogsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDeploymentDeviceLogsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDeploymentDeviceLogs returns the FUOTA logs given a deployment ID and 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 GetDeploymentDeviceLogsAsync(global::Chirpstack.Fuota.GetDeploymentDeviceLogsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetDeploymentDeviceLogs, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override FUOTAServerServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new FUOTAServerServiceClient(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(FUOTAServerServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_CreateDeployment, serviceImpl.CreateDeployment) + .AddMethod(__Method_GetDeploymentStatus, serviceImpl.GetDeploymentStatus) + .AddMethod(__Method_GetDeploymentDeviceLogs, serviceImpl.GetDeploymentDeviceLogs).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, FUOTAServerServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_CreateDeployment, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateDeployment)); + serviceBinder.AddMethod(__Method_GetDeploymentStatus, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetDeploymentStatus)); + serviceBinder.AddMethod(__Method_GetDeploymentDeviceLogs, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetDeploymentDeviceLogs)); + } + + } +} +#endregion diff --git a/csharp/protobuf/geo/Geo.cs b/csharp/protobuf/geo/Geo.cs new file mode 100644 index 00000000..500702e3 --- /dev/null +++ b/csharp/protobuf/geo/Geo.cs @@ -0,0 +1,1392 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: geo/geo.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.Geo { + + /// Holder for reflection information generated from geo/geo.proto + public static partial class GeoReflection { + + #region Descriptor + /// File descriptor for geo/geo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GeoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg1nZW8vZ2VvLnByb3RvEgNnZW8aC2d3L2d3LnByb3RvGhNjb21tb24vY29t", + "bW9uLnByb3RvIjMKDVJlc29sdmVSZXN1bHQSIgoIbG9jYXRpb24YASABKAsy", + "EC5jb21tb24uTG9jYXRpb24iMAoLRnJhbWVSWEluZm8SIQoHcnhfaW5mbxgB", + "IAMoCzIQLmd3LlVwbGlua1JYSW5mbyKGAQoSUmVzb2x2ZVRET0FSZXF1ZXN0", + "EhcKB2Rldl9ldWkYASABKAxSBmRldkVVSRI0Cg1mcmFtZV9yeF9pbmZvGAIg", + "ASgLMhAuZ2VvLkZyYW1lUlhJbmZvUgtmcmFtZVJYSW5mbxIhChlkZXZpY2Vf", + "cmVmZXJlbmNlX2FsdGl0dWRlGAMgASgBIpcBChxSZXNvbHZlTXVsdGlGcmFt", + "ZVRET0FSZXF1ZXN0EhcKB2Rldl9ldWkYASABKAxSBmRldkVVSRI7ChFmcmFt", + "ZV9yeF9pbmZvX3NldBgCIAMoCzIQLmdlby5GcmFtZVJYSW5mb1IOZnJhbWVS", + "WEluZm9TZXQSIQoZZGV2aWNlX3JlZmVyZW5jZV9hbHRpdHVkZRgDIAEoASI5", + "ChNSZXNvbHZlVERPQVJlc3BvbnNlEiIKBnJlc3VsdBgBIAEoCzISLmdlby5S", + "ZXNvbHZlUmVzdWx0IkMKHVJlc29sdmVNdWx0aUZyYW1lVERPQVJlc3BvbnNl", + "EiIKBnJlc3VsdBgBIAEoCzISLmdlby5SZXNvbHZlUmVzdWx0MsABChhHZW9s", + "b2NhdGlvblNlcnZlclNlcnZpY2USQgoLUmVzb2x2ZVRET0ESFy5nZW8uUmVz", + "b2x2ZVRET0FSZXF1ZXN0GhguZ2VvLlJlc29sdmVURE9BUmVzcG9uc2UiABJg", + "ChVSZXNvbHZlTXVsdGlGcmFtZVRET0ESIS5nZW8uUmVzb2x2ZU11bHRpRnJh", + "bWVURE9BUmVxdWVzdBoiLmdlby5SZXNvbHZlTXVsdGlGcmFtZVRET0FSZXNw", + "b25zZSIAQm8KFWlvLmNoaXJwc3RhY2suYXBpLmdlb0IWR2VvbG9jYXRpb25T", + "ZXJ2ZXJQcm90b1ABWitnaXRodWIuY29tL2Jyb2NhYXIvY2hpcnBzdGFjay1h", + "cGkvZ28vdjMvZ2VvqgIOQ2hpcnBzdGFjay5HZW9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Chirpstack.Gateway.GwReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Geo.ResolveResult), global::Chirpstack.Geo.ResolveResult.Parser, new[]{ "Location" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Geo.FrameRXInfo), global::Chirpstack.Geo.FrameRXInfo.Parser, new[]{ "RxInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Geo.ResolveTDOARequest), global::Chirpstack.Geo.ResolveTDOARequest.Parser, new[]{ "DevEui", "FrameRxInfo", "DeviceReferenceAltitude" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Geo.ResolveMultiFrameTDOARequest), global::Chirpstack.Geo.ResolveMultiFrameTDOARequest.Parser, new[]{ "DevEui", "FrameRxInfoSet", "DeviceReferenceAltitude" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Geo.ResolveTDOAResponse), global::Chirpstack.Geo.ResolveTDOAResponse.Parser, new[]{ "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Geo.ResolveMultiFrameTDOAResponse), global::Chirpstack.Geo.ResolveMultiFrameTDOAResponse.Parser, new[]{ "Result" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class ResolveResult : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResolveResult()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Geo.GeoReflection.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 ResolveResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveResult(ResolveResult other) : this() { + 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 ResolveResult Clone() { + return new ResolveResult(this); + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 1; + private global::Chirpstack.Common.Location location_; + /// + /// Resolved 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 ResolveResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResolveResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (location_ != null) { + output.WriteRawTag(10); + 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 (location_ != null) { + output.WriteRawTag(10); + 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 (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(ResolveResult other) { + if (other == null) { + return; + } + 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: { + 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: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + } + } + } + #endif + + } + + public sealed partial class FrameRXInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrameRXInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Geo.GeoReflection.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 FrameRXInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameRXInfo(FrameRXInfo other) : this() { + rxInfo_ = other.rxInfo_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameRXInfo Clone() { + return new FrameRXInfo(this); + } + + /// Field number for the "rx_info" field. + public const int RxInfoFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_rxInfo_codec + = pb::FieldCodec.ForMessage(10, global::Chirpstack.Gateway.UplinkRXInfo.Parser); + private readonly pbc::RepeatedField rxInfo_ = new pbc::RepeatedField(); + /// + /// Uplink Gateway meta-data. + /// + [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 FrameRXInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FrameRXInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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; + 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 + 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) { + 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; + 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(FrameRXInfo other) { + if (other == null) { + return; + } + 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: { + 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: { + rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResolveTDOARequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResolveTDOARequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Geo.GeoReflection.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 ResolveTDOARequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveTDOARequest(ResolveTDOARequest other) : this() { + devEui_ = other.devEui_; + frameRxInfo_ = other.frameRxInfo_ != null ? other.frameRxInfo_.Clone() : null; + deviceReferenceAltitude_ = other.deviceReferenceAltitude_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveTDOARequest Clone() { + return new ResolveTDOARequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "frame_rx_info" field. + public const int FrameRxInfoFieldNumber = 2; + private global::Chirpstack.Geo.FrameRXInfo frameRxInfo_; + /// + /// Frame meta-data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Geo.FrameRXInfo FrameRxInfo { + get { return frameRxInfo_; } + set { + frameRxInfo_ = value; + } + } + + /// Field number for the "device_reference_altitude" field. + public const int DeviceReferenceAltitudeFieldNumber = 3; + private double deviceReferenceAltitude_; + /// + /// Device reference altitude. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double DeviceReferenceAltitude { + get { return deviceReferenceAltitude_; } + set { + deviceReferenceAltitude_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResolveTDOARequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResolveTDOARequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (!object.Equals(FrameRxInfo, other.FrameRxInfo)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DeviceReferenceAltitude, other.DeviceReferenceAltitude)) return false; + 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 (frameRxInfo_ != null) hash ^= FrameRxInfo.GetHashCode(); + if (DeviceReferenceAltitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DeviceReferenceAltitude); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevEui); + } + if (frameRxInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(FrameRxInfo); + } + if (DeviceReferenceAltitude != 0D) { + output.WriteRawTag(25); + output.WriteDouble(DeviceReferenceAltitude); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(DevEui); + } + if (frameRxInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(FrameRxInfo); + } + if (DeviceReferenceAltitude != 0D) { + output.WriteRawTag(25); + output.WriteDouble(DeviceReferenceAltitude); + } + if (_unknownFields != 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.ComputeBytesSize(DevEui); + } + if (frameRxInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FrameRxInfo); + } + if (DeviceReferenceAltitude != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResolveTDOARequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.frameRxInfo_ != null) { + if (frameRxInfo_ == null) { + FrameRxInfo = new global::Chirpstack.Geo.FrameRXInfo(); + } + FrameRxInfo.MergeFrom(other.FrameRxInfo); + } + if (other.DeviceReferenceAltitude != 0D) { + DeviceReferenceAltitude = other.DeviceReferenceAltitude; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 18: { + if (frameRxInfo_ == null) { + FrameRxInfo = new global::Chirpstack.Geo.FrameRXInfo(); + } + input.ReadMessage(FrameRxInfo); + break; + } + case 25: { + DeviceReferenceAltitude = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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.ReadBytes(); + break; + } + case 18: { + if (frameRxInfo_ == null) { + FrameRxInfo = new global::Chirpstack.Geo.FrameRXInfo(); + } + input.ReadMessage(FrameRxInfo); + break; + } + case 25: { + DeviceReferenceAltitude = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResolveMultiFrameTDOARequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResolveMultiFrameTDOARequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Geo.GeoReflection.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 ResolveMultiFrameTDOARequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveMultiFrameTDOARequest(ResolveMultiFrameTDOARequest other) : this() { + devEui_ = other.devEui_; + frameRxInfoSet_ = other.frameRxInfoSet_.Clone(); + deviceReferenceAltitude_ = other.deviceReferenceAltitude_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveMultiFrameTDOARequest Clone() { + return new ResolveMultiFrameTDOARequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "frame_rx_info_set" field. + public const int FrameRxInfoSetFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_frameRxInfoSet_codec + = pb::FieldCodec.ForMessage(18, global::Chirpstack.Geo.FrameRXInfo.Parser); + private readonly pbc::RepeatedField frameRxInfoSet_ = new pbc::RepeatedField(); + /// + /// Frames meta-data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FrameRxInfoSet { + get { return frameRxInfoSet_; } + } + + /// Field number for the "device_reference_altitude" field. + public const int DeviceReferenceAltitudeFieldNumber = 3; + private double deviceReferenceAltitude_; + /// + /// Device reference altitude. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double DeviceReferenceAltitude { + get { return deviceReferenceAltitude_; } + set { + deviceReferenceAltitude_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResolveMultiFrameTDOARequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResolveMultiFrameTDOARequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if(!frameRxInfoSet_.Equals(other.frameRxInfoSet_)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DeviceReferenceAltitude, other.DeviceReferenceAltitude)) return false; + 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(); + hash ^= frameRxInfoSet_.GetHashCode(); + if (DeviceReferenceAltitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DeviceReferenceAltitude); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevEui); + } + frameRxInfoSet_.WriteTo(output, _repeated_frameRxInfoSet_codec); + if (DeviceReferenceAltitude != 0D) { + output.WriteRawTag(25); + output.WriteDouble(DeviceReferenceAltitude); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(DevEui); + } + frameRxInfoSet_.WriteTo(ref output, _repeated_frameRxInfoSet_codec); + if (DeviceReferenceAltitude != 0D) { + output.WriteRawTag(25); + output.WriteDouble(DeviceReferenceAltitude); + } + if (_unknownFields != 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.ComputeBytesSize(DevEui); + } + size += frameRxInfoSet_.CalculateSize(_repeated_frameRxInfoSet_codec); + if (DeviceReferenceAltitude != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResolveMultiFrameTDOARequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + frameRxInfoSet_.Add(other.frameRxInfoSet_); + if (other.DeviceReferenceAltitude != 0D) { + DeviceReferenceAltitude = other.DeviceReferenceAltitude; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 18: { + frameRxInfoSet_.AddEntriesFrom(input, _repeated_frameRxInfoSet_codec); + break; + } + case 25: { + DeviceReferenceAltitude = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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.ReadBytes(); + break; + } + case 18: { + frameRxInfoSet_.AddEntriesFrom(ref input, _repeated_frameRxInfoSet_codec); + break; + } + case 25: { + DeviceReferenceAltitude = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResolveTDOAResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResolveTDOAResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Geo.GeoReflection.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 ResolveTDOAResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveTDOAResponse(ResolveTDOAResponse other) : this() { + result_ = other.result_ != null ? other.result_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveTDOAResponse Clone() { + return new ResolveTDOAResponse(this); + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 1; + private global::Chirpstack.Geo.ResolveResult result_; + /// + /// Resolve result. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Geo.ResolveResult Result { + get { return result_; } + set { + result_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResolveTDOAResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResolveTDOAResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Result, 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 (result_ != null) 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 (result_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Result); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (result_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Result); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (result_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResolveTDOAResponse other) { + if (other == null) { + return; + } + if (other.result_ != null) { + if (result_ == null) { + Result = new global::Chirpstack.Geo.ResolveResult(); + } + Result.MergeFrom(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: { + if (result_ == null) { + Result = new global::Chirpstack.Geo.ResolveResult(); + } + input.ReadMessage(Result); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (result_ == null) { + Result = new global::Chirpstack.Geo.ResolveResult(); + } + input.ReadMessage(Result); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResolveMultiFrameTDOAResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResolveMultiFrameTDOAResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.Geo.GeoReflection.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 ResolveMultiFrameTDOAResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveMultiFrameTDOAResponse(ResolveMultiFrameTDOAResponse other) : this() { + result_ = other.result_ != null ? other.result_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveMultiFrameTDOAResponse Clone() { + return new ResolveMultiFrameTDOAResponse(this); + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 1; + private global::Chirpstack.Geo.ResolveResult result_; + /// + /// Resolve result. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Geo.ResolveResult Result { + get { return result_; } + set { + result_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResolveMultiFrameTDOAResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResolveMultiFrameTDOAResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Result, 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 (result_ != null) 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 (result_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Result); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (result_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Result); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (result_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResolveMultiFrameTDOAResponse other) { + if (other == null) { + return; + } + if (other.result_ != null) { + if (result_ == null) { + Result = new global::Chirpstack.Geo.ResolveResult(); + } + Result.MergeFrom(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: { + if (result_ == null) { + Result = new global::Chirpstack.Geo.ResolveResult(); + } + input.ReadMessage(Result); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (result_ == null) { + Result = new global::Chirpstack.Geo.ResolveResult(); + } + input.ReadMessage(Result); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/geo/GeoGrpc.cs b/csharp/protobuf/geo/GeoGrpc.cs new file mode 100644 index 00000000..8c1336ad --- /dev/null +++ b/csharp/protobuf/geo/GeoGrpc.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: geo/geo.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.Geo { + /// + /// GeolocationServerService implements a geolocation-server service. + /// + public static partial class GeolocationServerService + { + static readonly string __ServiceName = "geo.GeolocationServerService"; + + [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_geo_ResolveTDOARequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Geo.ResolveTDOARequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_geo_ResolveTDOAResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Geo.ResolveTDOAResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_geo_ResolveMultiFrameTDOARequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Geo.ResolveMultiFrameTDOARequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_geo_ResolveMultiFrameTDOAResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Geo.ResolveMultiFrameTDOAResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ResolveTDOA = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ResolveTDOA", + __Marshaller_geo_ResolveTDOARequest, + __Marshaller_geo_ResolveTDOAResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ResolveMultiFrameTDOA = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ResolveMultiFrameTDOA", + __Marshaller_geo_ResolveMultiFrameTDOARequest, + __Marshaller_geo_ResolveMultiFrameTDOAResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.Geo.GeoReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of GeolocationServerService + [grpc::BindServiceMethod(typeof(GeolocationServerService), "BindService")] + public abstract partial class GeolocationServerServiceBase + { + /// + /// ResolveTDOA resolves the location based on TDOA. + /// + /// 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 ResolveTDOA(global::Chirpstack.Geo.ResolveTDOARequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// ResolveMultiFrameTDOA resolves the location using TDOA, based on + /// multiple frames. + /// + /// 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 ResolveMultiFrameTDOA(global::Chirpstack.Geo.ResolveMultiFrameTDOARequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for GeolocationServerService + public partial class GeolocationServerServiceClient : grpc::ClientBase + { + /// Creates a new client for GeolocationServerService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public GeolocationServerServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for GeolocationServerService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public GeolocationServerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected GeolocationServerServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected GeolocationServerServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// ResolveTDOA resolves the location based on TDOA. + /// + /// 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.Geo.ResolveTDOAResponse ResolveTDOA(global::Chirpstack.Geo.ResolveTDOARequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ResolveTDOA(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ResolveTDOA resolves the location based on TDOA. + /// + /// 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.Geo.ResolveTDOAResponse ResolveTDOA(global::Chirpstack.Geo.ResolveTDOARequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ResolveTDOA, null, options, request); + } + /// + /// ResolveTDOA resolves the location based on TDOA. + /// + /// 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 ResolveTDOAAsync(global::Chirpstack.Geo.ResolveTDOARequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ResolveTDOAAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ResolveTDOA resolves the location based on TDOA. + /// + /// 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 ResolveTDOAAsync(global::Chirpstack.Geo.ResolveTDOARequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ResolveTDOA, null, options, request); + } + /// + /// ResolveMultiFrameTDOA resolves the location using TDOA, based on + /// multiple frames. + /// + /// 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.Geo.ResolveMultiFrameTDOAResponse ResolveMultiFrameTDOA(global::Chirpstack.Geo.ResolveMultiFrameTDOARequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ResolveMultiFrameTDOA(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ResolveMultiFrameTDOA resolves the location using TDOA, based on + /// multiple frames. + /// + /// 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.Geo.ResolveMultiFrameTDOAResponse ResolveMultiFrameTDOA(global::Chirpstack.Geo.ResolveMultiFrameTDOARequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ResolveMultiFrameTDOA, null, options, request); + } + /// + /// ResolveMultiFrameTDOA resolves the location using TDOA, based on + /// multiple frames. + /// + /// 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 ResolveMultiFrameTDOAAsync(global::Chirpstack.Geo.ResolveMultiFrameTDOARequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ResolveMultiFrameTDOAAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ResolveMultiFrameTDOA resolves the location using TDOA, based on + /// multiple frames. + /// + /// 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 ResolveMultiFrameTDOAAsync(global::Chirpstack.Geo.ResolveMultiFrameTDOARequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ResolveMultiFrameTDOA, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override GeolocationServerServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new GeolocationServerServiceClient(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(GeolocationServerServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_ResolveTDOA, serviceImpl.ResolveTDOA) + .AddMethod(__Method_ResolveMultiFrameTDOA, serviceImpl.ResolveMultiFrameTDOA).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, GeolocationServerServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_ResolveTDOA, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ResolveTDOA)); + serviceBinder.AddMethod(__Method_ResolveMultiFrameTDOA, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ResolveMultiFrameTDOA)); + } + + } +} +#endregion diff --git a/csharp/protobuf/google/api/Annotations.cs b/csharp/protobuf/google/api/Annotations.cs new file mode 100644 index 00000000..b89a53c6 --- /dev/null +++ b/csharp/protobuf/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/csharp/protobuf/google/api/Auth.cs b/csharp/protobuf/google/api/Auth.cs new file mode 100644 index 00000000..d46d3598 --- /dev/null +++ b/csharp/protobuf/google/api/Auth.cs @@ -0,0 +1,1847 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/auth.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/auth.proto + public static partial class AuthReflection { + + #region Descriptor + /// File descriptor for google/api/auth.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AuthReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVnb29nbGUvYXBpL2F1dGgucHJvdG8SCmdvb2dsZS5hcGkibAoOQXV0aGVu", + "dGljYXRpb24SLQoFcnVsZXMYAyADKAsyHi5nb29nbGUuYXBpLkF1dGhlbnRp", + "Y2F0aW9uUnVsZRIrCglwcm92aWRlcnMYBCADKAsyGC5nb29nbGUuYXBpLkF1", + "dGhQcm92aWRlciKpAQoSQXV0aGVudGljYXRpb25SdWxlEhAKCHNlbGVjdG9y", + "GAEgASgJEiwKBW9hdXRoGAIgASgLMh0uZ29vZ2xlLmFwaS5PQXV0aFJlcXVp", + "cmVtZW50cxIgChhhbGxvd193aXRob3V0X2NyZWRlbnRpYWwYBSABKAgSMQoM", + "cmVxdWlyZW1lbnRzGAcgAygLMhsuZ29vZ2xlLmFwaS5BdXRoUmVxdWlyZW1l", + "bnQiTAoLSnd0TG9jYXRpb24SEAoGaGVhZGVyGAEgASgJSAASDwoFcXVlcnkY", + "AiABKAlIABIUCgx2YWx1ZV9wcmVmaXgYAyABKAlCBAoCaW4imgEKDEF1dGhQ", + "cm92aWRlchIKCgJpZBgBIAEoCRIOCgZpc3N1ZXIYAiABKAkSEAoIandrc191", + "cmkYAyABKAkSEQoJYXVkaWVuY2VzGAQgASgJEhkKEWF1dGhvcml6YXRpb25f", + "dXJsGAUgASgJEi4KDWp3dF9sb2NhdGlvbnMYBiADKAsyFy5nb29nbGUuYXBp", + "Lkp3dExvY2F0aW9uIi0KEU9BdXRoUmVxdWlyZW1lbnRzEhgKEGNhbm9uaWNh", + "bF9zY29wZXMYASABKAkiOQoPQXV0aFJlcXVpcmVtZW50EhMKC3Byb3ZpZGVy", + "X2lkGAEgASgJEhEKCWF1ZGllbmNlcxgCIAEoCUJrCg5jb20uZ29vZ2xlLmFw", + "aUIJQXV0aFByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dv", + "b2dsZWFwaXMvYXBpL3NlcnZpY2Vjb25maWc7c2VydmljZWNvbmZpZ6ICBEdB", + "UEliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Authentication), global::Google.Api.Authentication.Parser, new[]{ "Rules", "Providers" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.AuthenticationRule), global::Google.Api.AuthenticationRule.Parser, new[]{ "Selector", "Oauth", "AllowWithoutCredential", "Requirements" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.JwtLocation), global::Google.Api.JwtLocation.Parser, new[]{ "Header", "Query", "ValuePrefix" }, new[]{ "In" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.AuthProvider), global::Google.Api.AuthProvider.Parser, new[]{ "Id", "Issuer", "JwksUri", "Audiences", "AuthorizationUrl", "JwtLocations" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.OAuthRequirements), global::Google.Api.OAuthRequirements.Parser, new[]{ "CanonicalScopes" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.AuthRequirement), global::Google.Api.AuthRequirement.Parser, new[]{ "ProviderId", "Audiences" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// `Authentication` defines the authentication configuration for API methods + /// provided by an API service. + /// + /// Example: + /// + /// name: calendar.googleapis.com + /// authentication: + /// providers: + /// - id: google_calendar_auth + /// jwks_uri: https://www.googleapis.com/oauth2/v1/certs + /// issuer: https://securetoken.google.com + /// rules: + /// - selector: "*" + /// requirements: + /// provider_id: google_calendar_auth + /// - selector: google.calendar.Delegate + /// oauth: + /// canonical_scopes: https://www.googleapis.com/auth/calendar.read + /// + public sealed partial class Authentication : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Authentication()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.AuthReflection.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 Authentication() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Authentication(Authentication other) : this() { + rules_ = other.rules_.Clone(); + providers_ = other.providers_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Authentication Clone() { + return new Authentication(this); + } + + /// Field number for the "rules" field. + public const int RulesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_rules_codec + = pb::FieldCodec.ForMessage(26, global::Google.Api.AuthenticationRule.Parser); + private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); + /// + /// A list of authentication 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 "providers" field. + public const int ProvidersFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_providers_codec + = pb::FieldCodec.ForMessage(34, global::Google.Api.AuthProvider.Parser); + private readonly pbc::RepeatedField providers_ = new pbc::RepeatedField(); + /// + /// Defines a set of authentication providers that a service supports. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Providers { + get { return providers_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Authentication); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Authentication other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rules_.Equals(other.rules_)) return false; + if(!providers_.Equals(other.providers_)) return 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(); + hash ^= providers_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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); + providers_.WriteTo(output, _repeated_providers_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) { + rules_.WriteTo(ref output, _repeated_rules_codec); + providers_.WriteTo(ref output, _repeated_providers_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 += rules_.CalculateSize(_repeated_rules_codec); + size += providers_.CalculateSize(_repeated_providers_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Authentication other) { + if (other == null) { + return; + } + rules_.Add(other.rules_); + providers_.Add(other.providers_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + rules_.AddEntriesFrom(input, _repeated_rules_codec); + break; + } + case 34: { + providers_.AddEntriesFrom(input, _repeated_providers_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 26: { + rules_.AddEntriesFrom(ref input, _repeated_rules_codec); + break; + } + case 34: { + providers_.AddEntriesFrom(ref input, _repeated_providers_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Authentication rules for the service. + /// + /// By default, if a method has any authentication requirements, every request + /// must include a valid credential matching one of the requirements. + /// It's an error to include more than one kind of credential in a single + /// request. + /// + /// If a method doesn't have any auth requirements, request credentials will be + /// ignored. + /// + public sealed partial class AuthenticationRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthenticationRule()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.AuthReflection.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 AuthenticationRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthenticationRule(AuthenticationRule other) : this() { + selector_ = other.selector_; + oauth_ = other.oauth_ != null ? other.oauth_.Clone() : null; + allowWithoutCredential_ = other.allowWithoutCredential_; + requirements_ = other.requirements_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthenticationRule Clone() { + return new AuthenticationRule(this); + } + + /// Field number for the "selector" field. + public const int SelectorFieldNumber = 1; + private string selector_ = ""; + /// + /// Selects the methods 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 "oauth" field. + public const int OauthFieldNumber = 2; + private global::Google.Api.OAuthRequirements oauth_; + /// + /// The requirements for OAuth credentials. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.OAuthRequirements Oauth { + get { return oauth_; } + set { + oauth_ = value; + } + } + + /// Field number for the "allow_without_credential" field. + public const int AllowWithoutCredentialFieldNumber = 5; + private bool allowWithoutCredential_; + /// + /// If true, the service accepts API keys without any other credential. + /// This flag only applies to HTTP and gRPC requests. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowWithoutCredential { + get { return allowWithoutCredential_; } + set { + allowWithoutCredential_ = value; + } + } + + /// Field number for the "requirements" field. + public const int RequirementsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_requirements_codec + = pb::FieldCodec.ForMessage(58, global::Google.Api.AuthRequirement.Parser); + private readonly pbc::RepeatedField requirements_ = new pbc::RepeatedField(); + /// + /// Requirements for additional authentication providers. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Requirements { + get { return requirements_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AuthenticationRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AuthenticationRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Selector != other.Selector) return false; + if (!object.Equals(Oauth, other.Oauth)) return false; + if (AllowWithoutCredential != other.AllowWithoutCredential) return false; + if(!requirements_.Equals(other.requirements_)) return false; + 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 (oauth_ != null) hash ^= Oauth.GetHashCode(); + if (AllowWithoutCredential != false) hash ^= AllowWithoutCredential.GetHashCode(); + hash ^= requirements_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (oauth_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Oauth); + } + if (AllowWithoutCredential != false) { + output.WriteRawTag(40); + output.WriteBool(AllowWithoutCredential); + } + requirements_.WriteTo(output, _repeated_requirements_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 (Selector.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Selector); + } + if (oauth_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Oauth); + } + if (AllowWithoutCredential != false) { + output.WriteRawTag(40); + output.WriteBool(AllowWithoutCredential); + } + requirements_.WriteTo(ref output, _repeated_requirements_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 (Selector.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Selector); + } + if (oauth_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Oauth); + } + if (AllowWithoutCredential != false) { + size += 1 + 1; + } + size += requirements_.CalculateSize(_repeated_requirements_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AuthenticationRule other) { + if (other == null) { + return; + } + if (other.Selector.Length != 0) { + Selector = other.Selector; + } + if (other.oauth_ != null) { + if (oauth_ == null) { + Oauth = new global::Google.Api.OAuthRequirements(); + } + Oauth.MergeFrom(other.Oauth); + } + if (other.AllowWithoutCredential != false) { + AllowWithoutCredential = other.AllowWithoutCredential; + } + requirements_.Add(other.requirements_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + if (oauth_ == null) { + Oauth = new global::Google.Api.OAuthRequirements(); + } + input.ReadMessage(Oauth); + break; + } + case 40: { + AllowWithoutCredential = input.ReadBool(); + break; + } + case 58: { + requirements_.AddEntriesFrom(input, _repeated_requirements_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: { + Selector = input.ReadString(); + break; + } + case 18: { + if (oauth_ == null) { + Oauth = new global::Google.Api.OAuthRequirements(); + } + input.ReadMessage(Oauth); + break; + } + case 40: { + AllowWithoutCredential = input.ReadBool(); + break; + } + case 58: { + requirements_.AddEntriesFrom(ref input, _repeated_requirements_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Specifies a location to extract JWT from an API request. + /// + public sealed partial class JwtLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JwtLocation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.AuthReflection.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 JwtLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JwtLocation(JwtLocation other) : this() { + valuePrefix_ = other.valuePrefix_; + switch (other.InCase) { + case InOneofCase.Header: + Header = other.Header; + break; + case InOneofCase.Query: + Query = other.Query; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JwtLocation Clone() { + return new JwtLocation(this); + } + + /// Field number for the "header" field. + public const int HeaderFieldNumber = 1; + /// + /// Specifies HTTP header name to extract JWT token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Header { + get { return inCase_ == InOneofCase.Header ? (string) in_ : ""; } + set { + in_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + inCase_ = InOneofCase.Header; + } + } + + /// Field number for the "query" field. + public const int QueryFieldNumber = 2; + /// + /// Specifies URL query parameter name to extract JWT token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Query { + get { return inCase_ == InOneofCase.Query ? (string) in_ : ""; } + set { + in_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + inCase_ = InOneofCase.Query; + } + } + + /// Field number for the "value_prefix" field. + public const int ValuePrefixFieldNumber = 3; + private string valuePrefix_ = ""; + /// + /// The value prefix. The value format is "value_prefix{token}" + /// Only applies to "in" header type. Must be empty for "in" query type. + /// If not empty, the header value has to match (case sensitive) this prefix. + /// If not matched, JWT will not be extracted. If matched, JWT will be + /// extracted after the prefix is removed. + /// + /// For example, for "Authorization: Bearer {JWT}", + /// value_prefix="Bearer " with a space at the end. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ValuePrefix { + get { return valuePrefix_; } + set { + valuePrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + private object in_; + /// Enum of possible cases for the "in" oneof. + public enum InOneofCase { + None = 0, + Header = 1, + Query = 2, + } + private InOneofCase inCase_ = InOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InOneofCase InCase { + get { return inCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIn() { + inCase_ = InOneofCase.None; + in_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as JwtLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(JwtLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Header != other.Header) return false; + if (Query != other.Query) return false; + if (ValuePrefix != other.ValuePrefix) return false; + if (InCase != other.InCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (inCase_ == InOneofCase.Header) hash ^= Header.GetHashCode(); + if (inCase_ == InOneofCase.Query) hash ^= Query.GetHashCode(); + if (ValuePrefix.Length != 0) hash ^= ValuePrefix.GetHashCode(); + hash ^= (int) inCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (inCase_ == InOneofCase.Header) { + output.WriteRawTag(10); + output.WriteString(Header); + } + if (inCase_ == InOneofCase.Query) { + output.WriteRawTag(18); + output.WriteString(Query); + } + if (ValuePrefix.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ValuePrefix); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (inCase_ == InOneofCase.Header) { + output.WriteRawTag(10); + output.WriteString(Header); + } + if (inCase_ == InOneofCase.Query) { + output.WriteRawTag(18); + output.WriteString(Query); + } + if (ValuePrefix.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ValuePrefix); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (inCase_ == InOneofCase.Header) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Header); + } + if (inCase_ == InOneofCase.Query) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); + } + if (ValuePrefix.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ValuePrefix); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(JwtLocation other) { + if (other == null) { + return; + } + if (other.ValuePrefix.Length != 0) { + ValuePrefix = other.ValuePrefix; + } + switch (other.InCase) { + case InOneofCase.Header: + Header = other.Header; + break; + case InOneofCase.Query: + Query = other.Query; + 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: { + Header = input.ReadString(); + break; + } + case 18: { + Query = input.ReadString(); + break; + } + case 26: { + ValuePrefix = 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: { + Header = input.ReadString(); + break; + } + case 18: { + Query = input.ReadString(); + break; + } + case 26: { + ValuePrefix = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Configuration for an authentication provider, including support for + /// [JSON Web Token + /// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). + /// + public sealed partial class AuthProvider : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthProvider()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.AuthReflection.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 AuthProvider() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthProvider(AuthProvider other) : this() { + id_ = other.id_; + issuer_ = other.issuer_; + jwksUri_ = other.jwksUri_; + audiences_ = other.audiences_; + authorizationUrl_ = other.authorizationUrl_; + jwtLocations_ = other.jwtLocations_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthProvider Clone() { + return new AuthProvider(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// The unique identifier of the auth provider. It will be referred to by + /// `AuthRequirement.provider_id`. + /// + /// Example: "bookstore_auth". + /// + [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 "issuer" field. + public const int IssuerFieldNumber = 2; + private string issuer_ = ""; + /// + /// Identifies the principal that issued the JWT. See + /// https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 + /// Usually a URL or an email address. + /// + /// Example: https://securetoken.google.com + /// Example: 1234567-compute@developer.gserviceaccount.com + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Issuer { + get { return issuer_; } + set { + issuer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "jwks_uri" field. + public const int JwksUriFieldNumber = 3; + private string jwksUri_ = ""; + /// + /// URL of the provider's public key set to validate signature of the JWT. See + /// [OpenID + /// Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). + /// Optional if the key set document: + /// - can be retrieved from + /// [OpenID + /// Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + /// of the issuer. + /// - can be inferred from the email domain of the issuer (e.g. a Google + /// service account). + /// + /// Example: https://www.googleapis.com/oauth2/v1/certs + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string JwksUri { + get { return jwksUri_; } + set { + jwksUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "audiences" field. + public const int AudiencesFieldNumber = 4; + private string audiences_ = ""; + /// + /// The list of JWT + /// [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + /// that are allowed to access. A JWT containing any of these audiences will + /// be accepted. When this setting is absent, JWTs with audiences: + /// - "https://[service.name]/[google.protobuf.Api.name]" + /// - "https://[service.name]/" + /// will be accepted. + /// For example, if no audiences are in the setting, LibraryService API will + /// accept JWTs with the following audiences: + /// - + /// https://library-example.googleapis.com/google.example.library.v1.LibraryService + /// - https://library-example.googleapis.com/ + /// + /// Example: + /// + /// audiences: bookstore_android.apps.googleusercontent.com, + /// bookstore_web.apps.googleusercontent.com + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Audiences { + get { return audiences_; } + set { + audiences_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "authorization_url" field. + public const int AuthorizationUrlFieldNumber = 5; + private string authorizationUrl_ = ""; + /// + /// Redirect URL if JWT token is required but not present or is expired. + /// Implement authorizationUrl of securityDefinitions in OpenAPI spec. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AuthorizationUrl { + get { return authorizationUrl_; } + set { + authorizationUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "jwt_locations" field. + public const int JwtLocationsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_jwtLocations_codec + = pb::FieldCodec.ForMessage(50, global::Google.Api.JwtLocation.Parser); + private readonly pbc::RepeatedField jwtLocations_ = new pbc::RepeatedField(); + /// + /// Defines the locations to extract the JWT. + /// + /// JWT locations can be either from HTTP headers or URL query parameters. + /// The rule is that the first match wins. The checking order is: checking + /// all headers first, then URL query parameters. + /// + /// If not specified, default to use following 3 locations: + /// 1) Authorization: Bearer + /// 2) x-goog-iap-jwt-assertion + /// 3) access_token query parameter + /// + /// Default locations can be specified as followings: + /// jwt_locations: + /// - header: Authorization + /// value_prefix: "Bearer " + /// - header: x-goog-iap-jwt-assertion + /// - query: access_token + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField JwtLocations { + get { return jwtLocations_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AuthProvider); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AuthProvider other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Issuer != other.Issuer) return false; + if (JwksUri != other.JwksUri) return false; + if (Audiences != other.Audiences) return false; + if (AuthorizationUrl != other.AuthorizationUrl) return false; + if(!jwtLocations_.Equals(other.jwtLocations_)) return false; + 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 (Issuer.Length != 0) hash ^= Issuer.GetHashCode(); + if (JwksUri.Length != 0) hash ^= JwksUri.GetHashCode(); + if (Audiences.Length != 0) hash ^= Audiences.GetHashCode(); + if (AuthorizationUrl.Length != 0) hash ^= AuthorizationUrl.GetHashCode(); + hash ^= jwtLocations_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Issuer.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Issuer); + } + if (JwksUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(JwksUri); + } + if (Audiences.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Audiences); + } + if (AuthorizationUrl.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AuthorizationUrl); + } + jwtLocations_.WriteTo(output, _repeated_jwtLocations_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 (Issuer.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Issuer); + } + if (JwksUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(JwksUri); + } + if (Audiences.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Audiences); + } + if (AuthorizationUrl.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AuthorizationUrl); + } + jwtLocations_.WriteTo(ref output, _repeated_jwtLocations_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 (Issuer.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Issuer); + } + if (JwksUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(JwksUri); + } + if (Audiences.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Audiences); + } + if (AuthorizationUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AuthorizationUrl); + } + size += jwtLocations_.CalculateSize(_repeated_jwtLocations_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AuthProvider other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Issuer.Length != 0) { + Issuer = other.Issuer; + } + if (other.JwksUri.Length != 0) { + JwksUri = other.JwksUri; + } + if (other.Audiences.Length != 0) { + Audiences = other.Audiences; + } + if (other.AuthorizationUrl.Length != 0) { + AuthorizationUrl = other.AuthorizationUrl; + } + jwtLocations_.Add(other.jwtLocations_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + Issuer = input.ReadString(); + break; + } + case 26: { + JwksUri = input.ReadString(); + break; + } + case 34: { + Audiences = input.ReadString(); + break; + } + case 42: { + AuthorizationUrl = input.ReadString(); + break; + } + case 50: { + jwtLocations_.AddEntriesFrom(input, _repeated_jwtLocations_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: { + Issuer = input.ReadString(); + break; + } + case 26: { + JwksUri = input.ReadString(); + break; + } + case 34: { + Audiences = input.ReadString(); + break; + } + case 42: { + AuthorizationUrl = input.ReadString(); + break; + } + case 50: { + jwtLocations_.AddEntriesFrom(ref input, _repeated_jwtLocations_codec); + break; + } + } + } + } + #endif + + } + + /// + /// OAuth scopes are a way to define data and permissions on data. For example, + /// there are scopes defined for "Read-only access to Google Calendar" and + /// "Access to Cloud Platform". Users can consent to a scope for an application, + /// giving it permission to access that data on their behalf. + /// + /// OAuth scope specifications should be fairly coarse grained; a user will need + /// to see and understand the text description of what your scope means. + /// + /// In most cases: use one or at most two OAuth scopes for an entire family of + /// products. If your product has multiple APIs, you should probably be sharing + /// the OAuth scope across all of those APIs. + /// + /// When you need finer grained OAuth consent screens: talk with your product + /// management about how developers will use them in practice. + /// + /// Please note that even though each of the canonical scopes is enough for a + /// request to be accepted and passed to the backend, a request can still fail + /// due to the backend requiring additional scopes or permissions. + /// + public sealed partial class OAuthRequirements : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OAuthRequirements()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.AuthReflection.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 OAuthRequirements() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OAuthRequirements(OAuthRequirements other) : this() { + canonicalScopes_ = other.canonicalScopes_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OAuthRequirements Clone() { + return new OAuthRequirements(this); + } + + /// Field number for the "canonical_scopes" field. + public const int CanonicalScopesFieldNumber = 1; + private string canonicalScopes_ = ""; + /// + /// The list of publicly documented OAuth scopes that are allowed access. An + /// OAuth token containing any of these scopes will be accepted. + /// + /// Example: + /// + /// canonical_scopes: https://www.googleapis.com/auth/calendar, + /// https://www.googleapis.com/auth/calendar.read + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CanonicalScopes { + get { return canonicalScopes_; } + set { + canonicalScopes_ = 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 OAuthRequirements); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OAuthRequirements other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CanonicalScopes != other.CanonicalScopes) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CanonicalScopes.Length != 0) hash ^= CanonicalScopes.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CanonicalScopes.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CanonicalScopes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CanonicalScopes.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CanonicalScopes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CanonicalScopes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CanonicalScopes); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OAuthRequirements other) { + if (other == null) { + return; + } + if (other.CanonicalScopes.Length != 0) { + CanonicalScopes = other.CanonicalScopes; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + CanonicalScopes = 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: { + CanonicalScopes = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// User-defined authentication requirements, including support for + /// [JSON Web Token + /// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). + /// + public sealed partial class AuthRequirement : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthRequirement()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.AuthReflection.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 AuthRequirement() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthRequirement(AuthRequirement other) : this() { + providerId_ = other.providerId_; + audiences_ = other.audiences_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthRequirement Clone() { + return new AuthRequirement(this); + } + + /// Field number for the "provider_id" field. + public const int ProviderIdFieldNumber = 1; + private string providerId_ = ""; + /// + /// [id][google.api.AuthProvider.id] from authentication provider. + /// + /// Example: + /// + /// provider_id: bookstore_auth + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ProviderId { + get { return providerId_; } + set { + providerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "audiences" field. + public const int AudiencesFieldNumber = 2; + private string audiences_ = ""; + /// + /// NOTE: This will be deprecated soon, once AuthProvider.audiences is + /// implemented and accepted in all the runtime components. + /// + /// The list of JWT + /// [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + /// that are allowed to access. A JWT containing any of these audiences will + /// be accepted. When this setting is absent, only JWTs with audience + /// "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" + /// will be accepted. For example, if no audiences are in the setting, + /// LibraryService API will only accept JWTs with the following audience + /// "https://library-example.googleapis.com/google.example.library.v1.LibraryService". + /// + /// Example: + /// + /// audiences: bookstore_android.apps.googleusercontent.com, + /// bookstore_web.apps.googleusercontent.com + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Audiences { + get { return audiences_; } + set { + audiences_ = 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 AuthRequirement); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AuthRequirement other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ProviderId != other.ProviderId) return false; + if (Audiences != other.Audiences) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ProviderId.Length != 0) hash ^= ProviderId.GetHashCode(); + if (Audiences.Length != 0) hash ^= Audiences.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ProviderId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ProviderId); + } + if (Audiences.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Audiences); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ProviderId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ProviderId); + } + if (Audiences.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Audiences); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ProviderId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ProviderId); + } + if (Audiences.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Audiences); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AuthRequirement other) { + if (other == null) { + return; + } + if (other.ProviderId.Length != 0) { + ProviderId = other.ProviderId; + } + if (other.Audiences.Length != 0) { + Audiences = other.Audiences; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ProviderId = input.ReadString(); + break; + } + case 18: { + Audiences = 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: { + ProviderId = input.ReadString(); + break; + } + case 18: { + Audiences = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Backend.cs b/csharp/protobuf/google/api/Backend.cs new file mode 100644 index 00000000..5de930f2 --- /dev/null +++ b/csharp/protobuf/google/api/Backend.cs @@ -0,0 +1,904 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/backend.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/backend.proto + public static partial class BackendReflection { + + #region Descriptor + /// File descriptor for google/api/backend.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BackendReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chhnb29nbGUvYXBpL2JhY2tlbmQucHJvdG8SCmdvb2dsZS5hcGkiMQoHQmFj", + "a2VuZBImCgVydWxlcxgBIAMoCzIXLmdvb2dsZS5hcGkuQmFja2VuZFJ1bGUi", + "8gIKC0JhY2tlbmRSdWxlEhAKCHNlbGVjdG9yGAEgASgJEg8KB2FkZHJlc3MY", + "AiABKAkSEAoIZGVhZGxpbmUYAyABKAESFAoMbWluX2RlYWRsaW5lGAQgASgB", + "EhoKEm9wZXJhdGlvbl9kZWFkbGluZRgFIAEoARJBChBwYXRoX3RyYW5zbGF0", + "aW9uGAYgASgOMicuZ29vZ2xlLmFwaS5CYWNrZW5kUnVsZS5QYXRoVHJhbnNs", + "YXRpb24SFgoMand0X2F1ZGllbmNlGAcgASgJSAASFgoMZGlzYWJsZV9hdXRo", + "GAggASgISAASEAoIcHJvdG9jb2wYCSABKAkiZQoPUGF0aFRyYW5zbGF0aW9u", + "EiAKHFBBVEhfVFJBTlNMQVRJT05fVU5TUEVDSUZJRUQQABIUChBDT05TVEFO", + "VF9BRERSRVNTEAESGgoWQVBQRU5EX1BBVEhfVE9fQUREUkVTUxACQhAKDmF1", + "dGhlbnRpY2F0aW9uQm4KDmNvbS5nb29nbGUuYXBpQgxCYWNrZW5kUHJvdG9Q", + "AVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkv", + "c2VydmljZWNvbmZpZztzZXJ2aWNlY29uZmlnogIER0FQSWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Backend), global::Google.Api.Backend.Parser, new[]{ "Rules" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.BackendRule), global::Google.Api.BackendRule.Parser, new[]{ "Selector", "Address", "Deadline", "MinDeadline", "OperationDeadline", "PathTranslation", "JwtAudience", "DisableAuth", "Protocol" }, new[]{ "Authentication" }, new[]{ typeof(global::Google.Api.BackendRule.Types.PathTranslation) }, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// `Backend` defines the backend configuration for a service. + /// + public sealed partial class Backend : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Backend()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.BackendReflection.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 Backend() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Backend(Backend other) : this() { + rules_ = other.rules_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Backend Clone() { + return new Backend(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.BackendRule.Parser); + private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); + /// + /// A list of API backend 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_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Backend); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Backend other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rules_.Equals(other.rules_)) return 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Backend other) { + if (other == null) { + return; + } + rules_.Add(other.rules_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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; + } + } + } + } + #endif + + } + + /// + /// A backend rule provides configuration for an individual API element. + /// + public sealed partial class BackendRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BackendRule()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.BackendReflection.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 BackendRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackendRule(BackendRule other) : this() { + selector_ = other.selector_; + address_ = other.address_; + deadline_ = other.deadline_; + minDeadline_ = other.minDeadline_; + operationDeadline_ = other.operationDeadline_; + pathTranslation_ = other.pathTranslation_; + protocol_ = other.protocol_; + switch (other.AuthenticationCase) { + case AuthenticationOneofCase.JwtAudience: + JwtAudience = other.JwtAudience; + break; + case AuthenticationOneofCase.DisableAuth: + DisableAuth = other.DisableAuth; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackendRule Clone() { + return new BackendRule(this); + } + + /// Field number for the "selector" field. + public const int SelectorFieldNumber = 1; + private string selector_ = ""; + /// + /// Selects the methods 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 "address" field. + public const int AddressFieldNumber = 2; + private string address_ = ""; + /// + /// The address of the API backend. + /// + /// The scheme is used to determine the backend protocol and security. + /// The following schemes are accepted: + /// + /// SCHEME PROTOCOL SECURITY + /// http:// HTTP None + /// https:// HTTP TLS + /// grpc:// gRPC None + /// grpcs:// gRPC TLS + /// + /// It is recommended to explicitly include a scheme. Leaving out the scheme + /// may cause constrasting behaviors across platforms. + /// + /// If the port is unspecified, the default is: + /// - 80 for schemes without TLS + /// - 443 for schemes with TLS + /// + /// For HTTP backends, use [protocol][google.api.BackendRule.protocol] + /// to specify the protocol version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Address { + get { return address_; } + set { + address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "deadline" field. + public const int DeadlineFieldNumber = 3; + private double deadline_; + /// + /// The number of seconds to wait for a response from a request. The default + /// varies based on the request protocol and deployment environment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Deadline { + get { return deadline_; } + set { + deadline_ = value; + } + } + + /// Field number for the "min_deadline" field. + public const int MinDeadlineFieldNumber = 4; + private double minDeadline_; + /// + /// Minimum deadline in seconds needed for this method. Calls having deadline + /// value lower than this will be rejected. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double MinDeadline { + get { return minDeadline_; } + set { + minDeadline_ = value; + } + } + + /// Field number for the "operation_deadline" field. + public const int OperationDeadlineFieldNumber = 5; + private double operationDeadline_; + /// + /// The number of seconds to wait for the completion of a long running + /// operation. The default is no deadline. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double OperationDeadline { + get { return operationDeadline_; } + set { + operationDeadline_ = value; + } + } + + /// Field number for the "path_translation" field. + public const int PathTranslationFieldNumber = 6; + private global::Google.Api.BackendRule.Types.PathTranslation pathTranslation_ = global::Google.Api.BackendRule.Types.PathTranslation.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.BackendRule.Types.PathTranslation PathTranslation { + get { return pathTranslation_; } + set { + pathTranslation_ = value; + } + } + + /// Field number for the "jwt_audience" field. + public const int JwtAudienceFieldNumber = 7; + /// + /// The JWT audience is used when generating a JWT ID token for the backend. + /// This ID token will be added in the HTTP "authorization" header, and sent + /// to the backend. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string JwtAudience { + get { return authenticationCase_ == AuthenticationOneofCase.JwtAudience ? (string) authentication_ : ""; } + set { + authentication_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + authenticationCase_ = AuthenticationOneofCase.JwtAudience; + } + } + + /// Field number for the "disable_auth" field. + public const int DisableAuthFieldNumber = 8; + /// + /// When disable_auth is true, a JWT ID token won't be generated and the + /// original "Authorization" HTTP header will be preserved. If the header is + /// used to carry the original token and is expected by the backend, this + /// field must be set to true to preserve the header. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DisableAuth { + get { return authenticationCase_ == AuthenticationOneofCase.DisableAuth ? (bool) authentication_ : false; } + set { + authentication_ = value; + authenticationCase_ = AuthenticationOneofCase.DisableAuth; + } + } + + /// Field number for the "protocol" field. + public const int ProtocolFieldNumber = 9; + private string protocol_ = ""; + /// + /// The protocol used for sending a request to the backend. + /// The supported values are "http/1.1" and "h2". + /// + /// The default value is inferred from the scheme in the + /// [address][google.api.BackendRule.address] field: + /// + /// SCHEME PROTOCOL + /// http:// http/1.1 + /// https:// http/1.1 + /// grpc:// h2 + /// grpcs:// h2 + /// + /// For secure HTTP backends (https://) that support HTTP/2, set this field + /// to "h2" for improved performance. + /// + /// Configuring this field to non-default values is only supported for secure + /// HTTP backends. This field will be ignored for all other backends. + /// + /// See + /// https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + /// for more details on the supported values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Protocol { + get { return protocol_; } + set { + protocol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + private object authentication_; + /// Enum of possible cases for the "authentication" oneof. + public enum AuthenticationOneofCase { + None = 0, + JwtAudience = 7, + DisableAuth = 8, + } + private AuthenticationOneofCase authenticationCase_ = AuthenticationOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthenticationOneofCase AuthenticationCase { + get { return authenticationCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAuthentication() { + authenticationCase_ = AuthenticationOneofCase.None; + authentication_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BackendRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BackendRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Selector != other.Selector) return false; + if (Address != other.Address) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Deadline, other.Deadline)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MinDeadline, other.MinDeadline)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OperationDeadline, other.OperationDeadline)) return false; + if (PathTranslation != other.PathTranslation) return false; + if (JwtAudience != other.JwtAudience) return false; + if (DisableAuth != other.DisableAuth) return false; + if (Protocol != other.Protocol) return false; + if (AuthenticationCase != other.AuthenticationCase) return false; + 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 (Address.Length != 0) hash ^= Address.GetHashCode(); + if (Deadline != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Deadline); + if (MinDeadline != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MinDeadline); + if (OperationDeadline != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OperationDeadline); + if (PathTranslation != global::Google.Api.BackendRule.Types.PathTranslation.Unspecified) hash ^= PathTranslation.GetHashCode(); + if (authenticationCase_ == AuthenticationOneofCase.JwtAudience) hash ^= JwtAudience.GetHashCode(); + if (authenticationCase_ == AuthenticationOneofCase.DisableAuth) hash ^= DisableAuth.GetHashCode(); + if (Protocol.Length != 0) hash ^= Protocol.GetHashCode(); + hash ^= (int) authenticationCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Address); + } + if (Deadline != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Deadline); + } + if (MinDeadline != 0D) { + output.WriteRawTag(33); + output.WriteDouble(MinDeadline); + } + if (OperationDeadline != 0D) { + output.WriteRawTag(41); + output.WriteDouble(OperationDeadline); + } + if (PathTranslation != global::Google.Api.BackendRule.Types.PathTranslation.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) PathTranslation); + } + if (authenticationCase_ == AuthenticationOneofCase.JwtAudience) { + output.WriteRawTag(58); + output.WriteString(JwtAudience); + } + if (authenticationCase_ == AuthenticationOneofCase.DisableAuth) { + output.WriteRawTag(64); + output.WriteBool(DisableAuth); + } + if (Protocol.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Protocol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Address); + } + if (Deadline != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Deadline); + } + if (MinDeadline != 0D) { + output.WriteRawTag(33); + output.WriteDouble(MinDeadline); + } + if (OperationDeadline != 0D) { + output.WriteRawTag(41); + output.WriteDouble(OperationDeadline); + } + if (PathTranslation != global::Google.Api.BackendRule.Types.PathTranslation.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) PathTranslation); + } + if (authenticationCase_ == AuthenticationOneofCase.JwtAudience) { + output.WriteRawTag(58); + output.WriteString(JwtAudience); + } + if (authenticationCase_ == AuthenticationOneofCase.DisableAuth) { + output.WriteRawTag(64); + output.WriteBool(DisableAuth); + } + if (Protocol.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Protocol); + } + if (_unknownFields != 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 (Address.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Address); + } + if (Deadline != 0D) { + size += 1 + 8; + } + if (MinDeadline != 0D) { + size += 1 + 8; + } + if (OperationDeadline != 0D) { + size += 1 + 8; + } + if (PathTranslation != global::Google.Api.BackendRule.Types.PathTranslation.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PathTranslation); + } + if (authenticationCase_ == AuthenticationOneofCase.JwtAudience) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(JwtAudience); + } + if (authenticationCase_ == AuthenticationOneofCase.DisableAuth) { + size += 1 + 1; + } + if (Protocol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Protocol); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BackendRule other) { + if (other == null) { + return; + } + if (other.Selector.Length != 0) { + Selector = other.Selector; + } + if (other.Address.Length != 0) { + Address = other.Address; + } + if (other.Deadline != 0D) { + Deadline = other.Deadline; + } + if (other.MinDeadline != 0D) { + MinDeadline = other.MinDeadline; + } + if (other.OperationDeadline != 0D) { + OperationDeadline = other.OperationDeadline; + } + if (other.PathTranslation != global::Google.Api.BackendRule.Types.PathTranslation.Unspecified) { + PathTranslation = other.PathTranslation; + } + if (other.Protocol.Length != 0) { + Protocol = other.Protocol; + } + switch (other.AuthenticationCase) { + case AuthenticationOneofCase.JwtAudience: + JwtAudience = other.JwtAudience; + break; + case AuthenticationOneofCase.DisableAuth: + DisableAuth = other.DisableAuth; + 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: { + Address = input.ReadString(); + break; + } + case 25: { + Deadline = input.ReadDouble(); + break; + } + case 33: { + MinDeadline = input.ReadDouble(); + break; + } + case 41: { + OperationDeadline = input.ReadDouble(); + break; + } + case 48: { + PathTranslation = (global::Google.Api.BackendRule.Types.PathTranslation) input.ReadEnum(); + break; + } + case 58: { + JwtAudience = input.ReadString(); + break; + } + case 64: { + DisableAuth = input.ReadBool(); + break; + } + case 74: { + Protocol = 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: { + Address = input.ReadString(); + break; + } + case 25: { + Deadline = input.ReadDouble(); + break; + } + case 33: { + MinDeadline = input.ReadDouble(); + break; + } + case 41: { + OperationDeadline = input.ReadDouble(); + break; + } + case 48: { + PathTranslation = (global::Google.Api.BackendRule.Types.PathTranslation) input.ReadEnum(); + break; + } + case 58: { + JwtAudience = input.ReadString(); + break; + } + case 64: { + DisableAuth = input.ReadBool(); + break; + } + case 74: { + Protocol = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the BackendRule message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Path Translation specifies how to combine the backend address with the + /// request path in order to produce the appropriate forwarding URL for the + /// request. + /// + /// Path Translation is applicable only to HTTP-based backends. Backends which + /// do not accept requests over HTTP/HTTPS should leave `path_translation` + /// unspecified. + /// + public enum PathTranslation { + [pbr::OriginalName("PATH_TRANSLATION_UNSPECIFIED")] Unspecified = 0, + /// + /// Use the backend address as-is, with no modification to the path. If the + /// URL pattern contains variables, the variable names and values will be + /// appended to the query string. If a query string parameter and a URL + /// pattern variable have the same name, this may result in duplicate keys in + /// the query string. + /// + /// # Examples + /// + /// Given the following operation config: + /// + /// Method path: /api/company/{cid}/user/{uid} + /// Backend address: https://example.cloudfunctions.net/getUser + /// + /// Requests to the following request paths will call the backend at the + /// translated path: + /// + /// Request path: /api/company/widgetworks/user/johndoe + /// Translated: + /// https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe + /// + /// Request path: /api/company/widgetworks/user/johndoe?timezone=EST + /// Translated: + /// https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe + /// + [pbr::OriginalName("CONSTANT_ADDRESS")] ConstantAddress = 1, + /// + /// The request path will be appended to the backend address. + /// + /// # Examples + /// + /// Given the following operation config: + /// + /// Method path: /api/company/{cid}/user/{uid} + /// Backend address: https://example.appspot.com + /// + /// Requests to the following request paths will call the backend at the + /// translated path: + /// + /// Request path: /api/company/widgetworks/user/johndoe + /// Translated: + /// https://example.appspot.com/api/company/widgetworks/user/johndoe + /// + /// Request path: /api/company/widgetworks/user/johndoe?timezone=EST + /// Translated: + /// https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST + /// + [pbr::OriginalName("APPEND_PATH_TO_ADDRESS")] AppendPathToAddress = 2, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Billing.cs b/csharp/protobuf/google/api/Billing.cs new file mode 100644 index 00000000..1a731ef7 --- /dev/null +++ b/csharp/protobuf/google/api/Billing.cs @@ -0,0 +1,500 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/billing.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/billing.proto + public static partial class BillingReflection { + + #region Descriptor + /// File descriptor for google/api/billing.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BillingReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chhnb29nbGUvYXBpL2JpbGxpbmcucHJvdG8SCmdvb2dsZS5hcGkikwEKB0Jp", + "bGxpbmcSRQoVY29uc3VtZXJfZGVzdGluYXRpb25zGAggAygLMiYuZ29vZ2xl", + "LmFwaS5CaWxsaW5nLkJpbGxpbmdEZXN0aW5hdGlvbhpBChJCaWxsaW5nRGVz", + "dGluYXRpb24SGgoSbW9uaXRvcmVkX3Jlc291cmNlGAEgASgJEg8KB21ldHJp", + "Y3MYAiADKAlCbgoOY29tLmdvb2dsZS5hcGlCDEJpbGxpbmdQcm90b1ABWkVn", + "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2", + "aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Billing), global::Google.Api.Billing.Parser, new[]{ "ConsumerDestinations" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Billing.Types.BillingDestination), global::Google.Api.Billing.Types.BillingDestination.Parser, new[]{ "MonitoredResource", "Metrics" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + /// + /// Billing related configuration of the service. + /// + /// The following example shows how to configure monitored resources and metrics + /// for billing, `consumer_destinations` is the only supported destination and + /// the monitored resources need at least one label key + /// `cloud.googleapis.com/location` to indicate the location of the billing + /// usage, using different monitored resources between monitoring and billing is + /// recommended so they can be evolved independently: + /// + /// monitored_resources: + /// - type: library.googleapis.com/billing_branch + /// labels: + /// - key: cloud.googleapis.com/location + /// description: | + /// Predefined label to support billing location restriction. + /// - key: city + /// description: | + /// Custom label to define the city where the library branch is located + /// in. + /// - key: name + /// description: Custom label to define the name of the library branch. + /// metrics: + /// - name: library.googleapis.com/book/borrowed_count + /// metric_kind: DELTA + /// value_type: INT64 + /// unit: "1" + /// billing: + /// consumer_destinations: + /// - monitored_resource: library.googleapis.com/billing_branch + /// metrics: + /// - library.googleapis.com/book/borrowed_count + /// + public sealed partial class Billing : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Billing()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.BillingReflection.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 Billing() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Billing(Billing other) : this() { + consumerDestinations_ = other.consumerDestinations_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Billing Clone() { + return new Billing(this); + } + + /// Field number for the "consumer_destinations" field. + public const int ConsumerDestinationsFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_consumerDestinations_codec + = pb::FieldCodec.ForMessage(66, global::Google.Api.Billing.Types.BillingDestination.Parser); + private readonly pbc::RepeatedField consumerDestinations_ = new pbc::RepeatedField(); + /// + /// Billing configurations for sending metrics to the consumer project. + /// There can be multiple consumer destinations per service, each one must have + /// a different monitored resource type. A metric can be used in at most + /// one consumer destination. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ConsumerDestinations { + get { return consumerDestinations_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Billing); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Billing other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!consumerDestinations_.Equals(other.consumerDestinations_)) return 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 ^= consumerDestinations_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + consumerDestinations_.WriteTo(output, _repeated_consumerDestinations_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) { + consumerDestinations_.WriteTo(ref output, _repeated_consumerDestinations_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 += consumerDestinations_.CalculateSize(_repeated_consumerDestinations_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Billing other) { + if (other == null) { + return; + } + consumerDestinations_.Add(other.consumerDestinations_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + consumerDestinations_.AddEntriesFrom(input, _repeated_consumerDestinations_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 66: { + consumerDestinations_.AddEntriesFrom(ref input, _repeated_consumerDestinations_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Billing message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Configuration of a specific billing destination (Currently only support + /// bill against consumer project). + /// + public sealed partial class BillingDestination : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BillingDestination()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.Billing.Descriptor.NestedTypes[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 BillingDestination() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BillingDestination(BillingDestination other) : this() { + monitoredResource_ = other.monitoredResource_; + metrics_ = other.metrics_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BillingDestination Clone() { + return new BillingDestination(this); + } + + /// Field number for the "monitored_resource" field. + public const int MonitoredResourceFieldNumber = 1; + private string monitoredResource_ = ""; + /// + /// The monitored resource type. The type must be defined in + /// [Service.monitored_resources][google.api.Service.monitored_resources] section. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MonitoredResource { + get { return monitoredResource_; } + set { + monitoredResource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "metrics" field. + public const int MetricsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_metrics_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField metrics_ = new pbc::RepeatedField(); + /// + /// Names of the metrics to report to this billing destination. + /// Each name must be defined in [Service.metrics][google.api.Service.metrics] section. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Metrics { + get { return metrics_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BillingDestination); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BillingDestination other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MonitoredResource != other.MonitoredResource) return false; + if(!metrics_.Equals(other.metrics_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MonitoredResource.Length != 0) hash ^= MonitoredResource.GetHashCode(); + hash ^= metrics_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MonitoredResource.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MonitoredResource); + } + metrics_.WriteTo(output, _repeated_metrics_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 (MonitoredResource.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MonitoredResource); + } + metrics_.WriteTo(ref output, _repeated_metrics_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 (MonitoredResource.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MonitoredResource); + } + size += metrics_.CalculateSize(_repeated_metrics_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BillingDestination other) { + if (other == null) { + return; + } + if (other.MonitoredResource.Length != 0) { + MonitoredResource = other.MonitoredResource; + } + metrics_.Add(other.metrics_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + MonitoredResource = input.ReadString(); + break; + } + case 18: { + metrics_.AddEntriesFrom(input, _repeated_metrics_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: { + MonitoredResource = input.ReadString(); + break; + } + case 18: { + metrics_.AddEntriesFrom(ref input, _repeated_metrics_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Client.cs b/csharp/protobuf/google/api/Client.cs new file mode 100644 index 00000000..18fb15d8 --- /dev/null +++ b/csharp/protobuf/google/api/Client.cs @@ -0,0 +1,124 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/client.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/client.proto + public static partial class ClientReflection { + + #region Descriptor + /// File descriptor for google/api/client.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClientReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chdnb29nbGUvYXBpL2NsaWVudC5wcm90bxIKZ29vZ2xlLmFwaRogZ29vZ2xl", + "L3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG86OQoQbWV0aG9kX3NpZ25hdHVy", + "ZRIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGJsIIAMoCTo2Cgxk", + "ZWZhdWx0X2hvc3QSHy5nb29nbGUucHJvdG9idWYuU2VydmljZU9wdGlvbnMY", + "mQggASgJOjYKDG9hdXRoX3Njb3BlcxIfLmdvb2dsZS5wcm90b2J1Zi5TZXJ2", + "aWNlT3B0aW9ucxiaCCABKAlCaQoOY29tLmdvb2dsZS5hcGlCC0NsaWVudFBy", + "b3RvUAFaQWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMv", + "YXBpL2Fubm90YXRpb25zO2Fubm90YXRpb25zogIER0FQSWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { ClientExtensions.MethodSignature, ClientExtensions.DefaultHost, ClientExtensions.OauthScopes }, null)); + } + #endregion + + } + /// Holder for extension identifiers generated from the top level of google/api/client.proto + public static partial class ClientExtensions { + /// + /// A definition of a client library method signature. + /// + /// In client libraries, each proto RPC corresponds to one or more methods + /// which the end user is able to call, and calls the underlying RPC. + /// Normally, this method receives a single argument (a struct or instance + /// corresponding to the RPC request object). Defining this field will + /// add one or more overloads providing flattened or simpler method signatures + /// in some languages. + /// + /// The fields on the method signature are provided as a comma-separated + /// string. + /// + /// For example, the proto RPC and annotation: + /// + /// rpc CreateSubscription(CreateSubscriptionRequest) + /// returns (Subscription) { + /// option (google.api.method_signature) = "name,topic"; + /// } + /// + /// Would add the following Java overload (in addition to the method accepting + /// the request object): + /// + /// public final Subscription createSubscription(String name, String topic) + /// + /// The following backwards-compatibility guidelines apply: + /// + /// * Adding this annotation to an unannotated method is backwards + /// compatible. + /// * Adding this annotation to a method which already has existing + /// method signature annotations is backwards compatible if and only if + /// the new method signature annotation is last in the sequence. + /// * Modifying or removing an existing method signature annotation is + /// a breaking change. + /// * Re-ordering existing method signature annotations is a breaking + /// change. + /// + public static readonly pb::RepeatedExtension MethodSignature = + new pb::RepeatedExtension(1051, pb::FieldCodec.ForString(8410)); + /// + /// The hostname for this service. + /// This should be specified with no prefix or protocol. + /// + /// Example: + /// + /// service Foo { + /// option (google.api.default_host) = "foo.googleapi.com"; + /// ... + /// } + /// + public static readonly pb::Extension DefaultHost = + new pb::Extension(1049, pb::FieldCodec.ForString(8394, "")); + /// + /// OAuth scopes needed for the client. + /// + /// Example: + /// + /// service Foo { + /// option (google.api.oauth_scopes) = \ + /// "https://www.googleapis.com/auth/cloud-platform"; + /// ... + /// } + /// + /// If there is more than one scope, use a comma-separated string: + /// + /// Example: + /// + /// service Foo { + /// option (google.api.oauth_scopes) = \ + /// "https://www.googleapis.com/auth/cloud-platform," + /// "https://www.googleapis.com/auth/monitoring"; + /// ... + /// } + /// + public static readonly pb::Extension OauthScopes = + new pb::Extension(1050, pb::FieldCodec.ForString(8402, "")); + } + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/ConfigChange.cs b/csharp/protobuf/google/api/ConfigChange.cs new file mode 100644 index 00000000..871d3b1f --- /dev/null +++ b/csharp/protobuf/google/api/ConfigChange.cs @@ -0,0 +1,638 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/config_change.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/config_change.proto + public static partial class ConfigChangeReflection { + + #region Descriptor + /// File descriptor for google/api/config_change.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ConfigChangeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5nb29nbGUvYXBpL2NvbmZpZ19jaGFuZ2UucHJvdG8SCmdvb2dsZS5hcGki", + "lwEKDENvbmZpZ0NoYW5nZRIPCgdlbGVtZW50GAEgASgJEhEKCW9sZF92YWx1", + "ZRgCIAEoCRIRCgluZXdfdmFsdWUYAyABKAkSKwoLY2hhbmdlX3R5cGUYBCAB", + "KA4yFi5nb29nbGUuYXBpLkNoYW5nZVR5cGUSIwoHYWR2aWNlcxgFIAMoCzIS", + "Lmdvb2dsZS5hcGkuQWR2aWNlIh0KBkFkdmljZRITCgtkZXNjcmlwdGlvbhgC", + "IAEoCSpPCgpDaGFuZ2VUeXBlEhsKF0NIQU5HRV9UWVBFX1VOU1BFQ0lGSUVE", + "EAASCQoFQURERUQQARILCgdSRU1PVkVEEAISDAoITU9ESUZJRUQQA0JxCg5j", + "b20uZ29vZ2xlLmFwaUIRQ29uZmlnQ2hhbmdlUHJvdG9QAVpDZ29vZ2xlLmdv", + "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvY29uZmlnY2hhbmdl", + "O2NvbmZpZ2NoYW5nZaICBEdBUEliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Api.ChangeType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.ConfigChange), global::Google.Api.ConfigChange.Parser, new[]{ "Element", "OldValue", "NewValue", "ChangeType", "Advices" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Advice), global::Google.Api.Advice.Parser, new[]{ "Description" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + /// + /// Classifies set of possible modifications to an object in the service + /// configuration. + /// + public enum ChangeType { + /// + /// No value was provided. + /// + [pbr::OriginalName("CHANGE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// The changed object exists in the 'new' service configuration, but not + /// in the 'old' service configuration. + /// + [pbr::OriginalName("ADDED")] Added = 1, + /// + /// The changed object exists in the 'old' service configuration, but not + /// in the 'new' service configuration. + /// + [pbr::OriginalName("REMOVED")] Removed = 2, + /// + /// The changed object exists in both service configurations, but its value + /// is different. + /// + [pbr::OriginalName("MODIFIED")] Modified = 3, + } + + #endregion + + #region Messages + /// + /// Output generated from semantically comparing two versions of a service + /// configuration. + /// + /// Includes detailed information about a field that have changed with + /// applicable advice about potential consequences for the change, such as + /// backwards-incompatibility. + /// + public sealed partial class ConfigChange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConfigChange()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.ConfigChangeReflection.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 ConfigChange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigChange(ConfigChange other) : this() { + element_ = other.element_; + oldValue_ = other.oldValue_; + newValue_ = other.newValue_; + changeType_ = other.changeType_; + advices_ = other.advices_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigChange Clone() { + return new ConfigChange(this); + } + + /// Field number for the "element" field. + public const int ElementFieldNumber = 1; + private string element_ = ""; + /// + /// Object hierarchy path to the change, with levels separated by a '.' + /// character. For repeated fields, an applicable unique identifier field is + /// used for the index (usually selector, name, or id). For maps, the term + /// 'key' is used. If the field has no unique identifier, the numeric index + /// is used. + /// Examples: + /// - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction + /// - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value + /// - logging.producer_destinations[0] + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Element { + get { return element_; } + set { + element_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "old_value" field. + public const int OldValueFieldNumber = 2; + private string oldValue_ = ""; + /// + /// Value of the changed object in the old Service configuration, + /// in JSON format. This field will not be populated if ChangeType == ADDED. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OldValue { + get { return oldValue_; } + set { + oldValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "new_value" field. + public const int NewValueFieldNumber = 3; + private string newValue_ = ""; + /// + /// Value of the changed object in the new Service configuration, + /// in JSON format. This field will not be populated if ChangeType == REMOVED. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NewValue { + get { return newValue_; } + set { + newValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "change_type" field. + public const int ChangeTypeFieldNumber = 4; + private global::Google.Api.ChangeType changeType_ = global::Google.Api.ChangeType.Unspecified; + /// + /// The type for this change, either ADDED, REMOVED, or MODIFIED. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.ChangeType ChangeType { + get { return changeType_; } + set { + changeType_ = value; + } + } + + /// Field number for the "advices" field. + public const int AdvicesFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_advices_codec + = pb::FieldCodec.ForMessage(42, global::Google.Api.Advice.Parser); + private readonly pbc::RepeatedField advices_ = new pbc::RepeatedField(); + /// + /// Collection of advice provided for this change, useful for determining the + /// possible impact of this change. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Advices { + get { return advices_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConfigChange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConfigChange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Element != other.Element) return false; + if (OldValue != other.OldValue) return false; + if (NewValue != other.NewValue) return false; + if (ChangeType != other.ChangeType) return false; + if(!advices_.Equals(other.advices_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Element.Length != 0) hash ^= Element.GetHashCode(); + if (OldValue.Length != 0) hash ^= OldValue.GetHashCode(); + if (NewValue.Length != 0) hash ^= NewValue.GetHashCode(); + if (ChangeType != global::Google.Api.ChangeType.Unspecified) hash ^= ChangeType.GetHashCode(); + hash ^= advices_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Element.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Element); + } + if (OldValue.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OldValue); + } + if (NewValue.Length != 0) { + output.WriteRawTag(26); + output.WriteString(NewValue); + } + if (ChangeType != global::Google.Api.ChangeType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) ChangeType); + } + advices_.WriteTo(output, _repeated_advices_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 (Element.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Element); + } + if (OldValue.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OldValue); + } + if (NewValue.Length != 0) { + output.WriteRawTag(26); + output.WriteString(NewValue); + } + if (ChangeType != global::Google.Api.ChangeType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) ChangeType); + } + advices_.WriteTo(ref output, _repeated_advices_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 (Element.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Element); + } + if (OldValue.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OldValue); + } + if (NewValue.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NewValue); + } + if (ChangeType != global::Google.Api.ChangeType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ChangeType); + } + size += advices_.CalculateSize(_repeated_advices_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConfigChange other) { + if (other == null) { + return; + } + if (other.Element.Length != 0) { + Element = other.Element; + } + if (other.OldValue.Length != 0) { + OldValue = other.OldValue; + } + if (other.NewValue.Length != 0) { + NewValue = other.NewValue; + } + if (other.ChangeType != global::Google.Api.ChangeType.Unspecified) { + ChangeType = other.ChangeType; + } + advices_.Add(other.advices_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Element = input.ReadString(); + break; + } + case 18: { + OldValue = input.ReadString(); + break; + } + case 26: { + NewValue = input.ReadString(); + break; + } + case 32: { + ChangeType = (global::Google.Api.ChangeType) input.ReadEnum(); + break; + } + case 42: { + advices_.AddEntriesFrom(input, _repeated_advices_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: { + Element = input.ReadString(); + break; + } + case 18: { + OldValue = input.ReadString(); + break; + } + case 26: { + NewValue = input.ReadString(); + break; + } + case 32: { + ChangeType = (global::Google.Api.ChangeType) input.ReadEnum(); + break; + } + case 42: { + advices_.AddEntriesFrom(ref input, _repeated_advices_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Generated advice about this change, used for providing more + /// information about how a change will affect the existing service. + /// + public sealed partial class Advice : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Advice()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.ConfigChangeReflection.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 Advice() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Advice(Advice other) : this() { + description_ = other.description_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Advice Clone() { + return new Advice(this); + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 2; + private string description_ = ""; + /// + /// Useful description for why this advice was applied and what actions should + /// be taken to mitigate any implied risks. + /// + [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 Advice); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Advice other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (Description.Length != 0) { + output.WriteRawTag(18); + 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 (Description.Length != 0) { + output.WriteRawTag(18); + 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 (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(Advice other) { + if (other == null) { + return; + } + 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 18: { + 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 18: { + Description = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Consumer.cs b/csharp/protobuf/google/api/Consumer.cs new file mode 100644 index 00000000..c0216ca2 --- /dev/null +++ b/csharp/protobuf/google/api/Consumer.cs @@ -0,0 +1,568 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/consumer.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/consumer.proto + public static partial class ConsumerReflection { + + #region Descriptor + /// File descriptor for google/api/consumer.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ConsumerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chlnb29nbGUvYXBpL2NvbnN1bWVyLnByb3RvEgpnb29nbGUuYXBpIj0KEVBy", + "b2plY3RQcm9wZXJ0aWVzEigKCnByb3BlcnRpZXMYASADKAsyFC5nb29nbGUu", + "YXBpLlByb3BlcnR5IqwBCghQcm9wZXJ0eRIMCgRuYW1lGAEgASgJEi8KBHR5", + "cGUYAiABKA4yIS5nb29nbGUuYXBpLlByb3BlcnR5LlByb3BlcnR5VHlwZRIT", + "CgtkZXNjcmlwdGlvbhgDIAEoCSJMCgxQcm9wZXJ0eVR5cGUSDwoLVU5TUEVD", + "SUZJRUQQABIJCgVJTlQ2NBABEggKBEJPT0wQAhIKCgZTVFJJTkcQAxIKCgZE", + "T1VCTEUQBEJoCg5jb20uZ29vZ2xlLmFwaUINQ29uc3VtZXJQcm90b1ABWkVn", + "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2", + "aWNlY29uZmlnO3NlcnZpY2Vjb25maWdiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.ProjectProperties), global::Google.Api.ProjectProperties.Parser, new[]{ "Properties" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Property), global::Google.Api.Property.Parser, new[]{ "Name", "Type", "Description" }, null, new[]{ typeof(global::Google.Api.Property.Types.PropertyType) }, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A descriptor for defining project properties for a service. One service may + /// have many consumer projects, and the service may want to behave differently + /// depending on some properties on the project. For example, a project may be + /// associated with a school, or a business, or a government agency, a business + /// type property on the project may affect how a service responds to the client. + /// This descriptor defines which properties are allowed to be set on a project. + /// + /// Example: + /// + /// project_properties: + /// properties: + /// - name: NO_WATERMARK + /// type: BOOL + /// description: Allows usage of the API without watermarks. + /// - name: EXTENDED_TILE_CACHE_PERIOD + /// type: INT64 + /// + public sealed partial class ProjectProperties : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProjectProperties()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.ConsumerReflection.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 ProjectProperties() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProjectProperties(ProjectProperties other) : this() { + properties_ = other.properties_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProjectProperties Clone() { + return new ProjectProperties(this); + } + + /// Field number for the "properties" field. + public const int PropertiesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_properties_codec + = pb::FieldCodec.ForMessage(10, global::Google.Api.Property.Parser); + private readonly pbc::RepeatedField properties_ = new pbc::RepeatedField(); + /// + /// List of per consumer project-specific properties. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField 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 ProjectProperties); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ProjectProperties other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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; + 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 + properties_.WriteTo(output, _repeated_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) { + properties_.WriteTo(ref output, _repeated_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; + size += properties_.CalculateSize(_repeated_properties_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ProjectProperties other) { + if (other == null) { + return; + } + 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: { + properties_.AddEntriesFrom(input, _repeated_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: { + properties_.AddEntriesFrom(ref input, _repeated_properties_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Defines project properties. + /// + /// API services can define properties that can be assigned to consumer projects + /// so that backends can perform response customization without having to make + /// additional calls or maintain additional storage. For example, Maps API + /// defines properties that controls map tile cache period, or whether to embed a + /// watermark in a result. + /// + /// These values can be set via API producer console. Only API providers can + /// define and set these properties. + /// + public sealed partial class Property : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Property()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.ConsumerReflection.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 Property() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Property(Property other) : this() { + name_ = other.name_; + type_ = other.type_; + description_ = other.description_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Property Clone() { + return new Property(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The name of the property (a.k.a key). + /// + [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 "type" field. + public const int TypeFieldNumber = 2; + private global::Google.Api.Property.Types.PropertyType type_ = global::Google.Api.Property.Types.PropertyType.Unspecified; + /// + /// The type of this property. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Property.Types.PropertyType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// The description of the property + /// + [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 Property); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Property other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Type != other.Type) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Type != global::Google.Api.Property.Types.PropertyType.Unspecified) hash ^= Type.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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Type != global::Google.Api.Property.Types.PropertyType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + 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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Type != global::Google.Api.Property.Types.PropertyType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Type != global::Google.Api.Property.Types.PropertyType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + 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(Property other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Type != global::Google.Api.Property.Types.PropertyType.Unspecified) { + Type = other.Type; + } + 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: { + Name = input.ReadString(); + break; + } + case 16: { + Type = (global::Google.Api.Property.Types.PropertyType) 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: { + Name = input.ReadString(); + break; + } + case 16: { + Type = (global::Google.Api.Property.Types.PropertyType) input.ReadEnum(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Property message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Supported data type of the property values + /// + public enum PropertyType { + /// + /// The type is unspecified, and will result in an error. + /// + [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, + /// + /// The type is `int64`. + /// + [pbr::OriginalName("INT64")] Int64 = 1, + /// + /// The type is `bool`. + /// + [pbr::OriginalName("BOOL")] Bool = 2, + /// + /// The type is `string`. + /// + [pbr::OriginalName("STRING")] String = 3, + /// + /// The type is 'double'. + /// + [pbr::OriginalName("DOUBLE")] Double = 4, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Context.cs b/csharp/protobuf/google/api/Context.cs new file mode 100644 index 00000000..231d7b77 --- /dev/null +++ b/csharp/protobuf/google/api/Context.cs @@ -0,0 +1,587 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/context.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/context.proto + public static partial class ContextReflection { + + #region Descriptor + /// File descriptor for google/api/context.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ContextReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chhnb29nbGUvYXBpL2NvbnRleHQucHJvdG8SCmdvb2dsZS5hcGkiMQoHQ29u", + "dGV4dBImCgVydWxlcxgBIAMoCzIXLmdvb2dsZS5hcGkuQ29udGV4dFJ1bGUi", + "jQEKC0NvbnRleHRSdWxlEhAKCHNlbGVjdG9yGAEgASgJEhEKCXJlcXVlc3Rl", + "ZBgCIAMoCRIQCghwcm92aWRlZBgDIAMoCRIiChphbGxvd2VkX3JlcXVlc3Rf", + "ZXh0ZW5zaW9ucxgEIAMoCRIjChthbGxvd2VkX3Jlc3BvbnNlX2V4dGVuc2lv", + "bnMYBSADKAlCbgoOY29tLmdvb2dsZS5hcGlCDENvbnRleHRQcm90b1ABWkVn", + "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2", + "aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Context), global::Google.Api.Context.Parser, new[]{ "Rules" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.ContextRule), global::Google.Api.ContextRule.Parser, new[]{ "Selector", "Requested", "Provided", "AllowedRequestExtensions", "AllowedResponseExtensions" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// `Context` defines which contexts an API requests. + /// + /// Example: + /// + /// context: + /// rules: + /// - selector: "*" + /// requested: + /// - google.rpc.context.ProjectContext + /// - google.rpc.context.OriginContext + /// + /// The above specifies that all methods in the API request + /// `google.rpc.context.ProjectContext` and + /// `google.rpc.context.OriginContext`. + /// + /// Available context types are defined in package + /// `google.rpc.context`. + /// + /// This also provides mechanism to allowlist any protobuf message extension that + /// can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and + /// “x-goog-ext-<extension_id>-jspb” format. For example, list any service + /// specific protobuf types that can appear in grpc metadata as follows in your + /// yaml file: + /// + /// Example: + /// + /// context: + /// rules: + /// - selector: "google.example.library.v1.LibraryService.CreateBook" + /// allowed_request_extensions: + /// - google.foo.v1.NewExtension + /// allowed_response_extensions: + /// - google.foo.v1.NewExtension + /// + /// You can also specify extension ID instead of fully qualified extension name + /// here. + /// + public sealed partial class Context : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Context()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.ContextReflection.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 Context() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Context(Context other) : this() { + rules_ = other.rules_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Context Clone() { + return new Context(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.ContextRule.Parser); + private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); + /// + /// A list of RPC context 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_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Context); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Context other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rules_.Equals(other.rules_)) return 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Context other) { + if (other == null) { + return; + } + rules_.Add(other.rules_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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; + } + } + } + } + #endif + + } + + /// + /// A context rule provides information about the context for an individual API + /// element. + /// + public sealed partial class ContextRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContextRule()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.ContextReflection.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 ContextRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContextRule(ContextRule other) : this() { + selector_ = other.selector_; + requested_ = other.requested_.Clone(); + provided_ = other.provided_.Clone(); + allowedRequestExtensions_ = other.allowedRequestExtensions_.Clone(); + allowedResponseExtensions_ = other.allowedResponseExtensions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContextRule Clone() { + return new ContextRule(this); + } + + /// Field number for the "selector" field. + public const int SelectorFieldNumber = 1; + private string selector_ = ""; + /// + /// Selects the methods 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 "requested" field. + public const int RequestedFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_requested_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField requested_ = new pbc::RepeatedField(); + /// + /// A list of full type names of requested contexts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Requested { + get { return requested_; } + } + + /// Field number for the "provided" field. + public const int ProvidedFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_provided_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField provided_ = new pbc::RepeatedField(); + /// + /// A list of full type names of provided contexts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Provided { + get { return provided_; } + } + + /// Field number for the "allowed_request_extensions" field. + public const int AllowedRequestExtensionsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_allowedRequestExtensions_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField allowedRequestExtensions_ = new pbc::RepeatedField(); + /// + /// A list of full type names or extension IDs of extensions allowed in grpc + /// side channel from client to backend. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AllowedRequestExtensions { + get { return allowedRequestExtensions_; } + } + + /// Field number for the "allowed_response_extensions" field. + public const int AllowedResponseExtensionsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_allowedResponseExtensions_codec + = pb::FieldCodec.ForString(42); + private readonly pbc::RepeatedField allowedResponseExtensions_ = new pbc::RepeatedField(); + /// + /// A list of full type names or extension IDs of extensions allowed in grpc + /// side channel from backend to client. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AllowedResponseExtensions { + get { return allowedResponseExtensions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ContextRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ContextRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Selector != other.Selector) return false; + if(!requested_.Equals(other.requested_)) return false; + if(!provided_.Equals(other.provided_)) return false; + if(!allowedRequestExtensions_.Equals(other.allowedRequestExtensions_)) return false; + if(!allowedResponseExtensions_.Equals(other.allowedResponseExtensions_)) return false; + 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(); + hash ^= requested_.GetHashCode(); + hash ^= provided_.GetHashCode(); + hash ^= allowedRequestExtensions_.GetHashCode(); + hash ^= allowedResponseExtensions_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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); + } + requested_.WriteTo(output, _repeated_requested_codec); + provided_.WriteTo(output, _repeated_provided_codec); + allowedRequestExtensions_.WriteTo(output, _repeated_allowedRequestExtensions_codec); + allowedResponseExtensions_.WriteTo(output, _repeated_allowedResponseExtensions_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 (Selector.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Selector); + } + requested_.WriteTo(ref output, _repeated_requested_codec); + provided_.WriteTo(ref output, _repeated_provided_codec); + allowedRequestExtensions_.WriteTo(ref output, _repeated_allowedRequestExtensions_codec); + allowedResponseExtensions_.WriteTo(ref output, _repeated_allowedResponseExtensions_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 (Selector.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Selector); + } + size += requested_.CalculateSize(_repeated_requested_codec); + size += provided_.CalculateSize(_repeated_provided_codec); + size += allowedRequestExtensions_.CalculateSize(_repeated_allowedRequestExtensions_codec); + size += allowedResponseExtensions_.CalculateSize(_repeated_allowedResponseExtensions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ContextRule other) { + if (other == null) { + return; + } + if (other.Selector.Length != 0) { + Selector = other.Selector; + } + requested_.Add(other.requested_); + provided_.Add(other.provided_); + allowedRequestExtensions_.Add(other.allowedRequestExtensions_); + allowedResponseExtensions_.Add(other.allowedResponseExtensions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + requested_.AddEntriesFrom(input, _repeated_requested_codec); + break; + } + case 26: { + provided_.AddEntriesFrom(input, _repeated_provided_codec); + break; + } + case 34: { + allowedRequestExtensions_.AddEntriesFrom(input, _repeated_allowedRequestExtensions_codec); + break; + } + case 42: { + allowedResponseExtensions_.AddEntriesFrom(input, _repeated_allowedResponseExtensions_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: { + Selector = input.ReadString(); + break; + } + case 18: { + requested_.AddEntriesFrom(ref input, _repeated_requested_codec); + break; + } + case 26: { + provided_.AddEntriesFrom(ref input, _repeated_provided_codec); + break; + } + case 34: { + allowedRequestExtensions_.AddEntriesFrom(ref input, _repeated_allowedRequestExtensions_codec); + break; + } + case 42: { + allowedResponseExtensions_.AddEntriesFrom(ref input, _repeated_allowedResponseExtensions_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Control.cs b/csharp/protobuf/google/api/Control.cs new file mode 100644 index 00000000..631f0945 --- /dev/null +++ b/csharp/protobuf/google/api/Control.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/control.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/control.proto + public static partial class ControlReflection { + + #region Descriptor + /// File descriptor for google/api/control.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ControlReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chhnb29nbGUvYXBpL2NvbnRyb2wucHJvdG8SCmdvb2dsZS5hcGkiHgoHQ29u", + "dHJvbBITCgtlbnZpcm9ubWVudBgBIAEoCUJuCg5jb20uZ29vZ2xlLmFwaUIM", + "Q29udHJvbFByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dv", + "b2dsZWFwaXMvYXBpL3NlcnZpY2Vjb25maWc7c2VydmljZWNvbmZpZ6ICBEdB", + "UEliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Control), global::Google.Api.Control.Parser, new[]{ "Environment" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Selects and configures the service controller used by the service. The + /// service controller handles features like abuse, quota, billing, logging, + /// monitoring, etc. + /// + public sealed partial class Control : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Control()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.ControlReflection.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 Control() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Control(Control other) : this() { + environment_ = other.environment_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Control Clone() { + return new Control(this); + } + + /// Field number for the "environment" field. + public const int EnvironmentFieldNumber = 1; + private string environment_ = ""; + /// + /// The service control environment to use. If empty, no control plane + /// feature (like quota and billing) will be enabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Environment { + get { return environment_; } + set { + environment_ = 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 Control); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Control other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Environment != 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 (Environment.Length != 0) 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 (Environment.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Environment); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Environment.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Environment); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Environment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Environment); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Control other) { + if (other == null) { + return; + } + if (other.Environment.Length != 0) { + Environment = 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: { + Environment = 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: { + Environment = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Distribution.cs b/csharp/protobuf/google/api/Distribution.cs new file mode 100644 index 00000000..9e44fb01 --- /dev/null +++ b/csharp/protobuf/google/api/Distribution.cs @@ -0,0 +1,2208 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/distribution.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/distribution.proto + public static partial class DistributionReflection { + + #region Descriptor + /// File descriptor for google/api/distribution.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DistributionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1nb29nbGUvYXBpL2Rpc3RyaWJ1dGlvbi5wcm90bxIKZ29vZ2xlLmFwaRoZ", + "Z29vZ2xlL3Byb3RvYnVmL2FueS5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3Rp", + "bWVzdGFtcC5wcm90byLZBgoMRGlzdHJpYnV0aW9uEg0KBWNvdW50GAEgASgD", + "EgwKBG1lYW4YAiABKAESIAoYc3VtX29mX3NxdWFyZWRfZGV2aWF0aW9uGAMg", + "ASgBEi0KBXJhbmdlGAQgASgLMh4uZ29vZ2xlLmFwaS5EaXN0cmlidXRpb24u", + "UmFuZ2USPgoOYnVja2V0X29wdGlvbnMYBiABKAsyJi5nb29nbGUuYXBpLkRp", + "c3RyaWJ1dGlvbi5CdWNrZXRPcHRpb25zEhUKDWJ1Y2tldF9jb3VudHMYByAD", + "KAMSNAoJZXhlbXBsYXJzGAogAygLMiEuZ29vZ2xlLmFwaS5EaXN0cmlidXRp", + "b24uRXhlbXBsYXIaIQoFUmFuZ2USCwoDbWluGAEgASgBEgsKA21heBgCIAEo", + "ARq1AwoNQnVja2V0T3B0aW9ucxJHCg5saW5lYXJfYnVja2V0cxgBIAEoCzIt", + "Lmdvb2dsZS5hcGkuRGlzdHJpYnV0aW9uLkJ1Y2tldE9wdGlvbnMuTGluZWFy", + "SAASUQoTZXhwb25lbnRpYWxfYnVja2V0cxgCIAEoCzIyLmdvb2dsZS5hcGku", + "RGlzdHJpYnV0aW9uLkJ1Y2tldE9wdGlvbnMuRXhwb25lbnRpYWxIABJLChBl", + "eHBsaWNpdF9idWNrZXRzGAMgASgLMi8uZ29vZ2xlLmFwaS5EaXN0cmlidXRp", + "b24uQnVja2V0T3B0aW9ucy5FeHBsaWNpdEgAGkMKBkxpbmVhchIaChJudW1f", + "ZmluaXRlX2J1Y2tldHMYASABKAUSDQoFd2lkdGgYAiABKAESDgoGb2Zmc2V0", + "GAMgASgBGk8KC0V4cG9uZW50aWFsEhoKEm51bV9maW5pdGVfYnVja2V0cxgB", + "IAEoBRIVCg1ncm93dGhfZmFjdG9yGAIgASgBEg0KBXNjYWxlGAMgASgBGhoK", + "CEV4cGxpY2l0Eg4KBmJvdW5kcxgBIAMoAUIJCgdvcHRpb25zGnMKCEV4ZW1w", + "bGFyEg0KBXZhbHVlGAEgASgBEi0KCXRpbWVzdGFtcBgCIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXASKQoLYXR0YWNobWVudHMYAyADKAsyFC5n", + "b29nbGUucHJvdG9idWYuQW55QnEKDmNvbS5nb29nbGUuYXBpQhFEaXN0cmli", + "dXRpb25Qcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29n", + "bGVhcGlzL2FwaS9kaXN0cmlidXRpb247ZGlzdHJpYnV0aW9uogIER0FQSWIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.AnyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Distribution), global::Google.Api.Distribution.Parser, new[]{ "Count", "Mean", "SumOfSquaredDeviation", "Range", "BucketOptions", "BucketCounts", "Exemplars" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Distribution.Types.Range), global::Google.Api.Distribution.Types.Range.Parser, new[]{ "Min", "Max" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Distribution.Types.BucketOptions), global::Google.Api.Distribution.Types.BucketOptions.Parser, new[]{ "LinearBuckets", "ExponentialBuckets", "ExplicitBuckets" }, new[]{ "Options" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Distribution.Types.BucketOptions.Types.Linear), global::Google.Api.Distribution.Types.BucketOptions.Types.Linear.Parser, new[]{ "NumFiniteBuckets", "Width", "Offset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Distribution.Types.BucketOptions.Types.Exponential), global::Google.Api.Distribution.Types.BucketOptions.Types.Exponential.Parser, new[]{ "NumFiniteBuckets", "GrowthFactor", "Scale" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Distribution.Types.BucketOptions.Types.Explicit), global::Google.Api.Distribution.Types.BucketOptions.Types.Explicit.Parser, new[]{ "Bounds" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Distribution.Types.Exemplar), global::Google.Api.Distribution.Types.Exemplar.Parser, new[]{ "Value", "Timestamp", "Attachments" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + /// + /// `Distribution` contains summary statistics for a population of values. It + /// optionally contains a histogram representing the distribution of those values + /// across a set of buckets. + /// + /// The summary statistics are the count, mean, sum of the squared deviation from + /// the mean, the minimum, and the maximum of the set of population of values. + /// The histogram is based on a sequence of buckets and gives a count of values + /// that fall into each bucket. The boundaries of the buckets are given either + /// explicitly or by formulas for buckets of fixed or exponentially increasing + /// widths. + /// + /// Although it is not forbidden, it is generally a bad idea to include + /// non-finite values (infinities or NaNs) in the population of values, as this + /// will render the `mean` and `sum_of_squared_deviation` fields meaningless. + /// + public sealed partial class Distribution : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Distribution()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.DistributionReflection.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 Distribution() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Distribution(Distribution other) : this() { + count_ = other.count_; + mean_ = other.mean_; + sumOfSquaredDeviation_ = other.sumOfSquaredDeviation_; + range_ = other.range_ != null ? other.range_.Clone() : null; + bucketOptions_ = other.bucketOptions_ != null ? other.bucketOptions_.Clone() : null; + bucketCounts_ = other.bucketCounts_.Clone(); + exemplars_ = other.exemplars_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Distribution Clone() { + return new Distribution(this); + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 1; + private long count_; + /// + /// The number of values in the population. Must be non-negative. This value + /// must equal the sum of the values in `bucket_counts` if a histogram is + /// provided. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Count { + get { return count_; } + set { + count_ = value; + } + } + + /// Field number for the "mean" field. + public const int MeanFieldNumber = 2; + private double mean_; + /// + /// The arithmetic mean of the values in the population. If `count` is zero + /// then this field must be zero. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Mean { + get { return mean_; } + set { + mean_ = value; + } + } + + /// Field number for the "sum_of_squared_deviation" field. + public const int SumOfSquaredDeviationFieldNumber = 3; + private double sumOfSquaredDeviation_; + /// + /// The sum of squared deviations from the mean of the values in the + /// population. For values x_i this is: + /// + /// Sum[i=1..n]((x_i - mean)^2) + /// + /// Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition + /// describes Welford's method for accumulating this sum in one pass. + /// + /// If `count` is zero then this field must be zero. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double SumOfSquaredDeviation { + get { return sumOfSquaredDeviation_; } + set { + sumOfSquaredDeviation_ = value; + } + } + + /// Field number for the "range" field. + public const int RangeFieldNumber = 4; + private global::Google.Api.Distribution.Types.Range range_; + /// + /// If specified, contains the range of the population values. The field + /// must not be present if the `count` is zero. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Distribution.Types.Range Range { + get { return range_; } + set { + range_ = value; + } + } + + /// Field number for the "bucket_options" field. + public const int BucketOptionsFieldNumber = 6; + private global::Google.Api.Distribution.Types.BucketOptions bucketOptions_; + /// + /// Defines the histogram bucket boundaries. If the distribution does not + /// contain a histogram, then omit this field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Distribution.Types.BucketOptions BucketOptions { + get { return bucketOptions_; } + set { + bucketOptions_ = value; + } + } + + /// Field number for the "bucket_counts" field. + public const int BucketCountsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_bucketCounts_codec + = pb::FieldCodec.ForInt64(58); + private readonly pbc::RepeatedField bucketCounts_ = new pbc::RepeatedField(); + /// + /// The number of values in each bucket of the histogram, as described in + /// `bucket_options`. If the distribution does not have a histogram, then omit + /// this field. If there is a histogram, then the sum of the values in + /// `bucket_counts` must equal the value in the `count` field of the + /// distribution. + /// + /// If present, `bucket_counts` should contain N values, where N is the number + /// of buckets specified in `bucket_options`. If you supply fewer than N + /// values, the remaining values are assumed to be 0. + /// + /// The order of the values in `bucket_counts` follows the bucket numbering + /// schemes described for the three bucket types. The first value must be the + /// count for the underflow bucket (number 0). The next N-2 values are the + /// counts for the finite buckets (number 1 through N-2). The N'th value in + /// `bucket_counts` is the count for the overflow bucket (number N-1). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BucketCounts { + get { return bucketCounts_; } + } + + /// Field number for the "exemplars" field. + public const int ExemplarsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_exemplars_codec + = pb::FieldCodec.ForMessage(82, global::Google.Api.Distribution.Types.Exemplar.Parser); + private readonly pbc::RepeatedField exemplars_ = new pbc::RepeatedField(); + /// + /// Must be in increasing order of `value` field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Exemplars { + get { return exemplars_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Distribution); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Distribution other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Count != other.Count) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Mean, other.Mean)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SumOfSquaredDeviation, other.SumOfSquaredDeviation)) return false; + if (!object.Equals(Range, other.Range)) return false; + if (!object.Equals(BucketOptions, other.BucketOptions)) return false; + if(!bucketCounts_.Equals(other.bucketCounts_)) return false; + if(!exemplars_.Equals(other.exemplars_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Count != 0L) hash ^= Count.GetHashCode(); + if (Mean != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Mean); + if (SumOfSquaredDeviation != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SumOfSquaredDeviation); + if (range_ != null) hash ^= Range.GetHashCode(); + if (bucketOptions_ != null) hash ^= BucketOptions.GetHashCode(); + hash ^= bucketCounts_.GetHashCode(); + hash ^= exemplars_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Count != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Count); + } + if (Mean != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Mean); + } + if (SumOfSquaredDeviation != 0D) { + output.WriteRawTag(25); + output.WriteDouble(SumOfSquaredDeviation); + } + if (range_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Range); + } + if (bucketOptions_ != null) { + output.WriteRawTag(50); + output.WriteMessage(BucketOptions); + } + bucketCounts_.WriteTo(output, _repeated_bucketCounts_codec); + exemplars_.WriteTo(output, _repeated_exemplars_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 (Count != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Count); + } + if (Mean != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Mean); + } + if (SumOfSquaredDeviation != 0D) { + output.WriteRawTag(25); + output.WriteDouble(SumOfSquaredDeviation); + } + if (range_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Range); + } + if (bucketOptions_ != null) { + output.WriteRawTag(50); + output.WriteMessage(BucketOptions); + } + bucketCounts_.WriteTo(ref output, _repeated_bucketCounts_codec); + exemplars_.WriteTo(ref output, _repeated_exemplars_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 (Count != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); + } + if (Mean != 0D) { + size += 1 + 8; + } + if (SumOfSquaredDeviation != 0D) { + size += 1 + 8; + } + if (range_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Range); + } + if (bucketOptions_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BucketOptions); + } + size += bucketCounts_.CalculateSize(_repeated_bucketCounts_codec); + size += exemplars_.CalculateSize(_repeated_exemplars_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Distribution other) { + if (other == null) { + return; + } + if (other.Count != 0L) { + Count = other.Count; + } + if (other.Mean != 0D) { + Mean = other.Mean; + } + if (other.SumOfSquaredDeviation != 0D) { + SumOfSquaredDeviation = other.SumOfSquaredDeviation; + } + if (other.range_ != null) { + if (range_ == null) { + Range = new global::Google.Api.Distribution.Types.Range(); + } + Range.MergeFrom(other.Range); + } + if (other.bucketOptions_ != null) { + if (bucketOptions_ == null) { + BucketOptions = new global::Google.Api.Distribution.Types.BucketOptions(); + } + BucketOptions.MergeFrom(other.BucketOptions); + } + bucketCounts_.Add(other.bucketCounts_); + exemplars_.Add(other.exemplars_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + Count = input.ReadInt64(); + break; + } + case 17: { + Mean = input.ReadDouble(); + break; + } + case 25: { + SumOfSquaredDeviation = input.ReadDouble(); + break; + } + case 34: { + if (range_ == null) { + Range = new global::Google.Api.Distribution.Types.Range(); + } + input.ReadMessage(Range); + break; + } + case 50: { + if (bucketOptions_ == null) { + BucketOptions = new global::Google.Api.Distribution.Types.BucketOptions(); + } + input.ReadMessage(BucketOptions); + break; + } + case 58: + case 56: { + bucketCounts_.AddEntriesFrom(input, _repeated_bucketCounts_codec); + break; + } + case 82: { + exemplars_.AddEntriesFrom(input, _repeated_exemplars_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: { + Count = input.ReadInt64(); + break; + } + case 17: { + Mean = input.ReadDouble(); + break; + } + case 25: { + SumOfSquaredDeviation = input.ReadDouble(); + break; + } + case 34: { + if (range_ == null) { + Range = new global::Google.Api.Distribution.Types.Range(); + } + input.ReadMessage(Range); + break; + } + case 50: { + if (bucketOptions_ == null) { + BucketOptions = new global::Google.Api.Distribution.Types.BucketOptions(); + } + input.ReadMessage(BucketOptions); + break; + } + case 58: + case 56: { + bucketCounts_.AddEntriesFrom(ref input, _repeated_bucketCounts_codec); + break; + } + case 82: { + exemplars_.AddEntriesFrom(ref input, _repeated_exemplars_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Distribution message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The range of the population values. + /// + public sealed partial class Range : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Range()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.Distribution.Descriptor.NestedTypes[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 Range() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Range(Range other) : this() { + min_ = other.min_; + max_ = other.max_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Range Clone() { + return new Range(this); + } + + /// Field number for the "min" field. + public const int MinFieldNumber = 1; + private double min_; + /// + /// The minimum of the population values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Min { + get { return min_; } + set { + min_ = value; + } + } + + /// Field number for the "max" field. + public const int MaxFieldNumber = 2; + private double max_; + /// + /// The maximum of the population values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Max { + get { return max_; } + set { + max_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Range); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Range other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Min, other.Min)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Max, other.Max)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Min != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Min); + if (Max != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Max); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Min != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Min); + } + if (Max != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Min != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Min); + } + if (Max != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Min != 0D) { + size += 1 + 8; + } + if (Max != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Range other) { + if (other == null) { + return; + } + if (other.Min != 0D) { + Min = other.Min; + } + if (other.Max != 0D) { + Max = other.Max; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + Min = input.ReadDouble(); + break; + } + case 17: { + Max = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.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: { + Min = input.ReadDouble(); + break; + } + case 17: { + Max = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// `BucketOptions` describes the bucket boundaries used to create a histogram + /// for the distribution. The buckets can be in a linear sequence, an + /// exponential sequence, or each bucket can be specified explicitly. + /// `BucketOptions` does not include the number of values in each bucket. + /// + /// A bucket has an inclusive lower bound and exclusive upper bound for the + /// values that are counted for that bucket. The upper bound of a bucket must + /// be strictly greater than the lower bound. The sequence of N buckets for a + /// distribution consists of an underflow bucket (number 0), zero or more + /// finite buckets (number 1 through N - 2) and an overflow bucket (number N - + /// 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the + /// same as the upper bound of bucket i - 1. The buckets span the whole range + /// of finite values: lower bound of the underflow bucket is -infinity and the + /// upper bound of the overflow bucket is +infinity. The finite buckets are + /// so-called because both bounds are finite. + /// + public sealed partial class BucketOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BucketOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.Distribution.Descriptor.NestedTypes[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 BucketOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BucketOptions(BucketOptions other) : this() { + switch (other.OptionsCase) { + case OptionsOneofCase.LinearBuckets: + LinearBuckets = other.LinearBuckets.Clone(); + break; + case OptionsOneofCase.ExponentialBuckets: + ExponentialBuckets = other.ExponentialBuckets.Clone(); + break; + case OptionsOneofCase.ExplicitBuckets: + ExplicitBuckets = other.ExplicitBuckets.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BucketOptions Clone() { + return new BucketOptions(this); + } + + /// Field number for the "linear_buckets" field. + public const int LinearBucketsFieldNumber = 1; + /// + /// The linear bucket. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Distribution.Types.BucketOptions.Types.Linear LinearBuckets { + get { return optionsCase_ == OptionsOneofCase.LinearBuckets ? (global::Google.Api.Distribution.Types.BucketOptions.Types.Linear) options_ : null; } + set { + options_ = value; + optionsCase_ = value == null ? OptionsOneofCase.None : OptionsOneofCase.LinearBuckets; + } + } + + /// Field number for the "exponential_buckets" field. + public const int ExponentialBucketsFieldNumber = 2; + /// + /// The exponential buckets. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Distribution.Types.BucketOptions.Types.Exponential ExponentialBuckets { + get { return optionsCase_ == OptionsOneofCase.ExponentialBuckets ? (global::Google.Api.Distribution.Types.BucketOptions.Types.Exponential) options_ : null; } + set { + options_ = value; + optionsCase_ = value == null ? OptionsOneofCase.None : OptionsOneofCase.ExponentialBuckets; + } + } + + /// Field number for the "explicit_buckets" field. + public const int ExplicitBucketsFieldNumber = 3; + /// + /// The explicit buckets. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Distribution.Types.BucketOptions.Types.Explicit ExplicitBuckets { + get { return optionsCase_ == OptionsOneofCase.ExplicitBuckets ? (global::Google.Api.Distribution.Types.BucketOptions.Types.Explicit) options_ : null; } + set { + options_ = value; + optionsCase_ = value == null ? OptionsOneofCase.None : OptionsOneofCase.ExplicitBuckets; + } + } + + private object options_; + /// Enum of possible cases for the "options" oneof. + public enum OptionsOneofCase { + None = 0, + LinearBuckets = 1, + ExponentialBuckets = 2, + ExplicitBuckets = 3, + } + private OptionsOneofCase optionsCase_ = OptionsOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OptionsOneofCase OptionsCase { + get { return optionsCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOptions() { + optionsCase_ = OptionsOneofCase.None; + options_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BucketOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BucketOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(LinearBuckets, other.LinearBuckets)) return false; + if (!object.Equals(ExponentialBuckets, other.ExponentialBuckets)) return false; + if (!object.Equals(ExplicitBuckets, other.ExplicitBuckets)) return false; + if (OptionsCase != other.OptionsCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (optionsCase_ == OptionsOneofCase.LinearBuckets) hash ^= LinearBuckets.GetHashCode(); + if (optionsCase_ == OptionsOneofCase.ExponentialBuckets) hash ^= ExponentialBuckets.GetHashCode(); + if (optionsCase_ == OptionsOneofCase.ExplicitBuckets) hash ^= ExplicitBuckets.GetHashCode(); + hash ^= (int) optionsCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (optionsCase_ == OptionsOneofCase.LinearBuckets) { + output.WriteRawTag(10); + output.WriteMessage(LinearBuckets); + } + if (optionsCase_ == OptionsOneofCase.ExponentialBuckets) { + output.WriteRawTag(18); + output.WriteMessage(ExponentialBuckets); + } + if (optionsCase_ == OptionsOneofCase.ExplicitBuckets) { + output.WriteRawTag(26); + output.WriteMessage(ExplicitBuckets); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (optionsCase_ == OptionsOneofCase.LinearBuckets) { + output.WriteRawTag(10); + output.WriteMessage(LinearBuckets); + } + if (optionsCase_ == OptionsOneofCase.ExponentialBuckets) { + output.WriteRawTag(18); + output.WriteMessage(ExponentialBuckets); + } + if (optionsCase_ == OptionsOneofCase.ExplicitBuckets) { + output.WriteRawTag(26); + output.WriteMessage(ExplicitBuckets); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (optionsCase_ == OptionsOneofCase.LinearBuckets) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LinearBuckets); + } + if (optionsCase_ == OptionsOneofCase.ExponentialBuckets) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExponentialBuckets); + } + if (optionsCase_ == OptionsOneofCase.ExplicitBuckets) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExplicitBuckets); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BucketOptions other) { + if (other == null) { + return; + } + switch (other.OptionsCase) { + case OptionsOneofCase.LinearBuckets: + if (LinearBuckets == null) { + LinearBuckets = new global::Google.Api.Distribution.Types.BucketOptions.Types.Linear(); + } + LinearBuckets.MergeFrom(other.LinearBuckets); + break; + case OptionsOneofCase.ExponentialBuckets: + if (ExponentialBuckets == null) { + ExponentialBuckets = new global::Google.Api.Distribution.Types.BucketOptions.Types.Exponential(); + } + ExponentialBuckets.MergeFrom(other.ExponentialBuckets); + break; + case OptionsOneofCase.ExplicitBuckets: + if (ExplicitBuckets == null) { + ExplicitBuckets = new global::Google.Api.Distribution.Types.BucketOptions.Types.Explicit(); + } + ExplicitBuckets.MergeFrom(other.ExplicitBuckets); + 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::Google.Api.Distribution.Types.BucketOptions.Types.Linear subBuilder = new global::Google.Api.Distribution.Types.BucketOptions.Types.Linear(); + if (optionsCase_ == OptionsOneofCase.LinearBuckets) { + subBuilder.MergeFrom(LinearBuckets); + } + input.ReadMessage(subBuilder); + LinearBuckets = subBuilder; + break; + } + case 18: { + global::Google.Api.Distribution.Types.BucketOptions.Types.Exponential subBuilder = new global::Google.Api.Distribution.Types.BucketOptions.Types.Exponential(); + if (optionsCase_ == OptionsOneofCase.ExponentialBuckets) { + subBuilder.MergeFrom(ExponentialBuckets); + } + input.ReadMessage(subBuilder); + ExponentialBuckets = subBuilder; + break; + } + case 26: { + global::Google.Api.Distribution.Types.BucketOptions.Types.Explicit subBuilder = new global::Google.Api.Distribution.Types.BucketOptions.Types.Explicit(); + if (optionsCase_ == OptionsOneofCase.ExplicitBuckets) { + subBuilder.MergeFrom(ExplicitBuckets); + } + input.ReadMessage(subBuilder); + ExplicitBuckets = 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::Google.Api.Distribution.Types.BucketOptions.Types.Linear subBuilder = new global::Google.Api.Distribution.Types.BucketOptions.Types.Linear(); + if (optionsCase_ == OptionsOneofCase.LinearBuckets) { + subBuilder.MergeFrom(LinearBuckets); + } + input.ReadMessage(subBuilder); + LinearBuckets = subBuilder; + break; + } + case 18: { + global::Google.Api.Distribution.Types.BucketOptions.Types.Exponential subBuilder = new global::Google.Api.Distribution.Types.BucketOptions.Types.Exponential(); + if (optionsCase_ == OptionsOneofCase.ExponentialBuckets) { + subBuilder.MergeFrom(ExponentialBuckets); + } + input.ReadMessage(subBuilder); + ExponentialBuckets = subBuilder; + break; + } + case 26: { + global::Google.Api.Distribution.Types.BucketOptions.Types.Explicit subBuilder = new global::Google.Api.Distribution.Types.BucketOptions.Types.Explicit(); + if (optionsCase_ == OptionsOneofCase.ExplicitBuckets) { + subBuilder.MergeFrom(ExplicitBuckets); + } + input.ReadMessage(subBuilder); + ExplicitBuckets = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the BucketOptions message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Specifies a linear sequence of buckets that all have the same width + /// (except overflow and underflow). Each bucket represents a constant + /// absolute uncertainty on the specific value in the bucket. + /// + /// There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the + /// following boundaries: + /// + /// Upper bound (0 <= i < N-1): offset + (width * i). + /// Lower bound (1 <= i < N): offset + (width * (i - 1)). + /// + public sealed partial class Linear : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Linear()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.Distribution.Types.BucketOptions.Descriptor.NestedTypes[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 Linear() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Linear(Linear other) : this() { + numFiniteBuckets_ = other.numFiniteBuckets_; + width_ = other.width_; + offset_ = other.offset_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Linear Clone() { + return new Linear(this); + } + + /// Field number for the "num_finite_buckets" field. + public const int NumFiniteBucketsFieldNumber = 1; + private int numFiniteBuckets_; + /// + /// Must be greater than 0. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NumFiniteBuckets { + get { return numFiniteBuckets_; } + set { + numFiniteBuckets_ = value; + } + } + + /// Field number for the "width" field. + public const int WidthFieldNumber = 2; + private double width_; + /// + /// Must be greater than 0. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Width { + get { return width_; } + set { + width_ = value; + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 3; + private double offset_; + /// + /// Lower bound of the first bucket. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double 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 Linear); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Linear other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NumFiniteBuckets != other.NumFiniteBuckets) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Width, other.Width)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(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 (NumFiniteBuckets != 0) hash ^= NumFiniteBuckets.GetHashCode(); + if (Width != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Width); + if (Offset != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Offset); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (NumFiniteBuckets != 0) { + output.WriteRawTag(8); + output.WriteInt32(NumFiniteBuckets); + } + if (Width != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Width); + } + if (Offset != 0D) { + output.WriteRawTag(25); + output.WriteDouble(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 (NumFiniteBuckets != 0) { + output.WriteRawTag(8); + output.WriteInt32(NumFiniteBuckets); + } + if (Width != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Width); + } + if (Offset != 0D) { + output.WriteRawTag(25); + output.WriteDouble(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 (NumFiniteBuckets != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumFiniteBuckets); + } + if (Width != 0D) { + size += 1 + 8; + } + if (Offset != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Linear other) { + if (other == null) { + return; + } + if (other.NumFiniteBuckets != 0) { + NumFiniteBuckets = other.NumFiniteBuckets; + } + if (other.Width != 0D) { + Width = other.Width; + } + if (other.Offset != 0D) { + 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: { + NumFiniteBuckets = input.ReadInt32(); + break; + } + case 17: { + Width = input.ReadDouble(); + break; + } + case 25: { + Offset = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.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: { + NumFiniteBuckets = input.ReadInt32(); + break; + } + case 17: { + Width = input.ReadDouble(); + break; + } + case 25: { + Offset = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Specifies an exponential sequence of buckets that have a width that is + /// proportional to the value of the lower bound. Each bucket represents a + /// constant relative uncertainty on a specific value in the bucket. + /// + /// There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the + /// following boundaries: + /// + /// Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). + /// Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)). + /// + public sealed partial class Exponential : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Exponential()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.Distribution.Types.BucketOptions.Descriptor.NestedTypes[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 Exponential() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Exponential(Exponential other) : this() { + numFiniteBuckets_ = other.numFiniteBuckets_; + growthFactor_ = other.growthFactor_; + scale_ = other.scale_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Exponential Clone() { + return new Exponential(this); + } + + /// Field number for the "num_finite_buckets" field. + public const int NumFiniteBucketsFieldNumber = 1; + private int numFiniteBuckets_; + /// + /// Must be greater than 0. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NumFiniteBuckets { + get { return numFiniteBuckets_; } + set { + numFiniteBuckets_ = value; + } + } + + /// Field number for the "growth_factor" field. + public const int GrowthFactorFieldNumber = 2; + private double growthFactor_; + /// + /// Must be greater than 1. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double GrowthFactor { + get { return growthFactor_; } + set { + growthFactor_ = value; + } + } + + /// Field number for the "scale" field. + public const int ScaleFieldNumber = 3; + private double scale_; + /// + /// Must be greater than 0. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Scale { + get { return scale_; } + set { + scale_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Exponential); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Exponential other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NumFiniteBuckets != other.NumFiniteBuckets) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(GrowthFactor, other.GrowthFactor)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Scale, other.Scale)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (NumFiniteBuckets != 0) hash ^= NumFiniteBuckets.GetHashCode(); + if (GrowthFactor != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(GrowthFactor); + if (Scale != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Scale); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (NumFiniteBuckets != 0) { + output.WriteRawTag(8); + output.WriteInt32(NumFiniteBuckets); + } + if (GrowthFactor != 0D) { + output.WriteRawTag(17); + output.WriteDouble(GrowthFactor); + } + if (Scale != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Scale); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (NumFiniteBuckets != 0) { + output.WriteRawTag(8); + output.WriteInt32(NumFiniteBuckets); + } + if (GrowthFactor != 0D) { + output.WriteRawTag(17); + output.WriteDouble(GrowthFactor); + } + if (Scale != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Scale); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (NumFiniteBuckets != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumFiniteBuckets); + } + if (GrowthFactor != 0D) { + size += 1 + 8; + } + if (Scale != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Exponential other) { + if (other == null) { + return; + } + if (other.NumFiniteBuckets != 0) { + NumFiniteBuckets = other.NumFiniteBuckets; + } + if (other.GrowthFactor != 0D) { + GrowthFactor = other.GrowthFactor; + } + if (other.Scale != 0D) { + Scale = other.Scale; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + NumFiniteBuckets = input.ReadInt32(); + break; + } + case 17: { + GrowthFactor = input.ReadDouble(); + break; + } + case 25: { + Scale = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.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: { + NumFiniteBuckets = input.ReadInt32(); + break; + } + case 17: { + GrowthFactor = input.ReadDouble(); + break; + } + case 25: { + Scale = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Specifies a set of buckets with arbitrary widths. + /// + /// There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following + /// boundaries: + /// + /// Upper bound (0 <= i < N-1): bounds[i] + /// Lower bound (1 <= i < N); bounds[i - 1] + /// + /// The `bounds` field must contain at least one element. If `bounds` has + /// only one element, then there are no finite buckets, and that single + /// element is the common boundary of the overflow and underflow buckets. + /// + public sealed partial class Explicit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Explicit()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.Distribution.Types.BucketOptions.Descriptor.NestedTypes[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 Explicit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Explicit(Explicit other) : this() { + bounds_ = other.bounds_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Explicit Clone() { + return new Explicit(this); + } + + /// Field number for the "bounds" field. + public const int BoundsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_bounds_codec + = pb::FieldCodec.ForDouble(10); + private readonly pbc::RepeatedField bounds_ = new pbc::RepeatedField(); + /// + /// The values must be monotonically increasing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Bounds { + get { return bounds_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Explicit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Explicit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!bounds_.Equals(other.bounds_)) return 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 ^= bounds_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + bounds_.WriteTo(output, _repeated_bounds_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) { + bounds_.WriteTo(ref output, _repeated_bounds_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 += bounds_.CalculateSize(_repeated_bounds_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Explicit other) { + if (other == null) { + return; + } + bounds_.Add(other.bounds_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 9: { + bounds_.AddEntriesFrom(input, _repeated_bounds_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: + case 9: { + bounds_.AddEntriesFrom(ref input, _repeated_bounds_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Exemplars are example points that may be used to annotate aggregated + /// distribution values. They are metadata that gives information about a + /// particular value added to a Distribution bucket, such as a trace ID that + /// was active when a value was added. They may contain further information, + /// such as a example values and timestamps, origin, etc. + /// + public sealed partial class Exemplar : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Exemplar()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.Distribution.Descriptor.NestedTypes[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 Exemplar() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Exemplar(Exemplar other) : this() { + value_ = other.value_; + timestamp_ = other.timestamp_ != null ? other.timestamp_.Clone() : null; + attachments_ = other.attachments_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Exemplar Clone() { + return new Exemplar(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private double value_; + /// + /// Value of the exemplar point. This value determines to which bucket the + /// exemplar belongs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Value { + get { return value_; } + set { + value_ = value; + } + } + + /// Field number for the "timestamp" field. + public const int TimestampFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp timestamp_; + /// + /// The observation (sampling) time of the above value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp Timestamp { + get { return timestamp_; } + set { + timestamp_ = value; + } + } + + /// Field number for the "attachments" field. + public const int AttachmentsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_attachments_codec + = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.Any.Parser); + private readonly pbc::RepeatedField attachments_ = new pbc::RepeatedField(); + /// + /// Contextual information about the example value. Examples are: + /// + /// Trace: type.googleapis.com/google.monitoring.v3.SpanContext + /// + /// Literal string: type.googleapis.com/google.protobuf.StringValue + /// + /// Labels dropped during aggregation: + /// type.googleapis.com/google.monitoring.v3.DroppedLabels + /// + /// There may be only a single attachment of any given message type in a + /// single exemplar, and this is enforced by the system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Attachments { + get { return attachments_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Exemplar); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Exemplar other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Value, other.Value)) return false; + if (!object.Equals(Timestamp, other.Timestamp)) return false; + if(!attachments_.Equals(other.attachments_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Value != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value); + if (timestamp_ != null) hash ^= Timestamp.GetHashCode(); + hash ^= attachments_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Value != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Value); + } + if (timestamp_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Timestamp); + } + attachments_.WriteTo(output, _repeated_attachments_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 (Value != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Value); + } + if (timestamp_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Timestamp); + } + attachments_.WriteTo(ref output, _repeated_attachments_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 (Value != 0D) { + size += 1 + 8; + } + if (timestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Timestamp); + } + size += attachments_.CalculateSize(_repeated_attachments_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Exemplar other) { + if (other == null) { + return; + } + if (other.Value != 0D) { + Value = other.Value; + } + if (other.timestamp_ != null) { + if (timestamp_ == null) { + Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Timestamp.MergeFrom(other.Timestamp); + } + attachments_.Add(other.attachments_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + Value = input.ReadDouble(); + break; + } + case 18: { + if (timestamp_ == null) { + Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Timestamp); + break; + } + case 26: { + attachments_.AddEntriesFrom(input, _repeated_attachments_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 9: { + Value = input.ReadDouble(); + break; + } + case 18: { + if (timestamp_ == null) { + Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Timestamp); + break; + } + case 26: { + attachments_.AddEntriesFrom(ref input, _repeated_attachments_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Documentation.cs b/csharp/protobuf/google/api/Documentation.cs new file mode 100644 index 00000000..8558f678 --- /dev/null +++ b/csharp/protobuf/google/api/Documentation.cs @@ -0,0 +1,1061 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/documentation.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/documentation.proto + public static partial class DocumentationReflection { + + #region Descriptor + /// File descriptor for google/api/documentation.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DocumentationReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5nb29nbGUvYXBpL2RvY3VtZW50YXRpb24ucHJvdG8SCmdvb2dsZS5hcGki", + "uwEKDURvY3VtZW50YXRpb24SDwoHc3VtbWFyeRgBIAEoCRIfCgVwYWdlcxgF", + "IAMoCzIQLmdvb2dsZS5hcGkuUGFnZRIsCgVydWxlcxgDIAMoCzIdLmdvb2ds", + "ZS5hcGkuRG9jdW1lbnRhdGlvblJ1bGUSHgoWZG9jdW1lbnRhdGlvbl9yb290", + "X3VybBgEIAEoCRIYChBzZXJ2aWNlX3Jvb3RfdXJsGAYgASgJEhAKCG92ZXJ2", + "aWV3GAIgASgJIlsKEURvY3VtZW50YXRpb25SdWxlEhAKCHNlbGVjdG9yGAEg", + "ASgJEhMKC2Rlc2NyaXB0aW9uGAIgASgJEh8KF2RlcHJlY2F0aW9uX2Rlc2Ny", + "aXB0aW9uGAMgASgJIkkKBFBhZ2USDAoEbmFtZRgBIAEoCRIPCgdjb250ZW50", + "GAIgASgJEiIKCHN1YnBhZ2VzGAMgAygLMhAuZ29vZ2xlLmFwaS5QYWdlQnQK", + "DmNvbS5nb29nbGUuYXBpQhJEb2N1bWVudGF0aW9uUHJvdG9QAVpFZ29vZ2xl", + "LmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvc2VydmljZWNv", + "bmZpZztzZXJ2aWNlY29uZmlnogIER0FQSWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Documentation), global::Google.Api.Documentation.Parser, new[]{ "Summary", "Pages", "Rules", "DocumentationRootUrl", "ServiceRootUrl", "Overview" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.DocumentationRule), global::Google.Api.DocumentationRule.Parser, new[]{ "Selector", "Description", "DeprecationDescription" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Page), global::Google.Api.Page.Parser, new[]{ "Name", "Content", "Subpages" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// `Documentation` provides the information for describing a service. + /// + /// Example: + /// <pre><code>documentation: + /// summary: > + /// The Google Calendar API gives access + /// to most calendar features. + /// pages: + /// - name: Overview + /// content: &#40;== include google/foo/overview.md ==&#41; + /// - name: Tutorial + /// content: &#40;== include google/foo/tutorial.md ==&#41; + /// subpages; + /// - name: Java + /// content: &#40;== include google/foo/tutorial_java.md ==&#41; + /// rules: + /// - selector: google.calendar.Calendar.Get + /// description: > + /// ... + /// - selector: google.calendar.Calendar.Put + /// description: > + /// ... + /// </code></pre> + /// Documentation is provided in markdown syntax. In addition to + /// standard markdown features, definition lists, tables and fenced + /// code blocks are supported. Section headers can be provided and are + /// interpreted relative to the section nesting of the context where + /// a documentation fragment is embedded. + /// + /// Documentation from the IDL is merged with documentation defined + /// via the config at normalization time, where documentation provided + /// by config rules overrides IDL provided. + /// + /// A number of constructs specific to the API platform are supported + /// in documentation text. + /// + /// In order to reference a proto element, the following + /// notation can be used: + /// <pre><code>&#91;fully.qualified.proto.name]&#91;]</code></pre> + /// To override the display text used for the link, this can be used: + /// <pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></pre> + /// Text can be excluded from doc using the following notation: + /// <pre><code>&#40;-- internal comment --&#41;</code></pre> + /// + /// A few directives are available in documentation. Note that + /// directives must appear on a single line to be properly + /// identified. The `include` directive includes a markdown file from + /// an external source: + /// <pre><code>&#40;== include path/to/file ==&#41;</code></pre> + /// The `resource_for` directive marks a message to be the resource of + /// a collection in REST view. If it is not specified, tools attempt + /// to infer the resource from the operations in a collection: + /// <pre><code>&#40;== resource_for v1.shelves.books ==&#41;</code></pre> + /// The directive `suppress_warning` does not directly affect documentation + /// and is documented together with service config validation. + /// + public sealed partial class Documentation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Documentation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.DocumentationReflection.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 Documentation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Documentation(Documentation other) : this() { + summary_ = other.summary_; + pages_ = other.pages_.Clone(); + rules_ = other.rules_.Clone(); + documentationRootUrl_ = other.documentationRootUrl_; + serviceRootUrl_ = other.serviceRootUrl_; + overview_ = other.overview_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Documentation Clone() { + return new Documentation(this); + } + + /// Field number for the "summary" field. + public const int SummaryFieldNumber = 1; + private string summary_ = ""; + /// + /// A short summary of what the service does. Can only be provided by + /// plain text. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Summary { + get { return summary_; } + set { + summary_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "pages" field. + public const int PagesFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_pages_codec + = pb::FieldCodec.ForMessage(42, global::Google.Api.Page.Parser); + private readonly pbc::RepeatedField pages_ = new pbc::RepeatedField(); + /// + /// The top level pages for the documentation set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Pages { + get { return pages_; } + } + + /// Field number for the "rules" field. + public const int RulesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_rules_codec + = pb::FieldCodec.ForMessage(26, global::Google.Api.DocumentationRule.Parser); + private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); + /// + /// A list of documentation rules that apply to individual API elements. + /// + /// **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 "documentation_root_url" field. + public const int DocumentationRootUrlFieldNumber = 4; + private string documentationRootUrl_ = ""; + /// + /// The URL to the root of documentation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DocumentationRootUrl { + get { return documentationRootUrl_; } + set { + documentationRootUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_root_url" field. + public const int ServiceRootUrlFieldNumber = 6; + private string serviceRootUrl_ = ""; + /// + /// Specifies the service root url if the default one (the service name + /// from the yaml file) is not suitable. This can be seen in any fully + /// specified service urls as well as sections that show a base that other + /// urls are relative to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceRootUrl { + get { return serviceRootUrl_; } + set { + serviceRootUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "overview" field. + public const int OverviewFieldNumber = 2; + private string overview_ = ""; + /// + /// Declares a single overview page. For example: + /// <pre><code>documentation: + /// summary: ... + /// overview: &#40;== include overview.md ==&#41; + /// </code></pre> + /// This is a shortcut for the following declaration (using pages style): + /// <pre><code>documentation: + /// summary: ... + /// pages: + /// - name: Overview + /// content: &#40;== include overview.md ==&#41; + /// </code></pre> + /// Note: you cannot specify both `overview` field and `pages` field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Overview { + get { return overview_; } + set { + overview_ = 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 Documentation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Documentation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Summary != other.Summary) return false; + if(!pages_.Equals(other.pages_)) return false; + if(!rules_.Equals(other.rules_)) return false; + if (DocumentationRootUrl != other.DocumentationRootUrl) return false; + if (ServiceRootUrl != other.ServiceRootUrl) return false; + if (Overview != other.Overview) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Summary.Length != 0) hash ^= Summary.GetHashCode(); + hash ^= pages_.GetHashCode(); + hash ^= rules_.GetHashCode(); + if (DocumentationRootUrl.Length != 0) hash ^= DocumentationRootUrl.GetHashCode(); + if (ServiceRootUrl.Length != 0) hash ^= ServiceRootUrl.GetHashCode(); + if (Overview.Length != 0) hash ^= Overview.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Summary.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Summary); + } + if (Overview.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Overview); + } + rules_.WriteTo(output, _repeated_rules_codec); + if (DocumentationRootUrl.Length != 0) { + output.WriteRawTag(34); + output.WriteString(DocumentationRootUrl); + } + pages_.WriteTo(output, _repeated_pages_codec); + if (ServiceRootUrl.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ServiceRootUrl); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Summary.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Summary); + } + if (Overview.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Overview); + } + rules_.WriteTo(ref output, _repeated_rules_codec); + if (DocumentationRootUrl.Length != 0) { + output.WriteRawTag(34); + output.WriteString(DocumentationRootUrl); + } + pages_.WriteTo(ref output, _repeated_pages_codec); + if (ServiceRootUrl.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ServiceRootUrl); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Summary.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Summary); + } + size += pages_.CalculateSize(_repeated_pages_codec); + size += rules_.CalculateSize(_repeated_rules_codec); + if (DocumentationRootUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DocumentationRootUrl); + } + if (ServiceRootUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceRootUrl); + } + if (Overview.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Overview); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Documentation other) { + if (other == null) { + return; + } + if (other.Summary.Length != 0) { + Summary = other.Summary; + } + pages_.Add(other.pages_); + rules_.Add(other.rules_); + if (other.DocumentationRootUrl.Length != 0) { + DocumentationRootUrl = other.DocumentationRootUrl; + } + if (other.ServiceRootUrl.Length != 0) { + ServiceRootUrl = other.ServiceRootUrl; + } + if (other.Overview.Length != 0) { + Overview = other.Overview; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Summary = input.ReadString(); + break; + } + case 18: { + Overview = input.ReadString(); + break; + } + case 26: { + rules_.AddEntriesFrom(input, _repeated_rules_codec); + break; + } + case 34: { + DocumentationRootUrl = input.ReadString(); + break; + } + case 42: { + pages_.AddEntriesFrom(input, _repeated_pages_codec); + break; + } + case 50: { + ServiceRootUrl = 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: { + Summary = input.ReadString(); + break; + } + case 18: { + Overview = input.ReadString(); + break; + } + case 26: { + rules_.AddEntriesFrom(ref input, _repeated_rules_codec); + break; + } + case 34: { + DocumentationRootUrl = input.ReadString(); + break; + } + case 42: { + pages_.AddEntriesFrom(ref input, _repeated_pages_codec); + break; + } + case 50: { + ServiceRootUrl = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A documentation rule provides information about individual API elements. + /// + public sealed partial class DocumentationRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DocumentationRule()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.DocumentationReflection.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 DocumentationRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DocumentationRule(DocumentationRule other) : this() { + selector_ = other.selector_; + description_ = other.description_; + deprecationDescription_ = other.deprecationDescription_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DocumentationRule Clone() { + return new DocumentationRule(this); + } + + /// Field number for the "selector" field. + public const int SelectorFieldNumber = 1; + private string selector_ = ""; + /// + /// The selector is a comma-separated list of patterns. Each pattern is a + /// qualified name of the element which may end in "*", indicating a wildcard. + /// Wildcards are only allowed at the end and for a whole component of the + /// qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A + /// wildcard will match one or more components. To specify a default for all + /// applicable elements, the whole pattern "*" is used. + /// + [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 "description" field. + public const int DescriptionFieldNumber = 2; + private string description_ = ""; + /// + /// Description of the selected API(s). + /// + [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 "deprecation_description" field. + public const int DeprecationDescriptionFieldNumber = 3; + private string deprecationDescription_ = ""; + /// + /// Deprecation description of the selected element(s). It can be provided if + /// an element is marked as `deprecated`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DeprecationDescription { + get { return deprecationDescription_; } + set { + deprecationDescription_ = 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 DocumentationRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DocumentationRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Selector != other.Selector) return false; + if (Description != other.Description) return false; + if (DeprecationDescription != other.DeprecationDescription) return false; + 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 (Description.Length != 0) hash ^= Description.GetHashCode(); + if (DeprecationDescription.Length != 0) hash ^= DeprecationDescription.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (DeprecationDescription.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeprecationDescription); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (DeprecationDescription.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeprecationDescription); + } + if (_unknownFields != 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 (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (DeprecationDescription.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeprecationDescription); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DocumentationRule other) { + if (other == null) { + return; + } + if (other.Selector.Length != 0) { + Selector = other.Selector; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.DeprecationDescription.Length != 0) { + DeprecationDescription = other.DeprecationDescription; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + Description = input.ReadString(); + break; + } + case 26: { + DeprecationDescription = 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: { + Description = input.ReadString(); + break; + } + case 26: { + DeprecationDescription = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a documentation page. A page can contain subpages to represent + /// nested documentation set structure. + /// + public sealed partial class Page : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Page()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.DocumentationReflection.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 Page() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Page(Page other) : this() { + name_ = other.name_; + content_ = other.content_; + subpages_ = other.subpages_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Page Clone() { + return new Page(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The name of the page. It will be used as an identity of the page to + /// generate URI of the page, text of the link to this page in navigation, + /// etc. The full page name (start from the root page name to this page + /// concatenated with `.`) can be used as reference to the page in your + /// documentation. For example: + /// <pre><code>pages: + /// - name: Tutorial + /// content: &#40;== include tutorial.md ==&#41; + /// subpages: + /// - name: Java + /// content: &#40;== include tutorial_java.md ==&#41; + /// </code></pre> + /// You can reference `Java` page using Markdown reference link syntax: + /// `[Java][Tutorial.Java]`. + /// + [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 "content" field. + public const int ContentFieldNumber = 2; + private string content_ = ""; + /// + /// The Markdown content of the page. You can use <code>&#40;== include {path} + /// ==&#41;</code> to include content from a Markdown file. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "subpages" field. + public const int SubpagesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_subpages_codec + = pb::FieldCodec.ForMessage(26, global::Google.Api.Page.Parser); + private readonly pbc::RepeatedField subpages_ = new pbc::RepeatedField(); + /// + /// Subpages of this page. The order of subpages specified here will be + /// honored in the generated docset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Subpages { + get { return subpages_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Page); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Page other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Content != other.Content) return false; + if(!subpages_.Equals(other.subpages_)) return false; + 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 (Content.Length != 0) hash ^= Content.GetHashCode(); + hash ^= subpages_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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); + } + if (Content.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Content); + } + subpages_.WriteTo(output, _repeated_subpages_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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Content.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Content); + } + subpages_.WriteTo(ref output, _repeated_subpages_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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Content.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + size += subpages_.CalculateSize(_repeated_subpages_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Page other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Content.Length != 0) { + Content = other.Content; + } + subpages_.Add(other.subpages_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + Content = input.ReadString(); + break; + } + case 26: { + subpages_.AddEntriesFrom(input, _repeated_subpages_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: { + Name = input.ReadString(); + break; + } + case 18: { + Content = input.ReadString(); + break; + } + case 26: { + subpages_.AddEntriesFrom(ref input, _repeated_subpages_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Endpoint.cs b/csharp/protobuf/google/api/Endpoint.cs new file mode 100644 index 00000000..a8ada531 --- /dev/null +++ b/csharp/protobuf/google/api/Endpoint.cs @@ -0,0 +1,382 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/endpoint.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/endpoint.proto + public static partial class EndpointReflection { + + #region Descriptor + /// File descriptor for google/api/endpoint.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EndpointReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chlnb29nbGUvYXBpL2VuZHBvaW50LnByb3RvEgpnb29nbGUuYXBpIlEKCEVu", + "ZHBvaW50EgwKBG5hbWUYASABKAkSEwoHYWxpYXNlcxgCIAMoCUICGAESDgoG", + "dGFyZ2V0GGUgASgJEhIKCmFsbG93X2NvcnMYBSABKAhCbwoOY29tLmdvb2ds", + "ZS5hcGlCDUVuZHBvaW50UHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2Vu", + "cHJvdG8vZ29vZ2xlYXBpcy9hcGkvc2VydmljZWNvbmZpZztzZXJ2aWNlY29u", + "ZmlnogIER0FQSWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Endpoint), global::Google.Api.Endpoint.Parser, new[]{ "Name", "Aliases", "Target", "AllowCors" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// `Endpoint` describes a network endpoint of a service that serves a set of + /// APIs. It is commonly known as a service endpoint. A service may expose + /// any number of service endpoints, and all service endpoints share the same + /// service definition, such as quota limits and monitoring metrics. + /// + /// Example service configuration: + /// + /// name: library-example.googleapis.com + /// endpoints: + /// # Below entry makes 'google.example.library.v1.Library' + /// # API be served from endpoint address library-example.googleapis.com. + /// # It also allows HTTP OPTIONS calls to be passed to the backend, for + /// # it to decide whether the subsequent cross-origin request is + /// # allowed to proceed. + /// - name: library-example.googleapis.com + /// allow_cors: true + /// + public sealed partial class Endpoint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Endpoint()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.EndpointReflection.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 Endpoint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Endpoint(Endpoint other) : this() { + name_ = other.name_; + aliases_ = other.aliases_.Clone(); + target_ = other.target_; + allowCors_ = other.allowCors_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Endpoint Clone() { + return new Endpoint(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The canonical name of this endpoint. + /// + [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 "aliases" field. + public const int AliasesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_aliases_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField aliases_ = new pbc::RepeatedField(); + /// + /// Unimplemented. Dot not use. + /// + /// DEPRECATED: This field is no longer supported. Instead of using aliases, + /// please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended + /// aliases. + /// + /// Additional names that this endpoint will be hosted on. + /// + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Aliases { + get { return aliases_; } + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 101; + private string target_ = ""; + /// + /// The specification of an Internet routable address of API frontend that will + /// handle requests to this [API + /// Endpoint](https://cloud.google.com/apis/design/glossary). It should be + /// either a valid IPv4 address or a fully-qualified domain name. For example, + /// "8.8.8.8" or "myservice.appspot.com". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Target { + get { return target_; } + set { + target_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "allow_cors" field. + public const int AllowCorsFieldNumber = 5; + private bool allowCors_; + /// + /// Allowing + /// [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + /// cross-domain traffic, would allow the backends served from this endpoint to + /// receive and respond to HTTP OPTIONS requests. The response will be used by + /// the browser to determine whether the subsequent cross-origin request is + /// allowed to proceed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowCors { + get { return allowCors_; } + set { + allowCors_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Endpoint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Endpoint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!aliases_.Equals(other.aliases_)) return false; + if (Target != other.Target) return false; + if (AllowCors != other.AllowCors) return false; + 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 ^= aliases_.GetHashCode(); + if (Target.Length != 0) hash ^= Target.GetHashCode(); + if (AllowCors != false) hash ^= AllowCors.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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); + } + aliases_.WriteTo(output, _repeated_aliases_codec); + if (AllowCors != false) { + output.WriteRawTag(40); + output.WriteBool(AllowCors); + } + if (Target.Length != 0) { + output.WriteRawTag(170, 6); + output.WriteString(Target); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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); + } + aliases_.WriteTo(ref output, _repeated_aliases_codec); + if (AllowCors != false) { + output.WriteRawTag(40); + output.WriteBool(AllowCors); + } + if (Target.Length != 0) { + output.WriteRawTag(170, 6); + output.WriteString(Target); + } + if (_unknownFields != 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 += aliases_.CalculateSize(_repeated_aliases_codec); + if (Target.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Target); + } + if (AllowCors != 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(Endpoint other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + aliases_.Add(other.aliases_); + if (other.Target.Length != 0) { + Target = other.Target; + } + if (other.AllowCors != false) { + AllowCors = other.AllowCors; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + aliases_.AddEntriesFrom(input, _repeated_aliases_codec); + break; + } + case 40: { + AllowCors = input.ReadBool(); + break; + } + case 810: { + Target = 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: { + Name = input.ReadString(); + break; + } + case 18: { + aliases_.AddEntriesFrom(ref input, _repeated_aliases_codec); + break; + } + case 40: { + AllowCors = input.ReadBool(); + break; + } + case 810: { + Target = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/ErrorReason.cs b/csharp/protobuf/google/api/ErrorReason.cs new file mode 100644 index 00000000..68f111ab --- /dev/null +++ b/csharp/protobuf/google/api/ErrorReason.cs @@ -0,0 +1,453 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/error_reason.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/error_reason.proto + public static partial class ErrorReasonReflection { + + #region Descriptor + /// File descriptor for google/api/error_reason.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ErrorReasonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1nb29nbGUvYXBpL2Vycm9yX3JlYXNvbi5wcm90bxIKZ29vZ2xlLmFwaSrE", + "BAoLRXJyb3JSZWFzb24SHAoYRVJST1JfUkVBU09OX1VOU1BFQ0lGSUVEEAAS", + "FAoQU0VSVklDRV9ESVNBQkxFRBABEhQKEEJJTExJTkdfRElTQUJMRUQQAhIT", + "Cg9BUElfS0VZX0lOVkFMSUQQAxIbChdBUElfS0VZX1NFUlZJQ0VfQkxPQ0tF", + "RBAEEiEKHUFQSV9LRVlfSFRUUF9SRUZFUlJFUl9CTE9DS0VEEAcSHgoaQVBJ", + "X0tFWV9JUF9BRERSRVNTX0JMT0NLRUQQCBIfChtBUElfS0VZX0FORFJPSURf", + "QVBQX0JMT0NLRUQQCRIbChdBUElfS0VZX0lPU19BUFBfQkxPQ0tFRBANEhcK", + "E1JBVEVfTElNSVRfRVhDRUVERUQQBRIbChdSRVNPVVJDRV9RVU9UQV9FWENF", + "RURFRBAGEiAKHExPQ0FUSU9OX1RBWF9QT0xJQ1lfVklPTEFURUQQChIXChNV", + "U0VSX1BST0pFQ1RfREVOSUVEEAsSFgoSQ09OU1VNRVJfU1VTUEVOREVEEAwS", + "FAoQQ09OU1VNRVJfSU5WQUxJRBAOEhwKGFNFQ1VSSVRZX1BPTElDWV9WSU9M", + "QVRFRBAPEhgKFEFDQ0VTU19UT0tFTl9FWFBJUkVEEBASIwofQUNDRVNTX1RP", + "S0VOX1NDT1BFX0lOU1VGRklDSUVOVBAREhkKFUFDQ09VTlRfU1RBVEVfSU5W", + "QUxJRBASEiEKHUFDQ0VTU19UT0tFTl9UWVBFX1VOU1VQUE9SVEVEEBNCcAoO", + "Y29tLmdvb2dsZS5hcGlCEEVycm9yUmVhc29uUHJvdG9QAVpDZ29vZ2xlLmdv", + "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvZXJyb3JfcmVhc29u", + "O2Vycm9yX3JlYXNvbqICBEdBUEliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Api.ErrorReason), }, null, null)); + } + #endregion + + } + #region Enums + /// + /// Defines the supported values for `google.rpc.ErrorInfo.reason` for the + /// `googleapis.com` error domain. This error domain is reserved for [Service + /// Infrastructure](https://cloud.google.com/service-infrastructure/docs/overview). + /// For each error info of this domain, the metadata key "service" refers to the + /// logical identifier of an API service, such as "pubsub.googleapis.com". The + /// "consumer" refers to the entity that consumes an API Service. It typically is + /// a Google project that owns the client application or the server resource, + /// such as "projects/123". Other metadata keys are specific to each error + /// reason. For more information, see the definition of the specific error + /// reason. + /// + public enum ErrorReason { + /// + /// Do not use this default value. + /// + [pbr::OriginalName("ERROR_REASON_UNSPECIFIED")] Unspecified = 0, + /// + /// The request is calling a disabled service for a consumer. + /// + /// Example of an ErrorInfo when the consumer "projects/123" contacting + /// "pubsub.googleapis.com" service which is disabled: + /// + /// { "reason": "SERVICE_DISABLED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "pubsub.googleapis.com" + /// } + /// } + /// + /// This response indicates the "pubsub.googleapis.com" has been disabled in + /// "projects/123". + /// + [pbr::OriginalName("SERVICE_DISABLED")] ServiceDisabled = 1, + /// + /// The request whose associated billing account is disabled. + /// + /// Example of an ErrorInfo when the consumer "projects/123" fails to contact + /// "pubsub.googleapis.com" service because the associated billing account is + /// disabled: + /// + /// { "reason": "BILLING_DISABLED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "pubsub.googleapis.com" + /// } + /// } + /// + /// This response indicates the billing account associated has been disabled. + /// + [pbr::OriginalName("BILLING_DISABLED")] BillingDisabled = 2, + /// + /// The request is denied because the provided [API + /// key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It + /// may be in a bad format, cannot be found, or has been expired). + /// + /// Example of an ErrorInfo when the request is contacting + /// "storage.googleapis.com" service with an invalid API key: + /// + /// { "reason": "API_KEY_INVALID", + /// "domain": "googleapis.com", + /// "metadata": { + /// "service": "storage.googleapis.com", + /// } + /// } + /// + [pbr::OriginalName("API_KEY_INVALID")] ApiKeyInvalid = 3, + /// + /// The request is denied because it violates [API key API + /// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions). + /// + /// Example of an ErrorInfo when the consumer "projects/123" fails to call the + /// "storage.googleapis.com" service because this service is restricted in the + /// API key: + /// + /// { "reason": "API_KEY_SERVICE_BLOCKED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "storage.googleapis.com" + /// } + /// } + /// + [pbr::OriginalName("API_KEY_SERVICE_BLOCKED")] ApiKeyServiceBlocked = 4, + /// + /// The request is denied because it violates [API key HTTP + /// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions). + /// + /// Example of an ErrorInfo when the consumer "projects/123" fails to call + /// "storage.googleapis.com" service because the http referrer of the request + /// violates API key HTTP restrictions: + /// + /// { "reason": "API_KEY_HTTP_REFERRER_BLOCKED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "storage.googleapis.com", + /// } + /// } + /// + [pbr::OriginalName("API_KEY_HTTP_REFERRER_BLOCKED")] ApiKeyHttpReferrerBlocked = 7, + /// + /// The request is denied because it violates [API key IP address + /// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). + /// + /// Example of an ErrorInfo when the consumer "projects/123" fails to call + /// "storage.googleapis.com" service because the caller IP of the request + /// violates API key IP address restrictions: + /// + /// { "reason": "API_KEY_IP_ADDRESS_BLOCKED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "storage.googleapis.com", + /// } + /// } + /// + [pbr::OriginalName("API_KEY_IP_ADDRESS_BLOCKED")] ApiKeyIpAddressBlocked = 8, + /// + /// The request is denied because it violates [API key Android application + /// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). + /// + /// Example of an ErrorInfo when the consumer "projects/123" fails to call + /// "storage.googleapis.com" service because the request from the Android apps + /// violates the API key Android application restrictions: + /// + /// { "reason": "API_KEY_ANDROID_APP_BLOCKED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "storage.googleapis.com" + /// } + /// } + /// + [pbr::OriginalName("API_KEY_ANDROID_APP_BLOCKED")] ApiKeyAndroidAppBlocked = 9, + /// + /// The request is denied because it violates [API key iOS application + /// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). + /// + /// Example of an ErrorInfo when the consumer "projects/123" fails to call + /// "storage.googleapis.com" service because the request from the iOS apps + /// violates the API key iOS application restrictions: + /// + /// { "reason": "API_KEY_IOS_APP_BLOCKED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "storage.googleapis.com" + /// } + /// } + /// + [pbr::OriginalName("API_KEY_IOS_APP_BLOCKED")] ApiKeyIosAppBlocked = 13, + /// + /// The request is denied because there is not enough rate quota for the + /// consumer. + /// + /// Example of an ErrorInfo when the consumer "projects/123" fails to contact + /// "pubsub.googleapis.com" service because consumer's rate quota usage has + /// reached the maximum value set for the quota limit + /// "ReadsPerMinutePerProject" on the quota metric + /// "pubsub.googleapis.com/read_requests": + /// + /// { "reason": "RATE_LIMIT_EXCEEDED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "pubsub.googleapis.com", + /// "quota_metric": "pubsub.googleapis.com/read_requests", + /// "quota_limit": "ReadsPerMinutePerProject" + /// } + /// } + /// + /// Example of an ErrorInfo when the consumer "projects/123" checks quota on + /// the service "dataflow.googleapis.com" and hits the organization quota + /// limit "DefaultRequestsPerMinutePerOrganization" on the metric + /// "dataflow.googleapis.com/default_requests". + /// + /// { "reason": "RATE_LIMIT_EXCEEDED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "dataflow.googleapis.com", + /// "quota_metric": "dataflow.googleapis.com/default_requests", + /// "quota_limit": "DefaultRequestsPerMinutePerOrganization" + /// } + /// } + /// + [pbr::OriginalName("RATE_LIMIT_EXCEEDED")] RateLimitExceeded = 5, + /// + /// The request is denied because there is not enough resource quota for the + /// consumer. + /// + /// Example of an ErrorInfo when the consumer "projects/123" fails to contact + /// "compute.googleapis.com" service because consumer's resource quota usage + /// has reached the maximum value set for the quota limit "VMsPerProject" + /// on the quota metric "compute.googleapis.com/vms": + /// + /// { "reason": "RESOURCE_QUOTA_EXCEEDED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "compute.googleapis.com", + /// "quota_metric": "compute.googleapis.com/vms", + /// "quota_limit": "VMsPerProject" + /// } + /// } + /// + /// Example of an ErrorInfo when the consumer "projects/123" checks resource + /// quota on the service "dataflow.googleapis.com" and hits the organization + /// quota limit "jobs-per-organization" on the metric + /// "dataflow.googleapis.com/job_count". + /// + /// { "reason": "RESOURCE_QUOTA_EXCEEDED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "dataflow.googleapis.com", + /// "quota_metric": "dataflow.googleapis.com/job_count", + /// "quota_limit": "jobs-per-organization" + /// } + /// } + /// + [pbr::OriginalName("RESOURCE_QUOTA_EXCEEDED")] ResourceQuotaExceeded = 6, + /// + /// The request whose associated billing account address is in a tax restricted + /// location, violates the local tax restrictions when creating resources in + /// the restricted region. + /// + /// Example of an ErrorInfo when creating the Cloud Storage Bucket in the + /// container "projects/123" under a tax restricted region + /// "locations/asia-northeast3": + /// + /// { "reason": "LOCATION_TAX_POLICY_VIOLATED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "storage.googleapis.com", + /// "location": "locations/asia-northeast3" + /// } + /// } + /// + /// This response indicates creating the Cloud Storage Bucket in + /// "locations/asia-northeast3" violates the location tax restriction. + /// + [pbr::OriginalName("LOCATION_TAX_POLICY_VIOLATED")] LocationTaxPolicyViolated = 10, + /// + /// The request is denied because the caller does not have required permission + /// on the user project "projects/123" or the user project is invalid. For more + /// information, check the [userProject System + /// Parameters](https://cloud.google.com/apis/docs/system-parameters). + /// + /// Example of an ErrorInfo when the caller is calling Cloud Storage service + /// with insufficient permissions on the user project: + /// + /// { "reason": "USER_PROJECT_DENIED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "storage.googleapis.com" + /// } + /// } + /// + [pbr::OriginalName("USER_PROJECT_DENIED")] UserProjectDenied = 11, + /// + /// The request is denied because the consumer "projects/123" is suspended due + /// to Terms of Service(Tos) violations. Check [Project suspension + /// guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines) + /// for more information. + /// + /// Example of an ErrorInfo when calling Cloud Storage service with the + /// suspended consumer "projects/123": + /// + /// { "reason": "CONSUMER_SUSPENDED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "storage.googleapis.com" + /// } + /// } + /// + [pbr::OriginalName("CONSUMER_SUSPENDED")] ConsumerSuspended = 12, + /// + /// The request is denied because the associated consumer is invalid. It may be + /// in a bad format, cannot be found, or have been deleted. + /// + /// Example of an ErrorInfo when calling Cloud Storage service with the + /// invalid consumer "projects/123": + /// + /// { "reason": "CONSUMER_INVALID", + /// "domain": "googleapis.com", + /// "metadata": { + /// "consumer": "projects/123", + /// "service": "storage.googleapis.com" + /// } + /// } + /// + [pbr::OriginalName("CONSUMER_INVALID")] ConsumerInvalid = 14, + /// + /// The request is denied because it violates [VPC Service + /// Controls](https://cloud.google.com/vpc-service-controls/docs/overview). + /// The 'uid' field is a random generated identifier that customer can use it + /// to search the audit log for a request rejected by VPC Service Controls. For + /// more information, please refer [VPC Service Controls + /// Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id) + /// + /// Example of an ErrorInfo when the consumer "projects/123" fails to call + /// Cloud Storage service because the request is prohibited by the VPC Service + /// Controls. + /// + /// { "reason": "SECURITY_POLICY_VIOLATED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "uid": "123456789abcde", + /// "consumer": "projects/123", + /// "service": "storage.googleapis.com" + /// } + /// } + /// + [pbr::OriginalName("SECURITY_POLICY_VIOLATED")] SecurityPolicyViolated = 15, + /// + /// The request is denied because the provided access token has expired. + /// + /// Example of an ErrorInfo when the request is calling Cloud Storage service + /// with an expired access token: + /// + /// { "reason": "ACCESS_TOKEN_EXPIRED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "service": "storage.googleapis.com", + /// "method": "google.storage.v1.Storage.GetObject" + /// } + /// } + /// + [pbr::OriginalName("ACCESS_TOKEN_EXPIRED")] AccessTokenExpired = 16, + /// + /// The request is denied because the provided access token doesn't have at + /// least one of the acceptable scopes required for the API. Please check + /// [OAuth 2.0 Scopes for Google + /// APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for + /// the list of the OAuth 2.0 scopes that you might need to request to access + /// the API. + /// + /// Example of an ErrorInfo when the request is calling Cloud Storage service + /// with an access token that is missing required scopes: + /// + /// { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT", + /// "domain": "googleapis.com", + /// "metadata": { + /// "service": "storage.googleapis.com", + /// "method": "google.storage.v1.Storage.GetObject" + /// } + /// } + /// + [pbr::OriginalName("ACCESS_TOKEN_SCOPE_INSUFFICIENT")] AccessTokenScopeInsufficient = 17, + /// + /// The request is denied because the account associated with the provided + /// access token is in an invalid state, such as disabled or deleted. + /// For more information, see https://cloud.google.com/docs/authentication. + /// + /// Warning: For privacy reasons, the server may not be able to disclose the + /// email address for some accounts. The client MUST NOT depend on the + /// availability of the `email` attribute. + /// + /// Example of an ErrorInfo when the request is to the Cloud Storage API with + /// an access token that is associated with a disabled or deleted [service + /// account](http://cloud/iam/docs/service-accounts): + /// + /// { "reason": "ACCOUNT_STATE_INVALID", + /// "domain": "googleapis.com", + /// "metadata": { + /// "service": "storage.googleapis.com", + /// "method": "google.storage.v1.Storage.GetObject", + /// "email": "user@123.iam.gserviceaccount.com" + /// } + /// } + /// + [pbr::OriginalName("ACCOUNT_STATE_INVALID")] AccountStateInvalid = 18, + /// + /// The request is denied because the type of the provided access token is not + /// supported by the API being called. + /// + /// Example of an ErrorInfo when the request is to the Cloud Storage API with + /// an unsupported token type. + /// + /// { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED", + /// "domain": "googleapis.com", + /// "metadata": { + /// "service": "storage.googleapis.com", + /// "method": "google.storage.v1.Storage.GetObject" + /// } + /// } + /// + [pbr::OriginalName("ACCESS_TOKEN_TYPE_UNSUPPORTED")] AccessTokenTypeUnsupported = 19, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/FieldBehavior.cs b/csharp/protobuf/google/api/FieldBehavior.cs new file mode 100644 index 00000000..4475ae41 --- /dev/null +++ b/csharp/protobuf/google/api/FieldBehavior.cs @@ -0,0 +1,130 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/field_behavior.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/field_behavior.proto + public static partial class FieldBehaviorReflection { + + #region Descriptor + /// File descriptor for google/api/field_behavior.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FieldBehaviorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvEgpnb29nbGUuYXBp", + "GiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90byqmAQoNRmllbGRC", + "ZWhhdmlvchIeChpGSUVMRF9CRUhBVklPUl9VTlNQRUNJRklFRBAAEgwKCE9Q", + "VElPTkFMEAESDAoIUkVRVUlSRUQQAhIPCgtPVVRQVVRfT05MWRADEg4KCklO", + "UFVUX09OTFkQBBINCglJTU1VVEFCTEUQBRISCg5VTk9SREVSRURfTElTVBAG", + "EhUKEU5PTl9FTVBUWV9ERUZBVUxUEAc6UQoOZmllbGRfYmVoYXZpb3ISHS5n", + "b29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGJwIIAMoDjIZLmdvb2dsZS5h", + "cGkuRmllbGRCZWhhdmlvckJwCg5jb20uZ29vZ2xlLmFwaUISRmllbGRCZWhh", + "dmlvclByb3RvUAFaQWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", + "ZWFwaXMvYXBpL2Fubm90YXRpb25zO2Fubm90YXRpb25zogIER0FQSWIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Api.FieldBehavior), }, new pb::Extension[] { FieldBehaviorExtensions.FieldBehavior }, null)); + } + #endregion + + } + /// Holder for extension identifiers generated from the top level of google/api/field_behavior.proto + public static partial class FieldBehaviorExtensions { + /// + /// A designation of a specific field behavior (required, output only, etc.) + /// in protobuf messages. + /// + /// Examples: + /// + /// string name = 1 [(google.api.field_behavior) = REQUIRED]; + /// State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + /// google.protobuf.Duration ttl = 1 + /// [(google.api.field_behavior) = INPUT_ONLY]; + /// google.protobuf.Timestamp expire_time = 1 + /// [(google.api.field_behavior) = OUTPUT_ONLY, + /// (google.api.field_behavior) = IMMUTABLE]; + /// + public static readonly pb::RepeatedExtension FieldBehavior = + new pb::RepeatedExtension(1052, pb::FieldCodec.ForEnum(8418, x => (int) x, x => (global::Google.Api.FieldBehavior) x)); + } + + #region Enums + /// + /// An indicator of the behavior of a given field (for example, that a field + /// is required in requests, or given as output but ignored as input). + /// This **does not** change the behavior in protocol buffers itself; it only + /// denotes the behavior and may affect how API tooling handles the field. + /// + /// Note: This enum **may** receive new values in the future. + /// + public enum FieldBehavior { + /// + /// Conventional default for enums. Do not use this. + /// + [pbr::OriginalName("FIELD_BEHAVIOR_UNSPECIFIED")] Unspecified = 0, + /// + /// Specifically denotes a field as optional. + /// While all fields in protocol buffers are optional, this may be specified + /// for emphasis if appropriate. + /// + [pbr::OriginalName("OPTIONAL")] Optional = 1, + /// + /// Denotes a field as required. + /// This indicates that the field **must** be provided as part of the request, + /// and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + /// + [pbr::OriginalName("REQUIRED")] Required = 2, + /// + /// Denotes a field as output only. + /// This indicates that the field is provided in responses, but including the + /// field in a request does nothing (the server *must* ignore it and + /// *must not* throw an error as a result of the field's presence). + /// + [pbr::OriginalName("OUTPUT_ONLY")] OutputOnly = 3, + /// + /// Denotes a field as input only. + /// This indicates that the field is provided in requests, and the + /// corresponding field is not included in output. + /// + [pbr::OriginalName("INPUT_ONLY")] InputOnly = 4, + /// + /// Denotes a field as immutable. + /// This indicates that the field may be set once in a request to create a + /// resource, but may not be changed thereafter. + /// + [pbr::OriginalName("IMMUTABLE")] Immutable = 5, + /// + /// Denotes that a (repeated) field is an unordered list. + /// This indicates that the service may provide the elements of the list + /// in any arbitrary order, rather than the order the user originally + /// provided. Additionally, the list's order may or may not be stable. + /// + [pbr::OriginalName("UNORDERED_LIST")] UnorderedList = 6, + /// + /// Denotes that this field returns a non-empty default value if not set. + /// This indicates that if the user provides the empty value in a request, + /// a non-empty value will be returned. The user will not be aware of what + /// non-empty value to expect. + /// + [pbr::OriginalName("NON_EMPTY_DEFAULT")] NonEmptyDefault = 7, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Http.cs b/csharp/protobuf/google/api/Http.cs new file mode 100644 index 00000000..c9611753 --- /dev/null +++ b/csharp/protobuf/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/csharp/protobuf/google/api/Httpbody.cs b/csharp/protobuf/google/api/Httpbody.cs new file mode 100644 index 00000000..4d7f6541 --- /dev/null +++ b/csharp/protobuf/google/api/Httpbody.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/httpbody.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/httpbody.proto + public static partial class HttpbodyReflection { + + #region Descriptor + /// File descriptor for google/api/httpbody.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HttpbodyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chlnb29nbGUvYXBpL2h0dHBib2R5LnByb3RvEgpnb29nbGUuYXBpGhlnb29n", + "bGUvcHJvdG9idWYvYW55LnByb3RvIlgKCEh0dHBCb2R5EhQKDGNvbnRlbnRf", + "dHlwZRgBIAEoCRIMCgRkYXRhGAIgASgMEigKCmV4dGVuc2lvbnMYAyADKAsy", + "FC5nb29nbGUucHJvdG9idWYuQW55QmgKDmNvbS5nb29nbGUuYXBpQg1IdHRw", + "Qm9keVByb3RvUAFaO2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", + "ZWFwaXMvYXBpL2h0dHBib2R5O2h0dHBib2R5+AEBogIER0FQSWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.AnyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.HttpBody), global::Google.Api.HttpBody.Parser, new[]{ "ContentType", "Data", "Extensions" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Message that represents an arbitrary HTTP body. It should only be used for + /// payload formats that can't be represented as JSON, such as raw binary or + /// an HTML page. + /// + /// This message can be used both in streaming and non-streaming API methods in + /// the request as well as the response. + /// + /// It can be used as a top-level request field, which is convenient if one + /// wants to extract parameters from either the URL or HTTP template into the + /// request fields and also want access to the raw HTTP body. + /// + /// Example: + /// + /// message GetResourceRequest { + /// // A unique request id. + /// string request_id = 1; + /// + /// // The raw HTTP body is bound to this field. + /// google.api.HttpBody http_body = 2; + /// + /// } + /// + /// service ResourceService { + /// rpc GetResource(GetResourceRequest) + /// returns (google.api.HttpBody); + /// rpc UpdateResource(google.api.HttpBody) + /// returns (google.protobuf.Empty); + /// + /// } + /// + /// Example with streaming methods: + /// + /// service CaldavService { + /// rpc GetCalendar(stream google.api.HttpBody) + /// returns (stream google.api.HttpBody); + /// rpc UpdateCalendar(stream google.api.HttpBody) + /// returns (stream google.api.HttpBody); + /// + /// } + /// + /// Use of this type only changes how the request and response bodies are + /// handled, all other features will continue to work unchanged. + /// + public sealed partial class HttpBody : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HttpBody()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.HttpbodyReflection.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 HttpBody() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HttpBody(HttpBody other) : this() { + contentType_ = other.contentType_; + data_ = other.data_; + extensions_ = other.extensions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HttpBody Clone() { + return new HttpBody(this); + } + + /// Field number for the "content_type" field. + public const int ContentTypeFieldNumber = 1; + private string contentType_ = ""; + /// + /// The HTTP Content-Type header value specifying the content type of the body. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ContentType { + get { return contentType_; } + set { + contentType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 2; + private pb::ByteString data_ = pb::ByteString.Empty; + /// + /// The HTTP request/response body as raw binary. + /// + [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 "extensions" field. + public const int ExtensionsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_extensions_codec + = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.Any.Parser); + private readonly pbc::RepeatedField extensions_ = new pbc::RepeatedField(); + /// + /// Application specific response metadata. Must be set in the first response + /// for streaming APIs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Extensions { + get { return extensions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HttpBody); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HttpBody other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ContentType != other.ContentType) return false; + if (Data != other.Data) return false; + if(!extensions_.Equals(other.extensions_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ContentType.Length != 0) hash ^= ContentType.GetHashCode(); + if (Data.Length != 0) hash ^= Data.GetHashCode(); + hash ^= extensions_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ContentType.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ContentType); + } + if (Data.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Data); + } + extensions_.WriteTo(output, _repeated_extensions_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 (ContentType.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ContentType); + } + if (Data.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Data); + } + extensions_.WriteTo(ref output, _repeated_extensions_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 (ContentType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ContentType); + } + if (Data.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); + } + size += extensions_.CalculateSize(_repeated_extensions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HttpBody other) { + if (other == null) { + return; + } + if (other.ContentType.Length != 0) { + ContentType = other.ContentType; + } + if (other.Data.Length != 0) { + Data = other.Data; + } + extensions_.Add(other.extensions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ContentType = input.ReadString(); + break; + } + case 18: { + Data = input.ReadBytes(); + break; + } + case 26: { + extensions_.AddEntriesFrom(input, _repeated_extensions_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: { + ContentType = input.ReadString(); + break; + } + case 18: { + Data = input.ReadBytes(); + break; + } + case 26: { + extensions_.AddEntriesFrom(ref input, _repeated_extensions_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Label.cs b/csharp/protobuf/google/api/Label.cs new file mode 100644 index 00000000..5303499b --- /dev/null +++ b/csharp/protobuf/google/api/Label.cs @@ -0,0 +1,349 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/label.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/label.proto + public static partial class LabelReflection { + + #region Descriptor + /// File descriptor for google/api/label.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LabelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZnb29nbGUvYXBpL2xhYmVsLnByb3RvEgpnb29nbGUuYXBpIpwBCg9MYWJl", + "bERlc2NyaXB0b3ISCwoDa2V5GAEgASgJEjkKCnZhbHVlX3R5cGUYAiABKA4y", + "JS5nb29nbGUuYXBpLkxhYmVsRGVzY3JpcHRvci5WYWx1ZVR5cGUSEwoLZGVz", + "Y3JpcHRpb24YAyABKAkiLAoJVmFsdWVUeXBlEgoKBlNUUklORxAAEggKBEJP", + "T0wQARIJCgVJTlQ2NBACQl8KDmNvbS5nb29nbGUuYXBpQgpMYWJlbFByb3Rv", + "UAFaNWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBp", + "L2xhYmVsO2xhYmVs+AEBogIER0FQSWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.LabelDescriptor), global::Google.Api.LabelDescriptor.Parser, new[]{ "Key", "ValueType", "Description" }, null, new[]{ typeof(global::Google.Api.LabelDescriptor.Types.ValueType) }, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A description of a label. + /// + public sealed partial class LabelDescriptor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LabelDescriptor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.LabelReflection.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 LabelDescriptor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LabelDescriptor(LabelDescriptor other) : this() { + key_ = other.key_; + valueType_ = other.valueType_; + description_ = other.description_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LabelDescriptor Clone() { + return new LabelDescriptor(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private string key_ = ""; + /// + /// The label key. + /// + [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 "value_type" field. + public const int ValueTypeFieldNumber = 2; + private global::Google.Api.LabelDescriptor.Types.ValueType valueType_ = global::Google.Api.LabelDescriptor.Types.ValueType.String; + /// + /// The type of data that can be assigned to the label. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.LabelDescriptor.Types.ValueType ValueType { + get { return valueType_; } + set { + valueType_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// A human-readable description for the label. + /// + [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 LabelDescriptor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LabelDescriptor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) return false; + if (ValueType != other.ValueType) 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 (Key.Length != 0) hash ^= Key.GetHashCode(); + if (ValueType != global::Google.Api.LabelDescriptor.Types.ValueType.String) hash ^= ValueType.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 (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Key); + } + if (ValueType != global::Google.Api.LabelDescriptor.Types.ValueType.String) { + output.WriteRawTag(16); + output.WriteEnum((int) ValueType); + } + 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 (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Key); + } + if (ValueType != global::Google.Api.LabelDescriptor.Types.ValueType.String) { + output.WriteRawTag(16); + output.WriteEnum((int) ValueType); + } + 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 (Key.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); + } + if (ValueType != global::Google.Api.LabelDescriptor.Types.ValueType.String) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ValueType); + } + 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(LabelDescriptor other) { + if (other == null) { + return; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + if (other.ValueType != global::Google.Api.LabelDescriptor.Types.ValueType.String) { + ValueType = other.ValueType; + } + 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: { + Key = input.ReadString(); + break; + } + case 16: { + ValueType = (global::Google.Api.LabelDescriptor.Types.ValueType) 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: { + Key = input.ReadString(); + break; + } + case 16: { + ValueType = (global::Google.Api.LabelDescriptor.Types.ValueType) input.ReadEnum(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the LabelDescriptor message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Value types that can be used as label values. + /// + public enum ValueType { + /// + /// A variable-length string. This is the default. + /// + [pbr::OriginalName("STRING")] String = 0, + /// + /// Boolean; true or false. + /// + [pbr::OriginalName("BOOL")] Bool = 1, + /// + /// A 64-bit signed integer. + /// + [pbr::OriginalName("INT64")] Int64 = 2, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/LaunchStage.cs b/csharp/protobuf/google/api/LaunchStage.cs new file mode 100644 index 00000000..8385d96c --- /dev/null +++ b/csharp/protobuf/google/api/LaunchStage.cs @@ -0,0 +1,106 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/launch_stage.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/launch_stage.proto + public static partial class LaunchStageReflection { + + #region Descriptor + /// File descriptor for google/api/launch_stage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LaunchStageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1nb29nbGUvYXBpL2xhdW5jaF9zdGFnZS5wcm90bxIKZ29vZ2xlLmFwaSqM", + "AQoLTGF1bmNoU3RhZ2USHAoYTEFVTkNIX1NUQUdFX1VOU1BFQ0lGSUVEEAAS", + "EQoNVU5JTVBMRU1FTlRFRBAGEg0KCVBSRUxBVU5DSBAHEhAKDEVBUkxZX0FD", + "Q0VTUxABEgkKBUFMUEhBEAISCAoEQkVUQRADEgYKAkdBEAQSDgoKREVQUkVD", + "QVRFRBAFQloKDmNvbS5nb29nbGUuYXBpQhBMYXVuY2hTdGFnZVByb3RvUAFa", + "LWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpO2Fw", + "aaICBEdBUEliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Api.LaunchStage), }, null, null)); + } + #endregion + + } + #region Enums + /// + /// The launch stage as defined by [Google Cloud Platform + /// Launch Stages](http://cloud.google.com/terms/launch-stages). + /// + public enum LaunchStage { + /// + /// Do not use this default value. + /// + [pbr::OriginalName("LAUNCH_STAGE_UNSPECIFIED")] Unspecified = 0, + /// + /// The feature is not yet implemented. Users can not use it. + /// + [pbr::OriginalName("UNIMPLEMENTED")] Unimplemented = 6, + /// + /// Prelaunch features are hidden from users and are only visible internally. + /// + [pbr::OriginalName("PRELAUNCH")] Prelaunch = 7, + /// + /// Early Access features are limited to a closed group of testers. To use + /// these features, you must sign up in advance and sign a Trusted Tester + /// agreement (which includes confidentiality provisions). These features may + /// be unstable, changed in backward-incompatible ways, and are not + /// guaranteed to be released. + /// + [pbr::OriginalName("EARLY_ACCESS")] EarlyAccess = 1, + /// + /// Alpha is a limited availability test for releases before they are cleared + /// for widespread use. By Alpha, all significant design issues are resolved + /// and we are in the process of verifying functionality. Alpha customers + /// need to apply for access, agree to applicable terms, and have their + /// projects allowlisted. Alpha releases don’t have to be feature complete, + /// no SLAs are provided, and there are no technical support obligations, but + /// they will be far enough along that customers can actually use them in + /// test environments or for limited-use tests -- just like they would in + /// normal production cases. + /// + [pbr::OriginalName("ALPHA")] Alpha = 2, + /// + /// Beta is the point at which we are ready to open a release for any + /// customer to use. There are no SLA or technical support obligations in a + /// Beta release. Products will be complete from a feature perspective, but + /// may have some open outstanding issues. Beta releases are suitable for + /// limited production use cases. + /// + [pbr::OriginalName("BETA")] Beta = 3, + /// + /// GA features are open to all developers and are considered stable and + /// fully qualified for production use. + /// + [pbr::OriginalName("GA")] Ga = 4, + /// + /// Deprecated features are scheduled to be shut down and removed. For more + /// information, see the “Deprecation Policy” section of our [Terms of + /// Service](https://cloud.google.com/terms/) + /// and the [Google Cloud Platform Subject to the Deprecation + /// Policy](https://cloud.google.com/terms/deprecation) documentation. + /// + [pbr::OriginalName("DEPRECATED")] Deprecated = 5, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Log.cs b/csharp/protobuf/google/api/Log.cs new file mode 100644 index 00000000..33b0f02b --- /dev/null +++ b/csharp/protobuf/google/api/Log.cs @@ -0,0 +1,366 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/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 Google.Api { + + /// Holder for reflection information generated from google/api/log.proto + public static partial class LogReflection { + + #region Descriptor + /// File descriptor for google/api/log.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LogReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRnb29nbGUvYXBpL2xvZy5wcm90bxIKZ29vZ2xlLmFwaRoWZ29vZ2xlL2Fw", + "aS9sYWJlbC5wcm90byJ1Cg1Mb2dEZXNjcmlwdG9yEgwKBG5hbWUYASABKAkS", + "KwoGbGFiZWxzGAIgAygLMhsuZ29vZ2xlLmFwaS5MYWJlbERlc2NyaXB0b3IS", + "EwoLZGVzY3JpcHRpb24YAyABKAkSFAoMZGlzcGxheV9uYW1lGAQgASgJQmoK", + "DmNvbS5nb29nbGUuYXBpQghMb2dQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9y", + "Zy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZp", + "Y2Vjb25maWeiAgRHQVBJYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.LabelReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.LogDescriptor), global::Google.Api.LogDescriptor.Parser, new[]{ "Name", "Labels", "Description", "DisplayName" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A description of a log type. Example in YAML format: + /// + /// - name: library.googleapis.com/activity_history + /// description: The history of borrowing and returning library items. + /// display_name: Activity + /// labels: + /// - key: /customer_id + /// description: Identifier of a library customer + /// + public sealed partial class LogDescriptor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogDescriptor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.LogReflection.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 LogDescriptor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LogDescriptor(LogDescriptor other) : this() { + name_ = other.name_; + labels_ = other.labels_.Clone(); + description_ = other.description_; + displayName_ = other.displayName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LogDescriptor Clone() { + return new LogDescriptor(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The name of the log. It must be less than 512 characters long and can + /// include the following characters: upper- and lower-case alphanumeric + /// characters [A-Za-z0-9], and punctuation characters including + /// slash, underscore, hyphen, period [/_-.]. + /// + [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 "labels" field. + public const int LabelsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_labels_codec + = pb::FieldCodec.ForMessage(18, global::Google.Api.LabelDescriptor.Parser); + private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); + /// + /// The set of labels that are available to describe a specific log entry. + /// Runtime requests that contain labels not specified here are + /// considered invalid. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Labels { + get { return labels_; } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// A human-readable description of this log. This information appears in + /// the documentation and can contain details. + /// + [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 "display_name" field. + public const int DisplayNameFieldNumber = 4; + private string displayName_ = ""; + /// + /// The human-readable name for this log. This information appears on + /// the user interface and should be concise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = 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 LogDescriptor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LogDescriptor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!labels_.Equals(other.labels_)) return false; + if (Description != other.Description) return false; + if (DisplayName != other.DisplayName) return false; + 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 ^= labels_.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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); + } + labels_.WriteTo(output, _repeated_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(DisplayName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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); + } + labels_.WriteTo(ref output, _repeated_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(DisplayName); + } + if (_unknownFields != 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 += labels_.CalculateSize(_repeated_labels_codec); + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LogDescriptor other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + labels_.Add(other.labels_); + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + labels_.AddEntriesFrom(input, _repeated_labels_codec); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + DisplayName = 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: { + Name = input.ReadString(); + break; + } + case 18: { + labels_.AddEntriesFrom(ref input, _repeated_labels_codec); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + DisplayName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Logging.cs b/csharp/protobuf/google/api/Logging.cs new file mode 100644 index 00000000..044bb21b --- /dev/null +++ b/csharp/protobuf/google/api/Logging.cs @@ -0,0 +1,534 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/logging.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/logging.proto + public static partial class LoggingReflection { + + #region Descriptor + /// File descriptor for google/api/logging.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LoggingReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chhnb29nbGUvYXBpL2xvZ2dpbmcucHJvdG8SCmdvb2dsZS5hcGki1wEKB0xv", + "Z2dpbmcSRQoVcHJvZHVjZXJfZGVzdGluYXRpb25zGAEgAygLMiYuZ29vZ2xl", + "LmFwaS5Mb2dnaW5nLkxvZ2dpbmdEZXN0aW5hdGlvbhJFChVjb25zdW1lcl9k", + "ZXN0aW5hdGlvbnMYAiADKAsyJi5nb29nbGUuYXBpLkxvZ2dpbmcuTG9nZ2lu", + "Z0Rlc3RpbmF0aW9uGj4KEkxvZ2dpbmdEZXN0aW5hdGlvbhIaChJtb25pdG9y", + "ZWRfcmVzb3VyY2UYAyABKAkSDAoEbG9ncxgBIAMoCUJuCg5jb20uZ29vZ2xl", + "LmFwaUIMTG9nZ2luZ1Byb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnBy", + "b3RvL2dvb2dsZWFwaXMvYXBpL3NlcnZpY2Vjb25maWc7c2VydmljZWNvbmZp", + "Z6ICBEdBUEliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Logging), global::Google.Api.Logging.Parser, new[]{ "ProducerDestinations", "ConsumerDestinations" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Logging.Types.LoggingDestination), global::Google.Api.Logging.Types.LoggingDestination.Parser, new[]{ "MonitoredResource", "Logs" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + /// + /// Logging configuration of the service. + /// + /// The following example shows how to configure logs to be sent to the + /// producer and consumer projects. In the example, the `activity_history` + /// log is sent to both the producer and consumer projects, whereas the + /// `purchase_history` log is only sent to the producer project. + /// + /// monitored_resources: + /// - type: library.googleapis.com/branch + /// labels: + /// - key: /city + /// description: The city where the library branch is located in. + /// - key: /name + /// description: The name of the branch. + /// logs: + /// - name: activity_history + /// labels: + /// - key: /customer_id + /// - name: purchase_history + /// logging: + /// producer_destinations: + /// - monitored_resource: library.googleapis.com/branch + /// logs: + /// - activity_history + /// - purchase_history + /// consumer_destinations: + /// - monitored_resource: library.googleapis.com/branch + /// logs: + /// - activity_history + /// + public sealed partial class Logging : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Logging()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.LoggingReflection.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 Logging() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Logging(Logging other) : this() { + producerDestinations_ = other.producerDestinations_.Clone(); + consumerDestinations_ = other.consumerDestinations_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Logging Clone() { + return new Logging(this); + } + + /// Field number for the "producer_destinations" field. + public const int ProducerDestinationsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_producerDestinations_codec + = pb::FieldCodec.ForMessage(10, global::Google.Api.Logging.Types.LoggingDestination.Parser); + private readonly pbc::RepeatedField producerDestinations_ = new pbc::RepeatedField(); + /// + /// Logging configurations for sending logs to the producer project. + /// There can be multiple producer destinations, each one must have a + /// different monitored resource type. A log can be used in at most + /// one producer destination. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ProducerDestinations { + get { return producerDestinations_; } + } + + /// Field number for the "consumer_destinations" field. + public const int ConsumerDestinationsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_consumerDestinations_codec + = pb::FieldCodec.ForMessage(18, global::Google.Api.Logging.Types.LoggingDestination.Parser); + private readonly pbc::RepeatedField consumerDestinations_ = new pbc::RepeatedField(); + /// + /// Logging configurations for sending logs to the consumer project. + /// There can be multiple consumer destinations, each one must have a + /// different monitored resource type. A log can be used in at most + /// one consumer destination. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ConsumerDestinations { + get { return consumerDestinations_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Logging); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Logging other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!producerDestinations_.Equals(other.producerDestinations_)) return false; + if(!consumerDestinations_.Equals(other.consumerDestinations_)) return 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 ^= producerDestinations_.GetHashCode(); + hash ^= consumerDestinations_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + producerDestinations_.WriteTo(output, _repeated_producerDestinations_codec); + consumerDestinations_.WriteTo(output, _repeated_consumerDestinations_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) { + producerDestinations_.WriteTo(ref output, _repeated_producerDestinations_codec); + consumerDestinations_.WriteTo(ref output, _repeated_consumerDestinations_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 += producerDestinations_.CalculateSize(_repeated_producerDestinations_codec); + size += consumerDestinations_.CalculateSize(_repeated_consumerDestinations_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Logging other) { + if (other == null) { + return; + } + producerDestinations_.Add(other.producerDestinations_); + consumerDestinations_.Add(other.consumerDestinations_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + producerDestinations_.AddEntriesFrom(input, _repeated_producerDestinations_codec); + break; + } + case 18: { + consumerDestinations_.AddEntriesFrom(input, _repeated_consumerDestinations_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: { + producerDestinations_.AddEntriesFrom(ref input, _repeated_producerDestinations_codec); + break; + } + case 18: { + consumerDestinations_.AddEntriesFrom(ref input, _repeated_consumerDestinations_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Logging message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Configuration of a specific logging destination (the producer project + /// or the consumer project). + /// + public sealed partial class LoggingDestination : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoggingDestination()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.Logging.Descriptor.NestedTypes[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 LoggingDestination() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoggingDestination(LoggingDestination other) : this() { + monitoredResource_ = other.monitoredResource_; + logs_ = other.logs_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoggingDestination Clone() { + return new LoggingDestination(this); + } + + /// Field number for the "monitored_resource" field. + public const int MonitoredResourceFieldNumber = 3; + private string monitoredResource_ = ""; + /// + /// The monitored resource type. The type must be defined in the + /// [Service.monitored_resources][google.api.Service.monitored_resources] section. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MonitoredResource { + get { return monitoredResource_; } + set { + monitoredResource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "logs" field. + public const int LogsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_logs_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField logs_ = new pbc::RepeatedField(); + /// + /// Names of the logs to be sent to this destination. Each name must + /// be defined in the [Service.logs][google.api.Service.logs] section. If the log name is + /// not a domain scoped name, it will be automatically prefixed with + /// the service name followed by "/". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Logs { + get { return logs_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LoggingDestination); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LoggingDestination other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MonitoredResource != other.MonitoredResource) return false; + if(!logs_.Equals(other.logs_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MonitoredResource.Length != 0) hash ^= MonitoredResource.GetHashCode(); + hash ^= logs_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + logs_.WriteTo(output, _repeated_logs_codec); + if (MonitoredResource.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MonitoredResource); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + logs_.WriteTo(ref output, _repeated_logs_codec); + if (MonitoredResource.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MonitoredResource); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MonitoredResource.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MonitoredResource); + } + size += logs_.CalculateSize(_repeated_logs_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LoggingDestination other) { + if (other == null) { + return; + } + if (other.MonitoredResource.Length != 0) { + MonitoredResource = other.MonitoredResource; + } + logs_.Add(other.logs_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + logs_.AddEntriesFrom(input, _repeated_logs_codec); + break; + } + case 26: { + MonitoredResource = 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: { + logs_.AddEntriesFrom(ref input, _repeated_logs_codec); + break; + } + case 26: { + MonitoredResource = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Metric.cs b/csharp/protobuf/google/api/Metric.cs new file mode 100644 index 00000000..7ea95eba --- /dev/null +++ b/csharp/protobuf/google/api/Metric.cs @@ -0,0 +1,1372 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/metric.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/metric.proto + public static partial class MetricReflection { + + #region Descriptor + /// File descriptor for google/api/metric.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MetricReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chdnb29nbGUvYXBpL21ldHJpYy5wcm90bxIKZ29vZ2xlLmFwaRoWZ29vZ2xl", + "L2FwaS9sYWJlbC5wcm90bxodZ29vZ2xlL2FwaS9sYXVuY2hfc3RhZ2UucHJv", + "dG8aHmdvb2dsZS9wcm90b2J1Zi9kdXJhdGlvbi5wcm90byKfBgoQTWV0cmlj", + "RGVzY3JpcHRvchIMCgRuYW1lGAEgASgJEgwKBHR5cGUYCCABKAkSKwoGbGFi", + "ZWxzGAIgAygLMhsuZ29vZ2xlLmFwaS5MYWJlbERlc2NyaXB0b3ISPAoLbWV0", + "cmljX2tpbmQYAyABKA4yJy5nb29nbGUuYXBpLk1ldHJpY0Rlc2NyaXB0b3Iu", + "TWV0cmljS2luZBI6Cgp2YWx1ZV90eXBlGAQgASgOMiYuZ29vZ2xlLmFwaS5N", + "ZXRyaWNEZXNjcmlwdG9yLlZhbHVlVHlwZRIMCgR1bml0GAUgASgJEhMKC2Rl", + "c2NyaXB0aW9uGAYgASgJEhQKDGRpc3BsYXlfbmFtZRgHIAEoCRJHCghtZXRh", + "ZGF0YRgKIAEoCzI1Lmdvb2dsZS5hcGkuTWV0cmljRGVzY3JpcHRvci5NZXRy", + "aWNEZXNjcmlwdG9yTWV0YWRhdGESLQoMbGF1bmNoX3N0YWdlGAwgASgOMhcu", + "Z29vZ2xlLmFwaS5MYXVuY2hTdGFnZRIgChhtb25pdG9yZWRfcmVzb3VyY2Vf", + "dHlwZXMYDSADKAkasAEKGE1ldHJpY0Rlc2NyaXB0b3JNZXRhZGF0YRIxCgxs", + "YXVuY2hfc3RhZ2UYASABKA4yFy5nb29nbGUuYXBpLkxhdW5jaFN0YWdlQgIY", + "ARIwCg1zYW1wbGVfcGVyaW9kGAIgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1", + "cmF0aW9uEi8KDGluZ2VzdF9kZWxheRgDIAEoCzIZLmdvb2dsZS5wcm90b2J1", + "Zi5EdXJhdGlvbiJPCgpNZXRyaWNLaW5kEhsKF01FVFJJQ19LSU5EX1VOU1BF", + "Q0lGSUVEEAASCQoFR0FVR0UQARIJCgVERUxUQRACEg4KCkNVTVVMQVRJVkUQ", + "AyJxCglWYWx1ZVR5cGUSGgoWVkFMVUVfVFlQRV9VTlNQRUNJRklFRBAAEggK", + "BEJPT0wQARIJCgVJTlQ2NBACEgoKBkRPVUJMRRADEgoKBlNUUklORxAEEhAK", + "DERJU1RSSUJVVElPThAFEgkKBU1PTkVZEAYidQoGTWV0cmljEgwKBHR5cGUY", + "AyABKAkSLgoGbGFiZWxzGAIgAygLMh4uZ29vZ2xlLmFwaS5NZXRyaWMuTGFi", + "ZWxzRW50cnkaLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVl", + "GAIgASgJOgI4AUJfCg5jb20uZ29vZ2xlLmFwaUILTWV0cmljUHJvdG9QAVo3", + "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvbWV0", + "cmljO21ldHJpY6ICBEdBUEliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.LabelReflection.Descriptor, global::Google.Api.LaunchStageReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.MetricDescriptor), global::Google.Api.MetricDescriptor.Parser, new[]{ "Name", "Type", "Labels", "MetricKind", "ValueType", "Unit", "Description", "DisplayName", "Metadata", "LaunchStage", "MonitoredResourceTypes" }, null, new[]{ typeof(global::Google.Api.MetricDescriptor.Types.MetricKind), typeof(global::Google.Api.MetricDescriptor.Types.ValueType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.MetricDescriptor.Types.MetricDescriptorMetadata), global::Google.Api.MetricDescriptor.Types.MetricDescriptorMetadata.Parser, new[]{ "LaunchStage", "SamplePeriod", "IngestDelay" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Metric), global::Google.Api.Metric.Parser, new[]{ "Type", "Labels" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + /// + /// Defines a metric type and its schema. Once a metric descriptor is created, + /// deleting or altering it stops data collection and makes the metric type's + /// existing data unusable. + /// + public sealed partial class MetricDescriptor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetricDescriptor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.MetricReflection.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 MetricDescriptor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetricDescriptor(MetricDescriptor other) : this() { + name_ = other.name_; + type_ = other.type_; + labels_ = other.labels_.Clone(); + metricKind_ = other.metricKind_; + valueType_ = other.valueType_; + unit_ = other.unit_; + description_ = other.description_; + displayName_ = other.displayName_; + metadata_ = other.metadata_ != null ? other.metadata_.Clone() : null; + launchStage_ = other.launchStage_; + monitoredResourceTypes_ = other.monitoredResourceTypes_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetricDescriptor Clone() { + return new MetricDescriptor(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The resource name of the metric descriptor. + /// + [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 "type" field. + public const int TypeFieldNumber = 8; + private string type_ = ""; + /// + /// The metric type, including its DNS name prefix. The type is not + /// URL-encoded. All user-defined metric types have the DNS name + /// `custom.googleapis.com` or `external.googleapis.com`. Metric types should + /// use a natural hierarchical grouping. For example: + /// + /// "custom.googleapis.com/invoice/paid/amount" + /// "external.googleapis.com/prometheus/up" + /// "appengine.googleapis.com/http/server/response_latencies" + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_labels_codec + = pb::FieldCodec.ForMessage(18, global::Google.Api.LabelDescriptor.Parser); + private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); + /// + /// The set of labels that can be used to describe a specific + /// instance of this metric type. For example, the + /// `appengine.googleapis.com/http/server/response_latencies` metric + /// type has a label for the HTTP response code, `response_code`, so + /// you can look at latencies for successful responses or just + /// for responses that failed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Labels { + get { return labels_; } + } + + /// Field number for the "metric_kind" field. + public const int MetricKindFieldNumber = 3; + private global::Google.Api.MetricDescriptor.Types.MetricKind metricKind_ = global::Google.Api.MetricDescriptor.Types.MetricKind.Unspecified; + /// + /// Whether the metric records instantaneous values, changes to a value, etc. + /// Some combinations of `metric_kind` and `value_type` might not be supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.MetricDescriptor.Types.MetricKind MetricKind { + get { return metricKind_; } + set { + metricKind_ = value; + } + } + + /// Field number for the "value_type" field. + public const int ValueTypeFieldNumber = 4; + private global::Google.Api.MetricDescriptor.Types.ValueType valueType_ = global::Google.Api.MetricDescriptor.Types.ValueType.Unspecified; + /// + /// Whether the measurement is an integer, a floating-point number, etc. + /// Some combinations of `metric_kind` and `value_type` might not be supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.MetricDescriptor.Types.ValueType ValueType { + get { return valueType_; } + set { + valueType_ = value; + } + } + + /// Field number for the "unit" field. + public const int UnitFieldNumber = 5; + private string unit_ = ""; + /// + /// The units in which the metric value is reported. It is only applicable + /// if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` + /// defines the representation of the stored metric values. + /// + /// Different systems might scale the values to be more easily displayed (so a + /// value of `0.02kBy` _might_ be displayed as `20By`, and a value of + /// `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is + /// `kBy`, then the value of the metric is always in thousands of bytes, no + /// matter how it might be displayed. + /// + /// If you want a custom metric to record the exact number of CPU-seconds used + /// by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is + /// `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 + /// CPU-seconds, then the value is written as `12005`. + /// + /// Alternatively, if you want a custom metric to record data in a more + /// granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is + /// `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), + /// or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + /// + /// The supported units are a subset of [The Unified Code for Units of + /// Measure](https://unitsofmeasure.org/ucum.html) standard: + /// + /// **Basic units (UNIT)** + /// + /// * `bit` bit + /// * `By` byte + /// * `s` second + /// * `min` minute + /// * `h` hour + /// * `d` day + /// * `1` dimensionless + /// + /// **Prefixes (PREFIX)** + /// + /// * `k` kilo (10^3) + /// * `M` mega (10^6) + /// * `G` giga (10^9) + /// * `T` tera (10^12) + /// * `P` peta (10^15) + /// * `E` exa (10^18) + /// * `Z` zetta (10^21) + /// * `Y` yotta (10^24) + /// + /// * `m` milli (10^-3) + /// * `u` micro (10^-6) + /// * `n` nano (10^-9) + /// * `p` pico (10^-12) + /// * `f` femto (10^-15) + /// * `a` atto (10^-18) + /// * `z` zepto (10^-21) + /// * `y` yocto (10^-24) + /// + /// * `Ki` kibi (2^10) + /// * `Mi` mebi (2^20) + /// * `Gi` gibi (2^30) + /// * `Ti` tebi (2^40) + /// * `Pi` pebi (2^50) + /// + /// **Grammar** + /// + /// The grammar also includes these connectors: + /// + /// * `/` division or ratio (as an infix operator). For examples, + /// `kBy/{email}` or `MiBy/10ms` (although you should almost never + /// have `/s` in a metric `unit`; rates should always be computed at + /// query time from the underlying cumulative or delta value). + /// * `.` multiplication or composition (as an infix operator). For + /// examples, `GBy.d` or `k{watt}.h`. + /// + /// The grammar for a unit is as follows: + /// + /// Expression = Component { "." Component } { "/" Component } ; + /// + /// Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] + /// | Annotation + /// | "1" + /// ; + /// + /// Annotation = "{" NAME "}" ; + /// + /// Notes: + /// + /// * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + /// is used alone, then the unit is equivalent to `1`. For examples, + /// `{request}/s == 1/s`, `By{transmitted}/s == By/s`. + /// * `NAME` is a sequence of non-blank printable ASCII characters not + /// containing `{` or `}`. + /// * `1` represents a unitary [dimensionless + /// unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + /// as in `1/s`. It is typically used when none of the basic units are + /// appropriate. For example, "new users per day" can be represented as + /// `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new + /// users). Alternatively, "thousands of page views per day" would be + /// represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric + /// value of `5.3` would mean "5300 page views per day"). + /// * `%` represents dimensionless value of 1/100, and annotates values giving + /// a percentage (so the metric values are typically in the range of 0..100, + /// and a metric value `3` means "3 percent"). + /// * `10^2.%` indicates a metric contains a ratio, typically in the range + /// 0..1, that will be multiplied by 100 and displayed as a percentage + /// (so a metric value `0.03` means "3 percent"). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Unit { + get { return unit_; } + set { + unit_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 6; + private string description_ = ""; + /// + /// A detailed description of the metric, which can be used in documentation. + /// + [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 "display_name" field. + public const int DisplayNameFieldNumber = 7; + private string displayName_ = ""; + /// + /// A concise name for the metric, which can be displayed in user interfaces. + /// Use sentence case without an ending period, for example "Request count". + /// This field is optional but it is recommended to be set for any metrics + /// associated with user-visible concepts, such as Quota. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 10; + private global::Google.Api.MetricDescriptor.Types.MetricDescriptorMetadata metadata_; + /// + /// Optional. Metadata which can be used to guide usage of the metric. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.MetricDescriptor.Types.MetricDescriptorMetadata Metadata { + get { return metadata_; } + set { + metadata_ = value; + } + } + + /// Field number for the "launch_stage" field. + public const int LaunchStageFieldNumber = 12; + private global::Google.Api.LaunchStage launchStage_ = global::Google.Api.LaunchStage.Unspecified; + /// + /// Optional. The launch stage of the metric definition. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.LaunchStage LaunchStage { + get { return launchStage_; } + set { + launchStage_ = value; + } + } + + /// Field number for the "monitored_resource_types" field. + public const int MonitoredResourceTypesFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_monitoredResourceTypes_codec + = pb::FieldCodec.ForString(106); + private readonly pbc::RepeatedField monitoredResourceTypes_ = new pbc::RepeatedField(); + /// + /// Read-only. If present, then a [time + /// series][google.monitoring.v3.TimeSeries], which is identified partially by + /// a metric type and a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that is associated + /// with this metric type can only be associated with one of the monitored + /// resource types listed here. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MonitoredResourceTypes { + get { return monitoredResourceTypes_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MetricDescriptor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MetricDescriptor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Type != other.Type) return false; + if(!labels_.Equals(other.labels_)) return false; + if (MetricKind != other.MetricKind) return false; + if (ValueType != other.ValueType) return false; + if (Unit != other.Unit) return false; + if (Description != other.Description) return false; + if (DisplayName != other.DisplayName) return false; + if (!object.Equals(Metadata, other.Metadata)) return false; + if (LaunchStage != other.LaunchStage) return false; + if(!monitoredResourceTypes_.Equals(other.monitoredResourceTypes_)) return false; + 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 (Type.Length != 0) hash ^= Type.GetHashCode(); + hash ^= labels_.GetHashCode(); + if (MetricKind != global::Google.Api.MetricDescriptor.Types.MetricKind.Unspecified) hash ^= MetricKind.GetHashCode(); + if (ValueType != global::Google.Api.MetricDescriptor.Types.ValueType.Unspecified) hash ^= ValueType.GetHashCode(); + if (Unit.Length != 0) hash ^= Unit.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (metadata_ != null) hash ^= Metadata.GetHashCode(); + if (LaunchStage != global::Google.Api.LaunchStage.Unspecified) hash ^= LaunchStage.GetHashCode(); + hash ^= monitoredResourceTypes_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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); + } + labels_.WriteTo(output, _repeated_labels_codec); + if (MetricKind != global::Google.Api.MetricDescriptor.Types.MetricKind.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) MetricKind); + } + if (ValueType != global::Google.Api.MetricDescriptor.Types.ValueType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) ValueType); + } + if (Unit.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Unit); + } + if (Description.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Description); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DisplayName); + } + if (Type.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Type); + } + if (metadata_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Metadata); + } + if (LaunchStage != global::Google.Api.LaunchStage.Unspecified) { + output.WriteRawTag(96); + output.WriteEnum((int) LaunchStage); + } + monitoredResourceTypes_.WriteTo(output, _repeated_monitoredResourceTypes_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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + labels_.WriteTo(ref output, _repeated_labels_codec); + if (MetricKind != global::Google.Api.MetricDescriptor.Types.MetricKind.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) MetricKind); + } + if (ValueType != global::Google.Api.MetricDescriptor.Types.ValueType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) ValueType); + } + if (Unit.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Unit); + } + if (Description.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Description); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DisplayName); + } + if (Type.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Type); + } + if (metadata_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Metadata); + } + if (LaunchStage != global::Google.Api.LaunchStage.Unspecified) { + output.WriteRawTag(96); + output.WriteEnum((int) LaunchStage); + } + monitoredResourceTypes_.WriteTo(ref output, _repeated_monitoredResourceTypes_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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + size += labels_.CalculateSize(_repeated_labels_codec); + if (MetricKind != global::Google.Api.MetricDescriptor.Types.MetricKind.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MetricKind); + } + if (ValueType != global::Google.Api.MetricDescriptor.Types.ValueType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ValueType); + } + if (Unit.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Unit); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (metadata_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metadata); + } + if (LaunchStage != global::Google.Api.LaunchStage.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LaunchStage); + } + size += monitoredResourceTypes_.CalculateSize(_repeated_monitoredResourceTypes_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MetricDescriptor other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + labels_.Add(other.labels_); + if (other.MetricKind != global::Google.Api.MetricDescriptor.Types.MetricKind.Unspecified) { + MetricKind = other.MetricKind; + } + if (other.ValueType != global::Google.Api.MetricDescriptor.Types.ValueType.Unspecified) { + ValueType = other.ValueType; + } + if (other.Unit.Length != 0) { + Unit = other.Unit; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.metadata_ != null) { + if (metadata_ == null) { + Metadata = new global::Google.Api.MetricDescriptor.Types.MetricDescriptorMetadata(); + } + Metadata.MergeFrom(other.Metadata); + } + if (other.LaunchStage != global::Google.Api.LaunchStage.Unspecified) { + LaunchStage = other.LaunchStage; + } + monitoredResourceTypes_.Add(other.monitoredResourceTypes_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + labels_.AddEntriesFrom(input, _repeated_labels_codec); + break; + } + case 24: { + MetricKind = (global::Google.Api.MetricDescriptor.Types.MetricKind) input.ReadEnum(); + break; + } + case 32: { + ValueType = (global::Google.Api.MetricDescriptor.Types.ValueType) input.ReadEnum(); + break; + } + case 42: { + Unit = input.ReadString(); + break; + } + case 50: { + Description = input.ReadString(); + break; + } + case 58: { + DisplayName = input.ReadString(); + break; + } + case 66: { + Type = input.ReadString(); + break; + } + case 82: { + if (metadata_ == null) { + Metadata = new global::Google.Api.MetricDescriptor.Types.MetricDescriptorMetadata(); + } + input.ReadMessage(Metadata); + break; + } + case 96: { + LaunchStage = (global::Google.Api.LaunchStage) input.ReadEnum(); + break; + } + case 106: { + monitoredResourceTypes_.AddEntriesFrom(input, _repeated_monitoredResourceTypes_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: { + Name = input.ReadString(); + break; + } + case 18: { + labels_.AddEntriesFrom(ref input, _repeated_labels_codec); + break; + } + case 24: { + MetricKind = (global::Google.Api.MetricDescriptor.Types.MetricKind) input.ReadEnum(); + break; + } + case 32: { + ValueType = (global::Google.Api.MetricDescriptor.Types.ValueType) input.ReadEnum(); + break; + } + case 42: { + Unit = input.ReadString(); + break; + } + case 50: { + Description = input.ReadString(); + break; + } + case 58: { + DisplayName = input.ReadString(); + break; + } + case 66: { + Type = input.ReadString(); + break; + } + case 82: { + if (metadata_ == null) { + Metadata = new global::Google.Api.MetricDescriptor.Types.MetricDescriptorMetadata(); + } + input.ReadMessage(Metadata); + break; + } + case 96: { + LaunchStage = (global::Google.Api.LaunchStage) input.ReadEnum(); + break; + } + case 106: { + monitoredResourceTypes_.AddEntriesFrom(ref input, _repeated_monitoredResourceTypes_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MetricDescriptor message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The kind of measurement. It describes how the data is reported. + /// For information on setting the start time and end time based on + /// the MetricKind, see [TimeInterval][google.monitoring.v3.TimeInterval]. + /// + public enum MetricKind { + /// + /// Do not use this default value. + /// + [pbr::OriginalName("METRIC_KIND_UNSPECIFIED")] Unspecified = 0, + /// + /// An instantaneous measurement of a value. + /// + [pbr::OriginalName("GAUGE")] Gauge = 1, + /// + /// The change in a value during a time interval. + /// + [pbr::OriginalName("DELTA")] Delta = 2, + /// + /// A value accumulated over a time interval. Cumulative + /// measurements in a time series should have the same start time + /// and increasing end times, until an event resets the cumulative + /// value to zero and sets a new start time for the following + /// points. + /// + [pbr::OriginalName("CUMULATIVE")] Cumulative = 3, + } + + /// + /// The value type of a metric. + /// + public enum ValueType { + /// + /// Do not use this default value. + /// + [pbr::OriginalName("VALUE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// The value is a boolean. + /// This value type can be used only if the metric kind is `GAUGE`. + /// + [pbr::OriginalName("BOOL")] Bool = 1, + /// + /// The value is a signed 64-bit integer. + /// + [pbr::OriginalName("INT64")] Int64 = 2, + /// + /// The value is a double precision floating point number. + /// + [pbr::OriginalName("DOUBLE")] Double = 3, + /// + /// The value is a text string. + /// This value type can be used only if the metric kind is `GAUGE`. + /// + [pbr::OriginalName("STRING")] String = 4, + /// + /// The value is a [`Distribution`][google.api.Distribution]. + /// + [pbr::OriginalName("DISTRIBUTION")] Distribution = 5, + /// + /// The value is money. + /// + [pbr::OriginalName("MONEY")] Money = 6, + } + + /// + /// Additional annotations that can be used to guide the usage of a metric. + /// + public sealed partial class MetricDescriptorMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetricDescriptorMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.MetricDescriptor.Descriptor.NestedTypes[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 MetricDescriptorMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetricDescriptorMetadata(MetricDescriptorMetadata other) : this() { + launchStage_ = other.launchStage_; + samplePeriod_ = other.samplePeriod_ != null ? other.samplePeriod_.Clone() : null; + ingestDelay_ = other.ingestDelay_ != null ? other.ingestDelay_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetricDescriptorMetadata Clone() { + return new MetricDescriptorMetadata(this); + } + + /// Field number for the "launch_stage" field. + public const int LaunchStageFieldNumber = 1; + private global::Google.Api.LaunchStage launchStage_ = global::Google.Api.LaunchStage.Unspecified; + /// + /// Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead. + /// + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.LaunchStage LaunchStage { + get { return launchStage_; } + set { + launchStage_ = value; + } + } + + /// Field number for the "sample_period" field. + public const int SamplePeriodFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration samplePeriod_; + /// + /// The sampling period of metric data points. For metrics which are written + /// periodically, consecutive data points are stored at this time interval, + /// excluding data loss due to errors. Metrics with a higher granularity have + /// a smaller sampling period. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration SamplePeriod { + get { return samplePeriod_; } + set { + samplePeriod_ = value; + } + } + + /// Field number for the "ingest_delay" field. + public const int IngestDelayFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Duration ingestDelay_; + /// + /// The delay of data points caused by ingestion. Data points older than this + /// age are guaranteed to be ingested and available to be read, excluding + /// data loss due to errors. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration IngestDelay { + get { return ingestDelay_; } + set { + ingestDelay_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MetricDescriptorMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MetricDescriptorMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LaunchStage != other.LaunchStage) return false; + if (!object.Equals(SamplePeriod, other.SamplePeriod)) return false; + if (!object.Equals(IngestDelay, other.IngestDelay)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (LaunchStage != global::Google.Api.LaunchStage.Unspecified) hash ^= LaunchStage.GetHashCode(); + if (samplePeriod_ != null) hash ^= SamplePeriod.GetHashCode(); + if (ingestDelay_ != null) hash ^= IngestDelay.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (LaunchStage != global::Google.Api.LaunchStage.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) LaunchStage); + } + if (samplePeriod_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SamplePeriod); + } + if (ingestDelay_ != null) { + output.WriteRawTag(26); + output.WriteMessage(IngestDelay); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (LaunchStage != global::Google.Api.LaunchStage.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) LaunchStage); + } + if (samplePeriod_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SamplePeriod); + } + if (ingestDelay_ != null) { + output.WriteRawTag(26); + output.WriteMessage(IngestDelay); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (LaunchStage != global::Google.Api.LaunchStage.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LaunchStage); + } + if (samplePeriod_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SamplePeriod); + } + if (ingestDelay_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IngestDelay); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MetricDescriptorMetadata other) { + if (other == null) { + return; + } + if (other.LaunchStage != global::Google.Api.LaunchStage.Unspecified) { + LaunchStage = other.LaunchStage; + } + if (other.samplePeriod_ != null) { + if (samplePeriod_ == null) { + SamplePeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + SamplePeriod.MergeFrom(other.SamplePeriod); + } + if (other.ingestDelay_ != null) { + if (ingestDelay_ == null) { + IngestDelay = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + IngestDelay.MergeFrom(other.IngestDelay); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + LaunchStage = (global::Google.Api.LaunchStage) input.ReadEnum(); + break; + } + case 18: { + if (samplePeriod_ == null) { + SamplePeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(SamplePeriod); + break; + } + case 26: { + if (ingestDelay_ == null) { + IngestDelay = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(IngestDelay); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.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: { + LaunchStage = (global::Google.Api.LaunchStage) input.ReadEnum(); + break; + } + case 18: { + if (samplePeriod_ == null) { + SamplePeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(SamplePeriod); + break; + } + case 26: { + if (ingestDelay_ == null) { + IngestDelay = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(IngestDelay); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A specific metric, identified by specifying values for all of the + /// labels of a [`MetricDescriptor`][google.api.MetricDescriptor]. + /// + 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::Google.Api.MetricReflection.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 Metric() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Metric(Metric other) : this() { + type_ = other.type_; + labels_ = other.labels_.Clone(); + _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 "type" field. + public const int TypeFieldNumber = 3; + private string type_ = ""; + /// + /// An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. + /// For example, `custom.googleapis.com/invoice/paid/amount`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// The set of label values that uniquely identify this metric. All + /// labels listed in the `MetricDescriptor` must be assigned values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + [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 (Type != other.Type) return false; + if (!Labels.Equals(other.Labels)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Type.Length != 0) hash ^= Type.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + labels_.WriteTo(output, _map_labels_codec); + if (Type.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Type); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + labels_.WriteTo(ref output, _map_labels_codec); + if (Type.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Type); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + size += labels_.CalculateSize(_map_labels_codec); + 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.Type.Length != 0) { + Type = other.Type; + } + labels_.Add(other.labels_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 26: { + Type = 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: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 26: { + Type = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/MonitoredResource.cs b/csharp/protobuf/google/api/MonitoredResource.cs new file mode 100644 index 00000000..76398906 --- /dev/null +++ b/csharp/protobuf/google/api/MonitoredResource.cs @@ -0,0 +1,952 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/monitored_resource.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/monitored_resource.proto + public static partial class MonitoredResourceReflection { + + #region Descriptor + /// File descriptor for google/api/monitored_resource.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonitoredResourceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiNnb29nbGUvYXBpL21vbml0b3JlZF9yZXNvdXJjZS5wcm90bxIKZ29vZ2xl", + "LmFwaRoWZ29vZ2xlL2FwaS9sYWJlbC5wcm90bxodZ29vZ2xlL2FwaS9sYXVu", + "Y2hfc3RhZ2UucHJvdG8aHGdvb2dsZS9wcm90b2J1Zi9zdHJ1Y3QucHJvdG8i", + "wAEKG01vbml0b3JlZFJlc291cmNlRGVzY3JpcHRvchIMCgRuYW1lGAUgASgJ", + "EgwKBHR5cGUYASABKAkSFAoMZGlzcGxheV9uYW1lGAIgASgJEhMKC2Rlc2Ny", + "aXB0aW9uGAMgASgJEisKBmxhYmVscxgEIAMoCzIbLmdvb2dsZS5hcGkuTGFi", + "ZWxEZXNjcmlwdG9yEi0KDGxhdW5jaF9zdGFnZRgHIAEoDjIXLmdvb2dsZS5h", + "cGkuTGF1bmNoU3RhZ2UiiwEKEU1vbml0b3JlZFJlc291cmNlEgwKBHR5cGUY", + "ASABKAkSOQoGbGFiZWxzGAIgAygLMikuZ29vZ2xlLmFwaS5Nb25pdG9yZWRS", + "ZXNvdXJjZS5MYWJlbHNFbnRyeRotCgtMYWJlbHNFbnRyeRILCgNrZXkYASAB", + "KAkSDQoFdmFsdWUYAiABKAk6AjgBIsoBChlNb25pdG9yZWRSZXNvdXJjZU1l", + "dGFkYXRhEi4KDXN5c3RlbV9sYWJlbHMYASABKAsyFy5nb29nbGUucHJvdG9i", + "dWYuU3RydWN0EkoKC3VzZXJfbGFiZWxzGAIgAygLMjUuZ29vZ2xlLmFwaS5N", + "b25pdG9yZWRSZXNvdXJjZU1ldGFkYXRhLlVzZXJMYWJlbHNFbnRyeRoxCg9V", + "c2VyTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4", + "AUJ5Cg5jb20uZ29vZ2xlLmFwaUIWTW9uaXRvcmVkUmVzb3VyY2VQcm90b1AB", + "WkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9t", + "b25pdG9yZWRyZXM7bW9uaXRvcmVkcmVz+AEBogIER0FQSWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.LabelReflection.Descriptor, global::Google.Api.LaunchStageReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.MonitoredResourceDescriptor), global::Google.Api.MonitoredResourceDescriptor.Parser, new[]{ "Name", "Type", "DisplayName", "Description", "Labels", "LaunchStage" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.MonitoredResource), global::Google.Api.MonitoredResource.Parser, new[]{ "Type", "Labels" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.MonitoredResourceMetadata), global::Google.Api.MonitoredResourceMetadata.Parser, new[]{ "SystemLabels", "UserLabels" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + /// + /// An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a + /// type name and a set of labels. For example, the monitored resource + /// descriptor for Google Compute Engine VM instances has a type of + /// `"gce_instance"` and specifies the use of the labels `"instance_id"` and + /// `"zone"` to identify particular VM instances. + /// + /// Different APIs can support different monitored resource types. APIs generally + /// provide a `list` method that returns the monitored resource descriptors used + /// by the API. + /// + public sealed partial class MonitoredResourceDescriptor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonitoredResourceDescriptor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.MonitoredResourceReflection.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 MonitoredResourceDescriptor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonitoredResourceDescriptor(MonitoredResourceDescriptor other) : this() { + name_ = other.name_; + type_ = other.type_; + displayName_ = other.displayName_; + description_ = other.description_; + labels_ = other.labels_.Clone(); + launchStage_ = other.launchStage_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonitoredResourceDescriptor Clone() { + return new MonitoredResourceDescriptor(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 5; + private string name_ = ""; + /// + /// Optional. The resource name of the monitored resource descriptor: + /// `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where + /// {type} is the value of the `type` field in this object and + /// {project_id} is a project ID that provides API-specific context for + /// accessing the type. APIs that do not use project information can use the + /// resource name format `"monitoredResourceDescriptors/{type}"`. + /// + [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 "type" field. + public const int TypeFieldNumber = 1; + private string type_ = ""; + /// + /// Required. The monitored resource type. For example, the type + /// `"cloudsql_database"` represents databases in Google Cloud SQL. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// Optional. A concise name for the monitored resource type that might be + /// displayed in user interfaces. It should be a Title Cased Noun Phrase, + /// without any article or other determiners. For example, + /// `"Google Cloud SQL Database"`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// Optional. A detailed description of the monitored resource type that might + /// be used in documentation. + /// + [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 "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_labels_codec + = pb::FieldCodec.ForMessage(34, global::Google.Api.LabelDescriptor.Parser); + private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); + /// + /// Required. A set of labels used to describe instances of this monitored + /// resource type. For example, an individual Google Cloud SQL database is + /// identified by values for the labels `"database_id"` and `"zone"`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Labels { + get { return labels_; } + } + + /// Field number for the "launch_stage" field. + public const int LaunchStageFieldNumber = 7; + private global::Google.Api.LaunchStage launchStage_ = global::Google.Api.LaunchStage.Unspecified; + /// + /// Optional. The launch stage of the monitored resource definition. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.LaunchStage LaunchStage { + get { return launchStage_; } + set { + launchStage_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonitoredResourceDescriptor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonitoredResourceDescriptor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Type != other.Type) return false; + if (DisplayName != other.DisplayName) return false; + if (Description != other.Description) return false; + if(!labels_.Equals(other.labels_)) return false; + if (LaunchStage != other.LaunchStage) return false; + 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 (Type.Length != 0) hash ^= Type.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + hash ^= labels_.GetHashCode(); + if (LaunchStage != global::Google.Api.LaunchStage.Unspecified) hash ^= LaunchStage.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + labels_.WriteTo(output, _repeated_labels_codec); + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (LaunchStage != global::Google.Api.LaunchStage.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) LaunchStage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + labels_.WriteTo(ref output, _repeated_labels_codec); + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (LaunchStage != global::Google.Api.LaunchStage.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) LaunchStage); + } + if (_unknownFields != 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 (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + size += labels_.CalculateSize(_repeated_labels_codec); + if (LaunchStage != global::Google.Api.LaunchStage.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LaunchStage); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonitoredResourceDescriptor other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + labels_.Add(other.labels_); + if (other.LaunchStage != global::Google.Api.LaunchStage.Unspecified) { + LaunchStage = other.LaunchStage; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 18: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _repeated_labels_codec); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + case 56: { + LaunchStage = (global::Google.Api.LaunchStage) 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: { + Type = input.ReadString(); + break; + } + case 18: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _repeated_labels_codec); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + case 56: { + LaunchStage = (global::Google.Api.LaunchStage) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// An object representing a resource that can be used for monitoring, logging, + /// billing, or other purposes. Examples include virtual machine instances, + /// databases, and storage devices such as disks. The `type` field identifies a + /// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object that describes the resource's + /// schema. Information in the `labels` field identifies the actual resource and + /// its attributes according to the schema. For example, a particular Compute + /// Engine VM instance could be represented by the following object, because the + /// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for `"gce_instance"` has labels + /// `"instance_id"` and `"zone"`: + /// + /// { "type": "gce_instance", + /// "labels": { "instance_id": "12345678901234", + /// "zone": "us-central1-a" }} + /// + public sealed partial class MonitoredResource : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonitoredResource()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.MonitoredResourceReflection.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 MonitoredResource() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonitoredResource(MonitoredResource other) : this() { + type_ = other.type_; + labels_ = other.labels_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonitoredResource Clone() { + return new MonitoredResource(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private string type_ = ""; + /// + /// Required. The monitored resource type. This field must match + /// the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For + /// example, the type of a Compute Engine VM instance is `gce_instance`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Required. Values for all of the labels listed in the associated monitored + /// resource descriptor. For example, Compute Engine VM instances use the + /// labels `"project_id"`, `"instance_id"`, and `"zone"`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonitoredResource); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonitoredResource other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (!Labels.Equals(other.Labels)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Type.Length != 0) hash ^= Type.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + labels_.WriteTo(output, _map_labels_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 (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + labels_.WriteTo(ref output, _map_labels_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 (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + size += labels_.CalculateSize(_map_labels_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonitoredResource other) { + if (other == null) { + return; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + labels_.Add(other.labels_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 18: { + labels_.AddEntriesFrom(input, _map_labels_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: { + Type = input.ReadString(); + break; + } + case 18: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object. + /// [MonitoredResource][google.api.MonitoredResource] objects contain the minimum set of information to + /// uniquely identify a monitored resource instance. There is some other useful + /// auxiliary metadata. Monitoring and Logging use an ingestion + /// pipeline to extract metadata for cloud resources of all types, and store + /// the metadata in this message. + /// + public sealed partial class MonitoredResourceMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonitoredResourceMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.MonitoredResourceReflection.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 MonitoredResourceMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonitoredResourceMetadata(MonitoredResourceMetadata other) : this() { + systemLabels_ = other.systemLabels_ != null ? other.systemLabels_.Clone() : null; + userLabels_ = other.userLabels_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonitoredResourceMetadata Clone() { + return new MonitoredResourceMetadata(this); + } + + /// Field number for the "system_labels" field. + public const int SystemLabelsFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Struct systemLabels_; + /// + /// Output only. Values for predefined system metadata labels. + /// System labels are a kind of metadata extracted by Google, including + /// "machine_image", "vpc", "subnet_id", + /// "security_group", "name", etc. + /// System label values can be only strings, Boolean values, or a list of + /// strings. For example: + /// + /// { "name": "my-test-instance", + /// "security_group": ["a", "b", "c"], + /// "spot_instance": false } + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Struct SystemLabels { + get { return systemLabels_; } + set { + systemLabels_ = value; + } + } + + /// Field number for the "user_labels" field. + public const int UserLabelsFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_userLabels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField userLabels_ = new pbc::MapField(); + /// + /// Output only. A map of user-defined metadata labels. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField UserLabels { + get { return userLabels_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonitoredResourceMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonitoredResourceMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SystemLabels, other.SystemLabels)) return false; + if (!UserLabels.Equals(other.UserLabels)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (systemLabels_ != null) hash ^= SystemLabels.GetHashCode(); + hash ^= UserLabels.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (systemLabels_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SystemLabels); + } + userLabels_.WriteTo(output, _map_userLabels_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 (systemLabels_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SystemLabels); + } + userLabels_.WriteTo(ref output, _map_userLabels_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 (systemLabels_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SystemLabels); + } + size += userLabels_.CalculateSize(_map_userLabels_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonitoredResourceMetadata other) { + if (other == null) { + return; + } + if (other.systemLabels_ != null) { + if (systemLabels_ == null) { + SystemLabels = new global::Google.Protobuf.WellKnownTypes.Struct(); + } + SystemLabels.MergeFrom(other.SystemLabels); + } + userLabels_.Add(other.userLabels_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (systemLabels_ == null) { + SystemLabels = new global::Google.Protobuf.WellKnownTypes.Struct(); + } + input.ReadMessage(SystemLabels); + break; + } + case 18: { + userLabels_.AddEntriesFrom(input, _map_userLabels_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 (systemLabels_ == null) { + SystemLabels = new global::Google.Protobuf.WellKnownTypes.Struct(); + } + input.ReadMessage(SystemLabels); + break; + } + case 18: { + userLabels_.AddEntriesFrom(ref input, _map_userLabels_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Monitoring.cs b/csharp/protobuf/google/api/Monitoring.cs new file mode 100644 index 00000000..d32d09a8 --- /dev/null +++ b/csharp/protobuf/google/api/Monitoring.cs @@ -0,0 +1,559 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/monitoring.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/monitoring.proto + public static partial class MonitoringReflection { + + #region Descriptor + /// File descriptor for google/api/monitoring.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonitoringReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chtnb29nbGUvYXBpL21vbml0b3JpbmcucHJvdG8SCmdvb2dsZS5hcGki7AEK", + "Ck1vbml0b3JpbmcSSwoVcHJvZHVjZXJfZGVzdGluYXRpb25zGAEgAygLMiwu", + "Z29vZ2xlLmFwaS5Nb25pdG9yaW5nLk1vbml0b3JpbmdEZXN0aW5hdGlvbhJL", + "ChVjb25zdW1lcl9kZXN0aW5hdGlvbnMYAiADKAsyLC5nb29nbGUuYXBpLk1v", + "bml0b3JpbmcuTW9uaXRvcmluZ0Rlc3RpbmF0aW9uGkQKFU1vbml0b3JpbmdE", + "ZXN0aW5hdGlvbhIaChJtb25pdG9yZWRfcmVzb3VyY2UYASABKAkSDwoHbWV0", + "cmljcxgCIAMoCUJxCg5jb20uZ29vZ2xlLmFwaUIPTW9uaXRvcmluZ1Byb3Rv", + "UAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBp", + "L3NlcnZpY2Vjb25maWc7c2VydmljZWNvbmZpZ6ICBEdBUEliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Monitoring), global::Google.Api.Monitoring.Parser, new[]{ "ProducerDestinations", "ConsumerDestinations" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Monitoring.Types.MonitoringDestination), global::Google.Api.Monitoring.Types.MonitoringDestination.Parser, new[]{ "MonitoredResource", "Metrics" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + /// + /// Monitoring configuration of the service. + /// + /// The example below shows how to configure monitored resources and metrics + /// for monitoring. In the example, a monitored resource and two metrics are + /// defined. The `library.googleapis.com/book/returned_count` metric is sent + /// to both producer and consumer projects, whereas the + /// `library.googleapis.com/book/num_overdue` metric is only sent to the + /// consumer project. + /// + /// monitored_resources: + /// - type: library.googleapis.com/Branch + /// display_name: "Library Branch" + /// description: "A branch of a library." + /// launch_stage: GA + /// labels: + /// - key: resource_container + /// description: "The Cloud container (ie. project id) for the Branch." + /// - key: location + /// description: "The location of the library branch." + /// - key: branch_id + /// description: "The id of the branch." + /// metrics: + /// - name: library.googleapis.com/book/returned_count + /// display_name: "Books Returned" + /// description: "The count of books that have been returned." + /// launch_stage: GA + /// metric_kind: DELTA + /// value_type: INT64 + /// unit: "1" + /// labels: + /// - key: customer_id + /// description: "The id of the customer." + /// - name: library.googleapis.com/book/num_overdue + /// display_name: "Books Overdue" + /// description: "The current number of overdue books." + /// launch_stage: GA + /// metric_kind: GAUGE + /// value_type: INT64 + /// unit: "1" + /// labels: + /// - key: customer_id + /// description: "The id of the customer." + /// monitoring: + /// producer_destinations: + /// - monitored_resource: library.googleapis.com/Branch + /// metrics: + /// - library.googleapis.com/book/returned_count + /// consumer_destinations: + /// - monitored_resource: library.googleapis.com/Branch + /// metrics: + /// - library.googleapis.com/book/returned_count + /// - library.googleapis.com/book/num_overdue + /// + public sealed partial class Monitoring : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Monitoring()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.MonitoringReflection.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 Monitoring() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Monitoring(Monitoring other) : this() { + producerDestinations_ = other.producerDestinations_.Clone(); + consumerDestinations_ = other.consumerDestinations_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Monitoring Clone() { + return new Monitoring(this); + } + + /// Field number for the "producer_destinations" field. + public const int ProducerDestinationsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_producerDestinations_codec + = pb::FieldCodec.ForMessage(10, global::Google.Api.Monitoring.Types.MonitoringDestination.Parser); + private readonly pbc::RepeatedField producerDestinations_ = new pbc::RepeatedField(); + /// + /// Monitoring configurations for sending metrics to the producer project. + /// There can be multiple producer destinations. A monitored resource type may + /// appear in multiple monitoring destinations if different aggregations are + /// needed for different sets of metrics associated with that monitored + /// resource type. A monitored resource and metric pair may only be used once + /// in the Monitoring configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ProducerDestinations { + get { return producerDestinations_; } + } + + /// Field number for the "consumer_destinations" field. + public const int ConsumerDestinationsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_consumerDestinations_codec + = pb::FieldCodec.ForMessage(18, global::Google.Api.Monitoring.Types.MonitoringDestination.Parser); + private readonly pbc::RepeatedField consumerDestinations_ = new pbc::RepeatedField(); + /// + /// Monitoring configurations for sending metrics to the consumer project. + /// There can be multiple consumer destinations. A monitored resource type may + /// appear in multiple monitoring destinations if different aggregations are + /// needed for different sets of metrics associated with that monitored + /// resource type. A monitored resource and metric pair may only be used once + /// in the Monitoring configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ConsumerDestinations { + get { return consumerDestinations_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Monitoring); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Monitoring other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!producerDestinations_.Equals(other.producerDestinations_)) return false; + if(!consumerDestinations_.Equals(other.consumerDestinations_)) return 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 ^= producerDestinations_.GetHashCode(); + hash ^= consumerDestinations_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + producerDestinations_.WriteTo(output, _repeated_producerDestinations_codec); + consumerDestinations_.WriteTo(output, _repeated_consumerDestinations_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) { + producerDestinations_.WriteTo(ref output, _repeated_producerDestinations_codec); + consumerDestinations_.WriteTo(ref output, _repeated_consumerDestinations_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 += producerDestinations_.CalculateSize(_repeated_producerDestinations_codec); + size += consumerDestinations_.CalculateSize(_repeated_consumerDestinations_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Monitoring other) { + if (other == null) { + return; + } + producerDestinations_.Add(other.producerDestinations_); + consumerDestinations_.Add(other.consumerDestinations_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + producerDestinations_.AddEntriesFrom(input, _repeated_producerDestinations_codec); + break; + } + case 18: { + consumerDestinations_.AddEntriesFrom(input, _repeated_consumerDestinations_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: { + producerDestinations_.AddEntriesFrom(ref input, _repeated_producerDestinations_codec); + break; + } + case 18: { + consumerDestinations_.AddEntriesFrom(ref input, _repeated_consumerDestinations_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Monitoring message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Configuration of a specific monitoring destination (the producer project + /// or the consumer project). + /// + public sealed partial class MonitoringDestination : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonitoringDestination()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.Monitoring.Descriptor.NestedTypes[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 MonitoringDestination() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonitoringDestination(MonitoringDestination other) : this() { + monitoredResource_ = other.monitoredResource_; + metrics_ = other.metrics_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonitoringDestination Clone() { + return new MonitoringDestination(this); + } + + /// Field number for the "monitored_resource" field. + public const int MonitoredResourceFieldNumber = 1; + private string monitoredResource_ = ""; + /// + /// The monitored resource type. The type must be defined in + /// [Service.monitored_resources][google.api.Service.monitored_resources] section. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MonitoredResource { + get { return monitoredResource_; } + set { + monitoredResource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "metrics" field. + public const int MetricsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_metrics_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField metrics_ = new pbc::RepeatedField(); + /// + /// Types of the metrics to report to this monitoring destination. + /// Each type must be defined in [Service.metrics][google.api.Service.metrics] section. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Metrics { + get { return metrics_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonitoringDestination); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonitoringDestination other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MonitoredResource != other.MonitoredResource) return false; + if(!metrics_.Equals(other.metrics_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MonitoredResource.Length != 0) hash ^= MonitoredResource.GetHashCode(); + hash ^= metrics_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MonitoredResource.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MonitoredResource); + } + metrics_.WriteTo(output, _repeated_metrics_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 (MonitoredResource.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MonitoredResource); + } + metrics_.WriteTo(ref output, _repeated_metrics_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 (MonitoredResource.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MonitoredResource); + } + size += metrics_.CalculateSize(_repeated_metrics_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonitoringDestination other) { + if (other == null) { + return; + } + if (other.MonitoredResource.Length != 0) { + MonitoredResource = other.MonitoredResource; + } + metrics_.Add(other.metrics_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + MonitoredResource = input.ReadString(); + break; + } + case 18: { + metrics_.AddEntriesFrom(input, _repeated_metrics_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: { + MonitoredResource = input.ReadString(); + break; + } + case 18: { + metrics_.AddEntriesFrom(ref input, _repeated_metrics_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Quota.cs b/csharp/protobuf/google/api/Quota.cs new file mode 100644 index 00000000..83f6bdf1 --- /dev/null +++ b/csharp/protobuf/google/api/Quota.cs @@ -0,0 +1,1146 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/quota.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/quota.proto + public static partial class QuotaReflection { + + #region Descriptor + /// File descriptor for google/api/quota.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static QuotaReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZnb29nbGUvYXBpL3F1b3RhLnByb3RvEgpnb29nbGUuYXBpIl0KBVF1b3Rh", + "EiYKBmxpbWl0cxgDIAMoCzIWLmdvb2dsZS5hcGkuUXVvdGFMaW1pdBIsCgxt", + "ZXRyaWNfcnVsZXMYBCADKAsyFi5nb29nbGUuYXBpLk1ldHJpY1J1bGUikQEK", + "Ck1ldHJpY1J1bGUSEAoIc2VsZWN0b3IYASABKAkSPQoMbWV0cmljX2Nvc3Rz", + "GAIgAygLMicuZ29vZ2xlLmFwaS5NZXRyaWNSdWxlLk1ldHJpY0Nvc3RzRW50", + "cnkaMgoQTWV0cmljQ29zdHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY", + "AiABKAM6AjgBIpUCCgpRdW90YUxpbWl0EgwKBG5hbWUYBiABKAkSEwoLZGVz", + "Y3JpcHRpb24YAiABKAkSFQoNZGVmYXVsdF9saW1pdBgDIAEoAxIRCgltYXhf", + "bGltaXQYBCABKAMSEQoJZnJlZV90aWVyGAcgASgDEhAKCGR1cmF0aW9uGAUg", + "ASgJEg4KBm1ldHJpYxgIIAEoCRIMCgR1bml0GAkgASgJEjIKBnZhbHVlcxgK", + "IAMoCzIiLmdvb2dsZS5hcGkuUXVvdGFMaW1pdC5WYWx1ZXNFbnRyeRIUCgxk", + "aXNwbGF5X25hbWUYDCABKAkaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJ", + "Eg0KBXZhbHVlGAIgASgDOgI4AUJsCg5jb20uZ29vZ2xlLmFwaUIKUXVvdGFQ", + "cm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlz", + "L2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Quota), global::Google.Api.Quota.Parser, new[]{ "Limits", "MetricRules" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.MetricRule), global::Google.Api.MetricRule.Parser, new[]{ "Selector", "MetricCosts" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.QuotaLimit), global::Google.Api.QuotaLimit.Parser, new[]{ "Name", "Description", "DefaultLimit", "MaxLimit", "FreeTier", "Duration", "Metric", "Unit", "Values", "DisplayName" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + /// + /// Quota configuration helps to achieve fairness and budgeting in service + /// usage. + /// + /// The metric based quota configuration works this way: + /// - The service configuration defines a set of metrics. + /// - For API calls, the quota.metric_rules maps methods to metrics with + /// corresponding costs. + /// - The quota.limits defines limits on the metrics, which will be used for + /// quota checks at runtime. + /// + /// An example quota configuration in yaml format: + /// + /// quota: + /// limits: + /// + /// - name: apiWriteQpsPerProject + /// metric: library.googleapis.com/write_calls + /// unit: "1/min/{project}" # rate limit for consumer projects + /// values: + /// STANDARD: 10000 + /// + /// # The metric rules bind all methods to the read_calls metric, + /// # except for the UpdateBook and DeleteBook methods. These two methods + /// # are mapped to the write_calls metric, with the UpdateBook method + /// # consuming at twice rate as the DeleteBook method. + /// metric_rules: + /// - selector: "*" + /// metric_costs: + /// library.googleapis.com/read_calls: 1 + /// - selector: google.example.library.v1.LibraryService.UpdateBook + /// metric_costs: + /// library.googleapis.com/write_calls: 2 + /// - selector: google.example.library.v1.LibraryService.DeleteBook + /// metric_costs: + /// library.googleapis.com/write_calls: 1 + /// + /// Corresponding Metric definition: + /// + /// metrics: + /// - name: library.googleapis.com/read_calls + /// display_name: Read requests + /// metric_kind: DELTA + /// value_type: INT64 + /// + /// - name: library.googleapis.com/write_calls + /// display_name: Write requests + /// metric_kind: DELTA + /// value_type: INT64 + /// + public sealed partial class Quota : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Quota()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.QuotaReflection.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 Quota() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Quota(Quota other) : this() { + limits_ = other.limits_.Clone(); + metricRules_ = other.metricRules_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Quota Clone() { + return new Quota(this); + } + + /// Field number for the "limits" field. + public const int LimitsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_limits_codec + = pb::FieldCodec.ForMessage(26, global::Google.Api.QuotaLimit.Parser); + private readonly pbc::RepeatedField limits_ = new pbc::RepeatedField(); + /// + /// List of `QuotaLimit` definitions for the service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Limits { + get { return limits_; } + } + + /// Field number for the "metric_rules" field. + public const int MetricRulesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_metricRules_codec + = pb::FieldCodec.ForMessage(34, global::Google.Api.MetricRule.Parser); + private readonly pbc::RepeatedField metricRules_ = new pbc::RepeatedField(); + /// + /// List of `MetricRule` definitions, each one mapping a selected method to one + /// or more metrics. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MetricRules { + get { return metricRules_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Quota); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Quota other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!limits_.Equals(other.limits_)) return false; + if(!metricRules_.Equals(other.metricRules_)) return 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 ^= limits_.GetHashCode(); + hash ^= metricRules_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + limits_.WriteTo(output, _repeated_limits_codec); + metricRules_.WriteTo(output, _repeated_metricRules_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) { + limits_.WriteTo(ref output, _repeated_limits_codec); + metricRules_.WriteTo(ref output, _repeated_metricRules_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 += limits_.CalculateSize(_repeated_limits_codec); + size += metricRules_.CalculateSize(_repeated_metricRules_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Quota other) { + if (other == null) { + return; + } + limits_.Add(other.limits_); + metricRules_.Add(other.metricRules_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + limits_.AddEntriesFrom(input, _repeated_limits_codec); + break; + } + case 34: { + metricRules_.AddEntriesFrom(input, _repeated_metricRules_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 26: { + limits_.AddEntriesFrom(ref input, _repeated_limits_codec); + break; + } + case 34: { + metricRules_.AddEntriesFrom(ref input, _repeated_metricRules_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Bind API methods to metrics. Binding a method to a metric causes that + /// metric's configured quota behaviors to apply to the method call. + /// + public sealed partial class MetricRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetricRule()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.QuotaReflection.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 MetricRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetricRule(MetricRule other) : this() { + selector_ = other.selector_; + metricCosts_ = other.metricCosts_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetricRule Clone() { + return new MetricRule(this); + } + + /// Field number for the "selector" field. + public const int SelectorFieldNumber = 1; + private string selector_ = ""; + /// + /// Selects the methods 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 "metric_costs" field. + public const int MetricCostsFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_metricCosts_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 18); + private readonly pbc::MapField metricCosts_ = new pbc::MapField(); + /// + /// Metrics to update when the selected methods are called, and the associated + /// cost applied to each metric. + /// + /// The key of the map is the metric name, and the values are the amount + /// increased for the metric against which the quota limits are defined. + /// The value must not be negative. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MetricCosts { + get { return metricCosts_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MetricRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MetricRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Selector != other.Selector) return false; + if (!MetricCosts.Equals(other.MetricCosts)) return false; + 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(); + hash ^= MetricCosts.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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); + } + metricCosts_.WriteTo(output, _map_metricCosts_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 (Selector.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Selector); + } + metricCosts_.WriteTo(ref output, _map_metricCosts_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 (Selector.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Selector); + } + size += metricCosts_.CalculateSize(_map_metricCosts_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MetricRule other) { + if (other == null) { + return; + } + if (other.Selector.Length != 0) { + Selector = other.Selector; + } + metricCosts_.Add(other.metricCosts_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + metricCosts_.AddEntriesFrom(input, _map_metricCosts_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: { + Selector = input.ReadString(); + break; + } + case 18: { + metricCosts_.AddEntriesFrom(ref input, _map_metricCosts_codec); + break; + } + } + } + } + #endif + + } + + /// + /// `QuotaLimit` defines a specific limit that applies over a specified duration + /// for a limit type. There can be at most one limit for a duration and limit + /// type combination defined within a `QuotaGroup`. + /// + public sealed partial class QuotaLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QuotaLimit()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.QuotaReflection.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 QuotaLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public QuotaLimit(QuotaLimit other) : this() { + name_ = other.name_; + description_ = other.description_; + defaultLimit_ = other.defaultLimit_; + maxLimit_ = other.maxLimit_; + freeTier_ = other.freeTier_; + duration_ = other.duration_; + metric_ = other.metric_; + unit_ = other.unit_; + values_ = other.values_.Clone(); + displayName_ = other.displayName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public QuotaLimit Clone() { + return new QuotaLimit(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 6; + private string name_ = ""; + /// + /// Name of the quota limit. + /// + /// The name must be provided, and it must be unique within the service. The + /// name can only include alphanumeric characters as well as '-'. + /// + /// The maximum length of the limit name is 64 characters. + /// + [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 = 2; + private string description_ = ""; + /// + /// Optional. User-visible, extended description for this quota limit. + /// Should be used only when more context is needed to understand this limit + /// than provided by the limit's display name (see: `display_name`). + /// + [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 "default_limit" field. + public const int DefaultLimitFieldNumber = 3; + private long defaultLimit_; + /// + /// Default number of tokens that can be consumed during the specified + /// duration. This is the number of tokens assigned when a client + /// application developer activates the service for his/her project. + /// + /// Specifying a value of 0 will block all requests. This can be used if you + /// are provisioning quota to selected consumers and blocking others. + /// Similarly, a value of -1 will indicate an unlimited quota. No other + /// negative values are allowed. + /// + /// Used by group-based quotas only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DefaultLimit { + get { return defaultLimit_; } + set { + defaultLimit_ = value; + } + } + + /// Field number for the "max_limit" field. + public const int MaxLimitFieldNumber = 4; + private long maxLimit_; + /// + /// Maximum number of tokens that can be consumed during the specified + /// duration. Client application developers can override the default limit up + /// to this maximum. If specified, this value cannot be set to a value less + /// than the default limit. If not specified, it is set to the default limit. + /// + /// To allow clients to apply overrides with no upper bound, set this to -1, + /// indicating unlimited maximum quota. + /// + /// Used by group-based quotas only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MaxLimit { + get { return maxLimit_; } + set { + maxLimit_ = value; + } + } + + /// Field number for the "free_tier" field. + public const int FreeTierFieldNumber = 7; + private long freeTier_; + /// + /// Free tier value displayed in the Developers Console for this limit. + /// The free tier is the number of tokens that will be subtracted from the + /// billed amount when billing is enabled. + /// This field can only be set on a limit with duration "1d", in a billable + /// group; it is invalid on any other limit. If this field is not set, it + /// defaults to 0, indicating that there is no free tier for this service. + /// + /// Used by group-based quotas only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long FreeTier { + get { return freeTier_; } + set { + freeTier_ = value; + } + } + + /// Field number for the "duration" field. + public const int DurationFieldNumber = 5; + private string duration_ = ""; + /// + /// Duration of this limit in textual notation. Must be "100s" or "1d". + /// + /// Used by group-based quotas only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Duration { + get { return duration_; } + set { + duration_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "metric" field. + public const int MetricFieldNumber = 8; + private string metric_ = ""; + /// + /// The name of the metric this quota limit applies to. The quota limits with + /// the same metric will be checked together during runtime. The metric must be + /// defined within the service config. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Metric { + get { return metric_; } + set { + metric_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "unit" field. + public const int UnitFieldNumber = 9; + private string unit_ = ""; + /// + /// Specify the unit of the quota limit. It uses the same syntax as + /// [Metric.unit][]. The supported unit kinds are determined by the quota + /// backend system. + /// + /// Here are some examples: + /// * "1/min/{project}" for quota per minute per project. + /// + /// Note: the order of unit components is insignificant. + /// The "1" at the beginning is required to follow the metric unit syntax. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Unit { + get { return unit_; } + set { + unit_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "values" field. + public const int ValuesFieldNumber = 10; + private static readonly pbc::MapField.Codec _map_values_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 82); + private readonly pbc::MapField values_ = new pbc::MapField(); + /// + /// Tiered limit values. You must specify this as a key:value pair, with an + /// integer value that is the maximum number of requests allowed for the + /// specified unit. Currently only STANDARD is supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Values { + get { return values_; } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 12; + private string displayName_ = ""; + /// + /// User-visible display name for this limit. + /// Optional. If not set, the UI will provide a default display name based on + /// the quota configuration. This field can be used to override the default + /// display name generated from the configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = 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 QuotaLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(QuotaLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (DefaultLimit != other.DefaultLimit) return false; + if (MaxLimit != other.MaxLimit) return false; + if (FreeTier != other.FreeTier) return false; + if (Duration != other.Duration) return false; + if (Metric != other.Metric) return false; + if (Unit != other.Unit) return false; + if (!Values.Equals(other.Values)) return false; + if (DisplayName != other.DisplayName) return false; + 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 (Description.Length != 0) hash ^= Description.GetHashCode(); + if (DefaultLimit != 0L) hash ^= DefaultLimit.GetHashCode(); + if (MaxLimit != 0L) hash ^= MaxLimit.GetHashCode(); + if (FreeTier != 0L) hash ^= FreeTier.GetHashCode(); + if (Duration.Length != 0) hash ^= Duration.GetHashCode(); + if (Metric.Length != 0) hash ^= Metric.GetHashCode(); + if (Unit.Length != 0) hash ^= Unit.GetHashCode(); + hash ^= Values.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (DefaultLimit != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DefaultLimit); + } + if (MaxLimit != 0L) { + output.WriteRawTag(32); + output.WriteInt64(MaxLimit); + } + if (Duration.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Duration); + } + if (Name.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Name); + } + if (FreeTier != 0L) { + output.WriteRawTag(56); + output.WriteInt64(FreeTier); + } + if (Metric.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Metric); + } + if (Unit.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Unit); + } + values_.WriteTo(output, _map_values_codec); + if (DisplayName.Length != 0) { + output.WriteRawTag(98); + output.WriteString(DisplayName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (DefaultLimit != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DefaultLimit); + } + if (MaxLimit != 0L) { + output.WriteRawTag(32); + output.WriteInt64(MaxLimit); + } + if (Duration.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Duration); + } + if (Name.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Name); + } + if (FreeTier != 0L) { + output.WriteRawTag(56); + output.WriteInt64(FreeTier); + } + if (Metric.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Metric); + } + if (Unit.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Unit); + } + values_.WriteTo(ref output, _map_values_codec); + if (DisplayName.Length != 0) { + output.WriteRawTag(98); + output.WriteString(DisplayName); + } + if (_unknownFields != 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 (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (DefaultLimit != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DefaultLimit); + } + if (MaxLimit != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaxLimit); + } + if (FreeTier != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(FreeTier); + } + if (Duration.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Duration); + } + if (Metric.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Metric); + } + if (Unit.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Unit); + } + size += values_.CalculateSize(_map_values_codec); + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(QuotaLimit other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.DefaultLimit != 0L) { + DefaultLimit = other.DefaultLimit; + } + if (other.MaxLimit != 0L) { + MaxLimit = other.MaxLimit; + } + if (other.FreeTier != 0L) { + FreeTier = other.FreeTier; + } + if (other.Duration.Length != 0) { + Duration = other.Duration; + } + if (other.Metric.Length != 0) { + Metric = other.Metric; + } + if (other.Unit.Length != 0) { + Unit = other.Unit; + } + values_.Add(other.values_); + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + Description = input.ReadString(); + break; + } + case 24: { + DefaultLimit = input.ReadInt64(); + break; + } + case 32: { + MaxLimit = input.ReadInt64(); + break; + } + case 42: { + Duration = input.ReadString(); + break; + } + case 50: { + Name = input.ReadString(); + break; + } + case 56: { + FreeTier = input.ReadInt64(); + break; + } + case 66: { + Metric = input.ReadString(); + break; + } + case 74: { + Unit = input.ReadString(); + break; + } + case 82: { + values_.AddEntriesFrom(input, _map_values_codec); + break; + } + case 98: { + DisplayName = 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: { + Description = input.ReadString(); + break; + } + case 24: { + DefaultLimit = input.ReadInt64(); + break; + } + case 32: { + MaxLimit = input.ReadInt64(); + break; + } + case 42: { + Duration = input.ReadString(); + break; + } + case 50: { + Name = input.ReadString(); + break; + } + case 56: { + FreeTier = input.ReadInt64(); + break; + } + case 66: { + Metric = input.ReadString(); + break; + } + case 74: { + Unit = input.ReadString(); + break; + } + case 82: { + values_.AddEntriesFrom(ref input, _map_values_codec); + break; + } + case 98: { + DisplayName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Resource.cs b/csharp/protobuf/google/api/Resource.cs new file mode 100644 index 00000000..d68bb7cc --- /dev/null +++ b/csharp/protobuf/google/api/Resource.cs @@ -0,0 +1,914 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/resource.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/resource.proto + public static partial class ResourceReflection { + + #region Descriptor + /// File descriptor for google/api/resource.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ResourceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvEgpnb29nbGUuYXBpGiBnb29n", + "bGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90byLuAgoSUmVzb3VyY2VEZXNj", + "cmlwdG9yEgwKBHR5cGUYASABKAkSDwoHcGF0dGVybhgCIAMoCRISCgpuYW1l", + "X2ZpZWxkGAMgASgJEjcKB2hpc3RvcnkYBCABKA4yJi5nb29nbGUuYXBpLlJl", + "c291cmNlRGVzY3JpcHRvci5IaXN0b3J5Eg4KBnBsdXJhbBgFIAEoCRIQCghz", + "aW5ndWxhchgGIAEoCRIzCgVzdHlsZRgKIAMoDjIkLmdvb2dsZS5hcGkuUmVz", + "b3VyY2VEZXNjcmlwdG9yLlN0eWxlIlsKB0hpc3RvcnkSFwoTSElTVE9SWV9V", + "TlNQRUNJRklFRBAAEh0KGU9SSUdJTkFMTFlfU0lOR0xFX1BBVFRFUk4QARIY", + "ChRGVVRVUkVfTVVMVElfUEFUVEVSThACIjgKBVN0eWxlEhUKEVNUWUxFX1VO", + "U1BFQ0lGSUVEEAASGAoUREVDTEFSQVRJVkVfRlJJRU5ETFkQASI1ChFSZXNv", + "dXJjZVJlZmVyZW5jZRIMCgR0eXBlGAEgASgJEhIKCmNoaWxkX3R5cGUYAiAB", + "KAk6WQoScmVzb3VyY2VfcmVmZXJlbmNlEh0uZ29vZ2xlLnByb3RvYnVmLkZp", + "ZWxkT3B0aW9ucxifCCABKAsyHS5nb29nbGUuYXBpLlJlc291cmNlUmVmZXJl", + "bmNlOloKE3Jlc291cmNlX2RlZmluaXRpb24SHC5nb29nbGUucHJvdG9idWYu", + "RmlsZU9wdGlvbnMYnQggAygLMh4uZ29vZ2xlLmFwaS5SZXNvdXJjZURlc2Ny", + "aXB0b3I6UgoIcmVzb3VyY2USHy5nb29nbGUucHJvdG9idWYuTWVzc2FnZU9w", + "dGlvbnMYnQggASgLMh4uZ29vZ2xlLmFwaS5SZXNvdXJjZURlc2NyaXB0b3JC", + "bgoOY29tLmdvb2dsZS5hcGlCDVJlc291cmNlUHJvdG9QAVpBZ29vZ2xlLmdv", + "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvYW5ub3RhdGlvbnM7", + "YW5ub3RhdGlvbnP4AQGiAgRHQVBJYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { ResourceExtensions.ResourceReference, ResourceExtensions.ResourceDefinition, ResourceExtensions.Resource }, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.ResourceDescriptor), global::Google.Api.ResourceDescriptor.Parser, new[]{ "Type", "Pattern", "NameField", "History", "Plural", "Singular", "Style" }, null, new[]{ typeof(global::Google.Api.ResourceDescriptor.Types.History), typeof(global::Google.Api.ResourceDescriptor.Types.Style) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.ResourceReference), global::Google.Api.ResourceReference.Parser, new[]{ "Type", "ChildType" }, null, null, null, null) + })); + } + #endregion + + } + /// Holder for extension identifiers generated from the top level of google/api/resource.proto + public static partial class ResourceExtensions { + /// + /// An annotation that describes a resource reference, see + /// [ResourceReference][]. + /// + public static readonly pb::Extension ResourceReference = + new pb::Extension(1055, pb::FieldCodec.ForMessage(8442, global::Google.Api.ResourceReference.Parser)); + /// + /// An annotation that describes a resource definition without a corresponding + /// message; see [ResourceDescriptor][]. + /// + public static readonly pb::RepeatedExtension ResourceDefinition = + new pb::RepeatedExtension(1053, pb::FieldCodec.ForMessage(8426, global::Google.Api.ResourceDescriptor.Parser)); + /// + /// An annotation that describes a resource definition, see + /// [ResourceDescriptor][]. + /// + public static readonly pb::Extension Resource = + new pb::Extension(1053, pb::FieldCodec.ForMessage(8426, global::Google.Api.ResourceDescriptor.Parser)); + } + + #region Messages + /// + /// A simple descriptor of a resource type. + /// + /// ResourceDescriptor annotates a resource message (either by means of a + /// protobuf annotation or use in the service config), and associates the + /// resource's schema, the resource type, and the pattern of the resource name. + /// + /// Example: + /// + /// message Topic { + /// // Indicates this message defines a resource schema. + /// // Declares the resource type in the format of {service}/{kind}. + /// // For Kubernetes resources, the format is {api group}/{kind}. + /// option (google.api.resource) = { + /// type: "pubsub.googleapis.com/Topic" + /// pattern: "projects/{project}/topics/{topic}" + /// }; + /// } + /// + /// The ResourceDescriptor Yaml config will look like: + /// + /// resources: + /// - type: "pubsub.googleapis.com/Topic" + /// pattern: "projects/{project}/topics/{topic}" + /// + /// Sometimes, resources have multiple patterns, typically because they can + /// live under multiple parents. + /// + /// Example: + /// + /// message LogEntry { + /// option (google.api.resource) = { + /// type: "logging.googleapis.com/LogEntry" + /// pattern: "projects/{project}/logs/{log}" + /// pattern: "folders/{folder}/logs/{log}" + /// pattern: "organizations/{organization}/logs/{log}" + /// pattern: "billingAccounts/{billing_account}/logs/{log}" + /// }; + /// } + /// + /// The ResourceDescriptor Yaml config will look like: + /// + /// resources: + /// - type: 'logging.googleapis.com/LogEntry' + /// pattern: "projects/{project}/logs/{log}" + /// pattern: "folders/{folder}/logs/{log}" + /// pattern: "organizations/{organization}/logs/{log}" + /// pattern: "billingAccounts/{billing_account}/logs/{log}" + /// + public sealed partial class ResourceDescriptor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceDescriptor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.ResourceReflection.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 ResourceDescriptor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceDescriptor(ResourceDescriptor other) : this() { + type_ = other.type_; + pattern_ = other.pattern_.Clone(); + nameField_ = other.nameField_; + history_ = other.history_; + plural_ = other.plural_; + singular_ = other.singular_; + style_ = other.style_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceDescriptor Clone() { + return new ResourceDescriptor(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private string type_ = ""; + /// + /// The resource type. It must be in the format of + /// {service_name}/{resource_type_kind}. The `resource_type_kind` must be + /// singular and must not include version numbers. + /// + /// Example: `storage.googleapis.com/Bucket` + /// + /// The value of the resource_type_kind must follow the regular expression + /// /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + /// should use PascalCase (UpperCamelCase). The maximum number of + /// characters allowed for the `resource_type_kind` is 100. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "pattern" field. + public const int PatternFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_pattern_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField pattern_ = new pbc::RepeatedField(); + /// + /// Optional. The relative resource name pattern associated with this resource + /// type. The DNS prefix of the full resource name shouldn't be specified here. + /// + /// The path pattern must follow the syntax, which aligns with HTTP binding + /// syntax: + /// + /// Template = Segment { "/" Segment } ; + /// Segment = LITERAL | Variable ; + /// Variable = "{" LITERAL "}" ; + /// + /// Examples: + /// + /// - "projects/{project}/topics/{topic}" + /// - "projects/{project}/knowledgeBases/{knowledge_base}" + /// + /// The components in braces correspond to the IDs for each resource in the + /// hierarchy. It is expected that, if multiple patterns are provided, + /// the same component name (e.g. "project") refers to IDs of the same + /// type of resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Pattern { + get { return pattern_; } + } + + /// Field number for the "name_field" field. + public const int NameFieldFieldNumber = 3; + private string nameField_ = ""; + /// + /// Optional. The field on the resource that designates the resource name + /// field. If omitted, this is assumed to be "name". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NameField { + get { return nameField_; } + set { + nameField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "history" field. + public const int HistoryFieldNumber = 4; + private global::Google.Api.ResourceDescriptor.Types.History history_ = global::Google.Api.ResourceDescriptor.Types.History.Unspecified; + /// + /// Optional. The historical or future-looking state of the resource pattern. + /// + /// Example: + /// + /// // The InspectTemplate message originally only supported resource + /// // names with organization, and project was added later. + /// message InspectTemplate { + /// option (google.api.resource) = { + /// type: "dlp.googleapis.com/InspectTemplate" + /// pattern: + /// "organizations/{organization}/inspectTemplates/{inspect_template}" + /// pattern: "projects/{project}/inspectTemplates/{inspect_template}" + /// history: ORIGINALLY_SINGLE_PATTERN + /// }; + /// } + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.ResourceDescriptor.Types.History History { + get { return history_; } + set { + history_ = value; + } + } + + /// Field number for the "plural" field. + public const int PluralFieldNumber = 5; + private string plural_ = ""; + /// + /// The plural name used in the resource name and permission names, such as + /// 'projects' for the resource name of 'projects/{project}' and the permission + /// name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same + /// concept of the `plural` field in k8s CRD spec + /// https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + /// + /// Note: The plural form is required even for singleton resources. See + /// https://aip.dev/156 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Plural { + get { return plural_; } + set { + plural_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "singular" field. + public const int SingularFieldNumber = 6; + private string singular_ = ""; + /// + /// The same concept of the `singular` field in k8s CRD spec + /// https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + /// Such as "project" for the `resourcemanager.googleapis.com/Project` type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Singular { + get { return singular_; } + set { + singular_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "style" field. + public const int StyleFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_style_codec + = pb::FieldCodec.ForEnum(82, x => (int) x, x => (global::Google.Api.ResourceDescriptor.Types.Style) x); + private readonly pbc::RepeatedField style_ = new pbc::RepeatedField(); + /// + /// Style flag(s) for this resource. + /// These indicate that a resource is expected to conform to a given + /// style. See the specific style flags for additional information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Style { + get { return style_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResourceDescriptor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResourceDescriptor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if(!pattern_.Equals(other.pattern_)) return false; + if (NameField != other.NameField) return false; + if (History != other.History) return false; + if (Plural != other.Plural) return false; + if (Singular != other.Singular) return false; + if(!style_.Equals(other.style_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Type.Length != 0) hash ^= Type.GetHashCode(); + hash ^= pattern_.GetHashCode(); + if (NameField.Length != 0) hash ^= NameField.GetHashCode(); + if (History != global::Google.Api.ResourceDescriptor.Types.History.Unspecified) hash ^= History.GetHashCode(); + if (Plural.Length != 0) hash ^= Plural.GetHashCode(); + if (Singular.Length != 0) hash ^= Singular.GetHashCode(); + hash ^= style_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + pattern_.WriteTo(output, _repeated_pattern_codec); + if (NameField.Length != 0) { + output.WriteRawTag(26); + output.WriteString(NameField); + } + if (History != global::Google.Api.ResourceDescriptor.Types.History.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) History); + } + if (Plural.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Plural); + } + if (Singular.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Singular); + } + style_.WriteTo(output, _repeated_style_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 (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + pattern_.WriteTo(ref output, _repeated_pattern_codec); + if (NameField.Length != 0) { + output.WriteRawTag(26); + output.WriteString(NameField); + } + if (History != global::Google.Api.ResourceDescriptor.Types.History.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) History); + } + if (Plural.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Plural); + } + if (Singular.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Singular); + } + style_.WriteTo(ref output, _repeated_style_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 (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + size += pattern_.CalculateSize(_repeated_pattern_codec); + if (NameField.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NameField); + } + if (History != global::Google.Api.ResourceDescriptor.Types.History.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) History); + } + if (Plural.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Plural); + } + if (Singular.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Singular); + } + size += style_.CalculateSize(_repeated_style_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResourceDescriptor other) { + if (other == null) { + return; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + pattern_.Add(other.pattern_); + if (other.NameField.Length != 0) { + NameField = other.NameField; + } + if (other.History != global::Google.Api.ResourceDescriptor.Types.History.Unspecified) { + History = other.History; + } + if (other.Plural.Length != 0) { + Plural = other.Plural; + } + if (other.Singular.Length != 0) { + Singular = other.Singular; + } + style_.Add(other.style_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 18: { + pattern_.AddEntriesFrom(input, _repeated_pattern_codec); + break; + } + case 26: { + NameField = input.ReadString(); + break; + } + case 32: { + History = (global::Google.Api.ResourceDescriptor.Types.History) input.ReadEnum(); + break; + } + case 42: { + Plural = input.ReadString(); + break; + } + case 50: { + Singular = input.ReadString(); + break; + } + case 82: + case 80: { + style_.AddEntriesFrom(input, _repeated_style_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: { + Type = input.ReadString(); + break; + } + case 18: { + pattern_.AddEntriesFrom(ref input, _repeated_pattern_codec); + break; + } + case 26: { + NameField = input.ReadString(); + break; + } + case 32: { + History = (global::Google.Api.ResourceDescriptor.Types.History) input.ReadEnum(); + break; + } + case 42: { + Plural = input.ReadString(); + break; + } + case 50: { + Singular = input.ReadString(); + break; + } + case 82: + case 80: { + style_.AddEntriesFrom(ref input, _repeated_style_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ResourceDescriptor message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// A description of the historical or future-looking state of the + /// resource pattern. + /// + public enum History { + /// + /// The "unset" value. + /// + [pbr::OriginalName("HISTORY_UNSPECIFIED")] Unspecified = 0, + /// + /// The resource originally had one pattern and launched as such, and + /// additional patterns were added later. + /// + [pbr::OriginalName("ORIGINALLY_SINGLE_PATTERN")] OriginallySinglePattern = 1, + /// + /// The resource has one pattern, but the API owner expects to add more + /// later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + /// that from being necessary once there are multiple patterns.) + /// + [pbr::OriginalName("FUTURE_MULTI_PATTERN")] FutureMultiPattern = 2, + } + + /// + /// A flag representing a specific style that a resource claims to conform to. + /// + public enum Style { + /// + /// The unspecified value. Do not use. + /// + [pbr::OriginalName("STYLE_UNSPECIFIED")] Unspecified = 0, + /// + /// This resource is intended to be "declarative-friendly". + /// + /// Declarative-friendly resources must be more strictly consistent, and + /// setting this to true communicates to tools that this resource should + /// adhere to declarative-friendly expectations. + /// + /// Note: This is used by the API linter (linter.aip.dev) to enable + /// additional checks. + /// + [pbr::OriginalName("DECLARATIVE_FRIENDLY")] DeclarativeFriendly = 1, + } + + } + #endregion + + } + + /// + /// Defines a proto annotation that describes a string field that refers to + /// an API resource. + /// + public sealed partial class ResourceReference : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceReference()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.ResourceReflection.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 ResourceReference() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceReference(ResourceReference other) : this() { + type_ = other.type_; + childType_ = other.childType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceReference Clone() { + return new ResourceReference(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private string type_ = ""; + /// + /// The resource type that the annotated field references. + /// + /// Example: + /// + /// message Subscription { + /// string topic = 2 [(google.api.resource_reference) = { + /// type: "pubsub.googleapis.com/Topic" + /// }]; + /// } + /// + /// Occasionally, a field may reference an arbitrary resource. In this case, + /// APIs use the special value * in their resource reference. + /// + /// Example: + /// + /// message GetIamPolicyRequest { + /// string resource = 2 [(google.api.resource_reference) = { + /// type: "*" + /// }]; + /// } + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "child_type" field. + public const int ChildTypeFieldNumber = 2; + private string childType_ = ""; + /// + /// The resource type of a child collection that the annotated field + /// references. This is useful for annotating the `parent` field that + /// doesn't have a fixed resource type. + /// + /// Example: + /// + /// message ListLogEntriesRequest { + /// string parent = 1 [(google.api.resource_reference) = { + /// child_type: "logging.googleapis.com/LogEntry" + /// }; + /// } + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChildType { + get { return childType_; } + set { + childType_ = 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 ResourceReference); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResourceReference other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (ChildType != other.ChildType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (ChildType.Length != 0) hash ^= ChildType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (ChildType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ChildType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (ChildType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ChildType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (ChildType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChildType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResourceReference other) { + if (other == null) { + return; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.ChildType.Length != 0) { + ChildType = other.ChildType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 18: { + ChildType = 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: { + Type = input.ReadString(); + break; + } + case 18: { + ChildType = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Routing.cs b/csharp/protobuf/google/api/Routing.cs new file mode 100644 index 00000000..7782a11c --- /dev/null +++ b/csharp/protobuf/google/api/Routing.cs @@ -0,0 +1,895 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/routing.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/routing.proto + public static partial class RoutingReflection { + + #region Descriptor + /// File descriptor for google/api/routing.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RoutingReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chhnb29nbGUvYXBpL3JvdXRpbmcucHJvdG8SCmdvb2dsZS5hcGkaIGdvb2ds", + "ZS9wcm90b2J1Zi9kZXNjcmlwdG9yLnByb3RvIkcKC1JvdXRpbmdSdWxlEjgK", + "EnJvdXRpbmdfcGFyYW1ldGVycxgCIAMoCzIcLmdvb2dsZS5hcGkuUm91dGlu", + "Z1BhcmFtZXRlciI4ChBSb3V0aW5nUGFyYW1ldGVyEg0KBWZpZWxkGAEgASgJ", + "EhUKDXBhdGhfdGVtcGxhdGUYAiABKAk6SwoHcm91dGluZxIeLmdvb2dsZS5w", + "cm90b2J1Zi5NZXRob2RPcHRpb25zGLHKvCIgASgLMhcuZ29vZ2xlLmFwaS5S", + "b3V0aW5nUnVsZUJqCg5jb20uZ29vZ2xlLmFwaUIMUm91dGluZ1Byb3RvUAFa", + "QWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpL2Fu", + "bm90YXRpb25zO2Fubm90YXRpb25zogIER0FQSWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { RoutingExtensions.Routing }, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.RoutingRule), global::Google.Api.RoutingRule.Parser, new[]{ "RoutingParameters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.RoutingParameter), global::Google.Api.RoutingParameter.Parser, new[]{ "Field", "PathTemplate" }, null, null, null, null) + })); + } + #endregion + + } + /// Holder for extension identifiers generated from the top level of google/api/routing.proto + public static partial class RoutingExtensions { + /// + /// See RoutingRule. + /// + public static readonly pb::Extension Routing = + new pb::Extension(72295729, pb::FieldCodec.ForMessage(578365834, global::Google.Api.RoutingRule.Parser)); + } + + #region Messages + /// + /// Specifies the routing information that should be sent along with the request + /// in the form of routing header. + /// **NOTE:** All service configuration rules follow the "last one wins" order. + /// + /// The examples below will apply to an RPC which has the following request type: + /// + /// Message Definition: + /// + /// message Request { + /// // The name of the Table + /// // Values can be of the following formats: + /// // - `projects/<project>/tables/<table>` + /// // - `projects/<project>/instances/<instance>/tables/<table>` + /// // - `region/<region>/zones/<zone>/tables/<table>` + /// string table_name = 1; + /// + /// // This value specifies routing for replication. + /// // It can be in the following formats: + /// // - `profiles/<profile_id>` + /// // - a legacy `profile_id` that can be any string + /// string app_profile_id = 2; + /// } + /// + /// Example message: + /// + /// { + /// table_name: projects/proj_foo/instances/instance_bar/table/table_baz, + /// app_profile_id: profiles/prof_qux + /// } + /// + /// The routing header consists of one or multiple key-value pairs. Every key + /// and value must be percent-encoded, and joined together in the format of + /// `key1=value1&key2=value2`. + /// In the examples below I am skipping the percent-encoding for readablity. + /// + /// Example 1 + /// + /// Extracting a field from the request to put into the routing header + /// unchanged, with the key equal to the field name. + /// + /// annotation: + /// + /// option (google.api.routing) = { + /// // Take the `app_profile_id`. + /// routing_parameters { + /// field: "app_profile_id" + /// } + /// }; + /// + /// result: + /// + /// x-goog-request-params: app_profile_id=profiles/prof_qux + /// + /// Example 2 + /// + /// Extracting a field from the request to put into the routing header + /// unchanged, with the key different from the field name. + /// + /// annotation: + /// + /// option (google.api.routing) = { + /// // Take the `app_profile_id`, but name it `routing_id` in the header. + /// routing_parameters { + /// field: "app_profile_id" + /// path_template: "{routing_id=**}" + /// } + /// }; + /// + /// result: + /// + /// x-goog-request-params: routing_id=profiles/prof_qux + /// + /// Example 3 + /// + /// Extracting a field from the request to put into the routing + /// header, while matching a path template syntax on the field's value. + /// + /// NB: it is more useful to send nothing than to send garbage for the purpose + /// of dynamic routing, since garbage pollutes cache. Thus the matching. + /// + /// Sub-example 3a + /// + /// The field matches the template. + /// + /// annotation: + /// + /// option (google.api.routing) = { + /// // Take the `table_name`, if it's well-formed (with project-based + /// // syntax). + /// routing_parameters { + /// field: "table_name" + /// path_template: "{table_name=projects/*/instances/*/**}" + /// } + /// }; + /// + /// result: + /// + /// x-goog-request-params: + /// table_name=projects/proj_foo/instances/instance_bar/table/table_baz + /// + /// Sub-example 3b + /// + /// The field does not match the template. + /// + /// annotation: + /// + /// option (google.api.routing) = { + /// // Take the `table_name`, if it's well-formed (with region-based + /// // syntax). + /// routing_parameters { + /// field: "table_name" + /// path_template: "{table_name=regions/*/zones/*/**}" + /// } + /// }; + /// + /// result: + /// + /// <no routing header will be sent> + /// + /// Sub-example 3c + /// + /// Multiple alternative conflictingly named path templates are + /// specified. The one that matches is used to construct the header. + /// + /// annotation: + /// + /// option (google.api.routing) = { + /// // Take the `table_name`, if it's well-formed, whether + /// // using the region- or projects-based syntax. + /// + /// routing_parameters { + /// field: "table_name" + /// path_template: "{table_name=regions/*/zones/*/**}" + /// } + /// routing_parameters { + /// field: "table_name" + /// path_template: "{table_name=projects/*/instances/*/**}" + /// } + /// }; + /// + /// result: + /// + /// x-goog-request-params: + /// table_name=projects/proj_foo/instances/instance_bar/table/table_baz + /// + /// Example 4 + /// + /// Extracting a single routing header key-value pair by matching a + /// template syntax on (a part of) a single request field. + /// + /// annotation: + /// + /// option (google.api.routing) = { + /// // Take just the project id from the `table_name` field. + /// routing_parameters { + /// field: "table_name" + /// path_template: "{routing_id=projects/*}/**" + /// } + /// }; + /// + /// result: + /// + /// x-goog-request-params: routing_id=projects/proj_foo + /// + /// Example 5 + /// + /// Extracting a single routing header key-value pair by matching + /// several conflictingly named path templates on (parts of) a single request + /// field. The last template to match "wins" the conflict. + /// + /// annotation: + /// + /// option (google.api.routing) = { + /// // If the `table_name` does not have instances information, + /// // take just the project id for routing. + /// // Otherwise take project + instance. + /// + /// routing_parameters { + /// field: "table_name" + /// path_template: "{routing_id=projects/*}/**" + /// } + /// routing_parameters { + /// field: "table_name" + /// path_template: "{routing_id=projects/*/instances/*}/**" + /// } + /// }; + /// + /// result: + /// + /// x-goog-request-params: + /// routing_id=projects/proj_foo/instances/instance_bar + /// + /// Example 6 + /// + /// Extracting multiple routing header key-value pairs by matching + /// several non-conflicting path templates on (parts of) a single request field. + /// + /// Sub-example 6a + /// + /// Make the templates strict, so that if the `table_name` does not + /// have an instance information, nothing is sent. + /// + /// annotation: + /// + /// option (google.api.routing) = { + /// // The routing code needs two keys instead of one composite + /// // but works only for the tables with the "project-instance" name + /// // syntax. + /// + /// routing_parameters { + /// field: "table_name" + /// path_template: "{project_id=projects/*}/instances/*/**" + /// } + /// routing_parameters { + /// field: "table_name" + /// path_template: "projects/*/{instance_id=instances/*}/**" + /// } + /// }; + /// + /// result: + /// + /// x-goog-request-params: + /// project_id=projects/proj_foo&instance_id=instances/instance_bar + /// + /// Sub-example 6b + /// + /// Make the templates loose, so that if the `table_name` does not + /// have an instance information, just the project id part is sent. + /// + /// annotation: + /// + /// option (google.api.routing) = { + /// // The routing code wants two keys instead of one composite + /// // but will work with just the `project_id` for tables without + /// // an instance in the `table_name`. + /// + /// routing_parameters { + /// field: "table_name" + /// path_template: "{project_id=projects/*}/**" + /// } + /// routing_parameters { + /// field: "table_name" + /// path_template: "projects/*/{instance_id=instances/*}/**" + /// } + /// }; + /// + /// result (is the same as 6a for our example message because it has the instance + /// information): + /// + /// x-goog-request-params: + /// project_id=projects/proj_foo&instance_id=instances/instance_bar + /// + /// Example 7 + /// + /// Extracting multiple routing header key-value pairs by matching + /// several path templates on multiple request fields. + /// + /// NB: note that here there is no way to specify sending nothing if one of the + /// fields does not match its template. E.g. if the `table_name` is in the wrong + /// format, the `project_id` will not be sent, but the `routing_id` will be. + /// The backend routing code has to be aware of that and be prepared to not + /// receive a full complement of keys if it expects multiple. + /// + /// annotation: + /// + /// option (google.api.routing) = { + /// // The routing needs both `project_id` and `routing_id` + /// // (from the `app_profile_id` field) for routing. + /// + /// routing_parameters { + /// field: "table_name" + /// path_template: "{project_id=projects/*}/**" + /// } + /// routing_parameters { + /// field: "app_profile_id" + /// path_template: "{routing_id=**}" + /// } + /// }; + /// + /// result: + /// + /// x-goog-request-params: + /// project_id=projects/proj_foo&routing_id=profiles/prof_qux + /// + /// Example 8 + /// + /// Extracting a single routing header key-value pair by matching + /// several conflictingly named path templates on several request fields. The + /// last template to match "wins" the conflict. + /// + /// annotation: + /// + /// option (google.api.routing) = { + /// // The `routing_id` can be a project id or a region id depending on + /// // the table name format, but only if the `app_profile_id` is not set. + /// // If `app_profile_id` is set it should be used instead. + /// + /// routing_parameters { + /// field: "table_name" + /// path_template: "{routing_id=projects/*}/**" + /// } + /// routing_parameters { + /// field: "table_name" + /// path_template: "{routing_id=regions/*}/**" + /// } + /// routing_parameters { + /// field: "app_profile_id" + /// path_template: "{routing_id=**}" + /// } + /// }; + /// + /// result: + /// + /// x-goog-request-params: routing_id=profiles/prof_qux + /// + /// Example 9 + /// + /// Bringing it all together. + /// + /// annotation: + /// + /// option (google.api.routing) = { + /// // For routing both `table_location` and a `routing_id` are needed. + /// // + /// // table_location can be either an instance id or a region+zone id. + /// // + /// // For `routing_id`, take the value of `app_profile_id` + /// // - If it's in the format `profiles/<profile_id>`, send + /// // just the `<profile_id>` part. + /// // - If it's any other literal, send it as is. + /// // If the `app_profile_id` is empty, and the `table_name` starts with + /// // the project_id, send that instead. + /// + /// routing_parameters { + /// field: "table_name" + /// path_template: "projects/*/{table_location=instances/*}/tables/*" + /// } + /// routing_parameters { + /// field: "table_name" + /// path_template: "{table_location=regions/*/zones/*}/tables/*" + /// } + /// routing_parameters { + /// field: "table_name" + /// path_template: "{routing_id=projects/*}/**" + /// } + /// routing_parameters { + /// field: "app_profile_id" + /// path_template: "{routing_id=**}" + /// } + /// routing_parameters { + /// field: "app_profile_id" + /// path_template: "profiles/{routing_id=*}" + /// } + /// }; + /// + /// result: + /// + /// x-goog-request-params: + /// table_location=instances/instance_bar&routing_id=prof_qux + /// + public sealed partial class RoutingRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoutingRule()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.RoutingReflection.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 RoutingRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoutingRule(RoutingRule other) : this() { + routingParameters_ = other.routingParameters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoutingRule Clone() { + return new RoutingRule(this); + } + + /// Field number for the "routing_parameters" field. + public const int RoutingParametersFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_routingParameters_codec + = pb::FieldCodec.ForMessage(18, global::Google.Api.RoutingParameter.Parser); + private readonly pbc::RepeatedField routingParameters_ = new pbc::RepeatedField(); + /// + /// A collection of Routing Parameter specifications. + /// **NOTE:** If multiple Routing Parameters describe the same key + /// (via the `path_template` field or via the `field` field when + /// `path_template` is not provided), "last one wins" rule + /// determines which Parameter gets used. + /// See the examples for more details. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RoutingParameters { + get { return routingParameters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoutingRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoutingRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!routingParameters_.Equals(other.routingParameters_)) return 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 ^= routingParameters_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + routingParameters_.WriteTo(output, _repeated_routingParameters_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) { + routingParameters_.WriteTo(ref output, _repeated_routingParameters_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 += routingParameters_.CalculateSize(_repeated_routingParameters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoutingRule other) { + if (other == null) { + return; + } + routingParameters_.Add(other.routingParameters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { + routingParameters_.AddEntriesFrom(input, _repeated_routingParameters_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 18: { + routingParameters_.AddEntriesFrom(ref input, _repeated_routingParameters_codec); + break; + } + } + } + } + #endif + + } + + /// + /// A projection from an input message to the GRPC or REST header. + /// + public sealed partial class RoutingParameter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoutingParameter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.RoutingReflection.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 RoutingParameter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoutingParameter(RoutingParameter other) : this() { + field_ = other.field_; + pathTemplate_ = other.pathTemplate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoutingParameter Clone() { + return new RoutingParameter(this); + } + + /// Field number for the "field" field. + public const int FieldFieldNumber = 1; + private string field_ = ""; + /// + /// A request field to extract the header key-value pair from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Field { + get { return field_; } + set { + field_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "path_template" field. + public const int PathTemplateFieldNumber = 2; + private string pathTemplate_ = ""; + /// + /// A pattern matching the key-value field. Optional. + /// If not specified, the whole field specified in the `field` field will be + /// taken as value, and its name used as key. If specified, it MUST contain + /// exactly one named segment (along with any number of unnamed segments) The + /// pattern will be matched over the field specified in the `field` field, then + /// if the match is successful: + /// - the name of the single named segment will be used as a header name, + /// - the match value of the segment will be used as a header value; + /// if the match is NOT successful, nothing will be sent. + /// + /// Example: + /// + /// -- This is a field in the request message + /// | that the header value will be extracted from. + /// | + /// | -- This is the key name in the + /// | | routing header. + /// V | + /// field: "table_name" v + /// path_template: "projects/*/{table_location=instances/*}/tables/*" + /// ^ ^ + /// | | + /// In the {} brackets is the pattern that -- | + /// specifies what to extract from the | + /// field as a value to be sent. | + /// | + /// The string in the field must match the whole pattern -- + /// before brackets, inside brackets, after brackets. + /// + /// When looking at this specific example, we can see that: + /// - A key-value pair with the key `table_location` + /// and the value matching `instances/*` should be added + /// to the x-goog-request-params routing header. + /// - The value is extracted from the request message's `table_name` field + /// if it matches the full pattern specified: + /// `projects/*/instances/*/tables/*`. + /// + /// **NB:** If the `path_template` field is not provided, the key name is + /// equal to the field name, and the whole field should be sent as a value. + /// This makes the pattern for the field and the value functionally equivalent + /// to `**`, and the configuration + /// + /// { + /// field: "table_name" + /// } + /// + /// is a functionally equivalent shorthand to: + /// + /// { + /// field: "table_name" + /// path_template: "{table_name=**}" + /// } + /// + /// See Example 1 for more details. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PathTemplate { + get { return pathTemplate_; } + set { + pathTemplate_ = 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 RoutingParameter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoutingParameter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Field != other.Field) return false; + if (PathTemplate != other.PathTemplate) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Field.Length != 0) hash ^= Field.GetHashCode(); + if (PathTemplate.Length != 0) hash ^= PathTemplate.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Field.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Field); + } + if (PathTemplate.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PathTemplate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Field.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Field); + } + if (PathTemplate.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PathTemplate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Field.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Field); + } + if (PathTemplate.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PathTemplate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoutingParameter other) { + if (other == null) { + return; + } + if (other.Field.Length != 0) { + Field = other.Field; + } + if (other.PathTemplate.Length != 0) { + PathTemplate = other.PathTemplate; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Field = input.ReadString(); + break; + } + case 18: { + PathTemplate = 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: { + Field = input.ReadString(); + break; + } + case 18: { + PathTemplate = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Service.cs b/csharp/protobuf/google/api/Service.cs new file mode 100644 index 00000000..62e27beb --- /dev/null +++ b/csharp/protobuf/google/api/Service.cs @@ -0,0 +1,1333 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/service.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/service.proto + public static partial class ServiceReflection { + + #region Descriptor + /// File descriptor for google/api/service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chhnb29nbGUvYXBpL3NlcnZpY2UucHJvdG8SCmdvb2dsZS5hcGkaFWdvb2ds", + "ZS9hcGkvYXV0aC5wcm90bxoYZ29vZ2xlL2FwaS9iYWNrZW5kLnByb3RvGhhn", + "b29nbGUvYXBpL2JpbGxpbmcucHJvdG8aGGdvb2dsZS9hcGkvY29udGV4dC5w", + "cm90bxoYZ29vZ2xlL2FwaS9jb250cm9sLnByb3RvGh5nb29nbGUvYXBpL2Rv", + "Y3VtZW50YXRpb24ucHJvdG8aGWdvb2dsZS9hcGkvZW5kcG9pbnQucHJvdG8a", + "FWdvb2dsZS9hcGkvaHR0cC5wcm90bxoUZ29vZ2xlL2FwaS9sb2cucHJvdG8a", + "GGdvb2dsZS9hcGkvbG9nZ2luZy5wcm90bxoXZ29vZ2xlL2FwaS9tZXRyaWMu", + "cHJvdG8aI2dvb2dsZS9hcGkvbW9uaXRvcmVkX3Jlc291cmNlLnByb3RvGhtn", + "b29nbGUvYXBpL21vbml0b3JpbmcucHJvdG8aFmdvb2dsZS9hcGkvcXVvdGEu", + "cHJvdG8aHGdvb2dsZS9hcGkvc291cmNlX2luZm8ucHJvdG8aIWdvb2dsZS9h", + "cGkvc3lzdGVtX3BhcmFtZXRlci5wcm90bxoWZ29vZ2xlL2FwaS91c2FnZS5w", + "cm90bxoZZ29vZ2xlL3Byb3RvYnVmL2FwaS5wcm90bxoaZ29vZ2xlL3Byb3Rv", + "YnVmL3R5cGUucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5wcm90", + "byLaBwoHU2VydmljZRIMCgRuYW1lGAEgASgJEg0KBXRpdGxlGAIgASgJEhsK", + "E3Byb2R1Y2VyX3Byb2plY3RfaWQYFiABKAkSCgoCaWQYISABKAkSIgoEYXBp", + "cxgDIAMoCzIULmdvb2dsZS5wcm90b2J1Zi5BcGkSJAoFdHlwZXMYBCADKAsy", + "FS5nb29nbGUucHJvdG9idWYuVHlwZRIkCgVlbnVtcxgFIAMoCzIVLmdvb2ds", + "ZS5wcm90b2J1Zi5FbnVtEjAKDWRvY3VtZW50YXRpb24YBiABKAsyGS5nb29n", + "bGUuYXBpLkRvY3VtZW50YXRpb24SJAoHYmFja2VuZBgIIAEoCzITLmdvb2ds", + "ZS5hcGkuQmFja2VuZBIeCgRodHRwGAkgASgLMhAuZ29vZ2xlLmFwaS5IdHRw", + "EiAKBXF1b3RhGAogASgLMhEuZ29vZ2xlLmFwaS5RdW90YRIyCg5hdXRoZW50", + "aWNhdGlvbhgLIAEoCzIaLmdvb2dsZS5hcGkuQXV0aGVudGljYXRpb24SJAoH", + "Y29udGV4dBgMIAEoCzITLmdvb2dsZS5hcGkuQ29udGV4dBIgCgV1c2FnZRgP", + "IAEoCzIRLmdvb2dsZS5hcGkuVXNhZ2USJwoJZW5kcG9pbnRzGBIgAygLMhQu", + "Z29vZ2xlLmFwaS5FbmRwb2ludBIkCgdjb250cm9sGBUgASgLMhMuZ29vZ2xl", + "LmFwaS5Db250cm9sEicKBGxvZ3MYFyADKAsyGS5nb29nbGUuYXBpLkxvZ0Rl", + "c2NyaXB0b3ISLQoHbWV0cmljcxgYIAMoCzIcLmdvb2dsZS5hcGkuTWV0cmlj", + "RGVzY3JpcHRvchJEChNtb25pdG9yZWRfcmVzb3VyY2VzGBkgAygLMicuZ29v", + "Z2xlLmFwaS5Nb25pdG9yZWRSZXNvdXJjZURlc2NyaXB0b3ISJAoHYmlsbGlu", + "ZxgaIAEoCzITLmdvb2dsZS5hcGkuQmlsbGluZxIkCgdsb2dnaW5nGBsgASgL", + "MhMuZ29vZ2xlLmFwaS5Mb2dnaW5nEioKCm1vbml0b3JpbmcYHCABKAsyFi5n", + "b29nbGUuYXBpLk1vbml0b3JpbmcSNwoRc3lzdGVtX3BhcmFtZXRlcnMYHSAB", + "KAsyHC5nb29nbGUuYXBpLlN5c3RlbVBhcmFtZXRlcnMSKwoLc291cmNlX2lu", + "Zm8YJSABKAsyFi5nb29nbGUuYXBpLlNvdXJjZUluZm8SOAoOY29uZmlnX3Zl", + "cnNpb24YFCABKAsyHC5nb29nbGUucHJvdG9idWYuVUludDMyVmFsdWVCAhgB", + "Qm4KDmNvbS5nb29nbGUuYXBpQgxTZXJ2aWNlUHJvdG9QAVpFZ29vZ2xlLmdv", + "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvc2VydmljZWNvbmZp", + "ZztzZXJ2aWNlY29uZmlnogIER0FQSWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AuthReflection.Descriptor, global::Google.Api.BackendReflection.Descriptor, global::Google.Api.BillingReflection.Descriptor, global::Google.Api.ContextReflection.Descriptor, global::Google.Api.ControlReflection.Descriptor, global::Google.Api.DocumentationReflection.Descriptor, global::Google.Api.EndpointReflection.Descriptor, global::Google.Api.HttpReflection.Descriptor, global::Google.Api.LogReflection.Descriptor, global::Google.Api.LoggingReflection.Descriptor, global::Google.Api.MetricReflection.Descriptor, global::Google.Api.MonitoredResourceReflection.Descriptor, global::Google.Api.MonitoringReflection.Descriptor, global::Google.Api.QuotaReflection.Descriptor, global::Google.Api.SourceInfoReflection.Descriptor, global::Google.Api.SystemParameterReflection.Descriptor, global::Google.Api.UsageReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.ApiReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TypeReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Service), global::Google.Api.Service.Parser, new[]{ "Name", "Title", "ProducerProjectId", "Id", "Apis", "Types_", "Enums", "Documentation", "Backend", "Http", "Quota", "Authentication", "Context", "Usage", "Endpoints", "Control", "Logs", "Metrics", "MonitoredResources", "Billing", "Logging", "Monitoring", "SystemParameters", "SourceInfo", "ConfigVersion" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// `Service` is the root object of Google service configuration schema. It + /// describes basic information about a service, such as the name and the + /// title, and delegates other aspects to sub-sections. Each sub-section is + /// either a proto message or a repeated proto message that configures a + /// specific aspect, such as auth. See each proto message definition for details. + /// + /// Example: + /// + /// type: google.api.Service + /// name: calendar.googleapis.com + /// title: Google Calendar API + /// apis: + /// - name: google.calendar.v3.Calendar + /// authentication: + /// providers: + /// - id: google_calendar_auth + /// jwks_uri: https://www.googleapis.com/oauth2/v1/certs + /// issuer: https://securetoken.google.com + /// rules: + /// - selector: "*" + /// requirements: + /// provider_id: google_calendar_auth + /// + public sealed partial class Service : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Service()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.ServiceReflection.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 Service() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Service(Service other) : this() { + name_ = other.name_; + title_ = other.title_; + producerProjectId_ = other.producerProjectId_; + id_ = other.id_; + apis_ = other.apis_.Clone(); + types_ = other.types_.Clone(); + enums_ = other.enums_.Clone(); + documentation_ = other.documentation_ != null ? other.documentation_.Clone() : null; + backend_ = other.backend_ != null ? other.backend_.Clone() : null; + http_ = other.http_ != null ? other.http_.Clone() : null; + quota_ = other.quota_ != null ? other.quota_.Clone() : null; + authentication_ = other.authentication_ != null ? other.authentication_.Clone() : null; + context_ = other.context_ != null ? other.context_.Clone() : null; + usage_ = other.usage_ != null ? other.usage_.Clone() : null; + endpoints_ = other.endpoints_.Clone(); + control_ = other.control_ != null ? other.control_.Clone() : null; + logs_ = other.logs_.Clone(); + metrics_ = other.metrics_.Clone(); + monitoredResources_ = other.monitoredResources_.Clone(); + billing_ = other.billing_ != null ? other.billing_.Clone() : null; + logging_ = other.logging_ != null ? other.logging_.Clone() : null; + monitoring_ = other.monitoring_ != null ? other.monitoring_.Clone() : null; + systemParameters_ = other.systemParameters_ != null ? other.systemParameters_.Clone() : null; + sourceInfo_ = other.sourceInfo_ != null ? other.sourceInfo_.Clone() : null; + ConfigVersion = other.ConfigVersion; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Service Clone() { + return new Service(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The service name, which is a DNS-like logical identifier for the + /// service, such as `calendar.googleapis.com`. The service name + /// typically goes through DNS verification to make sure the owner + /// of the service also owns the DNS 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 "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + /// + /// The product title for this service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "producer_project_id" field. + public const int ProducerProjectIdFieldNumber = 22; + private string producerProjectId_ = ""; + /// + /// The Google project that owns this service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ProducerProjectId { + get { return producerProjectId_; } + set { + producerProjectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 33; + private string id_ = ""; + /// + /// A unique ID for a specific instance of this message, typically assigned + /// by the client for tracking purpose. Must be no longer than 63 characters + /// and only lower case letters, digits, '.', '_' and '-' are allowed. If + /// empty, the server may choose to generate one instead. + /// + [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 "apis" field. + public const int ApisFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_apis_codec + = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.Api.Parser); + private readonly pbc::RepeatedField apis_ = new pbc::RepeatedField(); + /// + /// A list of API interfaces exported by this service. Only the `name` field + /// of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration + /// author, as the remaining fields will be derived from the IDL during the + /// normalization process. It is an error to specify an API interface here + /// which cannot be resolved against the associated IDL files. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Apis { + get { return apis_; } + } + + /// Field number for the "types" field. + public const int Types_FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_types_codec + = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.WellKnownTypes.Type.Parser); + private readonly pbc::RepeatedField types_ = new pbc::RepeatedField(); + /// + /// A list of all proto message types included in this API service. + /// Types referenced directly or indirectly by the `apis` are + /// automatically included. Messages which are not referenced but + /// shall be included, such as types used by the `google.protobuf.Any` type, + /// should be listed here by name. Example: + /// + /// types: + /// - name: google.protobuf.Int32 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Types_ { + get { return types_; } + } + + /// Field number for the "enums" field. + public const int EnumsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_enums_codec + = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.WellKnownTypes.Enum.Parser); + private readonly pbc::RepeatedField enums_ = new pbc::RepeatedField(); + /// + /// A list of all enum types included in this API service. Enums + /// referenced directly or indirectly by the `apis` are automatically + /// included. Enums which are not referenced but shall be included + /// should be listed here by name. Example: + /// + /// enums: + /// - name: google.someapi.v1.SomeEnum + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Enums { + get { return enums_; } + } + + /// Field number for the "documentation" field. + public const int DocumentationFieldNumber = 6; + private global::Google.Api.Documentation documentation_; + /// + /// Additional API documentation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Documentation Documentation { + get { return documentation_; } + set { + documentation_ = value; + } + } + + /// Field number for the "backend" field. + public const int BackendFieldNumber = 8; + private global::Google.Api.Backend backend_; + /// + /// API backend configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Backend Backend { + get { return backend_; } + set { + backend_ = value; + } + } + + /// Field number for the "http" field. + public const int HttpFieldNumber = 9; + private global::Google.Api.Http http_; + /// + /// HTTP configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Http Http { + get { return http_; } + set { + http_ = value; + } + } + + /// Field number for the "quota" field. + public const int QuotaFieldNumber = 10; + private global::Google.Api.Quota quota_; + /// + /// Quota configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Quota Quota { + get { return quota_; } + set { + quota_ = value; + } + } + + /// Field number for the "authentication" field. + public const int AuthenticationFieldNumber = 11; + private global::Google.Api.Authentication authentication_; + /// + /// Auth configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Authentication Authentication { + get { return authentication_; } + set { + authentication_ = value; + } + } + + /// Field number for the "context" field. + public const int ContextFieldNumber = 12; + private global::Google.Api.Context context_; + /// + /// Context configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Context Context { + get { return context_; } + set { + context_ = value; + } + } + + /// Field number for the "usage" field. + public const int UsageFieldNumber = 15; + private global::Google.Api.Usage usage_; + /// + /// Configuration controlling usage of this service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Usage Usage { + get { return usage_; } + set { + usage_ = value; + } + } + + /// Field number for the "endpoints" field. + public const int EndpointsFieldNumber = 18; + private static readonly pb::FieldCodec _repeated_endpoints_codec + = pb::FieldCodec.ForMessage(146, global::Google.Api.Endpoint.Parser); + private readonly pbc::RepeatedField endpoints_ = new pbc::RepeatedField(); + /// + /// Configuration for network endpoints. If this is empty, then an endpoint + /// with the same name as the service is automatically generated to service all + /// defined APIs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Endpoints { + get { return endpoints_; } + } + + /// Field number for the "control" field. + public const int ControlFieldNumber = 21; + private global::Google.Api.Control control_; + /// + /// Configuration for the service control plane. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Control Control { + get { return control_; } + set { + control_ = value; + } + } + + /// Field number for the "logs" field. + public const int LogsFieldNumber = 23; + private static readonly pb::FieldCodec _repeated_logs_codec + = pb::FieldCodec.ForMessage(186, global::Google.Api.LogDescriptor.Parser); + private readonly pbc::RepeatedField logs_ = new pbc::RepeatedField(); + /// + /// Defines the logs used by this service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Logs { + get { return logs_; } + } + + /// Field number for the "metrics" field. + public const int MetricsFieldNumber = 24; + private static readonly pb::FieldCodec _repeated_metrics_codec + = pb::FieldCodec.ForMessage(194, global::Google.Api.MetricDescriptor.Parser); + private readonly pbc::RepeatedField metrics_ = new pbc::RepeatedField(); + /// + /// Defines the metrics used by this service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Metrics { + get { return metrics_; } + } + + /// Field number for the "monitored_resources" field. + public const int MonitoredResourcesFieldNumber = 25; + private static readonly pb::FieldCodec _repeated_monitoredResources_codec + = pb::FieldCodec.ForMessage(202, global::Google.Api.MonitoredResourceDescriptor.Parser); + private readonly pbc::RepeatedField monitoredResources_ = new pbc::RepeatedField(); + /// + /// Defines the monitored resources used by this service. This is required + /// by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MonitoredResources { + get { return monitoredResources_; } + } + + /// Field number for the "billing" field. + public const int BillingFieldNumber = 26; + private global::Google.Api.Billing billing_; + /// + /// Billing configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Billing Billing { + get { return billing_; } + set { + billing_ = value; + } + } + + /// Field number for the "logging" field. + public const int LoggingFieldNumber = 27; + private global::Google.Api.Logging logging_; + /// + /// Logging configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Logging Logging { + get { return logging_; } + set { + logging_ = value; + } + } + + /// Field number for the "monitoring" field. + public const int MonitoringFieldNumber = 28; + private global::Google.Api.Monitoring monitoring_; + /// + /// Monitoring configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.Monitoring Monitoring { + get { return monitoring_; } + set { + monitoring_ = value; + } + } + + /// Field number for the "system_parameters" field. + public const int SystemParametersFieldNumber = 29; + private global::Google.Api.SystemParameters systemParameters_; + /// + /// System parameter configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.SystemParameters SystemParameters { + get { return systemParameters_; } + set { + systemParameters_ = value; + } + } + + /// Field number for the "source_info" field. + public const int SourceInfoFieldNumber = 37; + private global::Google.Api.SourceInfo sourceInfo_; + /// + /// Output only. The source information for this configuration if available. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Api.SourceInfo SourceInfo { + get { return sourceInfo_; } + set { + sourceInfo_ = value; + } + } + + /// Field number for the "config_version" field. + public const int ConfigVersionFieldNumber = 20; + private static readonly pb::FieldCodec _single_configVersion_codec = pb::FieldCodec.ForStructWrapper(162); + private uint? configVersion_; + /// + /// Obsolete. Do not use. + /// + /// This field has no semantic meaning. The service config compiler always + /// sets this field to `3`. + /// + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint? ConfigVersion { + get { return configVersion_; } + set { + configVersion_ = value; + } + } + + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Service); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Service other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Title != other.Title) return false; + if (ProducerProjectId != other.ProducerProjectId) return false; + if (Id != other.Id) return false; + if(!apis_.Equals(other.apis_)) return false; + if(!types_.Equals(other.types_)) return false; + if(!enums_.Equals(other.enums_)) return false; + if (!object.Equals(Documentation, other.Documentation)) return false; + if (!object.Equals(Backend, other.Backend)) return false; + if (!object.Equals(Http, other.Http)) return false; + if (!object.Equals(Quota, other.Quota)) return false; + if (!object.Equals(Authentication, other.Authentication)) return false; + if (!object.Equals(Context, other.Context)) return false; + if (!object.Equals(Usage, other.Usage)) return false; + if(!endpoints_.Equals(other.endpoints_)) return false; + if (!object.Equals(Control, other.Control)) return false; + if(!logs_.Equals(other.logs_)) return false; + if(!metrics_.Equals(other.metrics_)) return false; + if(!monitoredResources_.Equals(other.monitoredResources_)) return false; + if (!object.Equals(Billing, other.Billing)) return false; + if (!object.Equals(Logging, other.Logging)) return false; + if (!object.Equals(Monitoring, other.Monitoring)) return false; + if (!object.Equals(SystemParameters, other.SystemParameters)) return false; + if (!object.Equals(SourceInfo, other.SourceInfo)) return false; + if (ConfigVersion != other.ConfigVersion) return false; + 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 (Title.Length != 0) hash ^= Title.GetHashCode(); + if (ProducerProjectId.Length != 0) hash ^= ProducerProjectId.GetHashCode(); + if (Id.Length != 0) hash ^= Id.GetHashCode(); + hash ^= apis_.GetHashCode(); + hash ^= types_.GetHashCode(); + hash ^= enums_.GetHashCode(); + if (documentation_ != null) hash ^= Documentation.GetHashCode(); + if (backend_ != null) hash ^= Backend.GetHashCode(); + if (http_ != null) hash ^= Http.GetHashCode(); + if (quota_ != null) hash ^= Quota.GetHashCode(); + if (authentication_ != null) hash ^= Authentication.GetHashCode(); + if (context_ != null) hash ^= Context.GetHashCode(); + if (usage_ != null) hash ^= Usage.GetHashCode(); + hash ^= endpoints_.GetHashCode(); + if (control_ != null) hash ^= Control.GetHashCode(); + hash ^= logs_.GetHashCode(); + hash ^= metrics_.GetHashCode(); + hash ^= monitoredResources_.GetHashCode(); + if (billing_ != null) hash ^= Billing.GetHashCode(); + if (logging_ != null) hash ^= Logging.GetHashCode(); + if (monitoring_ != null) hash ^= Monitoring.GetHashCode(); + if (systemParameters_ != null) hash ^= SystemParameters.GetHashCode(); + if (sourceInfo_ != null) hash ^= SourceInfo.GetHashCode(); + if (configVersion_ != null) hash ^= ConfigVersion.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + apis_.WriteTo(output, _repeated_apis_codec); + types_.WriteTo(output, _repeated_types_codec); + enums_.WriteTo(output, _repeated_enums_codec); + if (documentation_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Documentation); + } + if (backend_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Backend); + } + if (http_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Http); + } + if (quota_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Quota); + } + if (authentication_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Authentication); + } + if (context_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Context); + } + if (usage_ != null) { + output.WriteRawTag(122); + output.WriteMessage(Usage); + } + endpoints_.WriteTo(output, _repeated_endpoints_codec); + if (configVersion_ != null) { + _single_configVersion_codec.WriteTagAndValue(output, ConfigVersion); + } + if (control_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(Control); + } + if (ProducerProjectId.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(ProducerProjectId); + } + logs_.WriteTo(output, _repeated_logs_codec); + metrics_.WriteTo(output, _repeated_metrics_codec); + monitoredResources_.WriteTo(output, _repeated_monitoredResources_codec); + if (billing_ != null) { + output.WriteRawTag(210, 1); + output.WriteMessage(Billing); + } + if (logging_ != null) { + output.WriteRawTag(218, 1); + output.WriteMessage(Logging); + } + if (monitoring_ != null) { + output.WriteRawTag(226, 1); + output.WriteMessage(Monitoring); + } + if (systemParameters_ != null) { + output.WriteRawTag(234, 1); + output.WriteMessage(SystemParameters); + } + if (Id.Length != 0) { + output.WriteRawTag(138, 2); + output.WriteString(Id); + } + if (sourceInfo_ != null) { + output.WriteRawTag(170, 2); + output.WriteMessage(SourceInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + apis_.WriteTo(ref output, _repeated_apis_codec); + types_.WriteTo(ref output, _repeated_types_codec); + enums_.WriteTo(ref output, _repeated_enums_codec); + if (documentation_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Documentation); + } + if (backend_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Backend); + } + if (http_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Http); + } + if (quota_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Quota); + } + if (authentication_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Authentication); + } + if (context_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Context); + } + if (usage_ != null) { + output.WriteRawTag(122); + output.WriteMessage(Usage); + } + endpoints_.WriteTo(ref output, _repeated_endpoints_codec); + if (configVersion_ != null) { + _single_configVersion_codec.WriteTagAndValue(ref output, ConfigVersion); + } + if (control_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(Control); + } + if (ProducerProjectId.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(ProducerProjectId); + } + logs_.WriteTo(ref output, _repeated_logs_codec); + metrics_.WriteTo(ref output, _repeated_metrics_codec); + monitoredResources_.WriteTo(ref output, _repeated_monitoredResources_codec); + if (billing_ != null) { + output.WriteRawTag(210, 1); + output.WriteMessage(Billing); + } + if (logging_ != null) { + output.WriteRawTag(218, 1); + output.WriteMessage(Logging); + } + if (monitoring_ != null) { + output.WriteRawTag(226, 1); + output.WriteMessage(Monitoring); + } + if (systemParameters_ != null) { + output.WriteRawTag(234, 1); + output.WriteMessage(SystemParameters); + } + if (Id.Length != 0) { + output.WriteRawTag(138, 2); + output.WriteString(Id); + } + if (sourceInfo_ != null) { + output.WriteRawTag(170, 2); + output.WriteMessage(SourceInfo); + } + if (_unknownFields != 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 (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (ProducerProjectId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ProducerProjectId); + } + if (Id.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Id); + } + size += apis_.CalculateSize(_repeated_apis_codec); + size += types_.CalculateSize(_repeated_types_codec); + size += enums_.CalculateSize(_repeated_enums_codec); + if (documentation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Documentation); + } + if (backend_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Backend); + } + if (http_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Http); + } + if (quota_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Quota); + } + if (authentication_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Authentication); + } + if (context_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Context); + } + if (usage_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Usage); + } + size += endpoints_.CalculateSize(_repeated_endpoints_codec); + if (control_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Control); + } + size += logs_.CalculateSize(_repeated_logs_codec); + size += metrics_.CalculateSize(_repeated_metrics_codec); + size += monitoredResources_.CalculateSize(_repeated_monitoredResources_codec); + if (billing_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Billing); + } + if (logging_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Logging); + } + if (monitoring_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Monitoring); + } + if (systemParameters_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SystemParameters); + } + if (sourceInfo_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SourceInfo); + } + if (configVersion_ != null) { + size += _single_configVersion_codec.CalculateSizeWithTag(ConfigVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Service other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.ProducerProjectId.Length != 0) { + ProducerProjectId = other.ProducerProjectId; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + apis_.Add(other.apis_); + types_.Add(other.types_); + enums_.Add(other.enums_); + if (other.documentation_ != null) { + if (documentation_ == null) { + Documentation = new global::Google.Api.Documentation(); + } + Documentation.MergeFrom(other.Documentation); + } + if (other.backend_ != null) { + if (backend_ == null) { + Backend = new global::Google.Api.Backend(); + } + Backend.MergeFrom(other.Backend); + } + if (other.http_ != null) { + if (http_ == null) { + Http = new global::Google.Api.Http(); + } + Http.MergeFrom(other.Http); + } + if (other.quota_ != null) { + if (quota_ == null) { + Quota = new global::Google.Api.Quota(); + } + Quota.MergeFrom(other.Quota); + } + if (other.authentication_ != null) { + if (authentication_ == null) { + Authentication = new global::Google.Api.Authentication(); + } + Authentication.MergeFrom(other.Authentication); + } + if (other.context_ != null) { + if (context_ == null) { + Context = new global::Google.Api.Context(); + } + Context.MergeFrom(other.Context); + } + if (other.usage_ != null) { + if (usage_ == null) { + Usage = new global::Google.Api.Usage(); + } + Usage.MergeFrom(other.Usage); + } + endpoints_.Add(other.endpoints_); + if (other.control_ != null) { + if (control_ == null) { + Control = new global::Google.Api.Control(); + } + Control.MergeFrom(other.Control); + } + logs_.Add(other.logs_); + metrics_.Add(other.metrics_); + monitoredResources_.Add(other.monitoredResources_); + if (other.billing_ != null) { + if (billing_ == null) { + Billing = new global::Google.Api.Billing(); + } + Billing.MergeFrom(other.Billing); + } + if (other.logging_ != null) { + if (logging_ == null) { + Logging = new global::Google.Api.Logging(); + } + Logging.MergeFrom(other.Logging); + } + if (other.monitoring_ != null) { + if (monitoring_ == null) { + Monitoring = new global::Google.Api.Monitoring(); + } + Monitoring.MergeFrom(other.Monitoring); + } + if (other.systemParameters_ != null) { + if (systemParameters_ == null) { + SystemParameters = new global::Google.Api.SystemParameters(); + } + SystemParameters.MergeFrom(other.SystemParameters); + } + if (other.sourceInfo_ != null) { + if (sourceInfo_ == null) { + SourceInfo = new global::Google.Api.SourceInfo(); + } + SourceInfo.MergeFrom(other.SourceInfo); + } + if (other.configVersion_ != null) { + if (configVersion_ == null || other.ConfigVersion != 0) { + ConfigVersion = other.ConfigVersion; + } + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + Title = input.ReadString(); + break; + } + case 26: { + apis_.AddEntriesFrom(input, _repeated_apis_codec); + break; + } + case 34: { + types_.AddEntriesFrom(input, _repeated_types_codec); + break; + } + case 42: { + enums_.AddEntriesFrom(input, _repeated_enums_codec); + break; + } + case 50: { + if (documentation_ == null) { + Documentation = new global::Google.Api.Documentation(); + } + input.ReadMessage(Documentation); + break; + } + case 66: { + if (backend_ == null) { + Backend = new global::Google.Api.Backend(); + } + input.ReadMessage(Backend); + break; + } + case 74: { + if (http_ == null) { + Http = new global::Google.Api.Http(); + } + input.ReadMessage(Http); + break; + } + case 82: { + if (quota_ == null) { + Quota = new global::Google.Api.Quota(); + } + input.ReadMessage(Quota); + break; + } + case 90: { + if (authentication_ == null) { + Authentication = new global::Google.Api.Authentication(); + } + input.ReadMessage(Authentication); + break; + } + case 98: { + if (context_ == null) { + Context = new global::Google.Api.Context(); + } + input.ReadMessage(Context); + break; + } + case 122: { + if (usage_ == null) { + Usage = new global::Google.Api.Usage(); + } + input.ReadMessage(Usage); + break; + } + case 146: { + endpoints_.AddEntriesFrom(input, _repeated_endpoints_codec); + break; + } + case 162: { + uint? value = _single_configVersion_codec.Read(input); + if (configVersion_ == null || value != 0) { + ConfigVersion = value; + } + break; + } + case 170: { + if (control_ == null) { + Control = new global::Google.Api.Control(); + } + input.ReadMessage(Control); + break; + } + case 178: { + ProducerProjectId = input.ReadString(); + break; + } + case 186: { + logs_.AddEntriesFrom(input, _repeated_logs_codec); + break; + } + case 194: { + metrics_.AddEntriesFrom(input, _repeated_metrics_codec); + break; + } + case 202: { + monitoredResources_.AddEntriesFrom(input, _repeated_monitoredResources_codec); + break; + } + case 210: { + if (billing_ == null) { + Billing = new global::Google.Api.Billing(); + } + input.ReadMessage(Billing); + break; + } + case 218: { + if (logging_ == null) { + Logging = new global::Google.Api.Logging(); + } + input.ReadMessage(Logging); + break; + } + case 226: { + if (monitoring_ == null) { + Monitoring = new global::Google.Api.Monitoring(); + } + input.ReadMessage(Monitoring); + break; + } + case 234: { + if (systemParameters_ == null) { + SystemParameters = new global::Google.Api.SystemParameters(); + } + input.ReadMessage(SystemParameters); + break; + } + case 266: { + Id = input.ReadString(); + break; + } + case 298: { + if (sourceInfo_ == null) { + SourceInfo = new global::Google.Api.SourceInfo(); + } + input.ReadMessage(SourceInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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: { + Title = input.ReadString(); + break; + } + case 26: { + apis_.AddEntriesFrom(ref input, _repeated_apis_codec); + break; + } + case 34: { + types_.AddEntriesFrom(ref input, _repeated_types_codec); + break; + } + case 42: { + enums_.AddEntriesFrom(ref input, _repeated_enums_codec); + break; + } + case 50: { + if (documentation_ == null) { + Documentation = new global::Google.Api.Documentation(); + } + input.ReadMessage(Documentation); + break; + } + case 66: { + if (backend_ == null) { + Backend = new global::Google.Api.Backend(); + } + input.ReadMessage(Backend); + break; + } + case 74: { + if (http_ == null) { + Http = new global::Google.Api.Http(); + } + input.ReadMessage(Http); + break; + } + case 82: { + if (quota_ == null) { + Quota = new global::Google.Api.Quota(); + } + input.ReadMessage(Quota); + break; + } + case 90: { + if (authentication_ == null) { + Authentication = new global::Google.Api.Authentication(); + } + input.ReadMessage(Authentication); + break; + } + case 98: { + if (context_ == null) { + Context = new global::Google.Api.Context(); + } + input.ReadMessage(Context); + break; + } + case 122: { + if (usage_ == null) { + Usage = new global::Google.Api.Usage(); + } + input.ReadMessage(Usage); + break; + } + case 146: { + endpoints_.AddEntriesFrom(ref input, _repeated_endpoints_codec); + break; + } + case 162: { + uint? value = _single_configVersion_codec.Read(ref input); + if (configVersion_ == null || value != 0) { + ConfigVersion = value; + } + break; + } + case 170: { + if (control_ == null) { + Control = new global::Google.Api.Control(); + } + input.ReadMessage(Control); + break; + } + case 178: { + ProducerProjectId = input.ReadString(); + break; + } + case 186: { + logs_.AddEntriesFrom(ref input, _repeated_logs_codec); + break; + } + case 194: { + metrics_.AddEntriesFrom(ref input, _repeated_metrics_codec); + break; + } + case 202: { + monitoredResources_.AddEntriesFrom(ref input, _repeated_monitoredResources_codec); + break; + } + case 210: { + if (billing_ == null) { + Billing = new global::Google.Api.Billing(); + } + input.ReadMessage(Billing); + break; + } + case 218: { + if (logging_ == null) { + Logging = new global::Google.Api.Logging(); + } + input.ReadMessage(Logging); + break; + } + case 226: { + if (monitoring_ == null) { + Monitoring = new global::Google.Api.Monitoring(); + } + input.ReadMessage(Monitoring); + break; + } + case 234: { + if (systemParameters_ == null) { + SystemParameters = new global::Google.Api.SystemParameters(); + } + input.ReadMessage(SystemParameters); + break; + } + case 266: { + Id = input.ReadString(); + break; + } + case 298: { + if (sourceInfo_ == null) { + SourceInfo = new global::Google.Api.SourceInfo(); + } + input.ReadMessage(SourceInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/SourceInfo.cs b/csharp/protobuf/google/api/SourceInfo.cs new file mode 100644 index 00000000..ad3652fb --- /dev/null +++ b/csharp/protobuf/google/api/SourceInfo.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/source_info.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/source_info.proto + public static partial class SourceInfoReflection { + + #region Descriptor + /// File descriptor for google/api/source_info.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SourceInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chxnb29nbGUvYXBpL3NvdXJjZV9pbmZvLnByb3RvEgpnb29nbGUuYXBpGhln", + "b29nbGUvcHJvdG9idWYvYW55LnByb3RvIjgKClNvdXJjZUluZm8SKgoMc291", + "cmNlX2ZpbGVzGAEgAygLMhQuZ29vZ2xlLnByb3RvYnVmLkFueUJxCg5jb20u", + "Z29vZ2xlLmFwaUIPU291cmNlSW5mb1Byb3RvUAFaRWdvb2dsZS5nb2xhbmcu", + "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpL3NlcnZpY2Vjb25maWc7c2Vy", + "dmljZWNvbmZpZ6ICBEdBUEliBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.AnyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.SourceInfo), global::Google.Api.SourceInfo.Parser, new[]{ "SourceFiles" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Source information used to create a Service Config + /// + public sealed partial class SourceInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SourceInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.SourceInfoReflection.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 SourceInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourceInfo(SourceInfo other) : this() { + sourceFiles_ = other.sourceFiles_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourceInfo Clone() { + return new SourceInfo(this); + } + + /// Field number for the "source_files" field. + public const int SourceFilesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_sourceFiles_codec + = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.Any.Parser); + private readonly pbc::RepeatedField sourceFiles_ = new pbc::RepeatedField(); + /// + /// All files used during config generation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SourceFiles { + get { return sourceFiles_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SourceInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SourceInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!sourceFiles_.Equals(other.sourceFiles_)) return 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 ^= sourceFiles_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + sourceFiles_.WriteTo(output, _repeated_sourceFiles_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) { + sourceFiles_.WriteTo(ref output, _repeated_sourceFiles_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 += sourceFiles_.CalculateSize(_repeated_sourceFiles_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SourceInfo other) { + if (other == null) { + return; + } + sourceFiles_.Add(other.sourceFiles_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + sourceFiles_.AddEntriesFrom(input, _repeated_sourceFiles_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: { + sourceFiles_.AddEntriesFrom(ref input, _repeated_sourceFiles_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/SystemParameter.cs b/csharp/protobuf/google/api/SystemParameter.cs new file mode 100644 index 00000000..d3dda577 --- /dev/null +++ b/csharp/protobuf/google/api/SystemParameter.cs @@ -0,0 +1,780 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/system_parameter.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/system_parameter.proto + public static partial class SystemParameterReflection { + + #region Descriptor + /// File descriptor for google/api/system_parameter.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SystemParameterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFnb29nbGUvYXBpL3N5c3RlbV9wYXJhbWV0ZXIucHJvdG8SCmdvb2dsZS5h", + "cGkiQgoQU3lzdGVtUGFyYW1ldGVycxIuCgVydWxlcxgBIAMoCzIfLmdvb2ds", + "ZS5hcGkuU3lzdGVtUGFyYW1ldGVyUnVsZSJYChNTeXN0ZW1QYXJhbWV0ZXJS", + "dWxlEhAKCHNlbGVjdG9yGAEgASgJEi8KCnBhcmFtZXRlcnMYAiADKAsyGy5n", + "b29nbGUuYXBpLlN5c3RlbVBhcmFtZXRlciJRCg9TeXN0ZW1QYXJhbWV0ZXIS", + "DAoEbmFtZRgBIAEoCRITCgtodHRwX2hlYWRlchgCIAEoCRIbChN1cmxfcXVl", + "cnlfcGFyYW1ldGVyGAMgASgJQnYKDmNvbS5nb29nbGUuYXBpQhRTeXN0ZW1Q", + "YXJhbWV0ZXJQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", + "b29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRH", + "QVBJYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.SystemParameters), global::Google.Api.SystemParameters.Parser, new[]{ "Rules" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.SystemParameterRule), global::Google.Api.SystemParameterRule.Parser, new[]{ "Selector", "Parameters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.SystemParameter), global::Google.Api.SystemParameter.Parser, new[]{ "Name", "HttpHeader", "UrlQueryParameter" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// ### System parameter configuration + /// + /// A system parameter is a special kind of parameter defined by the API + /// system, not by an individual API. It is typically mapped to an HTTP header + /// and/or a URL query parameter. This configuration specifies which methods + /// change the names of the system parameters. + /// + public sealed partial class SystemParameters : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemParameters()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.SystemParameterReflection.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 SystemParameters() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SystemParameters(SystemParameters other) : this() { + rules_ = other.rules_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SystemParameters Clone() { + return new SystemParameters(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.SystemParameterRule.Parser); + private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); + /// + /// Define system parameters. + /// + /// The parameters defined here will override the default parameters + /// implemented by the system. If this field is missing from the service + /// config, default system parameters will be used. Default system parameters + /// and names is implementation-dependent. + /// + /// Example: define api key for all methods + /// + /// system_parameters + /// rules: + /// - selector: "*" + /// parameters: + /// - name: api_key + /// url_query_parameter: api_key + /// + /// Example: define 2 api key names for a specific method. + /// + /// system_parameters + /// rules: + /// - selector: "/ListShelves" + /// parameters: + /// - name: api_key + /// http_header: Api-Key1 + /// - name: api_key + /// http_header: Api-Key2 + /// + /// **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_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SystemParameters); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SystemParameters other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rules_.Equals(other.rules_)) return 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SystemParameters other) { + if (other == null) { + return; + } + rules_.Add(other.rules_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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; + } + } + } + } + #endif + + } + + /// + /// Define a system parameter rule mapping system parameter definitions to + /// methods. + /// + public sealed partial class SystemParameterRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemParameterRule()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.SystemParameterReflection.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 SystemParameterRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SystemParameterRule(SystemParameterRule other) : this() { + selector_ = other.selector_; + parameters_ = other.parameters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SystemParameterRule Clone() { + return new SystemParameterRule(this); + } + + /// Field number for the "selector" field. + public const int SelectorFieldNumber = 1; + private string selector_ = ""; + /// + /// Selects the methods to which this rule applies. Use '*' to indicate all + /// methods in all APIs. + /// + /// 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 "parameters" field. + public const int ParametersFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_parameters_codec + = pb::FieldCodec.ForMessage(18, global::Google.Api.SystemParameter.Parser); + private readonly pbc::RepeatedField parameters_ = new pbc::RepeatedField(); + /// + /// Define parameters. Multiple names may be defined for a parameter. + /// For a given method call, only one of them should be used. If multiple + /// names are used the behavior is implementation-dependent. + /// If none of the specified names are present the behavior is + /// parameter-dependent. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameters { + get { return parameters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SystemParameterRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SystemParameterRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Selector != other.Selector) return false; + if(!parameters_.Equals(other.parameters_)) return false; + 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(); + hash ^= parameters_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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); + } + parameters_.WriteTo(output, _repeated_parameters_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 (Selector.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Selector); + } + parameters_.WriteTo(ref output, _repeated_parameters_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 (Selector.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Selector); + } + size += parameters_.CalculateSize(_repeated_parameters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SystemParameterRule other) { + if (other == null) { + return; + } + if (other.Selector.Length != 0) { + Selector = other.Selector; + } + parameters_.Add(other.parameters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + parameters_.AddEntriesFrom(input, _repeated_parameters_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: { + Selector = input.ReadString(); + break; + } + case 18: { + parameters_.AddEntriesFrom(ref input, _repeated_parameters_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Define a parameter's name and location. The parameter may be passed as either + /// an HTTP header or a URL query parameter, and if both are passed the behavior + /// is implementation-dependent. + /// + public sealed partial class SystemParameter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemParameter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.SystemParameterReflection.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 SystemParameter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SystemParameter(SystemParameter other) : this() { + name_ = other.name_; + httpHeader_ = other.httpHeader_; + urlQueryParameter_ = other.urlQueryParameter_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SystemParameter Clone() { + return new SystemParameter(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Define the name of the parameter, such as "api_key" . It is case sensitive. + /// + [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 "http_header" field. + public const int HttpHeaderFieldNumber = 2; + private string httpHeader_ = ""; + /// + /// Define the HTTP header name to use for the parameter. It is case + /// insensitive. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HttpHeader { + get { return httpHeader_; } + set { + httpHeader_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "url_query_parameter" field. + public const int UrlQueryParameterFieldNumber = 3; + private string urlQueryParameter_ = ""; + /// + /// Define the URL query parameter name to use for the parameter. It is case + /// sensitive. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UrlQueryParameter { + get { return urlQueryParameter_; } + set { + urlQueryParameter_ = 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 SystemParameter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SystemParameter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (HttpHeader != other.HttpHeader) return false; + if (UrlQueryParameter != other.UrlQueryParameter) return false; + 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 (HttpHeader.Length != 0) hash ^= HttpHeader.GetHashCode(); + if (UrlQueryParameter.Length != 0) hash ^= UrlQueryParameter.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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); + } + if (HttpHeader.Length != 0) { + output.WriteRawTag(18); + output.WriteString(HttpHeader); + } + if (UrlQueryParameter.Length != 0) { + output.WriteRawTag(26); + output.WriteString(UrlQueryParameter); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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); + } + if (HttpHeader.Length != 0) { + output.WriteRawTag(18); + output.WriteString(HttpHeader); + } + if (UrlQueryParameter.Length != 0) { + output.WriteRawTag(26); + output.WriteString(UrlQueryParameter); + } + if (_unknownFields != 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 (HttpHeader.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HttpHeader); + } + if (UrlQueryParameter.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UrlQueryParameter); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SystemParameter other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.HttpHeader.Length != 0) { + HttpHeader = other.HttpHeader; + } + if (other.UrlQueryParameter.Length != 0) { + UrlQueryParameter = other.UrlQueryParameter; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + HttpHeader = input.ReadString(); + break; + } + case 26: { + UrlQueryParameter = 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: { + Name = input.ReadString(); + break; + } + case 18: { + HttpHeader = input.ReadString(); + break; + } + case 26: { + UrlQueryParameter = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Usage.cs b/csharp/protobuf/google/api/Usage.cs new file mode 100644 index 00000000..8a5cb924 --- /dev/null +++ b/csharp/protobuf/google/api/Usage.cs @@ -0,0 +1,625 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/usage.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/usage.proto + public static partial class UsageReflection { + + #region Descriptor + /// File descriptor for google/api/usage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UsageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZnb29nbGUvYXBpL3VzYWdlLnByb3RvEgpnb29nbGUuYXBpImoKBVVzYWdl", + "EhQKDHJlcXVpcmVtZW50cxgBIAMoCRIkCgVydWxlcxgGIAMoCzIVLmdvb2ds", + "ZS5hcGkuVXNhZ2VSdWxlEiUKHXByb2R1Y2VyX25vdGlmaWNhdGlvbl9jaGFu", + "bmVsGAcgASgJIl0KCVVzYWdlUnVsZRIQCghzZWxlY3RvchgBIAEoCRIgChhh", + "bGxvd191bnJlZ2lzdGVyZWRfY2FsbHMYAiABKAgSHAoUc2tpcF9zZXJ2aWNl", + "X2NvbnRyb2wYAyABKAhCbAoOY29tLmdvb2dsZS5hcGlCClVzYWdlUHJvdG9Q", + "AVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkv", + "c2VydmljZWNvbmZpZztzZXJ2aWNlY29uZmlnogIER0FQSWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Usage), global::Google.Api.Usage.Parser, new[]{ "Requirements", "Rules", "ProducerNotificationChannel" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.UsageRule), global::Google.Api.UsageRule.Parser, new[]{ "Selector", "AllowUnregisteredCalls", "SkipServiceControl" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Configuration controlling usage of a service. + /// + public sealed partial class Usage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Usage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.UsageReflection.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 Usage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Usage(Usage other) : this() { + requirements_ = other.requirements_.Clone(); + rules_ = other.rules_.Clone(); + producerNotificationChannel_ = other.producerNotificationChannel_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Usage Clone() { + return new Usage(this); + } + + /// Field number for the "requirements" field. + public const int RequirementsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_requirements_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField requirements_ = new pbc::RepeatedField(); + /// + /// Requirements that must be satisfied before a consumer project can use the + /// service. Each requirement is of the form <service.name>/<requirement-id>; + /// for example 'serviceusage.googleapis.com/billing-enabled'. + /// + /// For Google APIs, a Terms of Service requirement must be included here. + /// Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + /// Other Google APIs should include + /// "serviceusage.googleapis.com/tos/universal". Additional ToS can be + /// included based on the business needs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Requirements { + get { return requirements_; } + } + + /// Field number for the "rules" field. + public const int RulesFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_rules_codec + = pb::FieldCodec.ForMessage(50, global::Google.Api.UsageRule.Parser); + private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); + /// + /// A list of usage 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 "producer_notification_channel" field. + public const int ProducerNotificationChannelFieldNumber = 7; + private string producerNotificationChannel_ = ""; + /// + /// The full resource name of a channel used for sending notifications to the + /// service producer. + /// + /// Google Service Management currently only supports + /// [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + /// channel. To use Google Cloud Pub/Sub as the channel, this must be the name + /// of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + /// documented in https://cloud.google.com/pubsub/docs/overview. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ProducerNotificationChannel { + get { return producerNotificationChannel_; } + set { + producerNotificationChannel_ = 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 Usage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Usage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!requirements_.Equals(other.requirements_)) return false; + if(!rules_.Equals(other.rules_)) return false; + if (ProducerNotificationChannel != other.ProducerNotificationChannel) return 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 ^= requirements_.GetHashCode(); + hash ^= rules_.GetHashCode(); + if (ProducerNotificationChannel.Length != 0) hash ^= ProducerNotificationChannel.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + requirements_.WriteTo(output, _repeated_requirements_codec); + rules_.WriteTo(output, _repeated_rules_codec); + if (ProducerNotificationChannel.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ProducerNotificationChannel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + requirements_.WriteTo(ref output, _repeated_requirements_codec); + rules_.WriteTo(ref output, _repeated_rules_codec); + if (ProducerNotificationChannel.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ProducerNotificationChannel); + } + if (_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 += requirements_.CalculateSize(_repeated_requirements_codec); + size += rules_.CalculateSize(_repeated_rules_codec); + if (ProducerNotificationChannel.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ProducerNotificationChannel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Usage other) { + if (other == null) { + return; + } + requirements_.Add(other.requirements_); + rules_.Add(other.rules_); + if (other.ProducerNotificationChannel.Length != 0) { + ProducerNotificationChannel = other.ProducerNotificationChannel; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + requirements_.AddEntriesFrom(input, _repeated_requirements_codec); + break; + } + case 50: { + rules_.AddEntriesFrom(input, _repeated_rules_codec); + break; + } + case 58: { + ProducerNotificationChannel = 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: { + requirements_.AddEntriesFrom(ref input, _repeated_requirements_codec); + break; + } + case 50: { + rules_.AddEntriesFrom(ref input, _repeated_rules_codec); + break; + } + case 58: { + ProducerNotificationChannel = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Usage configuration rules for the service. + /// + /// NOTE: Under development. + /// + /// Use this rule to configure unregistered calls for the service. Unregistered + /// calls are calls that do not contain consumer project identity. + /// (Example: calls that do not contain an API key). + /// By default, API methods do not allow unregistered calls, and each method call + /// must be identified by a consumer project identity. Use this rule to + /// allow/disallow unregistered calls. + /// + /// Example of an API that wants to allow unregistered calls for entire service. + /// + /// usage: + /// rules: + /// - selector: "*" + /// allow_unregistered_calls: true + /// + /// Example of a method that wants to allow unregistered calls. + /// + /// usage: + /// rules: + /// - selector: "google.example.library.v1.LibraryService.CreateBook" + /// allow_unregistered_calls: true + /// + public sealed partial class UsageRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UsageRule()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.UsageReflection.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 UsageRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UsageRule(UsageRule other) : this() { + selector_ = other.selector_; + allowUnregisteredCalls_ = other.allowUnregisteredCalls_; + skipServiceControl_ = other.skipServiceControl_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UsageRule Clone() { + return new UsageRule(this); + } + + /// Field number for the "selector" field. + public const int SelectorFieldNumber = 1; + private string selector_ = ""; + /// + /// Selects the methods to which this rule applies. Use '*' to indicate all + /// methods in all APIs. + /// + /// 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 "allow_unregistered_calls" field. + public const int AllowUnregisteredCallsFieldNumber = 2; + private bool allowUnregisteredCalls_; + /// + /// If true, the selected method allows unregistered calls, e.g. calls + /// that don't identify any user or application. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowUnregisteredCalls { + get { return allowUnregisteredCalls_; } + set { + allowUnregisteredCalls_ = value; + } + } + + /// Field number for the "skip_service_control" field. + public const int SkipServiceControlFieldNumber = 3; + private bool skipServiceControl_; + /// + /// If true, the selected method should skip service control and the control + /// plane features, such as quota and billing, will not be available. + /// This flag is used by Google Cloud Endpoints to bypass checks for internal + /// methods, such as service health check methods. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SkipServiceControl { + get { return skipServiceControl_; } + set { + skipServiceControl_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UsageRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UsageRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Selector != other.Selector) return false; + if (AllowUnregisteredCalls != other.AllowUnregisteredCalls) return false; + if (SkipServiceControl != other.SkipServiceControl) return false; + 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 (AllowUnregisteredCalls != false) hash ^= AllowUnregisteredCalls.GetHashCode(); + if (SkipServiceControl != false) hash ^= SkipServiceControl.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (AllowUnregisteredCalls != false) { + output.WriteRawTag(16); + output.WriteBool(AllowUnregisteredCalls); + } + if (SkipServiceControl != false) { + output.WriteRawTag(24); + output.WriteBool(SkipServiceControl); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (AllowUnregisteredCalls != false) { + output.WriteRawTag(16); + output.WriteBool(AllowUnregisteredCalls); + } + if (SkipServiceControl != false) { + output.WriteRawTag(24); + output.WriteBool(SkipServiceControl); + } + if (_unknownFields != 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 (AllowUnregisteredCalls != false) { + size += 1 + 1; + } + if (SkipServiceControl != 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(UsageRule other) { + if (other == null) { + return; + } + if (other.Selector.Length != 0) { + Selector = other.Selector; + } + if (other.AllowUnregisteredCalls != false) { + AllowUnregisteredCalls = other.AllowUnregisteredCalls; + } + if (other.SkipServiceControl != false) { + SkipServiceControl = other.SkipServiceControl; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 16: { + AllowUnregisteredCalls = input.ReadBool(); + break; + } + case 24: { + SkipServiceControl = 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: { + Selector = input.ReadString(); + break; + } + case 16: { + AllowUnregisteredCalls = input.ReadBool(); + break; + } + case 24: { + SkipServiceControl = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/google/api/Visibility.cs b/csharp/protobuf/google/api/Visibility.cs new file mode 100644 index 00000000..da1405b5 --- /dev/null +++ b/csharp/protobuf/google/api/Visibility.cs @@ -0,0 +1,554 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/visibility.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/visibility.proto + public static partial class VisibilityReflection { + + #region Descriptor + /// File descriptor for google/api/visibility.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VisibilityReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chtnb29nbGUvYXBpL3Zpc2liaWxpdHkucHJvdG8SCmdvb2dsZS5hcGkaIGdv", + "b2dsZS9wcm90b2J1Zi9kZXNjcmlwdG9yLnByb3RvIjcKClZpc2liaWxpdHkS", + "KQoFcnVsZXMYASADKAsyGi5nb29nbGUuYXBpLlZpc2liaWxpdHlSdWxlIjcK", + "DlZpc2liaWxpdHlSdWxlEhAKCHNlbGVjdG9yGAEgASgJEhMKC3Jlc3RyaWN0", + "aW9uGAIgASgJOlQKD2VudW1fdmlzaWJpbGl0eRIcLmdvb2dsZS5wcm90b2J1", + "Zi5FbnVtT3B0aW9ucxivyrwiIAEoCzIaLmdvb2dsZS5hcGkuVmlzaWJpbGl0", + "eVJ1bGU6WgoQdmFsdWVfdmlzaWJpbGl0eRIhLmdvb2dsZS5wcm90b2J1Zi5F", + "bnVtVmFsdWVPcHRpb25zGK/KvCIgASgLMhouZ29vZ2xlLmFwaS5WaXNpYmls", + "aXR5UnVsZTpWChBmaWVsZF92aXNpYmlsaXR5Eh0uZ29vZ2xlLnByb3RvYnVm", + "LkZpZWxkT3B0aW9ucxivyrwiIAEoCzIaLmdvb2dsZS5hcGkuVmlzaWJpbGl0", + "eVJ1bGU6WgoSbWVzc2FnZV92aXNpYmlsaXR5Eh8uZ29vZ2xlLnByb3RvYnVm", + "Lk1lc3NhZ2VPcHRpb25zGK/KvCIgASgLMhouZ29vZ2xlLmFwaS5WaXNpYmls", + "aXR5UnVsZTpYChFtZXRob2RfdmlzaWJpbGl0eRIeLmdvb2dsZS5wcm90b2J1", + "Zi5NZXRob2RPcHRpb25zGK/KvCIgASgLMhouZ29vZ2xlLmFwaS5WaXNpYmls", + "aXR5UnVsZTpWCg5hcGlfdmlzaWJpbGl0eRIfLmdvb2dsZS5wcm90b2J1Zi5T", + "ZXJ2aWNlT3B0aW9ucxivyrwiIAEoCzIaLmdvb2dsZS5hcGkuVmlzaWJpbGl0", + "eVJ1bGVCbgoOY29tLmdvb2dsZS5hcGlCD1Zpc2liaWxpdHlQcm90b1ABWj9n", + "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS92aXNp", + "YmlsaXR5O3Zpc2liaWxpdHn4AQGiAgRHQVBJYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { VisibilityExtensions.EnumVisibility, VisibilityExtensions.ValueVisibility, VisibilityExtensions.FieldVisibility, VisibilityExtensions.MessageVisibility, VisibilityExtensions.MethodVisibility, VisibilityExtensions.ApiVisibility }, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Visibility), global::Google.Api.Visibility.Parser, new[]{ "Rules" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.VisibilityRule), global::Google.Api.VisibilityRule.Parser, new[]{ "Selector", "Restriction" }, null, null, null, null) + })); + } + #endregion + + } + /// Holder for extension identifiers generated from the top level of google/api/visibility.proto + public static partial class VisibilityExtensions { + /// + /// See `VisibilityRule`. + /// + public static readonly pb::Extension EnumVisibility = + new pb::Extension(72295727, pb::FieldCodec.ForMessage(578365818, global::Google.Api.VisibilityRule.Parser)); + /// + /// See `VisibilityRule`. + /// + public static readonly pb::Extension ValueVisibility = + new pb::Extension(72295727, pb::FieldCodec.ForMessage(578365818, global::Google.Api.VisibilityRule.Parser)); + /// + /// See `VisibilityRule`. + /// + public static readonly pb::Extension FieldVisibility = + new pb::Extension(72295727, pb::FieldCodec.ForMessage(578365818, global::Google.Api.VisibilityRule.Parser)); + /// + /// See `VisibilityRule`. + /// + public static readonly pb::Extension MessageVisibility = + new pb::Extension(72295727, pb::FieldCodec.ForMessage(578365818, global::Google.Api.VisibilityRule.Parser)); + /// + /// See `VisibilityRule`. + /// + public static readonly pb::Extension MethodVisibility = + new pb::Extension(72295727, pb::FieldCodec.ForMessage(578365818, global::Google.Api.VisibilityRule.Parser)); + /// + /// See `VisibilityRule`. + /// + public static readonly pb::Extension ApiVisibility = + new pb::Extension(72295727, pb::FieldCodec.ForMessage(578365818, global::Google.Api.VisibilityRule.Parser)); + } + + #region Messages + /// + /// `Visibility` defines restrictions for the visibility of service + /// elements. Restrictions are specified using visibility labels + /// (e.g., PREVIEW) that are elsewhere linked to users and projects. + /// + /// Users and projects can have access to more than one visibility label. The + /// effective visibility for multiple labels is the union of each label's + /// elements, plus any unrestricted elements. + /// + /// If an element and its parents have no restrictions, visibility is + /// unconditionally granted. + /// + /// Example: + /// + /// visibility: + /// rules: + /// - selector: google.calendar.Calendar.EnhancedSearch + /// restriction: PREVIEW + /// - selector: google.calendar.Calendar.Delegate + /// restriction: INTERNAL + /// + /// Here, all methods are publicly visible except for the restricted methods + /// EnhancedSearch and Delegate. + /// + public sealed partial class Visibility : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Visibility()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.VisibilityReflection.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 Visibility() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Visibility(Visibility other) : this() { + rules_ = other.rules_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Visibility Clone() { + return new Visibility(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.VisibilityRule.Parser); + private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); + /// + /// A list of visibility rules that apply to individual API elements. + /// + /// **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_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Visibility); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Visibility other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rules_.Equals(other.rules_)) return 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Visibility other) { + if (other == null) { + return; + } + rules_.Add(other.rules_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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; + } + } + } + } + #endif + + } + + /// + /// A visibility rule provides visibility configuration for an individual API + /// element. + /// + public sealed partial class VisibilityRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VisibilityRule()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::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.VisibilityReflection.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 VisibilityRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VisibilityRule(VisibilityRule other) : this() { + selector_ = other.selector_; + restriction_ = other.restriction_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VisibilityRule Clone() { + return new VisibilityRule(this); + } + + /// Field number for the "selector" field. + public const int SelectorFieldNumber = 1; + private string selector_ = ""; + /// + /// Selects methods, messages, fields, enums, etc. 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 "restriction" field. + public const int RestrictionFieldNumber = 2; + private string restriction_ = ""; + /// + /// A comma-separated list of visibility labels that apply to the `selector`. + /// Any of the listed labels can be used to grant the visibility. + /// + /// If a rule has multiple labels, removing one of the labels but not all of + /// them can break clients. + /// + /// Example: + /// + /// visibility: + /// rules: + /// - selector: google.calendar.Calendar.EnhancedSearch + /// restriction: INTERNAL, PREVIEW + /// + /// Removing INTERNAL from this restriction will break clients that rely on + /// this method and only had access to it through INTERNAL. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Restriction { + get { return restriction_; } + set { + restriction_ = 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 VisibilityRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VisibilityRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Selector != other.Selector) return false; + if (Restriction != other.Restriction) return false; + 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 (Restriction.Length != 0) hash ^= Restriction.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Restriction.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Restriction); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Restriction.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Restriction); + } + if (_unknownFields != 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 (Restriction.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Restriction); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VisibilityRule other) { + if (other == null) { + return; + } + if (other.Selector.Length != 0) { + Selector = other.Selector; + } + if (other.Restriction.Length != 0) { + Restriction = other.Restriction; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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: { + Restriction = 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: { + Restriction = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/gw/Gw.cs b/csharp/protobuf/gw/Gw.cs new file mode 100644 index 00000000..b5f3bdbd --- /dev/null +++ b/csharp/protobuf/gw/Gw.cs @@ -0,0 +1,10036 @@ +// +// 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", + "dXJhdGlvbi5wcm90byKjAQoKTW9kdWxhdGlvbhIsCgRsb3JhGAMgASgLMhYu", + "Z3cuTG9SYU1vZHVsYXRpb25JbmZvSABSBGxvUmESJAoDZnNrGAQgASgLMhUu", + "Z3cuRlNLTW9kdWxhdGlvbkluZm9IABIzCgdscl9maHNzGAUgASgLMhguZ3cu", + "TFJGSFNTTW9kdWxhdGlvbkluZm9IAFIGbHJGSFNTQgwKCnBhcmFtZXRlcnMi", + "sQIKDFVwbGlua1RYSW5mbxIRCglmcmVxdWVuY3kYASABKA0SJgoKbW9kdWxh", + "dGlvbhgCIAEoDjISLmNvbW1vbi5Nb2R1bGF0aW9uEkoKFGxvcmFfbW9kdWxh", + "dGlvbl9pbmZvGAMgASgLMhYuZ3cuTG9SYU1vZHVsYXRpb25JbmZvSABSEmxv", + "UmFNb2R1bGF0aW9uSW5mbxI0ChNmc2tfbW9kdWxhdGlvbl9pbmZvGAQgASgL", + "MhUuZ3cuRlNLTW9kdWxhdGlvbkluZm9IABJRChdscl9maHNzX21vZHVsYXRp", + "b25faW5mbxgFIAEoCzIYLmd3LkxSRkhTU01vZHVsYXRpb25JbmZvSABSFGxy", + "RkhTU01vZHVsYXRpb25JbmZvQhEKD21vZHVsYXRpb25faW5mbyJ0ChJMb1Jh", + "TW9kdWxhdGlvbkluZm8SEQoJYmFuZHdpZHRoGAEgASgNEhgKEHNwcmVhZGlu", + "Z19mYWN0b3IYAiABKA0SEQoJY29kZV9yYXRlGAMgASgJEh4KFnBvbGFyaXph", + "dGlvbl9pbnZlcnNpb24YBCABKAgiQgoRRlNLTW9kdWxhdGlvbkluZm8SGwoT", + "ZnJlcXVlbmN5X2RldmlhdGlvbhgBIAEoDRIQCghkYXRhcmF0ZRgCIAEoDSJe", + "ChRMUkZIU1NNb2R1bGF0aW9uSW5mbxIfChdvcGVyYXRpbmdfY2hhbm5lbF93", + "aWR0aBgBIAEoDRIRCgljb2RlX3JhdGUYAiABKAkSEgoKZ3JpZF9zdGVwcxgD", + "IAEoDSJrChZFbmNyeXB0ZWRGaW5lVGltZXN0YW1wEhUKDWFlc19rZXlfaW5k", + "ZXgYASABKA0SIQoMZW5jcnlwdGVkX25zGAIgASgMUgtlbmNyeXB0ZWROUxIX", + "CgdmcGdhX2lkGAMgASgMUgZmcGdhSUQiPgoSUGxhaW5GaW5lVGltZXN0YW1w", + "EigKBHRpbWUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIr0H", + "CgxHYXRld2F5U3RhdHMSHQoKZ2F0ZXdheV9pZBgBIAEoDFIJZ2F0ZXdheUlE", + "EgoKAmlwGAkgASgJEigKBHRpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wEiIKCGxvY2F0aW9uGAMgASgLMhAuY29tbW9uLkxvY2F0aW9u", + "EhYKDmNvbmZpZ192ZXJzaW9uGAQgASgJEhsKE3J4X3BhY2tldHNfcmVjZWl2", + "ZWQYBSABKA0SMwoWcnhfcGFja2V0c19yZWNlaXZlZF9vaxgGIAEoDVITcnhQ", + "YWNrZXRzUmVjZWl2ZWRPSxIbChN0eF9wYWNrZXRzX3JlY2VpdmVkGAcgASgN", + "EhoKEnR4X3BhY2tldHNfZW1pdHRlZBgIIAEoDRIxCgltZXRhX2RhdGEYCiAD", + "KAsyHi5ndy5HYXRld2F5U3RhdHMuTWV0YURhdGFFbnRyeRIZCghzdGF0c19p", + "ZBgLIAEoDFIHc3RhdHNJRBJNChh0eF9wYWNrZXRzX3Blcl9mcmVxdWVuY3kY", + "DCADKAsyKy5ndy5HYXRld2F5U3RhdHMuVHhQYWNrZXRzUGVyRnJlcXVlbmN5", + "RW50cnkSTQoYcnhfcGFja2V0c19wZXJfZnJlcXVlbmN5GA0gAygLMisuZ3cu", + "R2F0ZXdheVN0YXRzLlJ4UGFja2V0c1BlckZyZXF1ZW5jeUVudHJ5EjkKGXR4", + "X3BhY2tldHNfcGVyX21vZHVsYXRpb24YDiADKAsyFi5ndy5QZXJNb2R1bGF0", + "aW9uQ291bnQSOQoZcnhfcGFja2V0c19wZXJfbW9kdWxhdGlvbhgPIAMoCzIW", + "Lmd3LlBlck1vZHVsYXRpb25Db3VudBJHChV0eF9wYWNrZXRzX3Blcl9zdGF0", + "dXMYECADKAsyKC5ndy5HYXRld2F5U3RhdHMuVHhQYWNrZXRzUGVyU3RhdHVz", + "RW50cnkaLwoNTWV0YURhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY", + "AiABKAk6AjgBGjwKGlR4UGFja2V0c1BlckZyZXF1ZW5jeUVudHJ5EgsKA2tl", + "eRgBIAEoDRINCgV2YWx1ZRgCIAEoDToCOAEaPAoaUnhQYWNrZXRzUGVyRnJl", + "cXVlbmN5RW50cnkSCwoDa2V5GAEgASgNEg0KBXZhbHVlGAIgASgNOgI4ARo5", + "ChdUeFBhY2tldHNQZXJTdGF0dXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFs", + "dWUYAiABKA06AjgBIkcKElBlck1vZHVsYXRpb25Db3VudBIiCgptb2R1bGF0", + "aW9uGAEgASgLMg4uZ3cuTW9kdWxhdGlvbhINCgVjb3VudBgCIAEoDSLNBAoM", + "VXBsaW5rUlhJbmZvEh0KCmdhdGV3YXlfaWQYASABKAxSCWdhdGV3YXlJRBIo", + "CgR0aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBJKChR0", + "aW1lX3NpbmNlX2dwc19lcG9jaBgDIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5E", + "dXJhdGlvblIRdGltZVNpbmNlR1BTRXBvY2gSDAoEcnNzaRgFIAEoBRIZCghs", + "b3JhX3NuchgGIAEoAVIHbG9SYVNOUhIPCgdjaGFubmVsGAcgASgNEhAKCHJm", + "X2NoYWluGAggASgNEg0KBWJvYXJkGAkgASgNEg8KB2FudGVubmEYCiABKA0S", + "IgoIbG9jYXRpb24YCyABKAsyEC5jb21tb24uTG9jYXRpb24SMgoTZmluZV90", + "aW1lc3RhbXBfdHlwZRgMIAEoDjIVLmd3LkZpbmVUaW1lc3RhbXBUeXBlEj4K", + "GGVuY3J5cHRlZF9maW5lX3RpbWVzdGFtcBgNIAEoCzIaLmd3LkVuY3J5cHRl", + "ZEZpbmVUaW1lc3RhbXBIABI2ChRwbGFpbl9maW5lX3RpbWVzdGFtcBgOIAEo", + "CzIWLmd3LlBsYWluRmluZVRpbWVzdGFtcEgAEg8KB2NvbnRleHQYDyABKAwS", + "GwoJdXBsaW5rX2lkGBAgASgMUgh1cGxpbmtJRBIsCgpjcmNfc3RhdHVzGBEg", + "ASgOMg0uZ3cuQ1JDU3RhdHVzUgljcmNTdGF0dXNCEAoOZmluZV90aW1lc3Rh", + "bXAimwQKDkRvd25saW5rVFhJbmZvEh0KCmdhdGV3YXlfaWQYASABKAxSCWdh", + "dGV3YXlJRBIRCglmcmVxdWVuY3kYBSABKA0SDQoFcG93ZXIYBiABKAUSJgoK", + "bW9kdWxhdGlvbhgHIAEoDjISLmNvbW1vbi5Nb2R1bGF0aW9uEkoKFGxvcmFf", + "bW9kdWxhdGlvbl9pbmZvGAggASgLMhYuZ3cuTG9SYU1vZHVsYXRpb25JbmZv", + "SABSEmxvUmFNb2R1bGF0aW9uSW5mbxI0ChNmc2tfbW9kdWxhdGlvbl9pbmZv", + "GAkgASgLMhUuZ3cuRlNLTW9kdWxhdGlvbkluZm9IABINCgVib2FyZBgKIAEo", + "DRIPCgdhbnRlbm5hGAsgASgNEiIKBnRpbWluZxgMIAEoDjISLmd3LkRvd25s", + "aW5rVGltaW5nEjwKF2ltbWVkaWF0ZWx5X3RpbWluZ19pbmZvGA0gASgLMhku", + "Z3cuSW1tZWRpYXRlbHlUaW1pbmdJbmZvSAESMAoRZGVsYXlfdGltaW5nX2lu", + "Zm8YDiABKAsyEy5ndy5EZWxheVRpbWluZ0luZm9IARI3ChVncHNfZXBvY2hf", + "dGltaW5nX2luZm8YDyABKAsyFi5ndy5HUFNFcG9jaFRpbWluZ0luZm9IARIP", + "Cgdjb250ZXh0GBAgASgMQhEKD21vZHVsYXRpb25faW5mb0INCgt0aW1pbmdf", + "aW5mbyIXChVJbW1lZGlhdGVseVRpbWluZ0luZm8iOwoPRGVsYXlUaW1pbmdJ", + "bmZvEigKBWRlbGF5GAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9u", + "ImAKEkdQU0Vwb2NoVGltaW5nSW5mbxJKChR0aW1lX3NpbmNlX2dwc19lcG9j", + "aBgBIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIRdGltZVNpbmNl", + "R1BTRXBvY2giaAoLVXBsaW5rRnJhbWUSEwoLcGh5X3BheWxvYWQYASABKAwS", + "IQoHdHhfaW5mbxgCIAEoCzIQLmd3LlVwbGlua1RYSW5mbxIhCgdyeF9pbmZv", + "GAMgASgLMhAuZ3cuVXBsaW5rUlhJbmZvImsKDlVwbGlua0ZyYW1lU2V0EhMK", + "C3BoeV9wYXlsb2FkGAEgASgMEiEKB3R4X2luZm8YAiABKAsyEC5ndy5VcGxp", + "bmtUWEluZm8SIQoHcnhfaW5mbxgDIAMoCzIQLmd3LlVwbGlua1JYSW5mbyK+", + "AQoNRG93bmxpbmtGcmFtZRITCgtwaHlfcGF5bG9hZBgBIAEoDBIjCgd0eF9p", + "bmZvGAIgASgLMhIuZ3cuRG93bmxpbmtUWEluZm8SDQoFdG9rZW4YAyABKA0S", + "HwoLZG93bmxpbmtfaWQYBCABKAxSCmRvd25saW5rSUQSJAoFaXRlbXMYBSAD", + "KAsyFS5ndy5Eb3dubGlua0ZyYW1lSXRlbRIdCgpnYXRld2F5X2lkGAYgASgM", + "UglnYXRld2F5SUQiTQoRRG93bmxpbmtGcmFtZUl0ZW0SEwoLcGh5X3BheWxv", + "YWQYASABKAwSIwoHdHhfaW5mbxgCIAEoCzISLmd3LkRvd25saW5rVFhJbmZv", + "IpMBCg1Eb3dubGlua1RYQWNrEh0KCmdhdGV3YXlfaWQYASABKAxSCWdhdGV3", + "YXlJRBINCgV0b2tlbhgCIAEoDRINCgVlcnJvchgDIAEoCRIfCgtkb3dubGlu", + "a19pZBgEIAEoDFIKZG93bmxpbmtJRBIkCgVpdGVtcxgFIAMoCzIVLmd3LkRv", + "d25saW5rVFhBY2tJdGVtIjQKEURvd25saW5rVFhBY2tJdGVtEh8KBnN0YXR1", + "cxgBIAEoDjIPLmd3LlR4QWNrU3RhdHVzIqUBChRHYXRld2F5Q29uZmlndXJh", + "dGlvbhIdCgpnYXRld2F5X2lkGAEgASgMUglnYXRld2F5SUQSDwoHdmVyc2lv", + "bhgCIAEoCRIqCghjaGFubmVscxgDIAMoCzIYLmd3LkNoYW5uZWxDb25maWd1", + "cmF0aW9uEjEKDnN0YXRzX2ludGVydmFsGAQgASgLMhkuZ29vZ2xlLnByb3Rv", + "YnVmLkR1cmF0aW9uIpYCChRDaGFubmVsQ29uZmlndXJhdGlvbhIRCglmcmVx", + "dWVuY3kYASABKA0SJgoKbW9kdWxhdGlvbhgCIAEoDjISLmNvbW1vbi5Nb2R1", + "bGF0aW9uElAKFmxvcmFfbW9kdWxhdGlvbl9jb25maWcYAyABKAsyGC5ndy5M", + "b1JhTW9kdWxhdGlvbkNvbmZpZ0gAUhRsb1JhTW9kdWxhdGlvbkNvbmZpZxI4", + "ChVmc2tfbW9kdWxhdGlvbl9jb25maWcYBCABKAsyFy5ndy5GU0tNb2R1bGF0", + "aW9uQ29uZmlnSAASDQoFYm9hcmQYBSABKA0SEwoLZGVtb2R1bGF0b3IYBiAB", + "KA1CEwoRbW9kdWxhdGlvbl9jb25maWciRAoUTG9SYU1vZHVsYXRpb25Db25m", + "aWcSEQoJYmFuZHdpZHRoGAEgASgNEhkKEXNwcmVhZGluZ19mYWN0b3JzGAIg", + "AygNIjkKE0ZTS01vZHVsYXRpb25Db25maWcSEQoJYmFuZHdpZHRoGAEgASgN", + "Eg8KB2JpdHJhdGUYAiABKA0i6wEKGUdhdGV3YXlDb21tYW5kRXhlY1JlcXVl", + "c3QSHQoKZ2F0ZXdheV9pZBgBIAEoDFIJZ2F0ZXdheUlEEg8KB2NvbW1hbmQY", + "AiABKAkSFgoGRXhlY0lkGAMgASgMUgZleGVjSUQSDQoFc3RkaW4YBCABKAwS", + "QwoLZW52aXJvbm1lbnQYBSADKAsyLi5ndy5HYXRld2F5Q29tbWFuZEV4ZWNS", + "ZXF1ZXN0LkVudmlyb25tZW50RW50cnkaMgoQRW52aXJvbm1lbnRFbnRyeRIL", + "CgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIoMBChpHYXRld2F5Q29t", + "bWFuZEV4ZWNSZXNwb25zZRIdCgpnYXRld2F5X2lkGAEgASgMUglnYXRld2F5", + "SUQSFwoHZXhlY19pZBgCIAEoDFIGZXhlY0lEEg4KBnN0ZG91dBgDIAEoDBIO", + "CgZzdGRlcnIYBCABKAwSDQoFZXJyb3IYBSABKAkiYAoXUmF3UGFja2V0Rm9y", + "d2FyZGVyRXZlbnQSHQoKZ2F0ZXdheV9pZBgBIAEoDFIJZ2F0ZXdheUlEEhUK", + "BnJhd19pZBgCIAEoDFIFcmF3SUQSDwoHcGF5bG9hZBgDIAEoDCJiChlSYXdQ", + "YWNrZXRGb3J3YXJkZXJDb21tYW5kEh0KCmdhdGV3YXlfaWQYASABKAxSCWdh", + "dGV3YXlJRBIVCgZyYXdfaWQYAiABKAxSBXJhd0lEEg8KB3BheWxvYWQYAyAB", + "KAwicAoJQ29ublN0YXRlEh0KCmdhdGV3YXlfaWQYASABKAxSCWdhdGV3YXlJ", + "RBIiCgVzdGF0ZRgCIAEoDjITLmd3LkNvbm5TdGF0ZS5TdGF0ZSIgCgVTdGF0", + "ZRILCgdPRkZMSU5FEAASCgoGT05MSU5FEAEqOwoORG93bmxpbmtUaW1pbmcS", + "DwoLSU1NRURJQVRFTFkQABIJCgVERUxBWRABEg0KCUdQU19FUE9DSBACKjcK", + "EUZpbmVUaW1lc3RhbXBUeXBlEggKBE5PTkUQABINCglFTkNSWVBURUQQARIJ", + "CgVQTEFJThACKjAKCUNSQ1N0YXR1cxIKCgZOT19DUkMQABILCgdCQURfQ1JD", + "EAESCgoGQ1JDX09LEAIqvAEKC1R4QWNrU3RhdHVzEgsKB0lHTk9SRUQQABIG", + "CgJPSxABEgwKCFRPT19MQVRFEAISDQoJVE9PX0VBUkxZEAMSFAoQQ09MTElT", + "SU9OX1BBQ0tFVBAEEhQKEENPTExJU0lPTl9CRUFDT04QBRILCgdUWF9GUkVR", + "EAYSDAoIVFhfUE9XRVIQBxIQCgxHUFNfVU5MT0NLRUQQCBIOCgpRVUVVRV9G", + "VUxMEAkSEgoOSU5URVJOQUxfRVJST1IQCkJnChRpby5jaGlycHN0YWNrLmFw", + "aS5nd0IMR2F0ZXdheVByb3RvUAFaKmdpdGh1Yi5jb20vYnJvY2Fhci9jaGly", + "cHN0YWNrLWFwaS9nby92My9nd6oCEkNoaXJwc3RhY2suR2F0ZXdheWIGcHJv", + "dG8z")); + 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, }, + new pbr::GeneratedClrTypeInfo(new[] {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.UplinkTXInfo), global::Chirpstack.Gateway.UplinkTXInfo.Parser, new[]{ "Frequency", "Modulation", "LoraModulationInfo", "FskModulationInfo", "LrFhssModulationInfo" }, new[]{ "ModulationInfo" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.LoRaModulationInfo), global::Chirpstack.Gateway.LoRaModulationInfo.Parser, new[]{ "Bandwidth", "SpreadingFactor", "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", "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[]{ "GatewayId", "Ip", "Time", "Location", "ConfigVersion", "RxPacketsReceived", "RxPacketsReceivedOk", "TxPacketsReceived", "TxPacketsEmitted", "MetaData", "StatsId", "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.UplinkRXInfo), global::Chirpstack.Gateway.UplinkRXInfo.Parser, new[]{ "GatewayId", "Time", "TimeSinceGpsEpoch", "Rssi", "LoraSnr", "Channel", "RfChain", "Board", "Antenna", "Location", "FineTimestampType", "EncryptedFineTimestamp", "PlainFineTimestamp", "Context", "UplinkId", "CrcStatus" }, new[]{ "FineTimestamp" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkTXInfo), global::Chirpstack.Gateway.DownlinkTXInfo.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.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", "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[]{ "PhyPayload", "TxInfo", "Token", "DownlinkId", "Items", "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkFrameItem), global::Chirpstack.Gateway.DownlinkFrameItem.Parser, new[]{ "PhyPayload", "TxInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkTXAck), global::Chirpstack.Gateway.DownlinkTXAck.Parser, new[]{ "GatewayId", "Token", "Error", "DownlinkId", "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[]{ "GatewayId", "Version", "Channels", "StatsInterval" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.ChannelConfiguration), global::Chirpstack.Gateway.ChannelConfiguration.Parser, new[]{ "Frequency", "Modulation", "LoraModulationConfig", "FskModulationConfig", "Board", "Demodulator" }, new[]{ "ModulationConfig" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.LoRaModulationConfig), global::Chirpstack.Gateway.LoRaModulationConfig.Parser, new[]{ "Bandwidth", "SpreadingFactors" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.FSKModulationConfig), global::Chirpstack.Gateway.FSKModulationConfig.Parser, new[]{ "Bandwidth", "Bitrate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.GatewayCommandExecRequest), global::Chirpstack.Gateway.GatewayCommandExecRequest.Parser, new[]{ "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[]{ "GatewayId", "ExecId", "Stdout", "Stderr", "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.RawPacketForwarderEvent), global::Chirpstack.Gateway.RawPacketForwarderEvent.Parser, new[]{ "GatewayId", "RawId", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.RawPacketForwarderCommand), global::Chirpstack.Gateway.RawPacketForwarderCommand.Parser, new[]{ "GatewayId", "RawId", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.ConnState), global::Chirpstack.Gateway.ConnState.Parser, new[]{ "GatewayId", "State" }, null, new[]{ typeof(global::Chirpstack.Gateway.ConnState.Types.State) }, null, null) + })); + } + #endregion + + } + #region Enums + 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 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[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 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_; + 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 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.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 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 (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(UplinkTXInfo 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 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[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 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_; + 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" field. + public const int CodeRateFieldNumber = 3; + private string codeRate_ = ""; + /// + /// Code-rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CodeRate { + get { return codeRate_; } + set { + codeRate_ = pb::ProtoPreconditions.CheckNotNull(value, "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 (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 (CodeRate.Length != 0) 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 (CodeRate.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CodeRate); + } + if (PolarizationInversion != false) { + output.WriteRawTag(32); + output.WriteBool(PolarizationInversion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (CodeRate.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CodeRate); + } + if (PolarizationInversion != false) { + output.WriteRawTag(32); + output.WriteBool(PolarizationInversion); + } + if (_unknownFields != 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 (CodeRate.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(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.CodeRate.Length != 0) { + 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: { + CodeRate = input.ReadString(); + break; + } + case 32: { + PolarizationInversion = 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 8: { + Bandwidth = input.ReadUInt32(); + break; + } + case 16: { + SpreadingFactor = input.ReadUInt32(); + break; + } + case 26: { + CodeRate = input.ReadString(); + break; + } + case 32: { + PolarizationInversion = input.ReadBool(); + 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[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 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[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 LRFHSSModulationInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LRFHSSModulationInfo(LRFHSSModulationInfo other) : this() { + operatingChannelWidth_ = other.operatingChannelWidth_; + 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" field. + public const int CodeRateFieldNumber = 2; + private string codeRate_ = ""; + /// + /// Code-rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CodeRate { + get { return codeRate_; } + set { + codeRate_ = pb::ProtoPreconditions.CheckNotNull(value, "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 (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 (CodeRate.Length != 0) 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 (CodeRate.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CodeRate); + } + if (GridSteps != 0) { + output.WriteRawTag(24); + output.WriteUInt32(GridSteps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (CodeRate.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CodeRate); + } + if (GridSteps != 0) { + output.WriteRawTag(24); + output.WriteUInt32(GridSteps); + } + if (_unknownFields != 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 (CodeRate.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(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.CodeRate.Length != 0) { + 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: { + CodeRate = input.ReadString(); + break; + } + case 24: { + GridSteps = 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: { + OperatingChannelWidth = input.ReadUInt32(); + break; + } + case 18: { + CodeRate = input.ReadString(); + break; + } + case 24: { + GridSteps = input.ReadUInt32(); + 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[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 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[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 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[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 GatewayStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayStats(GatewayStats other) : this() { + gatewayId_ = other.gatewayId_; + ip_ = other.ip_; + 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(); + statsId_ = other.statsId_; + 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" 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 "ip" field. + public const int IpFieldNumber = 9; + private string ip_ = ""; + /// + /// Gateway IP. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ip { + get { return ip_; } + set { + ip_ = 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 LoRa Server 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 "meta_data" 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 "stats_id" field. + public const int StatsIdFieldNumber = 11; + private pb::ByteString statsId_ = pb::ByteString.Empty; + /// + /// Stats ID (UUID). + /// Unique identifier for the gateway stats. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString StatsId { + get { return statsId_; } + set { + statsId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// 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 (GatewayId != other.GatewayId) return false; + if (Ip != other.Ip) 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 (StatsId != other.StatsId) 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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (Ip.Length != 0) hash ^= Ip.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(); + if (StatsId.Length != 0) hash ^= StatsId.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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + 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); + } + if (Ip.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Ip); + } + metaData_.WriteTo(output, _map_metaData_codec); + if (StatsId.Length != 0) { + output.WriteRawTag(90); + output.WriteBytes(StatsId); + } + 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 (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (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); + } + if (Ip.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Ip); + } + metaData_.WriteTo(ref output, _map_metaData_codec); + if (StatsId.Length != 0) { + output.WriteRawTag(90); + output.WriteBytes(StatsId); + } + 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 (_unknownFields != 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 (Ip.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Ip); + } + 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); + if (StatsId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(StatsId); + } + 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.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Ip.Length != 0) { + Ip = other.Ip; + } + 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_); + if (other.StatsId.Length != 0) { + StatsId = other.StatsId; + } + 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: { + GatewayId = 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 74: { + Ip = input.ReadString(); + break; + } + case 82: { + metaData_.AddEntriesFrom(input, _map_metaData_codec); + break; + } + case 90: { + StatsId = input.ReadBytes(); + 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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (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 74: { + Ip = input.ReadString(); + break; + } + case 82: { + metaData_.AddEntriesFrom(ref input, _map_metaData_codec); + break; + } + case 90: { + StatsId = input.ReadBytes(); + 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; + } + } + } + } + #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[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 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 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[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 UplinkRXInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkRXInfo(UplinkRXInfo 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_; + 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 UplinkRXInfo Clone() { + return new UplinkRXInfo(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; + } + } + + 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 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 (!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 (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 ^= (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); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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); + } + if (_unknownFields != 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); + } + 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.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; + } + 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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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; + } + } + } + } + #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[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 DownlinkTXInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkTXInfo(DownlinkTXInfo 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 DownlinkTXInfo Clone() { + return new DownlinkTXInfo(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 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 (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(DownlinkTXInfo 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 + + } + + /// + /// 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[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 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[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 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[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 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[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 UplinkFrame() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UplinkFrame(UplinkFrame other) : this() { + phyPayload_ = other.phyPayload_; + 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" 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 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(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 (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 (txInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfo); + } + if (rxInfo_ != null) { + output.WriteRawTag(26); + 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 (txInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfo); + } + if (rxInfo_ != null) { + output.WriteRawTag(26); + 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 (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.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 (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 26: { + 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 (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.UplinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 26: { + 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[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 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[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 DownlinkFrame() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkFrame(DownlinkFrame other) : this() { + phyPayload_ = other.phyPayload_; + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + token_ = other.token_; + downlinkId_ = other.downlinkId_; + items_ = other.items_.Clone(); + 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 "phy_payload" field. + public const int PhyPayloadFieldNumber = 1; + private pb::ByteString phyPayload_ = pb::ByteString.Empty; + /// + /// PHYPayload. + /// Deprecated: replaced by items. + /// + [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.DownlinkTXInfo txInfo_; + /// + /// TX meta-data. + /// Deprecated: replaced by items. + /// + [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 "token" field. + public const int TokenFieldNumber = 3; + private uint token_; + /// + /// Token (uint16 value). + /// Deprecated: replaced by downlink_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Token { + get { return token_; } + set { + token_ = value; + } + } + + /// Field number for the "downlink_id" field. + public const int DownlinkIdFieldNumber = 4; + private pb::ByteString downlinkId_ = pb::ByteString.Empty; + /// + /// Downlink ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DownlinkId { + get { return downlinkId_; } + set { + downlinkId_ = 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" field. + public const int GatewayIdFieldNumber = 6; + 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"); + } + } + + [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 (PhyPayload != other.PhyPayload) return false; + if (!object.Equals(TxInfo, other.TxInfo)) return false; + if (Token != other.Token) return false; + if (DownlinkId != other.DownlinkId) return false; + if(!items_.Equals(other.items_)) 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 (PhyPayload.Length != 0) hash ^= PhyPayload.GetHashCode(); + if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); + if (Token != 0) hash ^= Token.GetHashCode(); + if (DownlinkId.Length != 0) hash ^= DownlinkId.GetHashCode(); + hash ^= items_.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 (PhyPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(PhyPayload); + } + if (txInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfo); + } + if (Token != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Token); + } + if (DownlinkId.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DownlinkId); + } + items_.WriteTo(output, _repeated_items_codec); + if (GatewayId.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(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 (PhyPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(PhyPayload); + } + if (txInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TxInfo); + } + if (Token != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Token); + } + if (DownlinkId.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DownlinkId); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (GatewayId.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(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 (PhyPayload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(PhyPayload); + } + if (txInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); + } + if (Token != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Token); + } + if (DownlinkId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DownlinkId); + } + size += items_.CalculateSize(_repeated_items_codec); + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(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.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.Token != 0) { + Token = other.Token; + } + if (other.DownlinkId.Length != 0) { + DownlinkId = other.DownlinkId; + } + items_.Add(other.items_); + 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: { + PhyPayload = input.ReadBytes(); + break; + } + case 18: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 24: { + Token = input.ReadUInt32(); + break; + } + case 34: { + DownlinkId = input.ReadBytes(); + break; + } + case 42: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + case 50: { + GatewayId = 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: { + PhyPayload = input.ReadBytes(); + break; + } + case 18: { + if (txInfo_ == null) { + TxInfo = new global::Chirpstack.Gateway.DownlinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 24: { + Token = input.ReadUInt32(); + break; + } + case 34: { + DownlinkId = input.ReadBytes(); + break; + } + case 42: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + case 50: { + GatewayId = input.ReadBytes(); + 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[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 DownlinkFrameItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkFrameItem(DownlinkFrameItem other) : this() { + phyPayload_ = other.phyPayload_; + 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" field. + public const int TxInfoFieldNumber = 2; + 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(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 (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 (txInfo_ != null) { + output.WriteRawTag(18); + 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 (txInfo_ != null) { + output.WriteRawTag(18); + 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 (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.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 (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 (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[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 DownlinkTXAck() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkTXAck(DownlinkTXAck other) : this() { + gatewayId_ = other.gatewayId_; + token_ = other.token_; + error_ = other.error_; + downlinkId_ = other.downlinkId_; + 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" 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 "token" field. + public const int TokenFieldNumber = 2; + private uint token_; + /// + /// Token (uint16 value). + /// Deprecated: replaced by downlink_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Token { + get { return token_; } + set { + token_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 3; + private string error_ = ""; + /// + /// Error. + /// Deprecated: replaced by items. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Error { + get { return error_; } + set { + error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "downlink_id" field. + public const int DownlinkIdFieldNumber = 4; + private pb::ByteString downlinkId_ = pb::ByteString.Empty; + /// + /// Downlink ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DownlinkId { + get { return downlinkId_; } + set { + downlinkId_ = 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 (GatewayId != other.GatewayId) return false; + if (Token != other.Token) return false; + if (Error != other.Error) return false; + if (DownlinkId != other.DownlinkId) 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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (Token != 0) hash ^= Token.GetHashCode(); + if (Error.Length != 0) hash ^= Error.GetHashCode(); + if (DownlinkId.Length != 0) hash ^= DownlinkId.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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (Token != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Token); + } + if (Error.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Error); + } + if (DownlinkId.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DownlinkId); + } + 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) { + if (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (Token != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Token); + } + if (Error.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Error); + } + if (DownlinkId.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DownlinkId); + } + 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; + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayId); + } + if (Token != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Token); + } + if (Error.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } + if (DownlinkId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DownlinkId); + } + 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.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Token != 0) { + Token = other.Token; + } + if (other.Error.Length != 0) { + Error = other.Error; + } + if (other.DownlinkId.Length != 0) { + DownlinkId = other.DownlinkId; + } + 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: { + GatewayId = input.ReadBytes(); + break; + } + case 16: { + Token = input.ReadUInt32(); + break; + } + case 26: { + Error = input.ReadString(); + break; + } + case 34: { + DownlinkId = input.ReadBytes(); + break; + } + case 42: { + 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: { + GatewayId = input.ReadBytes(); + break; + } + case 16: { + Token = input.ReadUInt32(); + break; + } + case 26: { + Error = input.ReadString(); + break; + } + case 34: { + DownlinkId = input.ReadBytes(); + break; + } + case 42: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + 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[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 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[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 GatewayConfiguration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayConfiguration(GatewayConfiguration other) : this() { + 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" 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 "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 (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 (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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + 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 (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (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 (_unknownFields != 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 (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.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: { + GatewayId = 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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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: { + 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; + } + } + } + } + #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[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 ChannelConfiguration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChannelConfiguration(ChannelConfiguration other) : this() { + frequency_ = other.frequency_; + modulation_ = other.modulation_; + 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" field. + public const int ModulationFieldNumber = 2; + private global::Chirpstack.Common.Modulation modulation_ = global::Chirpstack.Common.Modulation.Lora; + /// + /// Channel 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_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 (Modulation != other.Modulation) 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 (Modulation != global::Chirpstack.Common.Modulation.Lora) hash ^= Modulation.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 (Modulation != global::Chirpstack.Common.Modulation.Lora) { + output.WriteRawTag(16); + output.WriteEnum((int) Modulation); + } + 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 (Modulation != global::Chirpstack.Common.Modulation.Lora) { + output.WriteRawTag(16); + output.WriteEnum((int) Modulation); + } + 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 (Modulation != global::Chirpstack.Common.Modulation.Lora) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Modulation); + } + 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.Modulation != global::Chirpstack.Common.Modulation.Lora) { + Modulation = other.Modulation; + } + 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: { + Modulation = (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: { + Modulation = (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[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 LoRaModulationConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoRaModulationConfig(LoRaModulationConfig other) : this() { + 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" 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_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 (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 (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 (Bandwidth != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Bandwidth); + } + spreadingFactors_.WriteTo(output, _repeated_spreadingFactors_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 (Bandwidth != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Bandwidth); + } + spreadingFactors_.WriteTo(ref output, _repeated_spreadingFactors_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 (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.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: { + Bandwidth = input.ReadUInt32(); + break; + } + case 18: + case 16: { + spreadingFactors_.AddEntriesFrom(input, _repeated_spreadingFactors_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: { + Bandwidth = input.ReadUInt32(); + break; + } + case 18: + case 16: { + spreadingFactors_.AddEntriesFrom(ref input, _repeated_spreadingFactors_codec); + 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[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 FSKModulationConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FSKModulationConfig(FSKModulationConfig other) : this() { + 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" 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 "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 (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 (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 (Bandwidth != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Bandwidth); + } + if (Bitrate != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Bitrate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Bitrate != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Bitrate); + } + if (_unknownFields != 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 (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.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: { + Bandwidth = input.ReadUInt32(); + break; + } + case 16: { + Bitrate = 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: { + Bandwidth = input.ReadUInt32(); + break; + } + case 16: { + Bitrate = 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[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 GatewayCommandExecRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayCommandExecRequest(GatewayCommandExecRequest other) : this() { + 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" 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 "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 "ExecId" field. + public const int ExecIdFieldNumber = 3; + private pb::ByteString execId_ = pb::ByteString.Empty; + /// + /// Execution request ID (UUID). + /// The same token will be returned when the execution of the command has + /// completed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString ExecId { + get { return execId_; } + set { + execId_ = pb::ProtoPreconditions.CheckNotNull(value, "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 (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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (Command.Length != 0) hash ^= Command.GetHashCode(); + if (ExecId.Length != 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (Command.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Command); + } + if (ExecId.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(ExecId); + } + if (Stdin.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(Stdin); + } + environment_.WriteTo(output, _map_environment_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 (Command.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Command); + } + if (ExecId.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(ExecId); + } + if (Stdin.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(Stdin); + } + environment_.WriteTo(ref output, _map_environment_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 (Command.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Command); + } + if (ExecId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(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.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Command.Length != 0) { + Command = other.Command; + } + if (other.ExecId.Length != 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: { + GatewayId = input.ReadBytes(); + break; + } + case 18: { + Command = input.ReadString(); + break; + } + case 26: { + ExecId = input.ReadBytes(); + break; + } + case 34: { + Stdin = input.ReadBytes(); + break; + } + case 42: { + environment_.AddEntriesFrom(input, _map_environment_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: { + Command = input.ReadString(); + break; + } + case 26: { + ExecId = input.ReadBytes(); + break; + } + case 34: { + Stdin = input.ReadBytes(); + break; + } + case 42: { + environment_.AddEntriesFrom(ref input, _map_environment_codec); + 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[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 GatewayCommandExecResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayCommandExecResponse(GatewayCommandExecResponse other) : this() { + 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" 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 "exec_id" field. + public const int ExecIdFieldNumber = 2; + private pb::ByteString execId_ = pb::ByteString.Empty; + /// + /// Execution request ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString ExecId { + get { return execId_; } + set { + execId_ = pb::ProtoPreconditions.CheckNotNull(value, "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 (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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (ExecId.Length != 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (ExecId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(ExecId); + } + 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 (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (ExecId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(ExecId); + } + 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 (_unknownFields != 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 (ExecId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(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.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.ExecId.Length != 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: { + GatewayId = input.ReadBytes(); + break; + } + case 18: { + ExecId = input.ReadBytes(); + break; + } + case 26: { + Stdout = input.ReadBytes(); + break; + } + case 34: { + Stderr = input.ReadBytes(); + break; + } + case 42: { + Error = 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.ReadBytes(); + break; + } + case 18: { + ExecId = input.ReadBytes(); + break; + } + case 26: { + Stdout = input.ReadBytes(); + break; + } + case 34: { + Stderr = input.ReadBytes(); + break; + } + case 42: { + Error = input.ReadString(); + 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[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 RawPacketForwarderEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RawPacketForwarderEvent(RawPacketForwarderEvent other) : this() { + gatewayId_ = other.gatewayId_; + rawId_ = other.rawId_; + 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" 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 "raw_id" field. + public const int RawIdFieldNumber = 2; + private pb::ByteString rawId_ = pb::ByteString.Empty; + /// + /// Raw ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString RawId { + get { return rawId_; } + set { + rawId_ = 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 (GatewayId != other.GatewayId) return false; + if (RawId != other.RawId) 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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (RawId.Length != 0) hash ^= RawId.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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (RawId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(RawId); + } + if (Payload.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (RawId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(RawId); + } + if (Payload.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Payload); + } + if (_unknownFields != 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 (RawId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(RawId); + } + 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.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.RawId.Length != 0) { + RawId = other.RawId; + } + 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: { + GatewayId = input.ReadBytes(); + break; + } + case 18: { + RawId = input.ReadBytes(); + break; + } + case 26: { + Payload = 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 18: { + RawId = input.ReadBytes(); + break; + } + case 26: { + Payload = input.ReadBytes(); + 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[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 RawPacketForwarderCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RawPacketForwarderCommand(RawPacketForwarderCommand other) : this() { + gatewayId_ = other.gatewayId_; + rawId_ = other.rawId_; + 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" 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 "raw_id" field. + public const int RawIdFieldNumber = 2; + private pb::ByteString rawId_ = pb::ByteString.Empty; + /// + /// Raw ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString RawId { + get { return rawId_; } + set { + rawId_ = 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 (GatewayId != other.GatewayId) return false; + if (RawId != other.RawId) 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 (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); + if (RawId.Length != 0) hash ^= RawId.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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (RawId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(RawId); + } + if (Payload.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (RawId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(RawId); + } + if (Payload.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Payload); + } + if (_unknownFields != 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 (RawId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(RawId); + } + 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.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.RawId.Length != 0) { + RawId = other.RawId; + } + 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: { + GatewayId = input.ReadBytes(); + break; + } + case 18: { + RawId = input.ReadBytes(); + break; + } + case 26: { + Payload = 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 18: { + RawId = input.ReadBytes(); + break; + } + case 26: { + Payload = input.ReadBytes(); + 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[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 ConnState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConnState(ConnState other) : this() { + 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" 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 "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 (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 (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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (State != global::Chirpstack.Gateway.ConnState.Types.State.Offline) { + output.WriteRawTag(16); + 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 (GatewayId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(GatewayId); + } + if (State != global::Chirpstack.Gateway.ConnState.Types.State.Offline) { + output.WriteRawTag(16); + 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 (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(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.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: { + GatewayId = input.ReadBytes(); + break; + } + case 16: { + State = (global::Chirpstack.Gateway.ConnState.Types.State) 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.ReadBytes(); + break; + } + case 16: { + State = (global::Chirpstack.Gateway.ConnState.Types.State) input.ReadEnum(); + 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/csharp/protobuf/nc/Nc.cs b/csharp/protobuf/nc/Nc.cs new file mode 100644 index 00000000..1dd50ade --- /dev/null +++ b/csharp/protobuf/nc/Nc.cs @@ -0,0 +1,1461 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: nc/nc.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.NetworkController { + + /// Holder for reflection information generated from nc/nc.proto + public static partial class NcReflection { + + #region Descriptor + /// File descriptor for nc/nc.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static NcReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtuYy9uYy5wcm90bxICbmMaG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90", + "bxoLZ3cvZ3cucHJvdG8i/QEKG0hhbmRsZVVwbGlua01ldGFEYXRhUmVxdWVz", + "dBIPCgdkZXZfZXVpGAEgASgMEiEKB3R4X2luZm8YAiABKAsyEC5ndy5VcGxp", + "bmtUWEluZm8SIQoHcnhfaW5mbxgDIAMoCzIQLmd3LlVwbGlua1JYSW5mbxIe", + "ChZwaHlfcGF5bG9hZF9ieXRlX2NvdW50GAQgASgNEh4KFm1hY19jb21tYW5k", + "X2J5dGVfY291bnQYBSABKA0SJgoeYXBwbGljYXRpb25fcGF5bG9hZF9ieXRl", + "X2NvdW50GAYgASgNEh8KDG1lc3NhZ2VfdHlwZRgHIAEoDjIJLm5jLk1UeXBl", + "Io4CCh1IYW5kbGVEb3dubGlua01ldGFEYXRhUmVxdWVzdBIPCgdkZXZfZXVp", + "GAEgASgMEhoKEm11bHRpY2FzdF9ncm91cF9pZBgCIAEoDBIjCgd0eF9pbmZv", + "GAMgASgLMhIuZ3cuRG93bmxpbmtUWEluZm8SHgoWcGh5X3BheWxvYWRfYnl0", + "ZV9jb3VudBgEIAEoDRIeChZtYWNfY29tbWFuZF9ieXRlX2NvdW50GAUgASgN", + "EiYKHmFwcGxpY2F0aW9uX3BheWxvYWRfYnl0ZV9jb3VudBgGIAEoDRIfCgxt", + "ZXNzYWdlX3R5cGUYByABKA4yCS5uYy5NVHlwZRISCgpnYXRld2F5X2lkGAgg", + "ASgMIk8KHUhhbmRsZVVwbGlua01BQ0NvbW1hbmRSZXF1ZXN0Eg8KB2Rldl9l", + "dWkYASABKAwSCwoDY2lkGAIgASgNEhAKCGNvbW1hbmRzGAYgAygMIkwKI0hh", + "bmRsZVJlamVjdGVkVXBsaW5rRnJhbWVTZXRSZXF1ZXN0EiUKCWZyYW1lX3Nl", + "dBgBIAEoCzISLmd3LlVwbGlua0ZyYW1lU2V0Kq8BCgVNVHlwZRILCgdVTktO", + "T1dOEAASEAoMSk9JTl9SRVFVRVNUEAESDwoLSk9JTl9BQ0NFUFQQAhIXChNV", + "TkNPTkZJUk1FRF9EQVRBX1VQEAMSGQoVVU5DT05GSVJNRURfREFUQV9ET1dO", + "EAQSFQoRQ09ORklSTUVEX0RBVEFfVVAQBRIXChNDT05GSVJNRURfREFUQV9E", + "T1dOEAYSEgoOUkVKT0lOX1JFUVVFU1QQBzL+AgoYTmV0d29ya0NvbnRyb2xs", + "ZXJTZXJ2aWNlElEKFEhhbmRsZVVwbGlua01ldGFEYXRhEh8ubmMuSGFuZGxl", + "VXBsaW5rTWV0YURhdGFSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", + "IgASVQoWSGFuZGxlRG93bmxpbmtNZXRhRGF0YRIhLm5jLkhhbmRsZURvd25s", + "aW5rTWV0YURhdGFSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgAS", + "VQoWSGFuZGxlVXBsaW5rTUFDQ29tbWFuZBIhLm5jLkhhbmRsZVVwbGlua01B", + "Q0NvbW1hbmRSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASYQoc", + "SGFuZGxlUmVqZWN0ZWRVcGxpbmtGcmFtZVNldBInLm5jLkhhbmRsZVJlamVj", + "dGVkVXBsaW5rRnJhbWVTZXRSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5IgBCewoUaW8uY2hpcnBzdGFjay5hcGkubmNCFk5ldHdvcmtDb250cm9s", + "bGVyUHJvdG9QAVoqZ2l0aHViLmNvbS9icm9jYWFyL2NoaXJwc3RhY2stYXBp", + "L2dvL3YzL25jqgIcQ2hpcnBzdGFjay5OZXR3b3JrQ29udHJvbGxlcmIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.NetworkController.MType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkController.HandleUplinkMetaDataRequest), global::Chirpstack.NetworkController.HandleUplinkMetaDataRequest.Parser, new[]{ "DevEui", "TxInfo", "RxInfo", "PhyPayloadByteCount", "MacCommandByteCount", "ApplicationPayloadByteCount", "MessageType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkController.HandleDownlinkMetaDataRequest), global::Chirpstack.NetworkController.HandleDownlinkMetaDataRequest.Parser, new[]{ "DevEui", "MulticastGroupId", "TxInfo", "PhyPayloadByteCount", "MacCommandByteCount", "ApplicationPayloadByteCount", "MessageType", "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkController.HandleUplinkMACCommandRequest), global::Chirpstack.NetworkController.HandleUplinkMACCommandRequest.Parser, new[]{ "DevEui", "Cid", "Commands" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkController.HandleRejectedUplinkFrameSetRequest), global::Chirpstack.NetworkController.HandleRejectedUplinkFrameSetRequest.Parser, new[]{ "FrameSet" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum MType { + [pbr::OriginalName("UNKNOWN")] Unknown = 0, + [pbr::OriginalName("JOIN_REQUEST")] JoinRequest = 1, + [pbr::OriginalName("JOIN_ACCEPT")] JoinAccept = 2, + [pbr::OriginalName("UNCONFIRMED_DATA_UP")] UnconfirmedDataUp = 3, + [pbr::OriginalName("UNCONFIRMED_DATA_DOWN")] UnconfirmedDataDown = 4, + [pbr::OriginalName("CONFIRMED_DATA_UP")] ConfirmedDataUp = 5, + [pbr::OriginalName("CONFIRMED_DATA_DOWN")] ConfirmedDataDown = 6, + [pbr::OriginalName("REJOIN_REQUEST")] RejoinRequest = 7, + } + + #endregion + + #region Messages + public sealed partial class HandleUplinkMetaDataRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleUplinkMetaDataRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkController.NcReflection.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 HandleUplinkMetaDataRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleUplinkMetaDataRequest(HandleUplinkMetaDataRequest 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 HandleUplinkMetaDataRequest Clone() { + return new HandleUplinkMetaDataRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.NetworkController.MType messageType_ = global::Chirpstack.NetworkController.MType.Unknown; + /// + /// Message type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkController.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 HandleUplinkMetaDataRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleUplinkMetaDataRequest 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.NetworkController.MType.Unknown) 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.WriteBytes(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.NetworkController.MType.Unknown) { + 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.WriteBytes(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.NetworkController.MType.Unknown) { + 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.ComputeBytesSize(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.NetworkController.MType.Unknown) { + 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(HandleUplinkMetaDataRequest 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.NetworkController.MType.Unknown) { + 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.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: { + PhyPayloadByteCount = input.ReadUInt32(); + break; + } + case 40: { + MacCommandByteCount = input.ReadUInt32(); + break; + } + case 48: { + ApplicationPayloadByteCount = input.ReadUInt32(); + break; + } + case 56: { + MessageType = (global::Chirpstack.NetworkController.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.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: { + PhyPayloadByteCount = input.ReadUInt32(); + break; + } + case 40: { + MacCommandByteCount = input.ReadUInt32(); + break; + } + case 48: { + ApplicationPayloadByteCount = input.ReadUInt32(); + break; + } + case 56: { + MessageType = (global::Chirpstack.NetworkController.MType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class HandleDownlinkMetaDataRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleDownlinkMetaDataRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkController.NcReflection.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 HandleDownlinkMetaDataRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleDownlinkMetaDataRequest(HandleDownlinkMetaDataRequest 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 HandleDownlinkMetaDataRequest Clone() { + return new HandleDownlinkMetaDataRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 pb::ByteString multicastGroupId_ = pb::ByteString.Empty; + /// + /// Multicast Group ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.NetworkController.MType messageType_ = global::Chirpstack.NetworkController.MType.Unknown; + /// + /// Message type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkController.MType MessageType { + get { return messageType_; } + set { + messageType_ = value; + } + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 8; + 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HandleDownlinkMetaDataRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleDownlinkMetaDataRequest 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.NetworkController.MType.Unknown) 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.WriteBytes(DevEui); + } + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(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.NetworkController.MType.Unknown) { + output.WriteRawTag(56); + output.WriteEnum((int) MessageType); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(66); + output.WriteBytes(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.WriteBytes(DevEui); + } + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(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.NetworkController.MType.Unknown) { + output.WriteRawTag(56); + output.WriteEnum((int) MessageType); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(66); + output.WriteBytes(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.ComputeBytesSize(DevEui); + } + if (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(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.NetworkController.MType.Unknown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageType); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HandleDownlinkMetaDataRequest 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.NetworkController.MType.Unknown) { + 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.ReadBytes(); + break; + } + case 18: { + MulticastGroupId = input.ReadBytes(); + 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.NetworkController.MType) input.ReadEnum(); + break; + } + case 66: { + GatewayId = 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: { + DevEui = input.ReadBytes(); + break; + } + case 18: { + MulticastGroupId = input.ReadBytes(); + 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.NetworkController.MType) input.ReadEnum(); + break; + } + case 66: { + GatewayId = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class HandleUplinkMACCommandRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleUplinkMACCommandRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkController.NcReflection.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 HandleUplinkMACCommandRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleUplinkMACCommandRequest(HandleUplinkMACCommandRequest other) : this() { + devEui_ = other.devEui_; + cid_ = other.cid_; + commands_ = other.commands_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleUplinkMACCommandRequest Clone() { + return new HandleUplinkMACCommandRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cid" field. + public const int CidFieldNumber = 2; + private uint cid_; + /// + /// Command identifier (specified by the LoRaWAN specs). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Cid { + get { return cid_; } + set { + cid_ = value; + } + } + + /// Field number for the "commands" field. + public const int CommandsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_commands_codec + = pb::FieldCodec.ForBytes(50); + private readonly pbc::RepeatedField commands_ = new pbc::RepeatedField(); + /// + /// MAC-command payload(s). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Commands { + get { return commands_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HandleUplinkMACCommandRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleUplinkMACCommandRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (Cid != other.Cid) return false; + if(!commands_.Equals(other.commands_)) return false; + 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 (Cid != 0) hash ^= Cid.GetHashCode(); + hash ^= commands_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevEui); + } + if (Cid != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Cid); + } + commands_.WriteTo(output, _repeated_commands_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.WriteBytes(DevEui); + } + if (Cid != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Cid); + } + commands_.WriteTo(ref output, _repeated_commands_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.ComputeBytesSize(DevEui); + } + if (Cid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Cid); + } + size += commands_.CalculateSize(_repeated_commands_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HandleUplinkMACCommandRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.Cid != 0) { + Cid = other.Cid; + } + commands_.Add(other.commands_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 16: { + Cid = input.ReadUInt32(); + break; + } + case 50: { + commands_.AddEntriesFrom(input, _repeated_commands_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.ReadBytes(); + break; + } + case 16: { + Cid = input.ReadUInt32(); + break; + } + case 50: { + commands_.AddEntriesFrom(ref input, _repeated_commands_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class HandleRejectedUplinkFrameSetRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleRejectedUplinkFrameSetRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkController.NcReflection.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 HandleRejectedUplinkFrameSetRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleRejectedUplinkFrameSetRequest(HandleRejectedUplinkFrameSetRequest other) : this() { + frameSet_ = other.frameSet_ != null ? other.frameSet_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleRejectedUplinkFrameSetRequest Clone() { + return new HandleRejectedUplinkFrameSetRequest(this); + } + + /// Field number for the "frame_set" field. + public const int FrameSetFieldNumber = 1; + private global::Chirpstack.Gateway.UplinkFrameSet frameSet_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Gateway.UplinkFrameSet FrameSet { + get { return frameSet_; } + set { + frameSet_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HandleRejectedUplinkFrameSetRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleRejectedUplinkFrameSetRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(FrameSet, other.FrameSet)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (frameSet_ != null) hash ^= FrameSet.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (frameSet_ != null) { + output.WriteRawTag(10); + output.WriteMessage(FrameSet); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (frameSet_ != null) { + output.WriteRawTag(10); + output.WriteMessage(FrameSet); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (frameSet_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FrameSet); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HandleRejectedUplinkFrameSetRequest other) { + if (other == null) { + return; + } + if (other.frameSet_ != null) { + if (frameSet_ == null) { + FrameSet = new global::Chirpstack.Gateway.UplinkFrameSet(); + } + FrameSet.MergeFrom(other.FrameSet); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (frameSet_ == null) { + FrameSet = new global::Chirpstack.Gateway.UplinkFrameSet(); + } + input.ReadMessage(FrameSet); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (frameSet_ == null) { + FrameSet = new global::Chirpstack.Gateway.UplinkFrameSet(); + } + input.ReadMessage(FrameSet); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/nc/NcGrpc.cs b/csharp/protobuf/nc/NcGrpc.cs new file mode 100644 index 00000000..49d451a8 --- /dev/null +++ b/csharp/protobuf/nc/NcGrpc.cs @@ -0,0 +1,433 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: nc/nc.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.NetworkController { + /// + /// NetworkControllerService is the server to be implemeted by the network-controller. + /// + public static partial class NetworkControllerService + { + static readonly string __ServiceName = "nc.NetworkControllerService"; + + [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_nc_HandleUplinkMetaDataRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkController.HandleUplinkMetaDataRequest.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_nc_HandleDownlinkMetaDataRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkController.HandleDownlinkMetaDataRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_nc_HandleUplinkMACCommandRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkController.HandleUplinkMACCommandRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_nc_HandleRejectedUplinkFrameSetRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkController.HandleRejectedUplinkFrameSetRequest.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_HandleUplinkMetaData = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "HandleUplinkMetaData", + __Marshaller_nc_HandleUplinkMetaDataRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_HandleDownlinkMetaData = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "HandleDownlinkMetaData", + __Marshaller_nc_HandleDownlinkMetaDataRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_HandleUplinkMACCommand = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "HandleUplinkMACCommand", + __Marshaller_nc_HandleUplinkMACCommandRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_HandleRejectedUplinkFrameSet = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "HandleRejectedUplinkFrameSet", + __Marshaller_nc_HandleRejectedUplinkFrameSetRequest, + __Marshaller_google_protobuf_Empty); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.NetworkController.NcReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of NetworkControllerService + [grpc::BindServiceMethod(typeof(NetworkControllerService), "BindService")] + public abstract partial class NetworkControllerServiceBase + { + /// + /// HandleUplinkMetaData handles uplink meta-rata. + /// + /// 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 HandleUplinkMetaData(global::Chirpstack.NetworkController.HandleUplinkMetaDataRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// HandleDownlinkMetaData handles downlink meta-data. + /// + /// 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 HandleDownlinkMetaData(global::Chirpstack.NetworkController.HandleDownlinkMetaDataRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// HandleUplinkMACCommand handles an uplink mac-command. + /// This method will only be called in case the mac-command request was + /// enqueued throught the API or when the CID is >= 0x80 (proprietary + /// mac-command range). + /// + /// 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 HandleUplinkMACCommand(global::Chirpstack.NetworkController.HandleUplinkMACCommandRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// HandleRejectedUplinkFrameSet handles a rejected uplink. + /// And uplink can be rejected in the case the device has not (yet) been + /// provisioned, because of invalid frame-counter, MIC, ... + /// + /// 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 HandleRejectedUplinkFrameSet(global::Chirpstack.NetworkController.HandleRejectedUplinkFrameSetRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for NetworkControllerService + public partial class NetworkControllerServiceClient : grpc::ClientBase + { + /// Creates a new client for NetworkControllerService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public NetworkControllerServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for NetworkControllerService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public NetworkControllerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected NetworkControllerServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected NetworkControllerServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// HandleUplinkMetaData handles uplink meta-rata. + /// + /// 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 HandleUplinkMetaData(global::Chirpstack.NetworkController.HandleUplinkMetaDataRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleUplinkMetaData(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleUplinkMetaData handles uplink meta-rata. + /// + /// 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 HandleUplinkMetaData(global::Chirpstack.NetworkController.HandleUplinkMetaDataRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_HandleUplinkMetaData, null, options, request); + } + /// + /// HandleUplinkMetaData handles uplink meta-rata. + /// + /// 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 HandleUplinkMetaDataAsync(global::Chirpstack.NetworkController.HandleUplinkMetaDataRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleUplinkMetaDataAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleUplinkMetaData handles uplink meta-rata. + /// + /// 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 HandleUplinkMetaDataAsync(global::Chirpstack.NetworkController.HandleUplinkMetaDataRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_HandleUplinkMetaData, null, options, request); + } + /// + /// HandleDownlinkMetaData handles downlink meta-data. + /// + /// 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 HandleDownlinkMetaData(global::Chirpstack.NetworkController.HandleDownlinkMetaDataRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleDownlinkMetaData(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleDownlinkMetaData handles downlink meta-data. + /// + /// 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 HandleDownlinkMetaData(global::Chirpstack.NetworkController.HandleDownlinkMetaDataRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_HandleDownlinkMetaData, null, options, request); + } + /// + /// HandleDownlinkMetaData handles downlink meta-data. + /// + /// 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 HandleDownlinkMetaDataAsync(global::Chirpstack.NetworkController.HandleDownlinkMetaDataRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleDownlinkMetaDataAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleDownlinkMetaData handles downlink meta-data. + /// + /// 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 HandleDownlinkMetaDataAsync(global::Chirpstack.NetworkController.HandleDownlinkMetaDataRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_HandleDownlinkMetaData, null, options, request); + } + /// + /// HandleUplinkMACCommand handles an uplink mac-command. + /// This method will only be called in case the mac-command request was + /// enqueued throught the API or when the CID is >= 0x80 (proprietary + /// mac-command range). + /// + /// 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 HandleUplinkMACCommand(global::Chirpstack.NetworkController.HandleUplinkMACCommandRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleUplinkMACCommand(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleUplinkMACCommand handles an uplink mac-command. + /// This method will only be called in case the mac-command request was + /// enqueued throught the API or when the CID is >= 0x80 (proprietary + /// mac-command range). + /// + /// 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 HandleUplinkMACCommand(global::Chirpstack.NetworkController.HandleUplinkMACCommandRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_HandleUplinkMACCommand, null, options, request); + } + /// + /// HandleUplinkMACCommand handles an uplink mac-command. + /// This method will only be called in case the mac-command request was + /// enqueued throught the API or when the CID is >= 0x80 (proprietary + /// mac-command range). + /// + /// 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 HandleUplinkMACCommandAsync(global::Chirpstack.NetworkController.HandleUplinkMACCommandRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleUplinkMACCommandAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleUplinkMACCommand handles an uplink mac-command. + /// This method will only be called in case the mac-command request was + /// enqueued throught the API or when the CID is >= 0x80 (proprietary + /// mac-command range). + /// + /// 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 HandleUplinkMACCommandAsync(global::Chirpstack.NetworkController.HandleUplinkMACCommandRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_HandleUplinkMACCommand, null, options, request); + } + /// + /// HandleRejectedUplinkFrameSet handles a rejected uplink. + /// And uplink can be rejected in the case the device has not (yet) been + /// provisioned, because of invalid frame-counter, MIC, ... + /// + /// 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 HandleRejectedUplinkFrameSet(global::Chirpstack.NetworkController.HandleRejectedUplinkFrameSetRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleRejectedUplinkFrameSet(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleRejectedUplinkFrameSet handles a rejected uplink. + /// And uplink can be rejected in the case the device has not (yet) been + /// provisioned, because of invalid frame-counter, MIC, ... + /// + /// 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 HandleRejectedUplinkFrameSet(global::Chirpstack.NetworkController.HandleRejectedUplinkFrameSetRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_HandleRejectedUplinkFrameSet, null, options, request); + } + /// + /// HandleRejectedUplinkFrameSet handles a rejected uplink. + /// And uplink can be rejected in the case the device has not (yet) been + /// provisioned, because of invalid frame-counter, MIC, ... + /// + /// 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 HandleRejectedUplinkFrameSetAsync(global::Chirpstack.NetworkController.HandleRejectedUplinkFrameSetRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return HandleRejectedUplinkFrameSetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// HandleRejectedUplinkFrameSet handles a rejected uplink. + /// And uplink can be rejected in the case the device has not (yet) been + /// provisioned, because of invalid frame-counter, MIC, ... + /// + /// 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 HandleRejectedUplinkFrameSetAsync(global::Chirpstack.NetworkController.HandleRejectedUplinkFrameSetRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_HandleRejectedUplinkFrameSet, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override NetworkControllerServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new NetworkControllerServiceClient(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(NetworkControllerServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_HandleUplinkMetaData, serviceImpl.HandleUplinkMetaData) + .AddMethod(__Method_HandleDownlinkMetaData, serviceImpl.HandleDownlinkMetaData) + .AddMethod(__Method_HandleUplinkMACCommand, serviceImpl.HandleUplinkMACCommand) + .AddMethod(__Method_HandleRejectedUplinkFrameSet, serviceImpl.HandleRejectedUplinkFrameSet).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, NetworkControllerServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_HandleUplinkMetaData, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.HandleUplinkMetaData)); + serviceBinder.AddMethod(__Method_HandleDownlinkMetaData, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.HandleDownlinkMetaData)); + serviceBinder.AddMethod(__Method_HandleUplinkMACCommand, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.HandleUplinkMACCommand)); + serviceBinder.AddMethod(__Method_HandleRejectedUplinkFrameSet, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.HandleRejectedUplinkFrameSet)); + } + + } +} +#endregion diff --git a/csharp/protobuf/ns/Ns.cs b/csharp/protobuf/ns/Ns.cs new file mode 100644 index 00000000..07966060 --- /dev/null +++ b/csharp/protobuf/ns/Ns.cs @@ -0,0 +1,20803 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ns/ns.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.NetworkServer { + + /// Holder for reflection information generated from ns/ns.proto + public static partial class NsReflection { + + #region Descriptor + /// File descriptor for ns/ns.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static NsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cgtucy9ucy5wcm90bxICbnMaH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAu", + "cHJvdG8aHmdvb2dsZS9wcm90b2J1Zi9kdXJhdGlvbi5wcm90bxobZ29vZ2xl", + "L3Byb3RvYnVmL2VtcHR5LnByb3RvGhNjb21tb24vY29tbW9uLnByb3RvGgtn", + "dy9ndy5wcm90bxoRbnMvcHJvZmlsZXMucHJvdG8iSgobQ3JlYXRlU2Vydmlj", + "ZVByb2ZpbGVSZXF1ZXN0EisKD3NlcnZpY2VfcHJvZmlsZRgBIAEoCzISLm5z", + "LlNlcnZpY2VQcm9maWxlIioKHENyZWF0ZVNlcnZpY2VQcm9maWxlUmVzcG9u", + "c2USCgoCaWQYASABKAwiJgoYR2V0U2VydmljZVByb2ZpbGVSZXF1ZXN0EgoK", + "AmlkGAEgASgMIqgBChlHZXRTZXJ2aWNlUHJvZmlsZVJlc3BvbnNlEisKD3Nl", + "cnZpY2VfcHJvZmlsZRgBIAEoCzISLm5zLlNlcnZpY2VQcm9maWxlEi4KCmNy", + "ZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4K", + "CnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "IkoKG1VwZGF0ZVNlcnZpY2VQcm9maWxlUmVxdWVzdBIrCg9zZXJ2aWNlX3By", + "b2ZpbGUYASABKAsyEi5ucy5TZXJ2aWNlUHJvZmlsZSIpChtEZWxldGVTZXJ2", + "aWNlUHJvZmlsZVJlcXVlc3QSCgoCaWQYASABKAwiSgobQ3JlYXRlUm91dGlu", + "Z1Byb2ZpbGVSZXF1ZXN0EisKD3JvdXRpbmdfcHJvZmlsZRgBIAEoCzISLm5z", + "LlJvdXRpbmdQcm9maWxlIioKHENyZWF0ZVJvdXRpbmdQcm9maWxlUmVzcG9u", + "c2USCgoCaWQYASABKAwiJgoYR2V0Um91dGluZ1Byb2ZpbGVSZXF1ZXN0EgoK", + "AmlkGAEgASgMIqgBChlHZXRSb3V0aW5nUHJvZmlsZVJlc3BvbnNlEisKD3Jv", + "dXRpbmdfcHJvZmlsZRgBIAEoCzISLm5zLlJvdXRpbmdQcm9maWxlEi4KCmNy", + "ZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4K", + "CnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "IkoKG1VwZGF0ZVJvdXRpbmdQcm9maWxlUmVxdWVzdBIrCg9yb3V0aW5nX3By", + "b2ZpbGUYASABKAsyEi5ucy5Sb3V0aW5nUHJvZmlsZSIpChtEZWxldGVSb3V0", + "aW5nUHJvZmlsZVJlcXVlc3QSCgoCaWQYASABKAwiRwoaQ3JlYXRlRGV2aWNl", + "UHJvZmlsZVJlcXVlc3QSKQoOZGV2aWNlX3Byb2ZpbGUYASABKAsyES5ucy5E", + "ZXZpY2VQcm9maWxlIikKG0NyZWF0ZURldmljZVByb2ZpbGVSZXNwb25zZRIK", + "CgJpZBgBIAEoDCIlChdHZXREZXZpY2VQcm9maWxlUmVxdWVzdBIKCgJpZBgB", + "IAEoDCKlAQoYR2V0RGV2aWNlUHJvZmlsZVJlc3BvbnNlEikKDmRldmljZV9w", + "cm9maWxlGAEgASgLMhEubnMuRGV2aWNlUHJvZmlsZRIuCgpjcmVhdGVkX2F0", + "GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVk", + "X2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCJHChpVcGRh", + "dGVEZXZpY2VQcm9maWxlUmVxdWVzdBIpCg5kZXZpY2VfcHJvZmlsZRgBIAEo", + "CzIRLm5zLkRldmljZVByb2ZpbGUiKAoaRGVsZXRlRGV2aWNlUHJvZmlsZVJl", + "cXVlc3QSCgoCaWQYASABKAwitwEKBkRldmljZRIPCgdkZXZfZXVpGAEgASgM", + "EhkKEWRldmljZV9wcm9maWxlX2lkGAIgASgMEhoKEnNlcnZpY2VfcHJvZmls", + "ZV9pZBgDIAEoDBIaChJyb3V0aW5nX3Byb2ZpbGVfaWQYBCABKAwSGAoQc2tp", + "cF9mX2NudF9jaGVjaxgFIAEoCBIaChJyZWZlcmVuY2VfYWx0aXR1ZGUYBiAB", + "KAESEwoLaXNfZGlzYWJsZWQYByABKAgiMQoTQ3JlYXRlRGV2aWNlUmVxdWVz", + "dBIaCgZkZXZpY2UYASABKAsyCi5ucy5EZXZpY2UiIwoQR2V0RGV2aWNlUmVx", + "dWVzdBIPCgdkZXZfZXVpGAEgASgMIo8BChFHZXREZXZpY2VSZXNwb25zZRIa", + "CgZkZXZpY2UYASABKAsyCi5ucy5EZXZpY2USLgoKY3JlYXRlZF9hdBgCIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgD", + "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiMQoTVXBkYXRlRGV2", + "aWNlUmVxdWVzdBIaCgZkZXZpY2UYASABKAsyCi5ucy5EZXZpY2UiJgoTRGVs", + "ZXRlRGV2aWNlUmVxdWVzdBIPCgdkZXZfZXVpGAEgASgMItYBChBEZXZpY2VB", + "Y3RpdmF0aW9uEg8KB2Rldl9ldWkYASABKAwSEAoIZGV2X2FkZHIYAiABKAwS", + "FwoPc19ud2tfc19pbnRfa2V5GAMgASgMEhcKD2ZfbndrX3NfaW50X2tleRgE", + "IAEoDBIVCg1ud2tfc19lbmNfa2V5GAUgASgMEhAKCGZfY250X3VwGAYgASgN", + "EhQKDG5fZl9jbnRfZG93bhgHIAEoDRIUCgxhX2ZfY250X2Rvd24YCCABKA0S", + "GAoQc2tpcF9mX2NudF9jaGVjaxgJIAEoCCJIChVBY3RpdmF0ZURldmljZVJl", + "cXVlc3QSLwoRZGV2aWNlX2FjdGl2YXRpb24YASABKAsyFC5ucy5EZXZpY2VB", + "Y3RpdmF0aW9uIioKF0RlYWN0aXZhdGVEZXZpY2VSZXF1ZXN0Eg8KB2Rldl9l", + "dWkYASABKAwiLQoaR2V0RGV2aWNlQWN0aXZhdGlvblJlcXVlc3QSDwoHZGV2", + "X2V1aRgBIAEoDCJOChtHZXREZXZpY2VBY3RpdmF0aW9uUmVzcG9uc2USLwoR", + "ZGV2aWNlX2FjdGl2YXRpb24YASABKAsyFC5ucy5EZXZpY2VBY3RpdmF0aW9u", + "IiwKGEdldFJhbmRvbURldkFkZHJSZXNwb25zZRIQCghkZXZfYWRkchgBIAEo", + "DCJSCiBDcmVhdGVNQUNDb21tYW5kUXVldWVJdGVtUmVxdWVzdBIPCgdkZXZf", + "ZXVpGAEgASgMEgsKA2NpZBgEIAEoDRIQCghjb21tYW5kcxgFIAMoDCKWAQod", + "U2VuZFByb3ByaWV0YXJ5UGF5bG9hZFJlcXVlc3QSEwoLbWFjX3BheWxvYWQY", + "ASABKAwSCwoDbWljGAIgASgMEhQKDGdhdGV3YXlfbWFjcxgDIAMoDBIeChZw", + "b2xhcml6YXRpb25faW52ZXJzaW9uGAQgASgIEhEKCWZyZXF1ZW5jeRgFIAEo", + "DRIKCgJkchgGIAEoDSKvAQoHR2F0ZXdheRIKCgJpZBgBIAEoDBIiCghsb2Nh", + "dGlvbhgCIAEoCzIQLmNvbW1vbi5Mb2NhdGlvbhIaChJnYXRld2F5X3Byb2Zp", + "bGVfaWQYAyABKAwSIAoGYm9hcmRzGAQgAygLMhAubnMuR2F0ZXdheUJvYXJk", + "EhoKEnJvdXRpbmdfcHJvZmlsZV9pZBgFIAEoDBIaChJzZXJ2aWNlX3Byb2Zp", + "bGVfaWQYBiABKAwiOwoMR2F0ZXdheUJvYXJkEg8KB2ZwZ2FfaWQYASABKAwS", + "GgoSZmluZV90aW1lc3RhbXBfa2V5GAIgASgMIjQKFENyZWF0ZUdhdGV3YXlS", + "ZXF1ZXN0EhwKB2dhdGV3YXkYASABKAsyCy5ucy5HYXRld2F5Ih8KEUdldEdh", + "dGV3YXlSZXF1ZXN0EgoKAmlkGAEgASgMIvcBChJHZXRHYXRld2F5UmVzcG9u", + "c2USHAoHZ2F0ZXdheRgBIAEoCzILLm5zLkdhdGV3YXkSLgoKY3JlYXRlZF9h", + "dBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRl", + "ZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASMQoNZmly", + "c3Rfc2Vlbl9hdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAS", + "MAoMbGFzdF9zZWVuX2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", + "dGFtcCI0ChRVcGRhdGVHYXRld2F5UmVxdWVzdBIcCgdnYXRld2F5GAEgASgL", + "MgsubnMuR2F0ZXdheSIiChREZWxldGVHYXRld2F5UmVxdWVzdBIKCgJpZBgB", + "IAEoDCI1CidHZW5lcmF0ZUdhdGV3YXlDbGllbnRDZXJ0aWZpY2F0ZVJlcXVl", + "c3QSCgoCaWQYASABKAwijgEKKEdlbmVyYXRlR2F0ZXdheUNsaWVudENlcnRp", + "ZmljYXRlUmVzcG9uc2USEAoIdGxzX2NlcnQYASABKAwSDwoHdGxzX2tleRgC", + "IAEoDBIPCgdjYV9jZXJ0GAMgASgMEi4KCmV4cGlyZXNfYXQYBCABKAsyGi5n", + "b29nbGUucHJvdG9idWYuVGltZXN0YW1wIrMBCgxHYXRld2F5U3RhdHMSLQoJ", + "dGltZXN0YW1wGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIb", + "ChNyeF9wYWNrZXRzX3JlY2VpdmVkGAIgASgFEh4KFnJ4X3BhY2tldHNfcmVj", + "ZWl2ZWRfb2sYAyABKAUSGwoTdHhfcGFja2V0c19yZWNlaXZlZBgEIAEoBRIa", + "ChJ0eF9wYWNrZXRzX2VtaXR0ZWQYBSABKAUivwEKFkdldEdhdGV3YXlTdGF0", + "c1JlcXVlc3QSEgoKZ2F0ZXdheV9pZBgBIAEoDBIpCghpbnRlcnZhbBgCIAEo", + "DjIXLm5zLkFnZ3JlZ2F0aW9uSW50ZXJ2YWwSMwoPc3RhcnRfdGltZXN0YW1w", + "GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIxCg1lbmRfdGlt", + "ZXN0YW1wGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCI7ChdH", + "ZXRHYXRld2F5U3RhdHNSZXNwb25zZRIgCgZyZXN1bHQYASADKAsyEC5ucy5H", + "YXRld2F5U3RhdHMiewoPRGV2aWNlUXVldWVJdGVtEg8KB2Rldl9ldWkYASAB", + "KAwSEwoLZnJtX3BheWxvYWQYAiABKAwSDQoFZl9jbnQYAyABKA0SDgoGZl9w", + "b3J0GAQgASgNEhEKCWNvbmZpcm1lZBgFIAEoCBIQCghkZXZfYWRkchgGIAEo", + "DCJBChxDcmVhdGVEZXZpY2VRdWV1ZUl0ZW1SZXF1ZXN0EiEKBGl0ZW0YASAB", + "KAsyEy5ucy5EZXZpY2VRdWV1ZUl0ZW0iMwogRmx1c2hEZXZpY2VRdWV1ZUZv", + "ckRldkVVSVJlcXVlc3QSDwoHZGV2X2V1aRgBIAEoDCJKCiNHZXREZXZpY2VR", + "dWV1ZUl0ZW1zRm9yRGV2RVVJUmVxdWVzdBIPCgdkZXZfZXVpGAEgASgMEhIK", + "CmNvdW50X29ubHkYAiABKAgiXwokR2V0RGV2aWNlUXVldWVJdGVtc0ZvckRl", + "dkVVSVJlc3BvbnNlEiIKBWl0ZW1zGAEgAygLMhMubnMuRGV2aWNlUXVldWVJ", + "dGVtEhMKC3RvdGFsX2NvdW50GAIgASgNIjYKI0dldE5leHREb3dubGlua0ZD", + "bnRGb3JEZXZFVUlSZXF1ZXN0Eg8KB2Rldl9ldWkYASABKAwiNQokR2V0TmV4", + "dERvd25saW5rRkNudEZvckRldkVVSVJlc3BvbnNlEg0KBWZfY250GAEgASgN", + "It8BCg5VcGxpbmtGcmFtZUxvZxITCgtwaHlfcGF5bG9hZBgBIAEoDBIhCgd0", + "eF9pbmZvGAIgASgLMhAuZ3cuVXBsaW5rVFhJbmZvEiEKB3J4X2luZm8YAyAD", + "KAsyEC5ndy5VcGxpbmtSWEluZm8SHQoGbV90eXBlGAQgASgOMg0uY29tbW9u", + "Lk1UeXBlEhAKCGRldl9hZGRyGAUgASgMEg8KB2Rldl9ldWkYBiABKAwSMAoM", + "cHVibGlzaGVkX2F0GAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", + "cCKPAgoQRG93bmxpbmtGcmFtZUxvZxITCgtwaHlfcGF5bG9hZBgBIAEoDBIj", + "Cgd0eF9pbmZvGAIgASgLMhIuZ3cuRG93bmxpbmtUWEluZm8SDQoFdG9rZW4Y", + "AyABKA0SHwoLZG93bmxpbmtfaWQYBCABKAxSCmRvd25saW5rSUQSHQoKZ2F0", + "ZXdheV9pZBgFIAEoDFIJZ2F0ZXdheUlEEh0KBm1fdHlwZRgGIAEoDjINLmNv", + "bW1vbi5NVHlwZRIQCghkZXZfYWRkchgHIAEoDBIPCgdkZXZfZXVpGAggASgM", + "EjAKDHB1Ymxpc2hlZF9hdBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXAiNgogU3RyZWFtRnJhbWVMb2dzRm9yR2F0ZXdheVJlcXVlc3QSEgoK", + "Z2F0ZXdheV9pZBgBIAEoDCKMAQohU3RyZWFtRnJhbWVMb2dzRm9yR2F0ZXdh", + "eVJlc3BvbnNlEi4KEHVwbGlua19mcmFtZV9zZXQYASABKAsyEi5ucy5VcGxp", + "bmtGcmFtZUxvZ0gAEi4KDmRvd25saW5rX2ZyYW1lGAIgASgLMhQubnMuRG93", + "bmxpbmtGcmFtZUxvZ0gAQgcKBWZyYW1lIjIKH1N0cmVhbUZyYW1lTG9nc0Zv", + "ckRldmljZVJlcXVlc3QSDwoHZGV2X2V1aRgBIAEoDCKLAQogU3RyZWFtRnJh", + "bWVMb2dzRm9yRGV2aWNlUmVzcG9uc2USLgoQdXBsaW5rX2ZyYW1lX3NldBgB", + "IAEoCzISLm5zLlVwbGlua0ZyYW1lTG9nSAASLgoOZG93bmxpbmtfZnJhbWUY", + "AiABKAsyFC5ucy5Eb3dubGlua0ZyYW1lTG9nSABCBwoFZnJhbWUiRQoSR2V0", + "VmVyc2lvblJlc3BvbnNlEg8KB3ZlcnNpb24YASABKAkSHgoGcmVnaW9uGAIg", + "ASgOMg4uY29tbW9uLlJlZ2lvbiKZAQoOR2F0ZXdheVByb2ZpbGUSCgoCaWQY", + "ASABKAwSEAoIY2hhbm5lbHMYAiADKA0SNgoOZXh0cmFfY2hhbm5lbHMYAyAD", + "KAsyHi5ucy5HYXRld2F5UHJvZmlsZUV4dHJhQ2hhbm5lbBIxCg5zdGF0c19p", + "bnRlcnZhbBgEIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbiKWAQoa", + "R2F0ZXdheVByb2ZpbGVFeHRyYUNoYW5uZWwSJgoKbW9kdWxhdGlvbhgBIAEo", + "DjISLmNvbW1vbi5Nb2R1bGF0aW9uEhEKCWZyZXF1ZW5jeRgCIAEoDRIRCgli", + "YW5kd2lkdGgYAyABKA0SDwoHYml0cmF0ZRgEIAEoDRIZChFzcHJlYWRpbmdf", + "ZmFjdG9ycxgFIAMoDSJKChtDcmVhdGVHYXRld2F5UHJvZmlsZVJlcXVlc3QS", + "KwoPZ2F0ZXdheV9wcm9maWxlGAEgASgLMhIubnMuR2F0ZXdheVByb2ZpbGUi", + "KgocQ3JlYXRlR2F0ZXdheVByb2ZpbGVSZXNwb25zZRIKCgJpZBgBIAEoDCIm", + "ChhHZXRHYXRld2F5UHJvZmlsZVJlcXVlc3QSCgoCaWQYASABKAwiqAEKGUdl", + "dEdhdGV3YXlQcm9maWxlUmVzcG9uc2USKwoPZ2F0ZXdheV9wcm9maWxlGAEg", + "ASgLMhIubnMuR2F0ZXdheVByb2ZpbGUSLgoKY3JlYXRlZF9hdBgCIAEoCzIa", + "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgDIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiSgobVXBkYXRlR2F0ZXdh", + "eVByb2ZpbGVSZXF1ZXN0EisKD2dhdGV3YXlfcHJvZmlsZRgBIAEoCzISLm5z", + "LkdhdGV3YXlQcm9maWxlIikKG0RlbGV0ZUdhdGV3YXlQcm9maWxlUmVxdWVz", + "dBIKCgJpZBgBIAEoDCLvAQoOTXVsdGljYXN0R3JvdXASCgoCaWQYASABKAwS", + "DwoHbWNfYWRkchgCIAEoDBIUCgxtY19ud2tfc19rZXkYAyABKAwSDQoFZl9j", + "bnQYBCABKA0SKgoKZ3JvdXBfdHlwZRgFIAEoDjIWLm5zLk11bHRpY2FzdEdy", + "b3VwVHlwZRIKCgJkchgGIAEoDRIRCglmcmVxdWVuY3kYByABKA0SGAoQcGlu", + "Z19zbG90X3BlcmlvZBgIIAEoDRIaChJzZXJ2aWNlX3Byb2ZpbGVfaWQYCSAB", + "KAwSGgoScm91dGluZ19wcm9maWxlX2lkGAogASgMIkoKG0NyZWF0ZU11bHRp", + "Y2FzdEdyb3VwUmVxdWVzdBIrCg9tdWx0aWNhc3RfZ3JvdXAYASABKAsyEi5u", + "cy5NdWx0aWNhc3RHcm91cCIqChxDcmVhdGVNdWx0aWNhc3RHcm91cFJlc3Bv", + "bnNlEgoKAmlkGAEgASgMIiYKGEdldE11bHRpY2FzdEdyb3VwUmVxdWVzdBIK", + "CgJpZBgBIAEoDCKoAQoZR2V0TXVsdGljYXN0R3JvdXBSZXNwb25zZRIrCg9t", + "dWx0aWNhc3RfZ3JvdXAYASABKAsyEi5ucy5NdWx0aWNhc3RHcm91cBIuCgpj", + "cmVhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIu", + "Cgp1cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", + "cCJKChtVcGRhdGVNdWx0aWNhc3RHcm91cFJlcXVlc3QSKwoPbXVsdGljYXN0", + "X2dyb3VwGAEgASgLMhIubnMuTXVsdGljYXN0R3JvdXAiKQobRGVsZXRlTXVs", + "dGljYXN0R3JvdXBSZXF1ZXN0EgoKAmlkGAEgASgMIk8KIEFkZERldmljZVRv", + "TXVsdGljYXN0R3JvdXBSZXF1ZXN0Eg8KB2Rldl9ldWkYASABKAwSGgoSbXVs", + "dGljYXN0X2dyb3VwX2lkGAIgASgMIlQKJVJlbW92ZURldmljZUZyb21NdWx0", + "aWNhc3RHcm91cFJlcXVlc3QSDwoHZGV2X2V1aRgBIAEoDBIaChJtdWx0aWNh", + "c3RfZ3JvdXBfaWQYAiABKAwiZAoSTXVsdGljYXN0UXVldWVJdGVtEhoKEm11", + "bHRpY2FzdF9ncm91cF9pZBgBIAEoDBINCgVmX2NudBgCIAEoDRIOCgZmX3Bv", + "cnQYAyABKA0SEwoLZnJtX3BheWxvYWQYBCABKAwiWAogRW5xdWV1ZU11bHRp", + "Y2FzdFF1ZXVlSXRlbVJlcXVlc3QSNAoUbXVsdGljYXN0X3F1ZXVlX2l0ZW0Y", + "ASABKAsyFi5ucy5NdWx0aWNhc3RRdWV1ZUl0ZW0iSQorRmx1c2hNdWx0aWNh", + "c3RRdWV1ZUZvck11bHRpY2FzdEdyb3VwUmVxdWVzdBIaChJtdWx0aWNhc3Rf", + "Z3JvdXBfaWQYASABKAwiTAouR2V0TXVsdGljYXN0UXVldWVJdGVtc0Zvck11", + "bHRpY2FzdEdyb3VwUmVxdWVzdBIaChJtdWx0aWNhc3RfZ3JvdXBfaWQYASAB", + "KAwiaAovR2V0TXVsdGljYXN0UXVldWVJdGVtc0Zvck11bHRpY2FzdEdyb3Vw", + "UmVzcG9uc2USNQoVbXVsdGljYXN0X3F1ZXVlX2l0ZW1zGAEgAygLMhYubnMu", + "TXVsdGljYXN0UXVldWVJdGVtIkQKGEdldEFEUkFsZ29yaXRobXNSZXNwb25z", + "ZRIoCg5hZHJfYWxnb3JpdGhtcxgBIAMoCzIQLm5zLkFEUkFsZ29yaXRobSIo", + "CgxBRFJBbGdvcml0aG0SCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCSIrChhD", + "bGVhckRldmljZU5vbmNlc1JlcXVlc3QSDwoHZGV2X2V1aRgBIAEoDCocCghS", + "WFdpbmRvdxIHCgNSWDEQABIHCgNSWDIQASpsChNBZ2dyZWdhdGlvbkludGVy", + "dmFsEgoKBlNFQ09ORBAAEgoKBk1JTlVURRABEggKBEhPVVIQAhIHCgNEQVkQ", + "AxIICgRXRUVLEAQSCQoFTU9OVEgQBRILCgdRVUFSVEVSEAYSCAoEWUVBUhAH", + "Ki4KEk11bHRpY2FzdEdyb3VwVHlwZRILCgdDTEFTU19DEAASCwoHQ0xBU1Nf", + "QhABMoYiChROZXR3b3JrU2VydmVyU2VydmljZRJbChRDcmVhdGVTZXJ2aWNl", + "UHJvZmlsZRIfLm5zLkNyZWF0ZVNlcnZpY2VQcm9maWxlUmVxdWVzdBogLm5z", + "LkNyZWF0ZVNlcnZpY2VQcm9maWxlUmVzcG9uc2UiABJSChFHZXRTZXJ2aWNl", + "UHJvZmlsZRIcLm5zLkdldFNlcnZpY2VQcm9maWxlUmVxdWVzdBodLm5zLkdl", + "dFNlcnZpY2VQcm9maWxlUmVzcG9uc2UiABJRChRVcGRhdGVTZXJ2aWNlUHJv", + "ZmlsZRIfLm5zLlVwZGF0ZVNlcnZpY2VQcm9maWxlUmVxdWVzdBoWLmdvb2ds", + "ZS5wcm90b2J1Zi5FbXB0eSIAElEKFERlbGV0ZVNlcnZpY2VQcm9maWxlEh8u", + "bnMuRGVsZXRlU2VydmljZVByb2ZpbGVSZXF1ZXN0GhYuZ29vZ2xlLnByb3Rv", + "YnVmLkVtcHR5IgASWwoUQ3JlYXRlUm91dGluZ1Byb2ZpbGUSHy5ucy5DcmVh", + "dGVSb3V0aW5nUHJvZmlsZVJlcXVlc3QaIC5ucy5DcmVhdGVSb3V0aW5nUHJv", + "ZmlsZVJlc3BvbnNlIgASUgoRR2V0Um91dGluZ1Byb2ZpbGUSHC5ucy5HZXRS", + "b3V0aW5nUHJvZmlsZVJlcXVlc3QaHS5ucy5HZXRSb3V0aW5nUHJvZmlsZVJl", + "c3BvbnNlIgASUQoUVXBkYXRlUm91dGluZ1Byb2ZpbGUSHy5ucy5VcGRhdGVS", + "b3V0aW5nUHJvZmlsZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHki", + "ABJRChREZWxldGVSb3V0aW5nUHJvZmlsZRIfLm5zLkRlbGV0ZVJvdXRpbmdQ", + "cm9maWxlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElgKE0Ny", + "ZWF0ZURldmljZVByb2ZpbGUSHi5ucy5DcmVhdGVEZXZpY2VQcm9maWxlUmVx", + "dWVzdBofLm5zLkNyZWF0ZURldmljZVByb2ZpbGVSZXNwb25zZSIAEk8KEEdl", + "dERldmljZVByb2ZpbGUSGy5ucy5HZXREZXZpY2VQcm9maWxlUmVxdWVzdBoc", + "Lm5zLkdldERldmljZVByb2ZpbGVSZXNwb25zZSIAEk8KE1VwZGF0ZURldmlj", + "ZVByb2ZpbGUSHi5ucy5VcGRhdGVEZXZpY2VQcm9maWxlUmVxdWVzdBoWLmdv", + "b2dsZS5wcm90b2J1Zi5FbXB0eSIAEk8KE0RlbGV0ZURldmljZVByb2ZpbGUS", + "Hi5ucy5EZWxldGVEZXZpY2VQcm9maWxlUmVxdWVzdBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIAEkEKDENyZWF0ZURldmljZRIXLm5zLkNyZWF0ZURldmlj", + "ZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABI6CglHZXREZXZp", + "Y2USFC5ucy5HZXREZXZpY2VSZXF1ZXN0GhUubnMuR2V0RGV2aWNlUmVzcG9u", + "c2UiABJBCgxVcGRhdGVEZXZpY2USFy5ucy5VcGRhdGVEZXZpY2VSZXF1ZXN0", + "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASQQoMRGVsZXRlRGV2aWNlEhcu", + "bnMuRGVsZXRlRGV2aWNlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0", + "eSIAEkUKDkFjdGl2YXRlRGV2aWNlEhkubnMuQWN0aXZhdGVEZXZpY2VSZXF1", + "ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASSQoQRGVhY3RpdmF0ZURl", + "dmljZRIbLm5zLkRlYWN0aXZhdGVEZXZpY2VSZXF1ZXN0GhYuZ29vZ2xlLnBy", + "b3RvYnVmLkVtcHR5IgASWAoTR2V0RGV2aWNlQWN0aXZhdGlvbhIeLm5zLkdl", + "dERldmljZUFjdGl2YXRpb25SZXF1ZXN0Gh8ubnMuR2V0RGV2aWNlQWN0aXZh", + "dGlvblJlc3BvbnNlIgASUwoVQ3JlYXRlRGV2aWNlUXVldWVJdGVtEiAubnMu", + "Q3JlYXRlRGV2aWNlUXVldWVJdGVtUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1", + "Zi5FbXB0eSIAElsKGUZsdXNoRGV2aWNlUXVldWVGb3JEZXZFVUkSJC5ucy5G", + "bHVzaERldmljZVF1ZXVlRm9yRGV2RVVJUmVxdWVzdBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIAEnMKHEdldERldmljZVF1ZXVlSXRlbXNGb3JEZXZFVUkS", + "Jy5ucy5HZXREZXZpY2VRdWV1ZUl0ZW1zRm9yRGV2RVVJUmVxdWVzdBooLm5z", + "LkdldERldmljZVF1ZXVlSXRlbXNGb3JEZXZFVUlSZXNwb25zZSIAEnMKHEdl", + "dE5leHREb3dubGlua0ZDbnRGb3JEZXZFVUkSJy5ucy5HZXROZXh0RG93bmxp", + "bmtGQ250Rm9yRGV2RVVJUmVxdWVzdBooLm5zLkdldE5leHREb3dubGlua0ZD", + "bnRGb3JEZXZFVUlSZXNwb25zZSIAEkoKEEdldFJhbmRvbURldkFkZHISFi5n", + "b29nbGUucHJvdG9idWYuRW1wdHkaHC5ucy5HZXRSYW5kb21EZXZBZGRyUmVz", + "cG9uc2UiABJbChlDcmVhdGVNQUNDb21tYW5kUXVldWVJdGVtEiQubnMuQ3Jl", + "YXRlTUFDQ29tbWFuZFF1ZXVlSXRlbVJlcXVlc3QaFi5nb29nbGUucHJvdG9i", + "dWYuRW1wdHkiABJVChZTZW5kUHJvcHJpZXRhcnlQYXlsb2FkEiEubnMuU2Vu", + "ZFByb3ByaWV0YXJ5UGF5bG9hZFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYu", + "RW1wdHkiABJDCg1DcmVhdGVHYXRld2F5EhgubnMuQ3JlYXRlR2F0ZXdheVJl", + "cXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABI9CgpHZXRHYXRld2F5", + "EhUubnMuR2V0R2F0ZXdheVJlcXVlc3QaFi5ucy5HZXRHYXRld2F5UmVzcG9u", + "c2UiABJDCg1VcGRhdGVHYXRld2F5EhgubnMuVXBkYXRlR2F0ZXdheVJlcXVl", + "c3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJDCg1EZWxldGVHYXRld2F5", + "EhgubnMuRGVsZXRlR2F0ZXdheVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYu", + "RW1wdHkiABJ/CiBHZW5lcmF0ZUdhdGV3YXlDbGllbnRDZXJ0aWZpY2F0ZRIr", + "Lm5zLkdlbmVyYXRlR2F0ZXdheUNsaWVudENlcnRpZmljYXRlUmVxdWVzdBos", + "Lm5zLkdlbmVyYXRlR2F0ZXdheUNsaWVudENlcnRpZmljYXRlUmVzcG9uc2Ui", + "ABJbChRDcmVhdGVHYXRld2F5UHJvZmlsZRIfLm5zLkNyZWF0ZUdhdGV3YXlQ", + "cm9maWxlUmVxdWVzdBogLm5zLkNyZWF0ZUdhdGV3YXlQcm9maWxlUmVzcG9u", + "c2UiABJSChFHZXRHYXRld2F5UHJvZmlsZRIcLm5zLkdldEdhdGV3YXlQcm9m", + "aWxlUmVxdWVzdBodLm5zLkdldEdhdGV3YXlQcm9maWxlUmVzcG9uc2UiABJR", + "ChRVcGRhdGVHYXRld2F5UHJvZmlsZRIfLm5zLlVwZGF0ZUdhdGV3YXlQcm9m", + "aWxlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElEKFERlbGV0", + "ZUdhdGV3YXlQcm9maWxlEh8ubnMuRGVsZXRlR2F0ZXdheVByb2ZpbGVSZXF1", + "ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASTAoPR2V0R2F0ZXdheVN0", + "YXRzEhoubnMuR2V0R2F0ZXdheVN0YXRzUmVxdWVzdBobLm5zLkdldEdhdGV3", + "YXlTdGF0c1Jlc3BvbnNlIgASbAoZU3RyZWFtRnJhbWVMb2dzRm9yR2F0ZXdh", + "eRIkLm5zLlN0cmVhbUZyYW1lTG9nc0ZvckdhdGV3YXlSZXF1ZXN0GiUubnMu", + "U3RyZWFtRnJhbWVMb2dzRm9yR2F0ZXdheVJlc3BvbnNlIgAwARJpChhTdHJl", + "YW1GcmFtZUxvZ3NGb3JEZXZpY2USIy5ucy5TdHJlYW1GcmFtZUxvZ3NGb3JE", + "ZXZpY2VSZXF1ZXN0GiQubnMuU3RyZWFtRnJhbWVMb2dzRm9yRGV2aWNlUmVz", + "cG9uc2UiADABElsKFENyZWF0ZU11bHRpY2FzdEdyb3VwEh8ubnMuQ3JlYXRl", + "TXVsdGljYXN0R3JvdXBSZXF1ZXN0GiAubnMuQ3JlYXRlTXVsdGljYXN0R3Jv", + "dXBSZXNwb25zZSIAElIKEUdldE11bHRpY2FzdEdyb3VwEhwubnMuR2V0TXVs", + "dGljYXN0R3JvdXBSZXF1ZXN0Gh0ubnMuR2V0TXVsdGljYXN0R3JvdXBSZXNw", + "b25zZSIAElEKFFVwZGF0ZU11bHRpY2FzdEdyb3VwEh8ubnMuVXBkYXRlTXVs", + "dGljYXN0R3JvdXBSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgAS", + "UQoURGVsZXRlTXVsdGljYXN0R3JvdXASHy5ucy5EZWxldGVNdWx0aWNhc3RH", + "cm91cFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJbChlBZGRE", + "ZXZpY2VUb011bHRpY2FzdEdyb3VwEiQubnMuQWRkRGV2aWNlVG9NdWx0aWNh", + "c3RHcm91cFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJlCh5S", + "ZW1vdmVEZXZpY2VGcm9tTXVsdGljYXN0R3JvdXASKS5ucy5SZW1vdmVEZXZp", + "Y2VGcm9tTXVsdGljYXN0R3JvdXBSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVm", + "LkVtcHR5IgASWwoZRW5xdWV1ZU11bHRpY2FzdFF1ZXVlSXRlbRIkLm5zLkVu", + "cXVldWVNdWx0aWNhc3RRdWV1ZUl0ZW1SZXF1ZXN0GhYuZ29vZ2xlLnByb3Rv", + "YnVmLkVtcHR5IgAScQokRmx1c2hNdWx0aWNhc3RRdWV1ZUZvck11bHRpY2Fz", + "dEdyb3VwEi8ubnMuRmx1c2hNdWx0aWNhc3RRdWV1ZUZvck11bHRpY2FzdEdy", + "b3VwUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEpQBCidHZXRN", + "dWx0aWNhc3RRdWV1ZUl0ZW1zRm9yTXVsdGljYXN0R3JvdXASMi5ucy5HZXRN", + "dWx0aWNhc3RRdWV1ZUl0ZW1zRm9yTXVsdGljYXN0R3JvdXBSZXF1ZXN0GjMu", + "bnMuR2V0TXVsdGljYXN0UXVldWVJdGVtc0Zvck11bHRpY2FzdEdyb3VwUmVz", + "cG9uc2UiABI+CgpHZXRWZXJzaW9uEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", + "GhYubnMuR2V0VmVyc2lvblJlc3BvbnNlIgASSgoQR2V0QURSQWxnb3JpdGht", + "cxIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRocLm5zLkdldEFEUkFsZ29yaXRo", + "bXNSZXNwb25zZSIAEksKEUNsZWFyRGV2aWNlTm9uY2VzEhwubnMuQ2xlYXJE", + "ZXZpY2VOb25jZXNSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgBC", + "bQoUaW8uY2hpcnBzdGFjay5hcGkubnNCEk5ldHdvcmtTZXJ2ZXJQcm90b1AB", + "WiRnaXRodWIuY29tL2Jyb2NhYXIvY2hpcnBzdGFjay1hcGkvbnOqAhhDaGly", + "cHN0YWNrLk5ldHdvcmtTZXJ2ZXJiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, global::Chirpstack.NetworkServer.ProfilesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.NetworkServer.RXWindow), typeof(global::Chirpstack.NetworkServer.AggregationInterval), typeof(global::Chirpstack.NetworkServer.MulticastGroupType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateServiceProfileRequest), global::Chirpstack.NetworkServer.CreateServiceProfileRequest.Parser, new[]{ "ServiceProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateServiceProfileResponse), global::Chirpstack.NetworkServer.CreateServiceProfileResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetServiceProfileRequest), global::Chirpstack.NetworkServer.GetServiceProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetServiceProfileResponse), global::Chirpstack.NetworkServer.GetServiceProfileResponse.Parser, new[]{ "ServiceProfile", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.UpdateServiceProfileRequest), global::Chirpstack.NetworkServer.UpdateServiceProfileRequest.Parser, new[]{ "ServiceProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.DeleteServiceProfileRequest), global::Chirpstack.NetworkServer.DeleteServiceProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateRoutingProfileRequest), global::Chirpstack.NetworkServer.CreateRoutingProfileRequest.Parser, new[]{ "RoutingProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateRoutingProfileResponse), global::Chirpstack.NetworkServer.CreateRoutingProfileResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetRoutingProfileRequest), global::Chirpstack.NetworkServer.GetRoutingProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetRoutingProfileResponse), global::Chirpstack.NetworkServer.GetRoutingProfileResponse.Parser, new[]{ "RoutingProfile", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.UpdateRoutingProfileRequest), global::Chirpstack.NetworkServer.UpdateRoutingProfileRequest.Parser, new[]{ "RoutingProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.DeleteRoutingProfileRequest), global::Chirpstack.NetworkServer.DeleteRoutingProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateDeviceProfileRequest), global::Chirpstack.NetworkServer.CreateDeviceProfileRequest.Parser, new[]{ "DeviceProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateDeviceProfileResponse), global::Chirpstack.NetworkServer.CreateDeviceProfileResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetDeviceProfileRequest), global::Chirpstack.NetworkServer.GetDeviceProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetDeviceProfileResponse), global::Chirpstack.NetworkServer.GetDeviceProfileResponse.Parser, new[]{ "DeviceProfile", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.UpdateDeviceProfileRequest), global::Chirpstack.NetworkServer.UpdateDeviceProfileRequest.Parser, new[]{ "DeviceProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.DeleteDeviceProfileRequest), global::Chirpstack.NetworkServer.DeleteDeviceProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.Device), global::Chirpstack.NetworkServer.Device.Parser, new[]{ "DevEui", "DeviceProfileId", "ServiceProfileId", "RoutingProfileId", "SkipFCntCheck", "ReferenceAltitude", "IsDisabled" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateDeviceRequest), global::Chirpstack.NetworkServer.CreateDeviceRequest.Parser, new[]{ "Device" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetDeviceRequest), global::Chirpstack.NetworkServer.GetDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetDeviceResponse), global::Chirpstack.NetworkServer.GetDeviceResponse.Parser, new[]{ "Device", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.UpdateDeviceRequest), global::Chirpstack.NetworkServer.UpdateDeviceRequest.Parser, new[]{ "Device" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.DeleteDeviceRequest), global::Chirpstack.NetworkServer.DeleteDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.DeviceActivation), global::Chirpstack.NetworkServer.DeviceActivation.Parser, new[]{ "DevEui", "DevAddr", "SNwkSIntKey", "FNwkSIntKey", "NwkSEncKey", "FCntUp", "NFCntDown", "AFCntDown", "SkipFCntCheck" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.ActivateDeviceRequest), global::Chirpstack.NetworkServer.ActivateDeviceRequest.Parser, new[]{ "DeviceActivation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.DeactivateDeviceRequest), global::Chirpstack.NetworkServer.DeactivateDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetDeviceActivationRequest), global::Chirpstack.NetworkServer.GetDeviceActivationRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetDeviceActivationResponse), global::Chirpstack.NetworkServer.GetDeviceActivationResponse.Parser, new[]{ "DeviceActivation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetRandomDevAddrResponse), global::Chirpstack.NetworkServer.GetRandomDevAddrResponse.Parser, new[]{ "DevAddr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateMACCommandQueueItemRequest), global::Chirpstack.NetworkServer.CreateMACCommandQueueItemRequest.Parser, new[]{ "DevEui", "Cid", "Commands" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.SendProprietaryPayloadRequest), global::Chirpstack.NetworkServer.SendProprietaryPayloadRequest.Parser, new[]{ "MacPayload", "Mic", "GatewayMacs", "PolarizationInversion", "Frequency", "Dr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.Gateway), global::Chirpstack.NetworkServer.Gateway.Parser, new[]{ "Id", "Location", "GatewayProfileId", "Boards", "RoutingProfileId", "ServiceProfileId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GatewayBoard), global::Chirpstack.NetworkServer.GatewayBoard.Parser, new[]{ "FpgaId", "FineTimestampKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateGatewayRequest), global::Chirpstack.NetworkServer.CreateGatewayRequest.Parser, new[]{ "Gateway" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetGatewayRequest), global::Chirpstack.NetworkServer.GetGatewayRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetGatewayResponse), global::Chirpstack.NetworkServer.GetGatewayResponse.Parser, new[]{ "Gateway", "CreatedAt", "UpdatedAt", "FirstSeenAt", "LastSeenAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.UpdateGatewayRequest), global::Chirpstack.NetworkServer.UpdateGatewayRequest.Parser, new[]{ "Gateway" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.DeleteGatewayRequest), global::Chirpstack.NetworkServer.DeleteGatewayRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GenerateGatewayClientCertificateRequest), global::Chirpstack.NetworkServer.GenerateGatewayClientCertificateRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GenerateGatewayClientCertificateResponse), global::Chirpstack.NetworkServer.GenerateGatewayClientCertificateResponse.Parser, new[]{ "TlsCert", "TlsKey", "CaCert", "ExpiresAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GatewayStats), global::Chirpstack.NetworkServer.GatewayStats.Parser, new[]{ "Timestamp", "RxPacketsReceived", "RxPacketsReceivedOk", "TxPacketsReceived", "TxPacketsEmitted" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetGatewayStatsRequest), global::Chirpstack.NetworkServer.GetGatewayStatsRequest.Parser, new[]{ "GatewayId", "Interval", "StartTimestamp", "EndTimestamp" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetGatewayStatsResponse), global::Chirpstack.NetworkServer.GetGatewayStatsResponse.Parser, new[]{ "Result" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.DeviceQueueItem), global::Chirpstack.NetworkServer.DeviceQueueItem.Parser, new[]{ "DevEui", "FrmPayload", "FCnt", "FPort", "Confirmed", "DevAddr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateDeviceQueueItemRequest), global::Chirpstack.NetworkServer.CreateDeviceQueueItemRequest.Parser, new[]{ "Item" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.FlushDeviceQueueForDevEUIRequest), global::Chirpstack.NetworkServer.FlushDeviceQueueForDevEUIRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetDeviceQueueItemsForDevEUIRequest), global::Chirpstack.NetworkServer.GetDeviceQueueItemsForDevEUIRequest.Parser, new[]{ "DevEui", "CountOnly" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetDeviceQueueItemsForDevEUIResponse), global::Chirpstack.NetworkServer.GetDeviceQueueItemsForDevEUIResponse.Parser, new[]{ "Items", "TotalCount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetNextDownlinkFCntForDevEUIRequest), global::Chirpstack.NetworkServer.GetNextDownlinkFCntForDevEUIRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetNextDownlinkFCntForDevEUIResponse), global::Chirpstack.NetworkServer.GetNextDownlinkFCntForDevEUIResponse.Parser, new[]{ "FCnt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.UplinkFrameLog), global::Chirpstack.NetworkServer.UplinkFrameLog.Parser, new[]{ "PhyPayload", "TxInfo", "RxInfo", "MType", "DevAddr", "DevEui", "PublishedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.DownlinkFrameLog), global::Chirpstack.NetworkServer.DownlinkFrameLog.Parser, new[]{ "PhyPayload", "TxInfo", "Token", "DownlinkId", "GatewayId", "MType", "DevAddr", "DevEui", "PublishedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.StreamFrameLogsForGatewayRequest), global::Chirpstack.NetworkServer.StreamFrameLogsForGatewayRequest.Parser, new[]{ "GatewayId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.StreamFrameLogsForGatewayResponse), global::Chirpstack.NetworkServer.StreamFrameLogsForGatewayResponse.Parser, new[]{ "UplinkFrameSet", "DownlinkFrame" }, new[]{ "Frame" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.StreamFrameLogsForDeviceRequest), global::Chirpstack.NetworkServer.StreamFrameLogsForDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.StreamFrameLogsForDeviceResponse), global::Chirpstack.NetworkServer.StreamFrameLogsForDeviceResponse.Parser, new[]{ "UplinkFrameSet", "DownlinkFrame" }, new[]{ "Frame" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetVersionResponse), global::Chirpstack.NetworkServer.GetVersionResponse.Parser, new[]{ "Version", "Region" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GatewayProfile), global::Chirpstack.NetworkServer.GatewayProfile.Parser, new[]{ "Id", "Channels", "ExtraChannels", "StatsInterval" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GatewayProfileExtraChannel), global::Chirpstack.NetworkServer.GatewayProfileExtraChannel.Parser, new[]{ "Modulation", "Frequency", "Bandwidth", "Bitrate", "SpreadingFactors" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateGatewayProfileRequest), global::Chirpstack.NetworkServer.CreateGatewayProfileRequest.Parser, new[]{ "GatewayProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateGatewayProfileResponse), global::Chirpstack.NetworkServer.CreateGatewayProfileResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetGatewayProfileRequest), global::Chirpstack.NetworkServer.GetGatewayProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetGatewayProfileResponse), global::Chirpstack.NetworkServer.GetGatewayProfileResponse.Parser, new[]{ "GatewayProfile", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.UpdateGatewayProfileRequest), global::Chirpstack.NetworkServer.UpdateGatewayProfileRequest.Parser, new[]{ "GatewayProfile" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.DeleteGatewayProfileRequest), global::Chirpstack.NetworkServer.DeleteGatewayProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.MulticastGroup), global::Chirpstack.NetworkServer.MulticastGroup.Parser, new[]{ "Id", "McAddr", "McNwkSKey", "FCnt", "GroupType", "Dr", "Frequency", "PingSlotPeriod", "ServiceProfileId", "RoutingProfileId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateMulticastGroupRequest), global::Chirpstack.NetworkServer.CreateMulticastGroupRequest.Parser, new[]{ "MulticastGroup" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.CreateMulticastGroupResponse), global::Chirpstack.NetworkServer.CreateMulticastGroupResponse.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetMulticastGroupRequest), global::Chirpstack.NetworkServer.GetMulticastGroupRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetMulticastGroupResponse), global::Chirpstack.NetworkServer.GetMulticastGroupResponse.Parser, new[]{ "MulticastGroup", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.UpdateMulticastGroupRequest), global::Chirpstack.NetworkServer.UpdateMulticastGroupRequest.Parser, new[]{ "MulticastGroup" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.DeleteMulticastGroupRequest), global::Chirpstack.NetworkServer.DeleteMulticastGroupRequest.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.AddDeviceToMulticastGroupRequest), global::Chirpstack.NetworkServer.AddDeviceToMulticastGroupRequest.Parser, new[]{ "DevEui", "MulticastGroupId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.RemoveDeviceFromMulticastGroupRequest), global::Chirpstack.NetworkServer.RemoveDeviceFromMulticastGroupRequest.Parser, new[]{ "DevEui", "MulticastGroupId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.MulticastQueueItem), global::Chirpstack.NetworkServer.MulticastQueueItem.Parser, new[]{ "MulticastGroupId", "FCnt", "FPort", "FrmPayload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.EnqueueMulticastQueueItemRequest), global::Chirpstack.NetworkServer.EnqueueMulticastQueueItemRequest.Parser, new[]{ "MulticastQueueItem" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.FlushMulticastQueueForMulticastGroupRequest), global::Chirpstack.NetworkServer.FlushMulticastQueueForMulticastGroupRequest.Parser, new[]{ "MulticastGroupId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetMulticastQueueItemsForMulticastGroupRequest), global::Chirpstack.NetworkServer.GetMulticastQueueItemsForMulticastGroupRequest.Parser, new[]{ "MulticastGroupId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetMulticastQueueItemsForMulticastGroupResponse), global::Chirpstack.NetworkServer.GetMulticastQueueItemsForMulticastGroupResponse.Parser, new[]{ "MulticastQueueItems" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.GetADRAlgorithmsResponse), global::Chirpstack.NetworkServer.GetADRAlgorithmsResponse.Parser, new[]{ "AdrAlgorithms" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.ADRAlgorithm), global::Chirpstack.NetworkServer.ADRAlgorithm.Parser, new[]{ "Id", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.ClearDeviceNoncesRequest), global::Chirpstack.NetworkServer.ClearDeviceNoncesRequest.Parser, new[]{ "DevEui" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum RXWindow { + /// + /// Receive window 1 + /// + [pbr::OriginalName("RX1")] Rx1 = 0, + /// + /// Receive window 2 + /// + [pbr::OriginalName("RX2")] Rx2 = 1, + } + + public enum AggregationInterval { + [pbr::OriginalName("SECOND")] Second = 0, + [pbr::OriginalName("MINUTE")] Minute = 1, + [pbr::OriginalName("HOUR")] Hour = 2, + [pbr::OriginalName("DAY")] Day = 3, + [pbr::OriginalName("WEEK")] Week = 4, + [pbr::OriginalName("MONTH")] Month = 5, + [pbr::OriginalName("QUARTER")] Quarter = 6, + [pbr::OriginalName("YEAR")] Year = 7, + } + + public enum MulticastGroupType { + /// + /// Class-C. + /// + [pbr::OriginalName("CLASS_C")] ClassC = 0, + /// + /// Class-B. + /// + [pbr::OriginalName("CLASS_B")] ClassB = 1, + } + + #endregion + + #region Messages + public sealed partial class CreateServiceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateServiceProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 CreateServiceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateServiceProfileRequest(CreateServiceProfileRequest other) : this() { + serviceProfile_ = other.serviceProfile_ != null ? other.serviceProfile_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateServiceProfileRequest Clone() { + return new CreateServiceProfileRequest(this); + } + + /// Field number for the "service_profile" field. + public const int ServiceProfileFieldNumber = 1; + private global::Chirpstack.NetworkServer.ServiceProfile serviceProfile_; + /// + /// Service-profile object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.ServiceProfile ServiceProfile { + get { return serviceProfile_; } + set { + serviceProfile_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateServiceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateServiceProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ServiceProfile, other.ServiceProfile)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (serviceProfile_ != null) hash ^= ServiceProfile.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (serviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (serviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (serviceProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServiceProfile); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateServiceProfileRequest other) { + if (other == null) { + return; + } + if (other.serviceProfile_ != null) { + if (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.NetworkServer.ServiceProfile(); + } + ServiceProfile.MergeFrom(other.ServiceProfile); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.NetworkServer.ServiceProfile(); + } + input.ReadMessage(ServiceProfile); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.NetworkServer.ServiceProfile(); + } + input.ReadMessage(ServiceProfile); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateServiceProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateServiceProfileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 CreateServiceProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateServiceProfileResponse(CreateServiceProfileResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateServiceProfileResponse Clone() { + return new CreateServiceProfileResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// ID of the created service-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 CreateServiceProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateServiceProfileResponse 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateServiceProfileResponse 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.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: { + Id = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetServiceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetServiceProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetServiceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceProfileRequest(GetServiceProfileRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceProfileRequest Clone() { + return new GetServiceProfileRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// ID of the service-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 GetServiceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetServiceProfileRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetServiceProfileRequest 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.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: { + Id = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetServiceProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetServiceProfileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetServiceProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceProfileResponse(GetServiceProfileResponse other) : this() { + serviceProfile_ = other.serviceProfile_ != null ? other.serviceProfile_.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 GetServiceProfileResponse Clone() { + return new GetServiceProfileResponse(this); + } + + /// Field number for the "service_profile" field. + public const int ServiceProfileFieldNumber = 1; + private global::Chirpstack.NetworkServer.ServiceProfile serviceProfile_; + /// + /// Service-profile object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.ServiceProfile ServiceProfile { + get { return serviceProfile_; } + set { + serviceProfile_ = 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 GetServiceProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetServiceProfileResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ServiceProfile, other.ServiceProfile)) 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 (serviceProfile_ != null) hash ^= ServiceProfile.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 (serviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceProfile); + } + 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 (serviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceProfile); + } + 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 (serviceProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServiceProfile); + } + 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(GetServiceProfileResponse other) { + if (other == null) { + return; + } + if (other.serviceProfile_ != null) { + if (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.NetworkServer.ServiceProfile(); + } + ServiceProfile.MergeFrom(other.ServiceProfile); + } + 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 (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.NetworkServer.ServiceProfile(); + } + input.ReadMessage(ServiceProfile); + 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 (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.NetworkServer.ServiceProfile(); + } + input.ReadMessage(ServiceProfile); + 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 UpdateServiceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateServiceProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 UpdateServiceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateServiceProfileRequest(UpdateServiceProfileRequest other) : this() { + serviceProfile_ = other.serviceProfile_ != null ? other.serviceProfile_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateServiceProfileRequest Clone() { + return new UpdateServiceProfileRequest(this); + } + + /// Field number for the "service_profile" field. + public const int ServiceProfileFieldNumber = 1; + private global::Chirpstack.NetworkServer.ServiceProfile serviceProfile_; + /// + /// Service-profile object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.ServiceProfile ServiceProfile { + get { return serviceProfile_; } + set { + serviceProfile_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateServiceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateServiceProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ServiceProfile, other.ServiceProfile)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (serviceProfile_ != null) hash ^= ServiceProfile.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (serviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (serviceProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (serviceProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServiceProfile); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateServiceProfileRequest other) { + if (other == null) { + return; + } + if (other.serviceProfile_ != null) { + if (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.NetworkServer.ServiceProfile(); + } + ServiceProfile.MergeFrom(other.ServiceProfile); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.NetworkServer.ServiceProfile(); + } + input.ReadMessage(ServiceProfile); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (serviceProfile_ == null) { + ServiceProfile = new global::Chirpstack.NetworkServer.ServiceProfile(); + } + input.ReadMessage(ServiceProfile); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteServiceProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteServiceProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 DeleteServiceProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteServiceProfileRequest(DeleteServiceProfileRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteServiceProfileRequest Clone() { + return new DeleteServiceProfileRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// ID of the service-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 DeleteServiceProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteServiceProfileRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteServiceProfileRequest 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.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: { + Id = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateRoutingProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateRoutingProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 CreateRoutingProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateRoutingProfileRequest(CreateRoutingProfileRequest other) : this() { + routingProfile_ = other.routingProfile_ != null ? other.routingProfile_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateRoutingProfileRequest Clone() { + return new CreateRoutingProfileRequest(this); + } + + /// Field number for the "routing_profile" field. + public const int RoutingProfileFieldNumber = 1; + private global::Chirpstack.NetworkServer.RoutingProfile routingProfile_; + /// + /// Routing-profile object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.RoutingProfile RoutingProfile { + get { return routingProfile_; } + set { + routingProfile_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateRoutingProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateRoutingProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RoutingProfile, other.RoutingProfile)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (routingProfile_ != null) hash ^= RoutingProfile.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (routingProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoutingProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (routingProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoutingProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (routingProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoutingProfile); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateRoutingProfileRequest other) { + if (other == null) { + return; + } + if (other.routingProfile_ != null) { + if (routingProfile_ == null) { + RoutingProfile = new global::Chirpstack.NetworkServer.RoutingProfile(); + } + RoutingProfile.MergeFrom(other.RoutingProfile); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (routingProfile_ == null) { + RoutingProfile = new global::Chirpstack.NetworkServer.RoutingProfile(); + } + input.ReadMessage(RoutingProfile); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (routingProfile_ == null) { + RoutingProfile = new global::Chirpstack.NetworkServer.RoutingProfile(); + } + input.ReadMessage(RoutingProfile); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateRoutingProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateRoutingProfileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 CreateRoutingProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateRoutingProfileResponse(CreateRoutingProfileResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateRoutingProfileResponse Clone() { + return new CreateRoutingProfileResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// ID of the created routing-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 CreateRoutingProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateRoutingProfileResponse 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateRoutingProfileResponse 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.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: { + Id = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetRoutingProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRoutingProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetRoutingProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRoutingProfileRequest(GetRoutingProfileRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRoutingProfileRequest Clone() { + return new GetRoutingProfileRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// ID of the routing-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 GetRoutingProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRoutingProfileRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRoutingProfileRequest 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.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: { + Id = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetRoutingProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRoutingProfileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetRoutingProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRoutingProfileResponse(GetRoutingProfileResponse other) : this() { + routingProfile_ = other.routingProfile_ != null ? other.routingProfile_.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 GetRoutingProfileResponse Clone() { + return new GetRoutingProfileResponse(this); + } + + /// Field number for the "routing_profile" field. + public const int RoutingProfileFieldNumber = 1; + private global::Chirpstack.NetworkServer.RoutingProfile routingProfile_; + /// + /// Routing-profile object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.RoutingProfile RoutingProfile { + get { return routingProfile_; } + set { + routingProfile_ = 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 GetRoutingProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRoutingProfileResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RoutingProfile, other.RoutingProfile)) 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 (routingProfile_ != null) hash ^= RoutingProfile.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 (routingProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoutingProfile); + } + 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 (routingProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoutingProfile); + } + 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 (routingProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoutingProfile); + } + 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(GetRoutingProfileResponse other) { + if (other == null) { + return; + } + if (other.routingProfile_ != null) { + if (routingProfile_ == null) { + RoutingProfile = new global::Chirpstack.NetworkServer.RoutingProfile(); + } + RoutingProfile.MergeFrom(other.RoutingProfile); + } + 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 (routingProfile_ == null) { + RoutingProfile = new global::Chirpstack.NetworkServer.RoutingProfile(); + } + input.ReadMessage(RoutingProfile); + 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 (routingProfile_ == null) { + RoutingProfile = new global::Chirpstack.NetworkServer.RoutingProfile(); + } + input.ReadMessage(RoutingProfile); + 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 UpdateRoutingProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateRoutingProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 UpdateRoutingProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateRoutingProfileRequest(UpdateRoutingProfileRequest other) : this() { + routingProfile_ = other.routingProfile_ != null ? other.routingProfile_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateRoutingProfileRequest Clone() { + return new UpdateRoutingProfileRequest(this); + } + + /// Field number for the "routing_profile" field. + public const int RoutingProfileFieldNumber = 1; + private global::Chirpstack.NetworkServer.RoutingProfile routingProfile_; + /// + /// Routing-profile object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.RoutingProfile RoutingProfile { + get { return routingProfile_; } + set { + routingProfile_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateRoutingProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateRoutingProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RoutingProfile, other.RoutingProfile)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (routingProfile_ != null) hash ^= RoutingProfile.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (routingProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoutingProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (routingProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoutingProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (routingProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoutingProfile); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateRoutingProfileRequest other) { + if (other == null) { + return; + } + if (other.routingProfile_ != null) { + if (routingProfile_ == null) { + RoutingProfile = new global::Chirpstack.NetworkServer.RoutingProfile(); + } + RoutingProfile.MergeFrom(other.RoutingProfile); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (routingProfile_ == null) { + RoutingProfile = new global::Chirpstack.NetworkServer.RoutingProfile(); + } + input.ReadMessage(RoutingProfile); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (routingProfile_ == null) { + RoutingProfile = new global::Chirpstack.NetworkServer.RoutingProfile(); + } + input.ReadMessage(RoutingProfile); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteRoutingProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRoutingProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 DeleteRoutingProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteRoutingProfileRequest(DeleteRoutingProfileRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteRoutingProfileRequest Clone() { + return new DeleteRoutingProfileRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Routing-profile ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 DeleteRoutingProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteRoutingProfileRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteRoutingProfileRequest 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.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: { + Id = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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.NetworkServer.DeviceProfile deviceProfile_; + /// + /// Device-profile object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.NsReflection.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 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 pb::ByteString id_ = pb::ByteString.Empty; + /// + /// ID of the created device-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(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.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: { + Id = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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 pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Device-profile ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(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.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: { + Id = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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.NetworkServer.DeviceProfile deviceProfile_; + /// + /// Device-profile object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.NsReflection.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 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.NetworkServer.DeviceProfile deviceProfile_; + /// + /// Device-profile object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.NsReflection.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 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 pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Device-profile ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(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.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: { + Id = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + 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.NetworkServer.NsReflection.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 Device() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Device(Device other) : this() { + devEui_ = other.devEui_; + deviceProfileId_ = other.deviceProfileId_; + serviceProfileId_ = other.serviceProfileId_; + routingProfileId_ = other.routingProfileId_; + skipFCntCheck_ = other.skipFCntCheck_; + referenceAltitude_ = other.referenceAltitude_; + isDisabled_ = other.isDisabled_; + _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 pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "device_profile_id" field. + public const int DeviceProfileIdFieldNumber = 2; + private pb::ByteString deviceProfileId_ = pb::ByteString.Empty; + /// + /// Device-profile ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DeviceProfileId { + get { return deviceProfileId_; } + set { + deviceProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_profile_id" field. + public const int ServiceProfileIdFieldNumber = 3; + private pb::ByteString serviceProfileId_ = pb::ByteString.Empty; + /// + /// Service-profile ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString ServiceProfileId { + get { return serviceProfileId_; } + set { + serviceProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "routing_profile_id" field. + public const int RoutingProfileIdFieldNumber = 4; + private pb::ByteString routingProfileId_ = pb::ByteString.Empty; + /// + /// Routing-profile ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString RoutingProfileId { + get { return routingProfileId_; } + set { + routingProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "skip_f_cnt_check" field. + public const int SkipFCntCheckFieldNumber = 5; + private bool skipFCntCheck_; + /// + /// Skip frame-counter check. + /// Note that turning this on is insecure and is intended for debugging only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SkipFCntCheck { + get { return skipFCntCheck_; } + set { + skipFCntCheck_ = value; + } + } + + /// Field number for the "reference_altitude" field. + public const int ReferenceAltitudeFieldNumber = 6; + private double referenceAltitude_; + /// + /// Reference altitude. + /// When using geolocation, this altitude will be used as a reference + /// (when supported by the geolocation-server) to increase geolocation + /// accuracy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double ReferenceAltitude { + get { return referenceAltitude_; } + set { + referenceAltitude_ = 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; + } + } + + [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 (DeviceProfileId != other.DeviceProfileId) return false; + if (ServiceProfileId != other.ServiceProfileId) return false; + if (RoutingProfileId != other.RoutingProfileId) return false; + if (SkipFCntCheck != other.SkipFCntCheck) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ReferenceAltitude, other.ReferenceAltitude)) return false; + if (IsDisabled != other.IsDisabled) return false; + 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 (DeviceProfileId.Length != 0) hash ^= DeviceProfileId.GetHashCode(); + if (ServiceProfileId.Length != 0) hash ^= ServiceProfileId.GetHashCode(); + if (RoutingProfileId.Length != 0) hash ^= RoutingProfileId.GetHashCode(); + if (SkipFCntCheck != false) hash ^= SkipFCntCheck.GetHashCode(); + if (ReferenceAltitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ReferenceAltitude); + if (IsDisabled != false) hash ^= IsDisabled.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevEui); + } + if (DeviceProfileId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(DeviceProfileId); + } + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(ServiceProfileId); + } + if (RoutingProfileId.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(RoutingProfileId); + } + if (SkipFCntCheck != false) { + output.WriteRawTag(40); + output.WriteBool(SkipFCntCheck); + } + if (ReferenceAltitude != 0D) { + output.WriteRawTag(49); + output.WriteDouble(ReferenceAltitude); + } + if (IsDisabled != false) { + output.WriteRawTag(56); + output.WriteBool(IsDisabled); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(DevEui); + } + if (DeviceProfileId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(DeviceProfileId); + } + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(ServiceProfileId); + } + if (RoutingProfileId.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(RoutingProfileId); + } + if (SkipFCntCheck != false) { + output.WriteRawTag(40); + output.WriteBool(SkipFCntCheck); + } + if (ReferenceAltitude != 0D) { + output.WriteRawTag(49); + output.WriteDouble(ReferenceAltitude); + } + if (IsDisabled != false) { + output.WriteRawTag(56); + output.WriteBool(IsDisabled); + } + if (_unknownFields != 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.ComputeBytesSize(DevEui); + } + if (DeviceProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DeviceProfileId); + } + if (ServiceProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ServiceProfileId); + } + if (RoutingProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(RoutingProfileId); + } + if (SkipFCntCheck != false) { + size += 1 + 1; + } + if (ReferenceAltitude != 0D) { + size += 1 + 8; + } + if (IsDisabled != 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(Device other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.DeviceProfileId.Length != 0) { + DeviceProfileId = other.DeviceProfileId; + } + if (other.ServiceProfileId.Length != 0) { + ServiceProfileId = other.ServiceProfileId; + } + if (other.RoutingProfileId.Length != 0) { + RoutingProfileId = other.RoutingProfileId; + } + if (other.SkipFCntCheck != false) { + SkipFCntCheck = other.SkipFCntCheck; + } + if (other.ReferenceAltitude != 0D) { + ReferenceAltitude = other.ReferenceAltitude; + } + if (other.IsDisabled != false) { + IsDisabled = other.IsDisabled; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 18: { + DeviceProfileId = input.ReadBytes(); + break; + } + case 26: { + ServiceProfileId = input.ReadBytes(); + break; + } + case 34: { + RoutingProfileId = input.ReadBytes(); + break; + } + case 40: { + SkipFCntCheck = input.ReadBool(); + break; + } + case 49: { + ReferenceAltitude = input.ReadDouble(); + break; + } + case 56: { + IsDisabled = 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.ReadBytes(); + break; + } + case 18: { + DeviceProfileId = input.ReadBytes(); + break; + } + case 26: { + ServiceProfileId = input.ReadBytes(); + break; + } + case 34: { + RoutingProfileId = input.ReadBytes(); + break; + } + case 40: { + SkipFCntCheck = input.ReadBool(); + break; + } + case 49: { + ReferenceAltitude = input.ReadDouble(); + break; + } + case 56: { + IsDisabled = input.ReadBool(); + 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.NetworkServer.NsReflection.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 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.NetworkServer.Device device_; + /// + /// Device object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.NsReflection.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 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 pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(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.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: { + DevEui = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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; + _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.NetworkServer.Device device_; + /// + /// Device object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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; + } + } + + [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; + 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (_unknownFields != 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 (_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.NetworkServer.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); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.NetworkServer.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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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.NetworkServer.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; + } + } + } + } + #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.NetworkServer.NsReflection.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 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.NetworkServer.Device device_; + /// + /// Device object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.NsReflection.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 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 pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(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.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: { + DevEui = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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_; + sNwkSIntKey_ = other.sNwkSIntKey_; + fNwkSIntKey_ = other.fNwkSIntKey_; + nwkSEncKey_ = other.nwkSEncKey_; + fCntUp_ = other.fCntUp_; + nFCntDown_ = other.nFCntDown_; + aFCntDown_ = other.aFCntDown_; + skipFCntCheck_ = other.skipFCntCheck_; + _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 pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dev_addr" field. + public const int DevAddrFieldNumber = 2; + private pb::ByteString devAddr_ = pb::ByteString.Empty; + /// + /// Device address (DevAddr). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevAddr { + get { return devAddr_; } + set { + devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "s_nwk_s_int_key" field. + public const int SNwkSIntKeyFieldNumber = 3; + private pb::ByteString sNwkSIntKey_ = pb::ByteString.Empty; + /// + /// SNwkSIntKey (serving network-server session integrity key). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 = 4; + private pb::ByteString fNwkSIntKey_ = pb::ByteString.Empty; + /// + /// FNwkSIntKey (forwarding network-server session integrity key). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString FNwkSIntKey { + get { return fNwkSIntKey_; } + set { + fNwkSIntKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "nwk_s_enc_key" field. + public const int NwkSEncKeyFieldNumber = 5; + private pb::ByteString nwkSEncKey_ = pb::ByteString.Empty; + /// + /// NwkSEncKey (network-server session encryption key). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString NwkSEncKey { + get { return nwkSEncKey_; } + set { + nwkSEncKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt_up" field. + public const int FCntUpFieldNumber = 6; + private uint fCntUp_; + /// + /// The next expected 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 = 7; + private uint nFCntDown_; + /// + /// The network frame-counter used for the next downlink frame. + /// + [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 = 8; + private uint aFCntDown_; + /// + /// The application frame-counter used for the next downlink frame (LoRaWAN 1.1). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AFCntDown { + get { return aFCntDown_; } + set { + aFCntDown_ = value; + } + } + + /// Field number for the "skip_f_cnt_check" field. + public const int SkipFCntCheckFieldNumber = 9; + 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; + } + } + + [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 (SNwkSIntKey != other.SNwkSIntKey) return false; + if (FNwkSIntKey != other.FNwkSIntKey) return false; + if (NwkSEncKey != other.NwkSEncKey) return false; + if (FCntUp != other.FCntUp) return false; + if (NFCntDown != other.NFCntDown) return false; + if (AFCntDown != other.AFCntDown) return false; + if (SkipFCntCheck != other.SkipFCntCheck) return false; + 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 (SNwkSIntKey.Length != 0) hash ^= SNwkSIntKey.GetHashCode(); + if (FNwkSIntKey.Length != 0) hash ^= FNwkSIntKey.GetHashCode(); + if (NwkSEncKey.Length != 0) hash ^= NwkSEncKey.GetHashCode(); + if (FCntUp != 0) hash ^= FCntUp.GetHashCode(); + if (NFCntDown != 0) hash ^= NFCntDown.GetHashCode(); + if (AFCntDown != 0) hash ^= AFCntDown.GetHashCode(); + if (SkipFCntCheck != false) hash ^= SkipFCntCheck.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevEui); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(DevAddr); + } + if (SNwkSIntKey.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(SNwkSIntKey); + } + if (FNwkSIntKey.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(FNwkSIntKey); + } + if (NwkSEncKey.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(NwkSEncKey); + } + if (FCntUp != 0) { + output.WriteRawTag(48); + output.WriteUInt32(FCntUp); + } + if (NFCntDown != 0) { + output.WriteRawTag(56); + output.WriteUInt32(NFCntDown); + } + if (AFCntDown != 0) { + output.WriteRawTag(64); + output.WriteUInt32(AFCntDown); + } + if (SkipFCntCheck != false) { + output.WriteRawTag(72); + output.WriteBool(SkipFCntCheck); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(DevEui); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(DevAddr); + } + if (SNwkSIntKey.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(SNwkSIntKey); + } + if (FNwkSIntKey.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(FNwkSIntKey); + } + if (NwkSEncKey.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(NwkSEncKey); + } + if (FCntUp != 0) { + output.WriteRawTag(48); + output.WriteUInt32(FCntUp); + } + if (NFCntDown != 0) { + output.WriteRawTag(56); + output.WriteUInt32(NFCntDown); + } + if (AFCntDown != 0) { + output.WriteRawTag(64); + output.WriteUInt32(AFCntDown); + } + if (SkipFCntCheck != false) { + output.WriteRawTag(72); + output.WriteBool(SkipFCntCheck); + } + if (_unknownFields != 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.ComputeBytesSize(DevEui); + } + if (DevAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevAddr); + } + if (SNwkSIntKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(SNwkSIntKey); + } + if (FNwkSIntKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(FNwkSIntKey); + } + if (NwkSEncKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(NwkSEncKey); + } + 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 (SkipFCntCheck != 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(DeviceActivation other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.DevAddr.Length != 0) { + DevAddr = other.DevAddr; + } + if (other.SNwkSIntKey.Length != 0) { + SNwkSIntKey = other.SNwkSIntKey; + } + if (other.FNwkSIntKey.Length != 0) { + FNwkSIntKey = other.FNwkSIntKey; + } + if (other.NwkSEncKey.Length != 0) { + NwkSEncKey = other.NwkSEncKey; + } + if (other.FCntUp != 0) { + FCntUp = other.FCntUp; + } + if (other.NFCntDown != 0) { + NFCntDown = other.NFCntDown; + } + if (other.AFCntDown != 0) { + AFCntDown = other.AFCntDown; + } + if (other.SkipFCntCheck != false) { + SkipFCntCheck = other.SkipFCntCheck; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 18: { + DevAddr = input.ReadBytes(); + break; + } + case 26: { + SNwkSIntKey = input.ReadBytes(); + break; + } + case 34: { + FNwkSIntKey = input.ReadBytes(); + break; + } + case 42: { + NwkSEncKey = input.ReadBytes(); + break; + } + case 48: { + FCntUp = input.ReadUInt32(); + break; + } + case 56: { + NFCntDown = input.ReadUInt32(); + break; + } + case 64: { + AFCntDown = input.ReadUInt32(); + break; + } + case 72: { + SkipFCntCheck = 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.ReadBytes(); + break; + } + case 18: { + DevAddr = input.ReadBytes(); + break; + } + case 26: { + SNwkSIntKey = input.ReadBytes(); + break; + } + case 34: { + FNwkSIntKey = input.ReadBytes(); + break; + } + case 42: { + NwkSEncKey = input.ReadBytes(); + break; + } + case 48: { + FCntUp = input.ReadUInt32(); + break; + } + case 56: { + NFCntDown = input.ReadUInt32(); + break; + } + case 64: { + AFCntDown = input.ReadUInt32(); + break; + } + case 72: { + SkipFCntCheck = input.ReadBool(); + 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.NetworkServer.NsReflection.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 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.NetworkServer.DeviceActivation deviceActivation_; + /// + /// Device-activation to activate a device (ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.NsReflection.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 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 pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(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.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: { + DevEui = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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 pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(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.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: { + DevEui = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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.NetworkServer.DeviceActivation deviceActivation_; + /// + /// Device-activation object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.DeviceActivation(); + } + input.ReadMessage(DeviceActivation); + 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.NetworkServer.NsReflection.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 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 pb::ByteString devAddr_ = pb::ByteString.Empty; + /// + /// Random device address (DevAddr). + /// Note that this includes the NetID prefix of the network-server. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(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.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: { + DevAddr = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateMACCommandQueueItemRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMACCommandQueueItemRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 CreateMACCommandQueueItemRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateMACCommandQueueItemRequest(CreateMACCommandQueueItemRequest other) : this() { + devEui_ = other.devEui_; + cid_ = other.cid_; + commands_ = other.commands_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateMACCommandQueueItemRequest Clone() { + return new CreateMACCommandQueueItemRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cid" field. + public const int CidFieldNumber = 4; + private uint cid_; + /// + /// Command identifier (specified by the LoRaWAN specs). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Cid { + get { return cid_; } + set { + cid_ = value; + } + } + + /// Field number for the "commands" field. + public const int CommandsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_commands_codec + = pb::FieldCodec.ForBytes(42); + private readonly pbc::RepeatedField commands_ = new pbc::RepeatedField(); + /// + /// MAC-command(s). In case multiple payloads are defined, then they + /// are always sent within a single frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Commands { + get { return commands_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateMACCommandQueueItemRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateMACCommandQueueItemRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DevEui != other.DevEui) return false; + if (Cid != other.Cid) return false; + if(!commands_.Equals(other.commands_)) return false; + 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 (Cid != 0) hash ^= Cid.GetHashCode(); + hash ^= commands_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevEui); + } + if (Cid != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Cid); + } + commands_.WriteTo(output, _repeated_commands_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.WriteBytes(DevEui); + } + if (Cid != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Cid); + } + commands_.WriteTo(ref output, _repeated_commands_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.ComputeBytesSize(DevEui); + } + if (Cid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Cid); + } + size += commands_.CalculateSize(_repeated_commands_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateMACCommandQueueItemRequest other) { + if (other == null) { + return; + } + if (other.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.Cid != 0) { + Cid = other.Cid; + } + commands_.Add(other.commands_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 32: { + Cid = input.ReadUInt32(); + break; + } + case 42: { + commands_.AddEntriesFrom(input, _repeated_commands_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.ReadBytes(); + break; + } + case 32: { + Cid = input.ReadUInt32(); + break; + } + case 42: { + commands_.AddEntriesFrom(ref input, _repeated_commands_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class SendProprietaryPayloadRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendProprietaryPayloadRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 SendProprietaryPayloadRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SendProprietaryPayloadRequest(SendProprietaryPayloadRequest other) : this() { + macPayload_ = other.macPayload_; + mic_ = other.mic_; + gatewayMacs_ = other.gatewayMacs_.Clone(); + polarizationInversion_ = other.polarizationInversion_; + frequency_ = other.frequency_; + dr_ = other.dr_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SendProprietaryPayloadRequest Clone() { + return new SendProprietaryPayloadRequest(this); + } + + /// Field number for the "mac_payload" field. + public const int MacPayloadFieldNumber = 1; + private pb::ByteString macPayload_ = pb::ByteString.Empty; + /// + /// MACPayload of the proprietary LoRaWAN frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString MacPayload { + get { return macPayload_; } + set { + macPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mic" field. + public const int MicFieldNumber = 2; + private pb::ByteString mic_ = pb::ByteString.Empty; + /// + /// MIC of the proprietary LoRaWAN frame (must be 4 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Mic { + get { return mic_; } + set { + mic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_macs" field. + public const int GatewayMacsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_gatewayMacs_codec + = pb::FieldCodec.ForBytes(26); + private readonly pbc::RepeatedField gatewayMacs_ = new pbc::RepeatedField(); + /// + /// Gateway MAC address(es) to use for transmitting the LoRaWAN frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GatewayMacs { + get { return gatewayMacs_; } + } + + /// Field number for the "polarization_inversion" field. + public const int PolarizationInversionFieldNumber = 4; + private bool polarizationInversion_; + /// + /// Set to true for sending as a gateway, or false for sending as a node. + /// In the latter case the frame will be received by other gateways. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PolarizationInversion { + get { return polarizationInversion_; } + set { + polarizationInversion_ = value; + } + } + + /// Field number for the "frequency" field. + public const int FrequencyFieldNumber = 5; + private uint frequency_; + /// + /// Frequency (Hz) to use for the transmission. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Frequency { + get { return frequency_; } + set { + frequency_ = value; + } + } + + /// Field number for the "dr" field. + public const int DrFieldNumber = 6; + private uint dr_; + /// + /// Data-rate to use for the transmission. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Dr { + get { return dr_; } + set { + dr_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SendProprietaryPayloadRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SendProprietaryPayloadRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MacPayload != other.MacPayload) return false; + if (Mic != other.Mic) return false; + if(!gatewayMacs_.Equals(other.gatewayMacs_)) return false; + if (PolarizationInversion != other.PolarizationInversion) return false; + if (Frequency != other.Frequency) return false; + if (Dr != other.Dr) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MacPayload.Length != 0) hash ^= MacPayload.GetHashCode(); + if (Mic.Length != 0) hash ^= Mic.GetHashCode(); + hash ^= gatewayMacs_.GetHashCode(); + if (PolarizationInversion != false) hash ^= PolarizationInversion.GetHashCode(); + if (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (Dr != 0) hash ^= Dr.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MacPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(MacPayload); + } + if (Mic.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Mic); + } + gatewayMacs_.WriteTo(output, _repeated_gatewayMacs_codec); + if (PolarizationInversion != false) { + output.WriteRawTag(32); + output.WriteBool(PolarizationInversion); + } + if (Frequency != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Frequency); + } + if (Dr != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Dr); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MacPayload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(MacPayload); + } + if (Mic.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Mic); + } + gatewayMacs_.WriteTo(ref output, _repeated_gatewayMacs_codec); + if (PolarizationInversion != false) { + output.WriteRawTag(32); + output.WriteBool(PolarizationInversion); + } + if (Frequency != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Frequency); + } + if (Dr != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Dr); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MacPayload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(MacPayload); + } + if (Mic.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Mic); + } + size += gatewayMacs_.CalculateSize(_repeated_gatewayMacs_codec); + if (PolarizationInversion != false) { + size += 1 + 1; + } + if (Frequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); + } + if (Dr != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Dr); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SendProprietaryPayloadRequest other) { + if (other == null) { + return; + } + if (other.MacPayload.Length != 0) { + MacPayload = other.MacPayload; + } + if (other.Mic.Length != 0) { + Mic = other.Mic; + } + gatewayMacs_.Add(other.gatewayMacs_); + if (other.PolarizationInversion != false) { + PolarizationInversion = other.PolarizationInversion; + } + if (other.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.Dr != 0) { + Dr = other.Dr; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + MacPayload = input.ReadBytes(); + break; + } + case 18: { + Mic = input.ReadBytes(); + break; + } + case 26: { + gatewayMacs_.AddEntriesFrom(input, _repeated_gatewayMacs_codec); + break; + } + case 32: { + PolarizationInversion = input.ReadBool(); + break; + } + case 40: { + Frequency = input.ReadUInt32(); + break; + } + case 48: { + Dr = 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: { + MacPayload = input.ReadBytes(); + break; + } + case 18: { + Mic = input.ReadBytes(); + break; + } + case 26: { + gatewayMacs_.AddEntriesFrom(ref input, _repeated_gatewayMacs_codec); + break; + } + case 32: { + PolarizationInversion = input.ReadBool(); + break; + } + case 40: { + Frequency = input.ReadUInt32(); + break; + } + case 48: { + Dr = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + 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.NetworkServer.NsReflection.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 Gateway() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Gateway(Gateway other) : this() { + id_ = other.id_; + location_ = other.location_ != null ? other.location_.Clone() : null; + gatewayProfileId_ = other.gatewayProfileId_; + boards_ = other.boards_.Clone(); + routingProfileId_ = other.routingProfileId_; + serviceProfileId_ = other.serviceProfileId_; + _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 "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Gateway ID (8 bytes EUI64). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 2; + 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 "gateway_profile_id" field. + public const int GatewayProfileIdFieldNumber = 3; + private pb::ByteString gatewayProfileId_ = pb::ByteString.Empty; + /// + /// ID of the gateway-profile (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString GatewayProfileId { + get { return gatewayProfileId_; } + set { + gatewayProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "boards" field. + public const int BoardsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_boards_codec + = pb::FieldCodec.ForMessage(34, global::Chirpstack.NetworkServer.GatewayBoard.Parser); + private readonly pbc::RepeatedField boards_ = new pbc::RepeatedField(); + /// + /// Gateway boards configuration (optional). + /// This is (currently) only needed when the gateway supports the fine-timestamp + /// and you you would like to add the FPGA ID to the gateway meta-data or would + /// like ChirpStack Network Server to decrypt the fine-timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Boards { + get { return boards_; } + } + + /// Field number for the "routing_profile_id" field. + public const int RoutingProfileIdFieldNumber = 5; + private pb::ByteString routingProfileId_ = pb::ByteString.Empty; + /// + /// Routing Profile ID. + /// The routing-profile ID defines to which application-server statistical + /// data for this gateway is forwarded. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString RoutingProfileId { + get { return routingProfileId_; } + set { + routingProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_profile_id" field. + public const int ServiceProfileIdFieldNumber = 6; + private pb::ByteString serviceProfileId_ = pb::ByteString.Empty; + /// + /// Service-profile ID (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString ServiceProfileId { + get { return serviceProfileId_; } + set { + serviceProfileId_ = 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 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 (Id != other.Id) return false; + if (!object.Equals(Location, other.Location)) return false; + if (GatewayProfileId != other.GatewayProfileId) return false; + if(!boards_.Equals(other.boards_)) return false; + if (RoutingProfileId != other.RoutingProfileId) return false; + if (ServiceProfileId != other.ServiceProfileId) return false; + 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 (location_ != null) hash ^= Location.GetHashCode(); + if (GatewayProfileId.Length != 0) hash ^= GatewayProfileId.GetHashCode(); + hash ^= boards_.GetHashCode(); + if (RoutingProfileId.Length != 0) hash ^= RoutingProfileId.GetHashCode(); + if (ServiceProfileId.Length != 0) hash ^= ServiceProfileId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(Id); + } + if (location_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Location); + } + if (GatewayProfileId.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(GatewayProfileId); + } + boards_.WriteTo(output, _repeated_boards_codec); + if (RoutingProfileId.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(RoutingProfileId); + } + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(ServiceProfileId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(Id); + } + if (location_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Location); + } + if (GatewayProfileId.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(GatewayProfileId); + } + boards_.WriteTo(ref output, _repeated_boards_codec); + if (RoutingProfileId.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(RoutingProfileId); + } + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(ServiceProfileId); + } + if (_unknownFields != 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.ComputeBytesSize(Id); + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + if (GatewayProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayProfileId); + } + size += boards_.CalculateSize(_repeated_boards_codec); + if (RoutingProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(RoutingProfileId); + } + if (ServiceProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ServiceProfileId); + } + 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.Id.Length != 0) { + Id = other.Id; + } + if (other.location_ != null) { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + Location.MergeFrom(other.Location); + } + if (other.GatewayProfileId.Length != 0) { + GatewayProfileId = other.GatewayProfileId; + } + boards_.Add(other.boards_); + if (other.RoutingProfileId.Length != 0) { + RoutingProfileId = other.RoutingProfileId; + } + if (other.ServiceProfileId.Length != 0) { + ServiceProfileId = other.ServiceProfileId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 18: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 26: { + GatewayProfileId = input.ReadBytes(); + break; + } + case 34: { + boards_.AddEntriesFrom(input, _repeated_boards_codec); + break; + } + case 42: { + RoutingProfileId = input.ReadBytes(); + break; + } + case 50: { + ServiceProfileId = 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: { + Id = input.ReadBytes(); + break; + } + case 18: { + if (location_ == null) { + Location = new global::Chirpstack.Common.Location(); + } + input.ReadMessage(Location); + break; + } + case 26: { + GatewayProfileId = input.ReadBytes(); + break; + } + case 34: { + boards_.AddEntriesFrom(ref input, _repeated_boards_codec); + break; + } + case 42: { + RoutingProfileId = input.ReadBytes(); + break; + } + case 50: { + ServiceProfileId = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GatewayBoard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayBoard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GatewayBoard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayBoard(GatewayBoard other) : this() { + fpgaId_ = other.fpgaId_; + fineTimestampKey_ = other.fineTimestampKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayBoard Clone() { + return new GatewayBoard(this); + } + + /// Field number for the "fpga_id" field. + public const int FpgaIdFieldNumber = 1; + private pb::ByteString fpgaId_ = pb::ByteString.Empty; + /// + /// FPGA ID of the gateway (8 bytes) (optional). + /// + [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"); + } + } + + /// Field number for the "fine_timestamp_key" field. + public const int FineTimestampKeyFieldNumber = 2; + private pb::ByteString fineTimestampKey_ = pb::ByteString.Empty; + /// + /// Fine-timestamp AES decryption key (16 bytes) (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString FineTimestampKey { + get { return fineTimestampKey_; } + set { + fineTimestampKey_ = 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 GatewayBoard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayBoard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FpgaId != other.FpgaId) return false; + if (FineTimestampKey != other.FineTimestampKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FpgaId.Length != 0) hash ^= FpgaId.GetHashCode(); + if (FineTimestampKey.Length != 0) hash ^= FineTimestampKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FpgaId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(FpgaId); + } + if (FineTimestampKey.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(FineTimestampKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FpgaId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(FpgaId); + } + if (FineTimestampKey.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(FineTimestampKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FpgaId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(FpgaId); + } + if (FineTimestampKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(FineTimestampKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GatewayBoard other) { + if (other == null) { + return; + } + if (other.FpgaId.Length != 0) { + FpgaId = other.FpgaId; + } + if (other.FineTimestampKey.Length != 0) { + FineTimestampKey = other.FineTimestampKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + FpgaId = input.ReadBytes(); + break; + } + case 18: { + FineTimestampKey = 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: { + FpgaId = input.ReadBytes(); + break; + } + case 18: { + FineTimestampKey = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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.NetworkServer.Gateway gateway_; + /// + /// Gateway object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.NsReflection.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 GetGatewayRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayRequest(GetGatewayRequest other) : this() { + id_ = other.id_; + _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 "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 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 (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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + 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.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.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: { + Id = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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; + firstSeenAt_ = other.firstSeenAt_ != null ? other.firstSeenAt_.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.NetworkServer.Gateway gateway_; + /// + /// Gateway object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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 "first_seen_at" field. + public const int FirstSeenAtFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp firstSeenAt_; + /// + /// First seen timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FirstSeenAt { + get { return firstSeenAt_; } + set { + firstSeenAt_ = value; + } + } + + /// Field number for the "last_seen_at" field. + public const int LastSeenAtFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastSeenAt_; + /// + /// Last seen 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(FirstSeenAt, other.FirstSeenAt)) 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 (firstSeenAt_ != null) hash ^= FirstSeenAt.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 (firstSeenAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(FirstSeenAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(42); + 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 (firstSeenAt_ != null) { + output.WriteRawTag(34); + output.WriteMessage(FirstSeenAt); + } + if (lastSeenAt_ != null) { + output.WriteRawTag(42); + 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 (firstSeenAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FirstSeenAt); + } + 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.NetworkServer.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.firstSeenAt_ != null) { + if (firstSeenAt_ == null) { + FirstSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FirstSeenAt.MergeFrom(other.FirstSeenAt); + } + 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.NetworkServer.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 (firstSeenAt_ == null) { + FirstSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FirstSeenAt); + break; + } + case 42: { + 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.NetworkServer.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 (firstSeenAt_ == null) { + FirstSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FirstSeenAt); + break; + } + case 42: { + 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.NetworkServer.NsReflection.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 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.NetworkServer.Gateway gateway_; + /// + /// Gateway object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.NsReflection.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 DeleteGatewayRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteGatewayRequest(DeleteGatewayRequest other) : this() { + id_ = other.id_; + _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 "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 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 (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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + 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.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.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: { + Id = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 GenerateGatewayClientCertificateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateGatewayClientCertificateRequest(GenerateGatewayClientCertificateRequest other) : this() { + id_ = other.id_; + _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 "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Gateway ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 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 (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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + 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.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.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: { + Id = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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 pb::ByteString tlsCert_ = pb::ByteString.Empty; + /// + /// TLS certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString TlsCert { + get { return tlsCert_; } + set { + tlsCert_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tls_key" field. + public const int TlsKeyFieldNumber = 2; + private pb::ByteString tlsKey_ = pb::ByteString.Empty; + /// + /// TLS key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString TlsKey { + get { return tlsKey_; } + set { + tlsKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ca_cert" field. + public const int CaCertFieldNumber = 3; + private pb::ByteString caCert_ = pb::ByteString.Empty; + /// + /// CA certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.WriteBytes(TlsCert); + } + if (TlsKey.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(TlsKey); + } + if (CaCert.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(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.WriteBytes(TlsCert); + } + if (TlsKey.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(TlsKey); + } + if (CaCert.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(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.ComputeBytesSize(TlsCert); + } + if (TlsKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(TlsKey); + } + if (CaCert.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(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.ReadBytes(); + break; + } + case 18: { + TlsKey = input.ReadBytes(); + break; + } + case 26: { + CaCert = input.ReadBytes(); + 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.ReadBytes(); + break; + } + case 18: { + TlsKey = input.ReadBytes(); + break; + } + case 26: { + CaCert = input.ReadBytes(); + break; + } + case 34: { + if (expiresAt_ == null) { + ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiresAt); + 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.NetworkServer.NsReflection.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 GatewayStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayStats(GatewayStats other) : this() { + timestamp_ = other.timestamp_ != null ? other.timestamp_.Clone() : null; + rxPacketsReceived_ = other.rxPacketsReceived_; + rxPacketsReceivedOk_ = other.rxPacketsReceivedOk_; + txPacketsReceived_ = other.txPacketsReceived_; + txPacketsEmitted_ = other.txPacketsEmitted_; + _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 "timestamp" field. + public const int TimestampFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp timestamp_; + /// + /// Timestamp of the (aggregated) measurement. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp Timestamp { + get { return timestamp_; } + set { + timestamp_ = value; + } + } + + /// Field number for the "rx_packets_received" field. + public const int RxPacketsReceivedFieldNumber = 2; + private int rxPacketsReceived_; + /// + /// Packets received by the gateway. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RxPacketsReceived { + get { return rxPacketsReceived_; } + set { + rxPacketsReceived_ = value; + } + } + + /// Field number for the "rx_packets_received_ok" field. + public const int RxPacketsReceivedOkFieldNumber = 3; + private int rxPacketsReceivedOk_; + /// + /// Packets received by the gateway that passed the CRC check. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RxPacketsReceivedOk { + get { return rxPacketsReceivedOk_; } + set { + rxPacketsReceivedOk_ = value; + } + } + + /// Field number for the "tx_packets_received" field. + public const int TxPacketsReceivedFieldNumber = 4; + private int txPacketsReceived_; + /// + /// Packets received by the gateway for transmission. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TxPacketsReceived { + get { return txPacketsReceived_; } + set { + txPacketsReceived_ = value; + } + } + + /// Field number for the "tx_packets_emitted" field. + public const int TxPacketsEmittedFieldNumber = 5; + private int txPacketsEmitted_; + /// + /// Packets transmitted by the gateway. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TxPacketsEmitted { + get { return txPacketsEmitted_; } + set { + txPacketsEmitted_ = value; + } + } + + [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 (!object.Equals(Timestamp, other.Timestamp)) 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (timestamp_ != null) hash ^= Timestamp.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(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (timestamp_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Timestamp); + } + if (RxPacketsReceived != 0) { + output.WriteRawTag(16); + output.WriteInt32(RxPacketsReceived); + } + if (RxPacketsReceivedOk != 0) { + output.WriteRawTag(24); + output.WriteInt32(RxPacketsReceivedOk); + } + if (TxPacketsReceived != 0) { + output.WriteRawTag(32); + output.WriteInt32(TxPacketsReceived); + } + if (TxPacketsEmitted != 0) { + output.WriteRawTag(40); + output.WriteInt32(TxPacketsEmitted); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (timestamp_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Timestamp); + } + if (RxPacketsReceived != 0) { + output.WriteRawTag(16); + output.WriteInt32(RxPacketsReceived); + } + if (RxPacketsReceivedOk != 0) { + output.WriteRawTag(24); + output.WriteInt32(RxPacketsReceivedOk); + } + if (TxPacketsReceived != 0) { + output.WriteRawTag(32); + output.WriteInt32(TxPacketsReceived); + } + if (TxPacketsEmitted != 0) { + output.WriteRawTag(40); + output.WriteInt32(TxPacketsEmitted); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (timestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Timestamp); + } + if (RxPacketsReceived != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RxPacketsReceived); + } + if (RxPacketsReceivedOk != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RxPacketsReceivedOk); + } + if (TxPacketsReceived != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TxPacketsReceived); + } + if (TxPacketsEmitted != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TxPacketsEmitted); + } + 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.timestamp_ != null) { + if (timestamp_ == null) { + Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + Timestamp.MergeFrom(other.Timestamp); + } + 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; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (timestamp_ == null) { + Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Timestamp); + break; + } + case 16: { + RxPacketsReceived = input.ReadInt32(); + break; + } + case 24: { + RxPacketsReceivedOk = input.ReadInt32(); + break; + } + case 32: { + TxPacketsReceived = input.ReadInt32(); + break; + } + case 40: { + TxPacketsEmitted = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (timestamp_ == null) { + Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(Timestamp); + break; + } + case 16: { + RxPacketsReceived = input.ReadInt32(); + break; + } + case 24: { + RxPacketsReceivedOk = input.ReadInt32(); + break; + } + case 32: { + TxPacketsReceived = input.ReadInt32(); + break; + } + case 40: { + TxPacketsEmitted = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGatewayStatsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayStatsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetGatewayStatsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayStatsRequest(GetGatewayStatsRequest other) : this() { + gatewayId_ = other.gatewayId_; + interval_ = other.interval_; + startTimestamp_ = other.startTimestamp_ != null ? other.startTimestamp_.Clone() : null; + endTimestamp_ = other.endTimestamp_ != null ? other.endTimestamp_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayStatsRequest Clone() { + return new GetGatewayStatsRequest(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + private pb::ByteString gatewayId_ = pb::ByteString.Empty; + /// + /// MAC address of the gateway. + /// + [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 "interval" field. + public const int IntervalFieldNumber = 2; + private global::Chirpstack.NetworkServer.AggregationInterval interval_ = global::Chirpstack.NetworkServer.AggregationInterval.Second; + /// + /// Aggregation interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.AggregationInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + /// Field number for the "start_timestamp" field. + public const int StartTimestampFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTimestamp_; + /// + /// Timestamp to start from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTimestamp { + get { return startTimestamp_; } + set { + startTimestamp_ = value; + } + } + + /// Field number for the "end_timestamp" field. + public const int EndTimestampFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTimestamp_; + /// + /// Timestamp until to get from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTimestamp { + get { return endTimestamp_; } + set { + endTimestamp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGatewayStatsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewayStatsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GatewayId != other.GatewayId) return false; + if (Interval != other.Interval) return false; + if (!object.Equals(StartTimestamp, other.StartTimestamp)) return false; + if (!object.Equals(EndTimestamp, other.EndTimestamp)) return false; + 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 (Interval != global::Chirpstack.NetworkServer.AggregationInterval.Second) hash ^= Interval.GetHashCode(); + if (startTimestamp_ != null) hash ^= StartTimestamp.GetHashCode(); + if (endTimestamp_ != null) hash ^= EndTimestamp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Interval != global::Chirpstack.NetworkServer.AggregationInterval.Second) { + output.WriteRawTag(16); + output.WriteEnum((int) Interval); + } + if (startTimestamp_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTimestamp); + } + if (endTimestamp_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndTimestamp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Interval != global::Chirpstack.NetworkServer.AggregationInterval.Second) { + output.WriteRawTag(16); + output.WriteEnum((int) Interval); + } + if (startTimestamp_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTimestamp); + } + if (endTimestamp_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndTimestamp); + } + if (_unknownFields != 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 (Interval != global::Chirpstack.NetworkServer.AggregationInterval.Second) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Interval); + } + if (startTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTimestamp); + } + if (endTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTimestamp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGatewayStatsRequest other) { + if (other == null) { + return; + } + if (other.GatewayId.Length != 0) { + GatewayId = other.GatewayId; + } + if (other.Interval != global::Chirpstack.NetworkServer.AggregationInterval.Second) { + Interval = other.Interval; + } + if (other.startTimestamp_ != null) { + if (startTimestamp_ == null) { + StartTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTimestamp.MergeFrom(other.StartTimestamp); + } + if (other.endTimestamp_ != null) { + if (endTimestamp_ == null) { + EndTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTimestamp.MergeFrom(other.EndTimestamp); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 16: { + Interval = (global::Chirpstack.NetworkServer.AggregationInterval) input.ReadEnum(); + break; + } + case 26: { + if (startTimestamp_ == null) { + StartTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTimestamp); + break; + } + case 34: { + if (endTimestamp_ == null) { + EndTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTimestamp); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 16: { + Interval = (global::Chirpstack.NetworkServer.AggregationInterval) input.ReadEnum(); + break; + } + case 26: { + if (startTimestamp_ == null) { + StartTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTimestamp); + break; + } + case 34: { + if (endTimestamp_ == null) { + EndTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTimestamp); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGatewayStatsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayStatsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetGatewayStatsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayStatsResponse(GetGatewayStatsResponse other) : this() { + result_ = other.result_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayStatsResponse Clone() { + return new GetGatewayStatsResponse(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.NetworkServer.GatewayStats.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 GetGatewayStatsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewayStatsResponse 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(GetGatewayStatsResponse 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 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.NetworkServer.NsReflection.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 DeviceQueueItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceQueueItem(DeviceQueueItem other) : this() { + devEui_ = other.devEui_; + frmPayload_ = other.frmPayload_; + fCnt_ = other.fCnt_; + fPort_ = other.fPort_; + confirmed_ = other.confirmed_; + devAddr_ = other.devAddr_; + _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 "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI of the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "frm_payload" field. + public const int FrmPayloadFieldNumber = 2; + private pb::ByteString frmPayload_ = pb::ByteString.Empty; + /// + /// The encrypted FRMPayload bytes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString FrmPayload { + get { return frmPayload_; } + set { + frmPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 3; + private uint fCnt_; + /// + /// The FCnt of the payload. + /// + [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 = 4; + private uint fPort_; + /// + /// The FPort of the payload. + /// + [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 = 5; + private bool confirmed_; + /// + /// When set to true, ChirpStack Network Server will wait for the device to ack the + /// received frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Confirmed { + get { return confirmed_; } + set { + confirmed_ = value; + } + } + + /// Field number for the "dev_addr" field. + public const int DevAddrFieldNumber = 6; + private pb::ByteString devAddr_ = pb::ByteString.Empty; + /// + /// Device address (as known by the application-server). + /// It will be used to validate that the application-server is + /// using the correct security context of the device. As on OTAA, there + /// is a gap between the activation and the delivery of the AppSKey to the + /// application-server, there is a possibility that the application-server + /// tries to enqueue payloads encrypted with the old session-key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 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 (DevEui != other.DevEui) return false; + if (FrmPayload != other.FrmPayload) return false; + if (FCnt != other.FCnt) return false; + if (FPort != other.FPort) return false; + if (Confirmed != other.Confirmed) 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 (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); + if (FrmPayload.Length != 0) hash ^= FrmPayload.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.GetHashCode(); + if (FPort != 0) hash ^= FPort.GetHashCode(); + if (Confirmed != false) hash ^= Confirmed.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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (FrmPayload.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(FrmPayload); + } + if (FCnt != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(32); + output.WriteUInt32(FPort); + } + if (Confirmed != false) { + output.WriteRawTag(40); + output.WriteBool(Confirmed); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (FrmPayload.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(FrmPayload); + } + if (FCnt != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(32); + output.WriteUInt32(FPort); + } + if (Confirmed != false) { + output.WriteRawTag(40); + output.WriteBool(Confirmed); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(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 (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (FrmPayload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(FrmPayload); + } + 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 (DevAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevAddr); + } + 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.DevEui.Length != 0) { + DevEui = other.DevEui; + } + if (other.FrmPayload.Length != 0) { + FrmPayload = other.FrmPayload; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + if (other.FPort != 0) { + FPort = other.FPort; + } + if (other.Confirmed != false) { + Confirmed = other.Confirmed; + } + 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: { + DevEui = input.ReadBytes(); + break; + } + case 18: { + FrmPayload = input.ReadBytes(); + break; + } + case 24: { + FCnt = input.ReadUInt32(); + break; + } + case 32: { + FPort = input.ReadUInt32(); + break; + } + case 40: { + Confirmed = input.ReadBool(); + break; + } + case 50: { + DevAddr = 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: { + DevEui = input.ReadBytes(); + break; + } + case 18: { + FrmPayload = input.ReadBytes(); + break; + } + case 24: { + FCnt = input.ReadUInt32(); + break; + } + case 32: { + FPort = input.ReadUInt32(); + break; + } + case 40: { + Confirmed = input.ReadBool(); + break; + } + case 50: { + DevAddr = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateDeviceQueueItemRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeviceQueueItemRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 CreateDeviceQueueItemRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceQueueItemRequest(CreateDeviceQueueItemRequest other) : this() { + item_ = other.item_ != null ? other.item_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDeviceQueueItemRequest Clone() { + return new CreateDeviceQueueItemRequest(this); + } + + /// Field number for the "item" field. + public const int ItemFieldNumber = 1; + private global::Chirpstack.NetworkServer.DeviceQueueItem item_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.DeviceQueueItem Item { + get { return item_; } + set { + item_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateDeviceQueueItemRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateDeviceQueueItemRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Item, other.Item)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (item_ != null) hash ^= Item.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (item_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Item); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (item_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Item); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (item_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateDeviceQueueItemRequest other) { + if (other == null) { + return; + } + if (other.item_ != null) { + if (item_ == null) { + Item = new global::Chirpstack.NetworkServer.DeviceQueueItem(); + } + Item.MergeFrom(other.Item); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (item_ == null) { + Item = new global::Chirpstack.NetworkServer.DeviceQueueItem(); + } + input.ReadMessage(Item); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (item_ == null) { + Item = new global::Chirpstack.NetworkServer.DeviceQueueItem(); + } + input.ReadMessage(Item); + break; + } + } + } + } + #endif + + } + + public sealed partial class FlushDeviceQueueForDevEUIRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushDeviceQueueForDevEUIRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 FlushDeviceQueueForDevEUIRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushDeviceQueueForDevEUIRequest(FlushDeviceQueueForDevEUIRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushDeviceQueueForDevEUIRequest Clone() { + return new FlushDeviceQueueForDevEUIRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI of the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 FlushDeviceQueueForDevEUIRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FlushDeviceQueueForDevEUIRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(DevEui); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FlushDeviceQueueForDevEUIRequest 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.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: { + DevEui = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceQueueItemsForDevEUIRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceQueueItemsForDevEUIRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetDeviceQueueItemsForDevEUIRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceQueueItemsForDevEUIRequest(GetDeviceQueueItemsForDevEUIRequest 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 GetDeviceQueueItemsForDevEUIRequest Clone() { + return new GetDeviceQueueItemsForDevEUIRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI of the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 GetDeviceQueueItemsForDevEUIRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceQueueItemsForDevEUIRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(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(GetDeviceQueueItemsForDevEUIRequest 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.ReadBytes(); + 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.ReadBytes(); + break; + } + case 16: { + CountOnly = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetDeviceQueueItemsForDevEUIResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceQueueItemsForDevEUIResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetDeviceQueueItemsForDevEUIResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceQueueItemsForDevEUIResponse(GetDeviceQueueItemsForDevEUIResponse other) : this() { + items_ = other.items_.Clone(); + totalCount_ = other.totalCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDeviceQueueItemsForDevEUIResponse Clone() { + return new GetDeviceQueueItemsForDevEUIResponse(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.NetworkServer.DeviceQueueItem.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + /// + /// The device queue items. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 2; + private uint totalCount_; + /// + /// Total number of items in the queue. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalCount { + get { return totalCount_; } + set { + totalCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDeviceQueueItemsForDevEUIResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDeviceQueueItemsForDevEUIResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!items_.Equals(other.items_)) return false; + if (TotalCount != other.TotalCount) return 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.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 (TotalCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(TotalCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !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 (TotalCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(TotalCount); + } + if (_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 (TotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDeviceQueueItemsForDevEUIResponse other) { + if (other == null) { + return; + } + items_.Add(other.items_); + if (other.TotalCount != 0) { + TotalCount = other.TotalCount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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; + } + case 16: { + TotalCount = 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: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + case 16: { + TotalCount = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetNextDownlinkFCntForDevEUIRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetNextDownlinkFCntForDevEUIRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetNextDownlinkFCntForDevEUIRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNextDownlinkFCntForDevEUIRequest(GetNextDownlinkFCntForDevEUIRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNextDownlinkFCntForDevEUIRequest Clone() { + return new GetNextDownlinkFCntForDevEUIRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI of the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 GetNextDownlinkFCntForDevEUIRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetNextDownlinkFCntForDevEUIRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(DevEui); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetNextDownlinkFCntForDevEUIRequest 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.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: { + DevEui = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetNextDownlinkFCntForDevEUIResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetNextDownlinkFCntForDevEUIResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetNextDownlinkFCntForDevEUIResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNextDownlinkFCntForDevEUIResponse(GetNextDownlinkFCntForDevEUIResponse other) : this() { + fCnt_ = other.fCnt_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNextDownlinkFCntForDevEUIResponse Clone() { + return new GetNextDownlinkFCntForDevEUIResponse(this); + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 1; + private uint fCnt_; + /// + /// The frame-counter to use. + /// + [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 GetNextDownlinkFCntForDevEUIResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetNextDownlinkFCntForDevEUIResponse 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(GetNextDownlinkFCntForDevEUIResponse 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 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.NetworkServer.NsReflection.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 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_; + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.Clone() : null; + _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 pb::ByteString devAddr_ = pb::ByteString.Empty; + /// + /// Device address (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevAddr { + get { return devAddr_; } + set { + devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 6; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "published_at" field. + public const int PublishedAtFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = 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(PublishedAt, other.PublishedAt)) return false; + 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 (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(DevAddr); + } + if (DevEui.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(DevEui); + } + if (publishedAt_ != null) { + output.WriteRawTag(58); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(DevAddr); + } + if (DevEui.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(DevEui); + } + if (publishedAt_ != null) { + output.WriteRawTag(58); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != 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.ComputeBytesSize(DevAddr); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (publishedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + 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.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 50: { + DevEui = input.ReadBytes(); + break; + } + case 58: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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.ReadBytes(); + break; + } + case 50: { + DevEui = input.ReadBytes(); + break; + } + case 58: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + 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.NetworkServer.NsReflection.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 DownlinkFrameLog() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DownlinkFrameLog(DownlinkFrameLog other) : this() { + phyPayload_ = other.phyPayload_; + txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; + token_ = other.token_; + downlinkId_ = other.downlinkId_; + gatewayId_ = other.gatewayId_; + mType_ = other.mType_; + devAddr_ = other.devAddr_; + devEui_ = other.devEui_; + publishedAt_ = other.publishedAt_ != null ? other.publishedAt_.Clone() : null; + _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 "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.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 "token" field. + public const int TokenFieldNumber = 3; + private uint token_; + /// + /// Token (uint16 value). + /// Deprecated: replaced by downlink_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Token { + get { return token_; } + set { + token_ = value; + } + } + + /// Field number for the "downlink_id" field. + public const int DownlinkIdFieldNumber = 4; + private pb::ByteString downlinkId_ = pb::ByteString.Empty; + /// + /// Downlink ID (UUID). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DownlinkId { + get { return downlinkId_; } + set { + downlinkId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 5; + 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 "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 pb::ByteString devAddr_ = pb::ByteString.Empty; + /// + /// Device address (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevAddr { + get { return devAddr_; } + set { + devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 8; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (optional). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DevEui { + get { return devEui_; } + set { + devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "published_at" field. + public const int PublishedAtFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp publishedAt_; + /// + /// Published at timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PublishedAt { + get { return publishedAt_; } + set { + publishedAt_ = 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 (PhyPayload != other.PhyPayload) return false; + if (!object.Equals(TxInfo, other.TxInfo)) return false; + if (Token != other.Token) 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 (!object.Equals(PublishedAt, other.PublishedAt)) return false; + 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(); + if (Token != 0) hash ^= Token.GetHashCode(); + if (DownlinkId.Length != 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 (publishedAt_ != null) hash ^= PublishedAt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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); + } + if (Token != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Token); + } + if (DownlinkId.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DownlinkId); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(GatewayId); + } + if (MType != global::Chirpstack.Common.MType.JoinRequest) { + output.WriteRawTag(48); + output.WriteEnum((int) MType); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(58); + output.WriteBytes(DevAddr); + } + if (DevEui.Length != 0) { + output.WriteRawTag(66); + output.WriteBytes(DevEui); + } + if (publishedAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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); + } + if (Token != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Token); + } + if (DownlinkId.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(DownlinkId); + } + if (GatewayId.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(GatewayId); + } + if (MType != global::Chirpstack.Common.MType.JoinRequest) { + output.WriteRawTag(48); + output.WriteEnum((int) MType); + } + if (DevAddr.Length != 0) { + output.WriteRawTag(58); + output.WriteBytes(DevAddr); + } + if (DevEui.Length != 0) { + output.WriteRawTag(66); + output.WriteBytes(DevEui); + } + if (publishedAt_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PublishedAt); + } + if (_unknownFields != 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); + } + if (Token != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Token); + } + if (DownlinkId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DownlinkId); + } + if (GatewayId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayId); + } + if (MType != global::Chirpstack.Common.MType.JoinRequest) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MType); + } + if (DevAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevAddr); + } + if (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (publishedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishedAt); + } + 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.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.Token != 0) { + Token = other.Token; + } + if (other.DownlinkId.Length != 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.publishedAt_ != null) { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PublishedAt.MergeFrom(other.PublishedAt); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.DownlinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 24: { + Token = input.ReadUInt32(); + break; + } + case 34: { + DownlinkId = input.ReadBytes(); + break; + } + case 42: { + GatewayId = input.ReadBytes(); + break; + } + case 48: { + MType = (global::Chirpstack.Common.MType) input.ReadEnum(); + break; + } + case 58: { + DevAddr = input.ReadBytes(); + break; + } + case 66: { + DevEui = input.ReadBytes(); + break; + } + case 74: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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.DownlinkTXInfo(); + } + input.ReadMessage(TxInfo); + break; + } + case 24: { + Token = input.ReadUInt32(); + break; + } + case 34: { + DownlinkId = input.ReadBytes(); + break; + } + case 42: { + GatewayId = input.ReadBytes(); + break; + } + case 48: { + MType = (global::Chirpstack.Common.MType) input.ReadEnum(); + break; + } + case 58: { + DevAddr = input.ReadBytes(); + break; + } + case 66: { + DevEui = input.ReadBytes(); + break; + } + case 74: { + if (publishedAt_ == null) { + PublishedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PublishedAt); + break; + } + } + } + } + #endif + + } + + public sealed partial class StreamFrameLogsForGatewayRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamFrameLogsForGatewayRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 StreamFrameLogsForGatewayRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamFrameLogsForGatewayRequest(StreamFrameLogsForGatewayRequest other) : this() { + gatewayId_ = other.gatewayId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamFrameLogsForGatewayRequest Clone() { + return new StreamFrameLogsForGatewayRequest(this); + } + + /// Field number for the "gateway_id" field. + public const int GatewayIdFieldNumber = 1; + private pb::ByteString gatewayId_ = pb::ByteString.Empty; + /// + /// MAC address of the gateway. + /// + [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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StreamFrameLogsForGatewayRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamFrameLogsForGatewayRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(GatewayId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StreamFrameLogsForGatewayRequest 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.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; + } + } + } + } + #endif + + } + + public sealed partial class StreamFrameLogsForGatewayResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamFrameLogsForGatewayResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 StreamFrameLogsForGatewayResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamFrameLogsForGatewayResponse(StreamFrameLogsForGatewayResponse other) : this() { + switch (other.FrameCase) { + case FrameOneofCase.UplinkFrameSet: + UplinkFrameSet = other.UplinkFrameSet.Clone(); + break; + case FrameOneofCase.DownlinkFrame: + DownlinkFrame = other.DownlinkFrame.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamFrameLogsForGatewayResponse Clone() { + return new StreamFrameLogsForGatewayResponse(this); + } + + /// Field number for the "uplink_frame_set" field. + public const int UplinkFrameSetFieldNumber = 1; + /// + /// Contains an uplink frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.UplinkFrameLog UplinkFrameSet { + get { return frameCase_ == FrameOneofCase.UplinkFrameSet ? (global::Chirpstack.NetworkServer.UplinkFrameLog) frame_ : null; } + set { + frame_ = value; + frameCase_ = value == null ? FrameOneofCase.None : FrameOneofCase.UplinkFrameSet; + } + } + + /// Field number for the "downlink_frame" field. + public const int DownlinkFrameFieldNumber = 2; + /// + /// Contains a downlink frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.DownlinkFrameLog DownlinkFrame { + get { return frameCase_ == FrameOneofCase.DownlinkFrame ? (global::Chirpstack.NetworkServer.DownlinkFrameLog) frame_ : null; } + set { + frame_ = value; + frameCase_ = value == null ? FrameOneofCase.None : FrameOneofCase.DownlinkFrame; + } + } + + private object frame_; + /// Enum of possible cases for the "frame" oneof. + public enum FrameOneofCase { + None = 0, + UplinkFrameSet = 1, + DownlinkFrame = 2, + } + private FrameOneofCase frameCase_ = FrameOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameOneofCase FrameCase { + get { return frameCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFrame() { + frameCase_ = FrameOneofCase.None; + frame_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StreamFrameLogsForGatewayResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamFrameLogsForGatewayResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UplinkFrameSet, other.UplinkFrameSet)) return false; + if (!object.Equals(DownlinkFrame, other.DownlinkFrame)) return false; + if (FrameCase != other.FrameCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (frameCase_ == FrameOneofCase.UplinkFrameSet) hash ^= UplinkFrameSet.GetHashCode(); + if (frameCase_ == FrameOneofCase.DownlinkFrame) hash ^= DownlinkFrame.GetHashCode(); + hash ^= (int) frameCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (frameCase_ == FrameOneofCase.UplinkFrameSet) { + output.WriteRawTag(10); + output.WriteMessage(UplinkFrameSet); + } + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + output.WriteRawTag(18); + output.WriteMessage(DownlinkFrame); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (frameCase_ == FrameOneofCase.UplinkFrameSet) { + output.WriteRawTag(10); + output.WriteMessage(UplinkFrameSet); + } + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + output.WriteRawTag(18); + output.WriteMessage(DownlinkFrame); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (frameCase_ == FrameOneofCase.UplinkFrameSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UplinkFrameSet); + } + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DownlinkFrame); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StreamFrameLogsForGatewayResponse other) { + if (other == null) { + return; + } + switch (other.FrameCase) { + case FrameOneofCase.UplinkFrameSet: + if (UplinkFrameSet == null) { + UplinkFrameSet = new global::Chirpstack.NetworkServer.UplinkFrameLog(); + } + UplinkFrameSet.MergeFrom(other.UplinkFrameSet); + break; + case FrameOneofCase.DownlinkFrame: + if (DownlinkFrame == null) { + DownlinkFrame = new global::Chirpstack.NetworkServer.DownlinkFrameLog(); + } + DownlinkFrame.MergeFrom(other.DownlinkFrame); + 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.NetworkServer.UplinkFrameLog subBuilder = new global::Chirpstack.NetworkServer.UplinkFrameLog(); + if (frameCase_ == FrameOneofCase.UplinkFrameSet) { + subBuilder.MergeFrom(UplinkFrameSet); + } + input.ReadMessage(subBuilder); + UplinkFrameSet = subBuilder; + break; + } + case 18: { + global::Chirpstack.NetworkServer.DownlinkFrameLog subBuilder = new global::Chirpstack.NetworkServer.DownlinkFrameLog(); + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + subBuilder.MergeFrom(DownlinkFrame); + } + input.ReadMessage(subBuilder); + DownlinkFrame = 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.NetworkServer.UplinkFrameLog subBuilder = new global::Chirpstack.NetworkServer.UplinkFrameLog(); + if (frameCase_ == FrameOneofCase.UplinkFrameSet) { + subBuilder.MergeFrom(UplinkFrameSet); + } + input.ReadMessage(subBuilder); + UplinkFrameSet = subBuilder; + break; + } + case 18: { + global::Chirpstack.NetworkServer.DownlinkFrameLog subBuilder = new global::Chirpstack.NetworkServer.DownlinkFrameLog(); + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + subBuilder.MergeFrom(DownlinkFrame); + } + input.ReadMessage(subBuilder); + DownlinkFrame = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class StreamFrameLogsForDeviceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamFrameLogsForDeviceRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 StreamFrameLogsForDeviceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamFrameLogsForDeviceRequest(StreamFrameLogsForDeviceRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamFrameLogsForDeviceRequest Clone() { + return new StreamFrameLogsForDeviceRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// DevEUI of the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 StreamFrameLogsForDeviceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamFrameLogsForDeviceRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(DevEui); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StreamFrameLogsForDeviceRequest 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.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: { + DevEui = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class StreamFrameLogsForDeviceResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamFrameLogsForDeviceResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 StreamFrameLogsForDeviceResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamFrameLogsForDeviceResponse(StreamFrameLogsForDeviceResponse other) : this() { + switch (other.FrameCase) { + case FrameOneofCase.UplinkFrameSet: + UplinkFrameSet = other.UplinkFrameSet.Clone(); + break; + case FrameOneofCase.DownlinkFrame: + DownlinkFrame = other.DownlinkFrame.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamFrameLogsForDeviceResponse Clone() { + return new StreamFrameLogsForDeviceResponse(this); + } + + /// Field number for the "uplink_frame_set" field. + public const int UplinkFrameSetFieldNumber = 1; + /// + /// Contains an uplink frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.UplinkFrameLog UplinkFrameSet { + get { return frameCase_ == FrameOneofCase.UplinkFrameSet ? (global::Chirpstack.NetworkServer.UplinkFrameLog) frame_ : null; } + set { + frame_ = value; + frameCase_ = value == null ? FrameOneofCase.None : FrameOneofCase.UplinkFrameSet; + } + } + + /// Field number for the "downlink_frame" field. + public const int DownlinkFrameFieldNumber = 2; + /// + /// Contains a downlink frame. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.DownlinkFrameLog DownlinkFrame { + get { return frameCase_ == FrameOneofCase.DownlinkFrame ? (global::Chirpstack.NetworkServer.DownlinkFrameLog) frame_ : null; } + set { + frame_ = value; + frameCase_ = value == null ? FrameOneofCase.None : FrameOneofCase.DownlinkFrame; + } + } + + private object frame_; + /// Enum of possible cases for the "frame" oneof. + public enum FrameOneofCase { + None = 0, + UplinkFrameSet = 1, + DownlinkFrame = 2, + } + private FrameOneofCase frameCase_ = FrameOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameOneofCase FrameCase { + get { return frameCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFrame() { + frameCase_ = FrameOneofCase.None; + frame_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StreamFrameLogsForDeviceResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamFrameLogsForDeviceResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UplinkFrameSet, other.UplinkFrameSet)) return false; + if (!object.Equals(DownlinkFrame, other.DownlinkFrame)) return false; + if (FrameCase != other.FrameCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (frameCase_ == FrameOneofCase.UplinkFrameSet) hash ^= UplinkFrameSet.GetHashCode(); + if (frameCase_ == FrameOneofCase.DownlinkFrame) hash ^= DownlinkFrame.GetHashCode(); + hash ^= (int) frameCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (frameCase_ == FrameOneofCase.UplinkFrameSet) { + output.WriteRawTag(10); + output.WriteMessage(UplinkFrameSet); + } + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + output.WriteRawTag(18); + output.WriteMessage(DownlinkFrame); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (frameCase_ == FrameOneofCase.UplinkFrameSet) { + output.WriteRawTag(10); + output.WriteMessage(UplinkFrameSet); + } + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + output.WriteRawTag(18); + output.WriteMessage(DownlinkFrame); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (frameCase_ == FrameOneofCase.UplinkFrameSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UplinkFrameSet); + } + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DownlinkFrame); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StreamFrameLogsForDeviceResponse other) { + if (other == null) { + return; + } + switch (other.FrameCase) { + case FrameOneofCase.UplinkFrameSet: + if (UplinkFrameSet == null) { + UplinkFrameSet = new global::Chirpstack.NetworkServer.UplinkFrameLog(); + } + UplinkFrameSet.MergeFrom(other.UplinkFrameSet); + break; + case FrameOneofCase.DownlinkFrame: + if (DownlinkFrame == null) { + DownlinkFrame = new global::Chirpstack.NetworkServer.DownlinkFrameLog(); + } + DownlinkFrame.MergeFrom(other.DownlinkFrame); + 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.NetworkServer.UplinkFrameLog subBuilder = new global::Chirpstack.NetworkServer.UplinkFrameLog(); + if (frameCase_ == FrameOneofCase.UplinkFrameSet) { + subBuilder.MergeFrom(UplinkFrameSet); + } + input.ReadMessage(subBuilder); + UplinkFrameSet = subBuilder; + break; + } + case 18: { + global::Chirpstack.NetworkServer.DownlinkFrameLog subBuilder = new global::Chirpstack.NetworkServer.DownlinkFrameLog(); + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + subBuilder.MergeFrom(DownlinkFrame); + } + input.ReadMessage(subBuilder); + DownlinkFrame = 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.NetworkServer.UplinkFrameLog subBuilder = new global::Chirpstack.NetworkServer.UplinkFrameLog(); + if (frameCase_ == FrameOneofCase.UplinkFrameSet) { + subBuilder.MergeFrom(UplinkFrameSet); + } + input.ReadMessage(subBuilder); + UplinkFrameSet = subBuilder; + break; + } + case 18: { + global::Chirpstack.NetworkServer.DownlinkFrameLog subBuilder = new global::Chirpstack.NetworkServer.DownlinkFrameLog(); + if (frameCase_ == FrameOneofCase.DownlinkFrame) { + subBuilder.MergeFrom(DownlinkFrame); + } + input.ReadMessage(subBuilder); + DownlinkFrame = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class GetVersionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetVersionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetVersionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetVersionResponse(GetVersionResponse other) : this() { + version_ = other.version_; + region_ = other.region_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetVersionResponse Clone() { + return new GetVersionResponse(this); + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 1; + private string version_ = ""; + /// + /// ChirpStack Network Server 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 "region" field. + public const int RegionFieldNumber = 2; + private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; + /// + /// Region configured for this network-server. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.Common.Region Region { + get { return region_; } + set { + region_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetVersionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetVersionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Version != other.Version) return false; + if (Region != other.Region) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Version.Length != 0) hash ^= Version.GetHashCode(); + if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(16); + output.WriteEnum((int) Region); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + output.WriteRawTag(16); + output.WriteEnum((int) Region); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (Region != global::Chirpstack.Common.Region.Eu868) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetVersionResponse other) { + if (other == null) { + return; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + if (other.Region != global::Chirpstack.Common.Region.Eu868) { + Region = other.Region; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Version = input.ReadString(); + break; + } + case 16: { + Region = (global::Chirpstack.Common.Region) 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: { + Version = input.ReadString(); + break; + } + case 16: { + Region = (global::Chirpstack.Common.Region) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GatewayProfile : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayProfile()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GatewayProfile() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayProfile(GatewayProfile other) : this() { + id_ = other.id_; + channels_ = other.channels_.Clone(); + extraChannels_ = other.extraChannels_.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 GatewayProfile Clone() { + return new GatewayProfile(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// ID of the gateway-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "channels" field. + public const int ChannelsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_channels_codec + = pb::FieldCodec.ForUInt32(18); + private readonly pbc::RepeatedField channels_ = new pbc::RepeatedField(); + /// + /// Default channels (channels specified by the LoRaWAN Regional Parameters + /// specification) enabled for this configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Channels { + get { return channels_; } + } + + /// Field number for the "extra_channels" field. + public const int ExtraChannelsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_extraChannels_codec + = pb::FieldCodec.ForMessage(26, global::Chirpstack.NetworkServer.GatewayProfileExtraChannel.Parser); + private readonly pbc::RepeatedField extraChannels_ = new pbc::RepeatedField(); + /// + /// Extra channels added to the channel-configuration (in case the LoRaWAN + /// region supports adding custom channels). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ExtraChannels { + get { return extraChannels_; } + } + + /// Field number for the "stats_interval" field. + public const int StatsIntervalFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration statsInterval_; + /// + /// Stats interval. + /// This defines the (expected) stats interval which the gateways using this + /// gateway-profile are using. + /// + [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 GatewayProfile); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayProfile other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!channels_.Equals(other.channels_)) return false; + if(!extraChannels_.Equals(other.extraChannels_)) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + hash ^= channels_.GetHashCode(); + hash ^= extraChannels_.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Id); + } + channels_.WriteTo(output, _repeated_channels_codec); + extraChannels_.WriteTo(output, _repeated_extraChannels_codec); + if (statsInterval_ != null) { + output.WriteRawTag(34); + output.WriteMessage(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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Id); + } + channels_.WriteTo(ref output, _repeated_channels_codec); + extraChannels_.WriteTo(ref output, _repeated_extraChannels_codec); + if (statsInterval_ != null) { + output.WriteRawTag(34); + output.WriteMessage(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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Id); + } + size += channels_.CalculateSize(_repeated_channels_codec); + size += extraChannels_.CalculateSize(_repeated_extraChannels_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(GatewayProfile other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + channels_.Add(other.channels_); + extraChannels_.Add(other.extraChannels_); + 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: { + Id = input.ReadBytes(); + break; + } + case 18: + case 16: { + channels_.AddEntriesFrom(input, _repeated_channels_codec); + break; + } + case 26: { + extraChannels_.AddEntriesFrom(input, _repeated_extraChannels_codec); + break; + } + case 34: { + if (statsInterval_ == null) { + StatsInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StatsInterval); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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.ReadBytes(); + break; + } + case 18: + case 16: { + channels_.AddEntriesFrom(ref input, _repeated_channels_codec); + break; + } + case 26: { + extraChannels_.AddEntriesFrom(ref input, _repeated_extraChannels_codec); + break; + } + case 34: { + if (statsInterval_ == null) { + StatsInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StatsInterval); + break; + } + } + } + } + #endif + + } + + public sealed partial class GatewayProfileExtraChannel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayProfileExtraChannel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GatewayProfileExtraChannel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayProfileExtraChannel(GatewayProfileExtraChannel other) : this() { + modulation_ = other.modulation_; + frequency_ = other.frequency_; + bandwidth_ = other.bandwidth_; + bitrate_ = other.bitrate_; + spreadingFactors_ = other.spreadingFactors_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayProfileExtraChannel Clone() { + return new GatewayProfileExtraChannel(this); + } + + /// Field number for the "modulation" field. + public const int ModulationFieldNumber = 1; + 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 "frequency" field. + public const int FrequencyFieldNumber = 2; + private uint frequency_; + /// + /// Frequency. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Frequency { + get { return frequency_; } + set { + frequency_ = value; + } + } + + /// Field number for the "bandwidth" field. + public const int BandwidthFieldNumber = 3; + 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 "bitrate" field. + public const int BitrateFieldNumber = 4; + private uint bitrate_; + /// + /// Bitrate (in case of FSK modulation). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Bitrate { + get { return bitrate_; } + set { + bitrate_ = value; + } + } + + /// Field number for the "spreading_factors" field. + public const int SpreadingFactorsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_spreadingFactors_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField spreadingFactors_ = new pbc::RepeatedField(); + /// + /// Spreading factors (in case of LoRa modulation). + /// + [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 GatewayProfileExtraChannel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayProfileExtraChannel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Modulation != other.Modulation) return false; + if (Frequency != other.Frequency) return false; + if (Bandwidth != other.Bandwidth) return false; + if (Bitrate != other.Bitrate) 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 (Modulation != global::Chirpstack.Common.Modulation.Lora) hash ^= Modulation.GetHashCode(); + if (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (Bandwidth != 0) hash ^= Bandwidth.GetHashCode(); + if (Bitrate != 0) hash ^= Bitrate.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 (Modulation != global::Chirpstack.Common.Modulation.Lora) { + output.WriteRawTag(8); + output.WriteEnum((int) Modulation); + } + if (Frequency != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Frequency); + } + if (Bandwidth != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Bandwidth); + } + if (Bitrate != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Bitrate); + } + spreadingFactors_.WriteTo(output, _repeated_spreadingFactors_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 (Modulation != global::Chirpstack.Common.Modulation.Lora) { + output.WriteRawTag(8); + output.WriteEnum((int) Modulation); + } + if (Frequency != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Frequency); + } + if (Bandwidth != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Bandwidth); + } + if (Bitrate != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Bitrate); + } + spreadingFactors_.WriteTo(ref output, _repeated_spreadingFactors_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 (Modulation != global::Chirpstack.Common.Modulation.Lora) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Modulation); + } + if (Frequency != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); + } + if (Bandwidth != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Bandwidth); + } + if (Bitrate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Bitrate); + } + 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(GatewayProfileExtraChannel other) { + if (other == null) { + return; + } + if (other.Modulation != global::Chirpstack.Common.Modulation.Lora) { + Modulation = other.Modulation; + } + if (other.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.Bandwidth != 0) { + Bandwidth = other.Bandwidth; + } + if (other.Bitrate != 0) { + Bitrate = other.Bitrate; + } + 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: { + Modulation = (global::Chirpstack.Common.Modulation) input.ReadEnum(); + break; + } + case 16: { + Frequency = input.ReadUInt32(); + break; + } + case 24: { + Bandwidth = input.ReadUInt32(); + break; + } + case 32: { + Bitrate = input.ReadUInt32(); + break; + } + case 42: + case 40: { + spreadingFactors_.AddEntriesFrom(input, _repeated_spreadingFactors_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: { + Modulation = (global::Chirpstack.Common.Modulation) input.ReadEnum(); + break; + } + case 16: { + Frequency = input.ReadUInt32(); + break; + } + case 24: { + Bandwidth = input.ReadUInt32(); + break; + } + case 32: { + Bitrate = input.ReadUInt32(); + break; + } + case 42: + case 40: { + spreadingFactors_.AddEntriesFrom(ref input, _repeated_spreadingFactors_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateGatewayProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateGatewayProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 CreateGatewayProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateGatewayProfileRequest(CreateGatewayProfileRequest other) : this() { + gatewayProfile_ = other.gatewayProfile_ != null ? other.gatewayProfile_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateGatewayProfileRequest Clone() { + return new CreateGatewayProfileRequest(this); + } + + /// Field number for the "gateway_profile" field. + public const int GatewayProfileFieldNumber = 1; + private global::Chirpstack.NetworkServer.GatewayProfile gatewayProfile_; + /// + /// Gateway-profile object to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.GatewayProfile GatewayProfile { + get { return gatewayProfile_; } + set { + gatewayProfile_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateGatewayProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateGatewayProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GatewayProfile, other.GatewayProfile)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (gatewayProfile_ != null) hash ^= GatewayProfile.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (gatewayProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GatewayProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (gatewayProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GatewayProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (gatewayProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GatewayProfile); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateGatewayProfileRequest other) { + if (other == null) { + return; + } + if (other.gatewayProfile_ != null) { + if (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.NetworkServer.GatewayProfile(); + } + GatewayProfile.MergeFrom(other.GatewayProfile); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.NetworkServer.GatewayProfile(); + } + input.ReadMessage(GatewayProfile); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.NetworkServer.GatewayProfile(); + } + input.ReadMessage(GatewayProfile); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateGatewayProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateGatewayProfileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 CreateGatewayProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateGatewayProfileResponse(CreateGatewayProfileResponse other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateGatewayProfileResponse Clone() { + return new CreateGatewayProfileResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// ID of the create configuration object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 CreateGatewayProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateGatewayProfileResponse 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateGatewayProfileResponse 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.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: { + Id = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGatewayProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetGatewayProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayProfileRequest(GetGatewayProfileRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayProfileRequest Clone() { + return new GetGatewayProfileRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Gateway-profile ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 GetGatewayProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewayProfileRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGatewayProfileRequest 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.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: { + Id = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetGatewayProfileResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayProfileResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 GetGatewayProfileResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGatewayProfileResponse(GetGatewayProfileResponse other) : this() { + gatewayProfile_ = other.gatewayProfile_ != null ? other.gatewayProfile_.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 GetGatewayProfileResponse Clone() { + return new GetGatewayProfileResponse(this); + } + + /// Field number for the "gateway_profile" field. + public const int GatewayProfileFieldNumber = 1; + private global::Chirpstack.NetworkServer.GatewayProfile gatewayProfile_; + /// + /// Gateway-profile object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.GatewayProfile GatewayProfile { + get { return gatewayProfile_; } + set { + gatewayProfile_ = 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 GetGatewayProfileResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGatewayProfileResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GatewayProfile, other.GatewayProfile)) 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 (gatewayProfile_ != null) hash ^= GatewayProfile.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 (gatewayProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GatewayProfile); + } + 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 (gatewayProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GatewayProfile); + } + 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 (gatewayProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GatewayProfile); + } + 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(GetGatewayProfileResponse other) { + if (other == null) { + return; + } + if (other.gatewayProfile_ != null) { + if (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.NetworkServer.GatewayProfile(); + } + GatewayProfile.MergeFrom(other.GatewayProfile); + } + 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 (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.NetworkServer.GatewayProfile(); + } + input.ReadMessage(GatewayProfile); + 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 (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.NetworkServer.GatewayProfile(); + } + input.ReadMessage(GatewayProfile); + 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 UpdateGatewayProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateGatewayProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 UpdateGatewayProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateGatewayProfileRequest(UpdateGatewayProfileRequest other) : this() { + gatewayProfile_ = other.gatewayProfile_ != null ? other.gatewayProfile_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateGatewayProfileRequest Clone() { + return new UpdateGatewayProfileRequest(this); + } + + /// Field number for the "gateway_profile" field. + public const int GatewayProfileFieldNumber = 1; + private global::Chirpstack.NetworkServer.GatewayProfile gatewayProfile_; + /// + /// Gateway-profile object to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.GatewayProfile GatewayProfile { + get { return gatewayProfile_; } + set { + gatewayProfile_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateGatewayProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateGatewayProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GatewayProfile, other.GatewayProfile)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (gatewayProfile_ != null) hash ^= GatewayProfile.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (gatewayProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GatewayProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (gatewayProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GatewayProfile); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (gatewayProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GatewayProfile); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateGatewayProfileRequest other) { + if (other == null) { + return; + } + if (other.gatewayProfile_ != null) { + if (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.NetworkServer.GatewayProfile(); + } + GatewayProfile.MergeFrom(other.GatewayProfile); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.NetworkServer.GatewayProfile(); + } + input.ReadMessage(GatewayProfile); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (gatewayProfile_ == null) { + GatewayProfile = new global::Chirpstack.NetworkServer.GatewayProfile(); + } + input.ReadMessage(GatewayProfile); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteGatewayProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteGatewayProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 DeleteGatewayProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteGatewayProfileRequest(DeleteGatewayProfileRequest other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteGatewayProfileRequest Clone() { + return new DeleteGatewayProfileRequest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Gateway-profile ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 DeleteGatewayProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteGatewayProfileRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteGatewayProfileRequest 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.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: { + Id = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + 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.NetworkServer.NsReflection.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 MulticastGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MulticastGroup(MulticastGroup other) : this() { + id_ = other.id_; + mcAddr_ = other.mcAddr_; + mcNwkSKey_ = other.mcNwkSKey_; + fCnt_ = other.fCnt_; + groupType_ = other.groupType_; + dr_ = other.dr_; + frequency_ = other.frequency_; + pingSlotPeriod_ = other.pingSlotPeriod_; + serviceProfileId_ = other.serviceProfileId_; + routingProfileId_ = other.routingProfileId_; + _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 pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Multicast-group ID. + /// Note: this can be set on create. When left blank, a random ID will + /// be generated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mc_addr" field. + public const int McAddrFieldNumber = 2; + private pb::ByteString mcAddr_ = pb::ByteString.Empty; + /// + /// Multicast Address for this group. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString McAddr { + get { return mcAddr_; } + set { + mcAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mc_nwk_s_key" field. + public const int McNwkSKeyFieldNumber = 3; + private pb::ByteString mcNwkSKey_ = pb::ByteString.Empty; + /// + /// Multicast network session key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString McNwkSKey { + get { return mcNwkSKey_; } + set { + mcNwkSKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_cnt" field. + public const int FCntFieldNumber = 4; + private uint fCnt_; + /// + /// Frame-counter (downlink). + /// + [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 = 5; + private global::Chirpstack.NetworkServer.MulticastGroupType groupType_ = global::Chirpstack.NetworkServer.MulticastGroupType.ClassC; + /// + /// Multicast-group type (Class-B or Class-C). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.MulticastGroupType GroupType { + get { return groupType_; } + set { + groupType_ = 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 "frequency" field. + public const int FrequencyFieldNumber = 7; + 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 "ping_slot_period" field. + public const int PingSlotPeriodFieldNumber = 8; + private uint pingSlotPeriod_; + /// + /// Ping-slot period. + /// Mandatory for Class-B multicast groups. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PingSlotPeriod { + get { return pingSlotPeriod_; } + set { + pingSlotPeriod_ = value; + } + } + + /// Field number for the "service_profile_id" field. + public const int ServiceProfileIdFieldNumber = 9; + private pb::ByteString serviceProfileId_ = pb::ByteString.Empty; + /// + /// Service-profile ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString ServiceProfileId { + get { return serviceProfileId_; } + set { + serviceProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "routing_profile_id" field. + public const int RoutingProfileIdFieldNumber = 10; + private pb::ByteString routingProfileId_ = pb::ByteString.Empty; + /// + /// Routing-profile ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString RoutingProfileId { + get { return routingProfileId_; } + set { + routingProfileId_ = 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 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 (McAddr != other.McAddr) return false; + if (McNwkSKey != other.McNwkSKey) 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 (PingSlotPeriod != other.PingSlotPeriod) return false; + if (ServiceProfileId != other.ServiceProfileId) return false; + if (RoutingProfileId != other.RoutingProfileId) return false; + 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 (McAddr.Length != 0) hash ^= McAddr.GetHashCode(); + if (McNwkSKey.Length != 0) hash ^= McNwkSKey.GetHashCode(); + if (FCnt != 0) hash ^= FCnt.GetHashCode(); + if (GroupType != global::Chirpstack.NetworkServer.MulticastGroupType.ClassC) hash ^= GroupType.GetHashCode(); + if (Dr != 0) hash ^= Dr.GetHashCode(); + if (Frequency != 0) hash ^= Frequency.GetHashCode(); + if (PingSlotPeriod != 0) hash ^= PingSlotPeriod.GetHashCode(); + if (ServiceProfileId.Length != 0) hash ^= ServiceProfileId.GetHashCode(); + if (RoutingProfileId.Length != 0) hash ^= RoutingProfileId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(Id); + } + if (McAddr.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(McAddr); + } + if (McNwkSKey.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(McNwkSKey); + } + if (FCnt != 0) { + output.WriteRawTag(32); + output.WriteUInt32(FCnt); + } + if (GroupType != global::Chirpstack.NetworkServer.MulticastGroupType.ClassC) { + output.WriteRawTag(40); + output.WriteEnum((int) GroupType); + } + if (Dr != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Dr); + } + if (Frequency != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Frequency); + } + if (PingSlotPeriod != 0) { + output.WriteRawTag(64); + output.WriteUInt32(PingSlotPeriod); + } + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(74); + output.WriteBytes(ServiceProfileId); + } + if (RoutingProfileId.Length != 0) { + output.WriteRawTag(82); + output.WriteBytes(RoutingProfileId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(Id); + } + if (McAddr.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(McAddr); + } + if (McNwkSKey.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(McNwkSKey); + } + if (FCnt != 0) { + output.WriteRawTag(32); + output.WriteUInt32(FCnt); + } + if (GroupType != global::Chirpstack.NetworkServer.MulticastGroupType.ClassC) { + output.WriteRawTag(40); + output.WriteEnum((int) GroupType); + } + if (Dr != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Dr); + } + if (Frequency != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Frequency); + } + if (PingSlotPeriod != 0) { + output.WriteRawTag(64); + output.WriteUInt32(PingSlotPeriod); + } + if (ServiceProfileId.Length != 0) { + output.WriteRawTag(74); + output.WriteBytes(ServiceProfileId); + } + if (RoutingProfileId.Length != 0) { + output.WriteRawTag(82); + output.WriteBytes(RoutingProfileId); + } + if (_unknownFields != 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.ComputeBytesSize(Id); + } + if (McAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(McAddr); + } + if (McNwkSKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(McNwkSKey); + } + if (FCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); + } + if (GroupType != global::Chirpstack.NetworkServer.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 (PingSlotPeriod != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PingSlotPeriod); + } + if (ServiceProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ServiceProfileId); + } + if (RoutingProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(RoutingProfileId); + } + 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.McAddr.Length != 0) { + McAddr = other.McAddr; + } + if (other.McNwkSKey.Length != 0) { + McNwkSKey = other.McNwkSKey; + } + if (other.FCnt != 0) { + FCnt = other.FCnt; + } + if (other.GroupType != global::Chirpstack.NetworkServer.MulticastGroupType.ClassC) { + GroupType = other.GroupType; + } + if (other.Dr != 0) { + Dr = other.Dr; + } + if (other.Frequency != 0) { + Frequency = other.Frequency; + } + if (other.PingSlotPeriod != 0) { + PingSlotPeriod = other.PingSlotPeriod; + } + if (other.ServiceProfileId.Length != 0) { + ServiceProfileId = other.ServiceProfileId; + } + if (other.RoutingProfileId.Length != 0) { + RoutingProfileId = other.RoutingProfileId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 18: { + McAddr = input.ReadBytes(); + break; + } + case 26: { + McNwkSKey = input.ReadBytes(); + break; + } + case 32: { + FCnt = input.ReadUInt32(); + break; + } + case 40: { + GroupType = (global::Chirpstack.NetworkServer.MulticastGroupType) input.ReadEnum(); + break; + } + case 48: { + Dr = input.ReadUInt32(); + break; + } + case 56: { + Frequency = input.ReadUInt32(); + break; + } + case 64: { + PingSlotPeriod = input.ReadUInt32(); + break; + } + case 74: { + ServiceProfileId = input.ReadBytes(); + break; + } + case 82: { + RoutingProfileId = 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: { + Id = input.ReadBytes(); + break; + } + case 18: { + McAddr = input.ReadBytes(); + break; + } + case 26: { + McNwkSKey = input.ReadBytes(); + break; + } + case 32: { + FCnt = input.ReadUInt32(); + break; + } + case 40: { + GroupType = (global::Chirpstack.NetworkServer.MulticastGroupType) input.ReadEnum(); + break; + } + case 48: { + Dr = input.ReadUInt32(); + break; + } + case 56: { + Frequency = input.ReadUInt32(); + break; + } + case 64: { + PingSlotPeriod = input.ReadUInt32(); + break; + } + case 74: { + ServiceProfileId = input.ReadBytes(); + break; + } + case 82: { + RoutingProfileId = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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.NetworkServer.MulticastGroup multicastGroup_; + /// + /// Multicast-group to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.NsReflection.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 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 pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Multicast-group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(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.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: { + Id = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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 pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Multicast-group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(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.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: { + Id = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 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.NetworkServer.MulticastGroup multicastGroup_; + /// + /// Multicast-group. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.NsReflection.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 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.NetworkServer.MulticastGroup multicastGroup_; + /// + /// Multicast-group to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.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.NetworkServer.NsReflection.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 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 pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Multicast-group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(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.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: { + Id = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 AddDeviceToMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddDeviceToMulticastGroupRequest(AddDeviceToMulticastGroupRequest other) : this() { + devEui_ = other.devEui_; + multicastGroupId_ = other.multicastGroupId_; + _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 "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 pb::ByteString multicastGroupId_ = pb::ByteString.Empty; + /// + /// Multicast-group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 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 (DevEui != other.DevEui) 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 (DevEui.Length != 0) hash ^= DevEui.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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(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 (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(MulticastGroupId); + } + 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.DevEui.Length != 0) { + DevEui = other.DevEui; + } + 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: { + DevEui = input.ReadBytes(); + break; + } + case 18: { + MulticastGroupId = 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: { + DevEui = input.ReadBytes(); + break; + } + case 18: { + MulticastGroupId = input.ReadBytes(); + 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.NetworkServer.NsReflection.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 RemoveDeviceFromMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveDeviceFromMulticastGroupRequest(RemoveDeviceFromMulticastGroupRequest other) : this() { + devEui_ = other.devEui_; + multicastGroupId_ = other.multicastGroupId_; + _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 "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 pb::ByteString multicastGroupId_ = pb::ByteString.Empty; + /// + /// Multicast-group ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 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 (DevEui != other.DevEui) 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 (DevEui.Length != 0) hash ^= DevEui.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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(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 (DevEui.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(DevEui); + } + if (MulticastGroupId.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(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 (DevEui.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DevEui); + } + if (MulticastGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(MulticastGroupId); + } + 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.DevEui.Length != 0) { + DevEui = other.DevEui; + } + 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: { + DevEui = input.ReadBytes(); + break; + } + case 18: { + MulticastGroupId = 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: { + DevEui = input.ReadBytes(); + break; + } + case 18: { + MulticastGroupId = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class MulticastQueueItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MulticastQueueItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.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 MulticastQueueItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MulticastQueueItem(MulticastQueueItem other) : this() { + multicastGroupId_ = other.multicastGroupId_; + fCnt_ = other.fCnt_; + fPort_ = other.fPort_; + frmPayload_ = other.frmPayload_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MulticastQueueItem Clone() { + return new MulticastQueueItem(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private pb::ByteString multicastGroupId_ = pb::ByteString.Empty; + /// + /// Multicast-group id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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_; + /// + /// Frame-counter of payload. + /// + [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_; + /// + /// Frame-port of payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FPort { + get { return fPort_; } + set { + fPort_ = value; + } + } + + /// Field number for the "frm_payload" field. + public const int FrmPayloadFieldNumber = 4; + private pb::ByteString frmPayload_ = pb::ByteString.Empty; + /// + /// Encrypted FRMPayload bytes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString FrmPayload { + get { return frmPayload_; } + set { + frmPayload_ = 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 MulticastQueueItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MulticastQueueItem 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 (FrmPayload != other.FrmPayload) return false; + 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 (FrmPayload.Length != 0) hash ^= FrmPayload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(MulticastGroupId); + } + if (FCnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FPort); + } + if (FrmPayload.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(FrmPayload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(MulticastGroupId); + } + if (FCnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FCnt); + } + if (FPort != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FPort); + } + if (FrmPayload.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(FrmPayload); + } + if (_unknownFields != 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.ComputeBytesSize(MulticastGroupId); + } + if (FCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); + } + if (FPort != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FPort); + } + if (FrmPayload.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(FrmPayload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MulticastQueueItem 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.FrmPayload.Length != 0) { + FrmPayload = other.FrmPayload; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 16: { + FCnt = input.ReadUInt32(); + break; + } + case 24: { + FPort = input.ReadUInt32(); + break; + } + case 34: { + FrmPayload = 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.ReadBytes(); + break; + } + case 16: { + FCnt = input.ReadUInt32(); + break; + } + case 24: { + FPort = input.ReadUInt32(); + break; + } + case 34: { + FrmPayload = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class EnqueueMulticastQueueItemRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnqueueMulticastQueueItemRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.Descriptor.MessageTypes[76]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueMulticastQueueItemRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueMulticastQueueItemRequest(EnqueueMulticastQueueItemRequest other) : this() { + multicastQueueItem_ = other.multicastQueueItem_ != null ? other.multicastQueueItem_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnqueueMulticastQueueItemRequest Clone() { + return new EnqueueMulticastQueueItemRequest(this); + } + + /// Field number for the "multicast_queue_item" field. + public const int MulticastQueueItemFieldNumber = 1; + private global::Chirpstack.NetworkServer.MulticastQueueItem multicastQueueItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.MulticastQueueItem MulticastQueueItem { + get { return multicastQueueItem_; } + set { + multicastQueueItem_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnqueueMulticastQueueItemRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnqueueMulticastQueueItemRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MulticastQueueItem, other.MulticastQueueItem)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (multicastQueueItem_ != null) hash ^= MulticastQueueItem.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (multicastQueueItem_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MulticastQueueItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (multicastQueueItem_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MulticastQueueItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (multicastQueueItem_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MulticastQueueItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnqueueMulticastQueueItemRequest other) { + if (other == null) { + return; + } + if (other.multicastQueueItem_ != null) { + if (multicastQueueItem_ == null) { + MulticastQueueItem = new global::Chirpstack.NetworkServer.MulticastQueueItem(); + } + MulticastQueueItem.MergeFrom(other.MulticastQueueItem); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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 (multicastQueueItem_ == null) { + MulticastQueueItem = new global::Chirpstack.NetworkServer.MulticastQueueItem(); + } + input.ReadMessage(MulticastQueueItem); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(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 (multicastQueueItem_ == null) { + MulticastQueueItem = new global::Chirpstack.NetworkServer.MulticastQueueItem(); + } + input.ReadMessage(MulticastQueueItem); + break; + } + } + } + } + #endif + + } + + public sealed partial class FlushMulticastQueueForMulticastGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushMulticastQueueForMulticastGroupRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.Descriptor.MessageTypes[77]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushMulticastQueueForMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushMulticastQueueForMulticastGroupRequest(FlushMulticastQueueForMulticastGroupRequest other) : this() { + multicastGroupId_ = other.multicastGroupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushMulticastQueueForMulticastGroupRequest Clone() { + return new FlushMulticastQueueForMulticastGroupRequest(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private pb::ByteString multicastGroupId_ = pb::ByteString.Empty; + /// + /// Multicast-group id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 FlushMulticastQueueForMulticastGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FlushMulticastQueueForMulticastGroupRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(MulticastGroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FlushMulticastQueueForMulticastGroupRequest 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.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.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetMulticastQueueItemsForMulticastGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMulticastQueueItemsForMulticastGroupRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.Descriptor.MessageTypes[78]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMulticastQueueItemsForMulticastGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMulticastQueueItemsForMulticastGroupRequest(GetMulticastQueueItemsForMulticastGroupRequest other) : this() { + multicastGroupId_ = other.multicastGroupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMulticastQueueItemsForMulticastGroupRequest Clone() { + return new GetMulticastQueueItemsForMulticastGroupRequest(this); + } + + /// Field number for the "multicast_group_id" field. + public const int MulticastGroupIdFieldNumber = 1; + private pb::ByteString multicastGroupId_ = pb::ByteString.Empty; + /// + /// Multicast-group id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 GetMulticastQueueItemsForMulticastGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMulticastQueueItemsForMulticastGroupRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(MulticastGroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetMulticastQueueItemsForMulticastGroupRequest 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.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.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetMulticastQueueItemsForMulticastGroupResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMulticastQueueItemsForMulticastGroupResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.Descriptor.MessageTypes[79]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMulticastQueueItemsForMulticastGroupResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMulticastQueueItemsForMulticastGroupResponse(GetMulticastQueueItemsForMulticastGroupResponse other) : this() { + multicastQueueItems_ = other.multicastQueueItems_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMulticastQueueItemsForMulticastGroupResponse Clone() { + return new GetMulticastQueueItemsForMulticastGroupResponse(this); + } + + /// Field number for the "multicast_queue_items" field. + public const int MulticastQueueItemsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_multicastQueueItems_codec + = pb::FieldCodec.ForMessage(10, global::Chirpstack.NetworkServer.MulticastQueueItem.Parser); + private readonly pbc::RepeatedField multicastQueueItems_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MulticastQueueItems { + get { return multicastQueueItems_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetMulticastQueueItemsForMulticastGroupResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMulticastQueueItemsForMulticastGroupResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!multicastQueueItems_.Equals(other.multicastQueueItems_)) return 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 ^= multicastQueueItems_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + multicastQueueItems_.WriteTo(output, _repeated_multicastQueueItems_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) { + multicastQueueItems_.WriteTo(ref output, _repeated_multicastQueueItems_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 += multicastQueueItems_.CalculateSize(_repeated_multicastQueueItems_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetMulticastQueueItemsForMulticastGroupResponse other) { + if (other == null) { + return; + } + multicastQueueItems_.Add(other.multicastQueueItems_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + multicastQueueItems_.AddEntriesFrom(input, _repeated_multicastQueueItems_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: { + multicastQueueItems_.AddEntriesFrom(ref input, _repeated_multicastQueueItems_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetADRAlgorithmsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetADRAlgorithmsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.Descriptor.MessageTypes[80]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetADRAlgorithmsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetADRAlgorithmsResponse(GetADRAlgorithmsResponse other) : this() { + adrAlgorithms_ = other.adrAlgorithms_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetADRAlgorithmsResponse Clone() { + return new GetADRAlgorithmsResponse(this); + } + + /// Field number for the "adr_algorithms" field. + public const int AdrAlgorithmsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_adrAlgorithms_codec + = pb::FieldCodec.ForMessage(10, global::Chirpstack.NetworkServer.ADRAlgorithm.Parser); + private readonly pbc::RepeatedField adrAlgorithms_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AdrAlgorithms { + get { return adrAlgorithms_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetADRAlgorithmsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetADRAlgorithmsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!adrAlgorithms_.Equals(other.adrAlgorithms_)) return 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 ^= adrAlgorithms_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + adrAlgorithms_.WriteTo(output, _repeated_adrAlgorithms_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) { + adrAlgorithms_.WriteTo(ref output, _repeated_adrAlgorithms_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 += adrAlgorithms_.CalculateSize(_repeated_adrAlgorithms_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetADRAlgorithmsResponse other) { + if (other == null) { + return; + } + adrAlgorithms_.Add(other.adrAlgorithms_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + adrAlgorithms_.AddEntriesFrom(input, _repeated_adrAlgorithms_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: { + adrAlgorithms_.AddEntriesFrom(ref input, _repeated_adrAlgorithms_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ADRAlgorithm : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ADRAlgorithm()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.Descriptor.MessageTypes[81]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ADRAlgorithm() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ADRAlgorithm(ADRAlgorithm 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 ADRAlgorithm Clone() { + return new ADRAlgorithm(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ADR 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_ = ""; + /// + /// ADR 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 ADRAlgorithm); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ADRAlgorithm 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(ADRAlgorithm 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 + + } + + public sealed partial class ClearDeviceNoncesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClearDeviceNoncesRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.NsReflection.Descriptor.MessageTypes[82]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClearDeviceNoncesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClearDeviceNoncesRequest(ClearDeviceNoncesRequest other) : this() { + devEui_ = other.devEui_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClearDeviceNoncesRequest Clone() { + return new ClearDeviceNoncesRequest(this); + } + + /// Field number for the "dev_eui" field. + public const int DevEuiFieldNumber = 1; + private pb::ByteString devEui_ = pb::ByteString.Empty; + /// + /// Device EUI (8 bytes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString 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 ClearDeviceNoncesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClearDeviceNoncesRequest 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.WriteBytes(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.WriteBytes(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.ComputeBytesSize(DevEui); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClearDeviceNoncesRequest 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.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: { + DevEui = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/csharp/protobuf/ns/NsGrpc.cs b/csharp/protobuf/ns/NsGrpc.cs new file mode 100644 index 00000000..c35c550d --- /dev/null +++ b/csharp/protobuf/ns/NsGrpc.cs @@ -0,0 +1,3754 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ns/ns.proto +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Chirpstack.NetworkServer { + /// + /// NetworkServerService provides the network-server API methods. + /// + public static partial class NetworkServerService + { + static readonly string __ServiceName = "ns.NetworkServerService"; + + [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_ns_CreateServiceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateServiceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateServiceProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateServiceProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetServiceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetServiceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetServiceProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetServiceProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_UpdateServiceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.UpdateServiceProfileRequest.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_ns_DeleteServiceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.DeleteServiceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateRoutingProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateRoutingProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateRoutingProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateRoutingProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetRoutingProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetRoutingProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetRoutingProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetRoutingProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_UpdateRoutingProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.UpdateRoutingProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_DeleteRoutingProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.DeleteRoutingProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateDeviceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateDeviceProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateDeviceProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetDeviceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetDeviceProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetDeviceProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_UpdateDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.UpdateDeviceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_DeleteDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.DeleteDeviceProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetDeviceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetDeviceResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_UpdateDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.UpdateDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_DeleteDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.DeleteDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_ActivateDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.ActivateDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_DeactivateDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.DeactivateDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetDeviceActivationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetDeviceActivationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetDeviceActivationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetDeviceActivationResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateDeviceQueueItemRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateDeviceQueueItemRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_FlushDeviceQueueForDevEUIRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.FlushDeviceQueueForDevEUIRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetDeviceQueueItemsForDevEUIRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetDeviceQueueItemsForDevEUIRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetDeviceQueueItemsForDevEUIResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetDeviceQueueItemsForDevEUIResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetNextDownlinkFCntForDevEUIRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetNextDownlinkFCntForDevEUIRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetNextDownlinkFCntForDevEUIResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetNextDownlinkFCntForDevEUIResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetRandomDevAddrResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetRandomDevAddrResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateMACCommandQueueItemRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateMACCommandQueueItemRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_SendProprietaryPayloadRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.SendProprietaryPayloadRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateGatewayRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetGatewayRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetGatewayResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetGatewayResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_UpdateGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.UpdateGatewayRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_DeleteGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.DeleteGatewayRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GenerateGatewayClientCertificateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GenerateGatewayClientCertificateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GenerateGatewayClientCertificateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GenerateGatewayClientCertificateResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateGatewayProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateGatewayProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateGatewayProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateGatewayProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetGatewayProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetGatewayProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetGatewayProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetGatewayProfileResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_UpdateGatewayProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.UpdateGatewayProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_DeleteGatewayProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.DeleteGatewayProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetGatewayStatsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetGatewayStatsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetGatewayStatsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetGatewayStatsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_StreamFrameLogsForGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.StreamFrameLogsForGatewayRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_StreamFrameLogsForGatewayResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.StreamFrameLogsForGatewayResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_StreamFrameLogsForDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.StreamFrameLogsForDeviceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_StreamFrameLogsForDeviceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.StreamFrameLogsForDeviceResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_CreateMulticastGroupResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.CreateMulticastGroupResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetMulticastGroupResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetMulticastGroupResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_UpdateMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.UpdateMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_DeleteMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.DeleteMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_AddDeviceToMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.AddDeviceToMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_RemoveDeviceFromMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.RemoveDeviceFromMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_EnqueueMulticastQueueItemRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.EnqueueMulticastQueueItemRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_FlushMulticastQueueForMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.FlushMulticastQueueForMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetMulticastQueueItemsForMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetMulticastQueueItemsForMulticastGroupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetMulticastQueueItemsForMulticastGroupResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetMulticastQueueItemsForMulticastGroupResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetVersionResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetVersionResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_GetADRAlgorithmsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.GetADRAlgorithmsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ns_ClearDeviceNoncesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.NetworkServer.ClearDeviceNoncesRequest.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateServiceProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateServiceProfile", + __Marshaller_ns_CreateServiceProfileRequest, + __Marshaller_ns_CreateServiceProfileResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetServiceProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetServiceProfile", + __Marshaller_ns_GetServiceProfileRequest, + __Marshaller_ns_GetServiceProfileResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateServiceProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateServiceProfile", + __Marshaller_ns_UpdateServiceProfileRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteServiceProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteServiceProfile", + __Marshaller_ns_DeleteServiceProfileRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateRoutingProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateRoutingProfile", + __Marshaller_ns_CreateRoutingProfileRequest, + __Marshaller_ns_CreateRoutingProfileResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetRoutingProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetRoutingProfile", + __Marshaller_ns_GetRoutingProfileRequest, + __Marshaller_ns_GetRoutingProfileResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateRoutingProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateRoutingProfile", + __Marshaller_ns_UpdateRoutingProfileRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteRoutingProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteRoutingProfile", + __Marshaller_ns_DeleteRoutingProfileRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateDeviceProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateDeviceProfile", + __Marshaller_ns_CreateDeviceProfileRequest, + __Marshaller_ns_CreateDeviceProfileResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetDeviceProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetDeviceProfile", + __Marshaller_ns_GetDeviceProfileRequest, + __Marshaller_ns_GetDeviceProfileResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateDeviceProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateDeviceProfile", + __Marshaller_ns_UpdateDeviceProfileRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteDeviceProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteDeviceProfile", + __Marshaller_ns_DeleteDeviceProfileRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateDevice = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateDevice", + __Marshaller_ns_CreateDeviceRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetDevice = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetDevice", + __Marshaller_ns_GetDeviceRequest, + __Marshaller_ns_GetDeviceResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateDevice = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateDevice", + __Marshaller_ns_UpdateDeviceRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteDevice = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteDevice", + __Marshaller_ns_DeleteDeviceRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ActivateDevice = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ActivateDevice", + __Marshaller_ns_ActivateDeviceRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeactivateDevice = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeactivateDevice", + __Marshaller_ns_DeactivateDeviceRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetDeviceActivation = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetDeviceActivation", + __Marshaller_ns_GetDeviceActivationRequest, + __Marshaller_ns_GetDeviceActivationResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateDeviceQueueItem = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateDeviceQueueItem", + __Marshaller_ns_CreateDeviceQueueItemRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_FlushDeviceQueueForDevEUI = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "FlushDeviceQueueForDevEUI", + __Marshaller_ns_FlushDeviceQueueForDevEUIRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetDeviceQueueItemsForDevEUI = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetDeviceQueueItemsForDevEUI", + __Marshaller_ns_GetDeviceQueueItemsForDevEUIRequest, + __Marshaller_ns_GetDeviceQueueItemsForDevEUIResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetNextDownlinkFCntForDevEUI = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetNextDownlinkFCntForDevEUI", + __Marshaller_ns_GetNextDownlinkFCntForDevEUIRequest, + __Marshaller_ns_GetNextDownlinkFCntForDevEUIResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetRandomDevAddr = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetRandomDevAddr", + __Marshaller_google_protobuf_Empty, + __Marshaller_ns_GetRandomDevAddrResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateMACCommandQueueItem = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateMACCommandQueueItem", + __Marshaller_ns_CreateMACCommandQueueItemRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_SendProprietaryPayload = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "SendProprietaryPayload", + __Marshaller_ns_SendProprietaryPayloadRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateGateway = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateGateway", + __Marshaller_ns_CreateGatewayRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetGateway = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetGateway", + __Marshaller_ns_GetGatewayRequest, + __Marshaller_ns_GetGatewayResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateGateway = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateGateway", + __Marshaller_ns_UpdateGatewayRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteGateway = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteGateway", + __Marshaller_ns_DeleteGatewayRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GenerateGatewayClientCertificate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GenerateGatewayClientCertificate", + __Marshaller_ns_GenerateGatewayClientCertificateRequest, + __Marshaller_ns_GenerateGatewayClientCertificateResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateGatewayProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateGatewayProfile", + __Marshaller_ns_CreateGatewayProfileRequest, + __Marshaller_ns_CreateGatewayProfileResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetGatewayProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetGatewayProfile", + __Marshaller_ns_GetGatewayProfileRequest, + __Marshaller_ns_GetGatewayProfileResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateGatewayProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateGatewayProfile", + __Marshaller_ns_UpdateGatewayProfileRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteGatewayProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteGatewayProfile", + __Marshaller_ns_DeleteGatewayProfileRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetGatewayStats = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetGatewayStats", + __Marshaller_ns_GetGatewayStatsRequest, + __Marshaller_ns_GetGatewayStatsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_StreamFrameLogsForGateway = new grpc::Method( + grpc::MethodType.ServerStreaming, + __ServiceName, + "StreamFrameLogsForGateway", + __Marshaller_ns_StreamFrameLogsForGatewayRequest, + __Marshaller_ns_StreamFrameLogsForGatewayResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_StreamFrameLogsForDevice = new grpc::Method( + grpc::MethodType.ServerStreaming, + __ServiceName, + "StreamFrameLogsForDevice", + __Marshaller_ns_StreamFrameLogsForDeviceRequest, + __Marshaller_ns_StreamFrameLogsForDeviceResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateMulticastGroup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateMulticastGroup", + __Marshaller_ns_CreateMulticastGroupRequest, + __Marshaller_ns_CreateMulticastGroupResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetMulticastGroup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetMulticastGroup", + __Marshaller_ns_GetMulticastGroupRequest, + __Marshaller_ns_GetMulticastGroupResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateMulticastGroup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateMulticastGroup", + __Marshaller_ns_UpdateMulticastGroupRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteMulticastGroup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteMulticastGroup", + __Marshaller_ns_DeleteMulticastGroupRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_AddDeviceToMulticastGroup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "AddDeviceToMulticastGroup", + __Marshaller_ns_AddDeviceToMulticastGroupRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_RemoveDeviceFromMulticastGroup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "RemoveDeviceFromMulticastGroup", + __Marshaller_ns_RemoveDeviceFromMulticastGroupRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_EnqueueMulticastQueueItem = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "EnqueueMulticastQueueItem", + __Marshaller_ns_EnqueueMulticastQueueItemRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_FlushMulticastQueueForMulticastGroup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "FlushMulticastQueueForMulticastGroup", + __Marshaller_ns_FlushMulticastQueueForMulticastGroupRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetMulticastQueueItemsForMulticastGroup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetMulticastQueueItemsForMulticastGroup", + __Marshaller_ns_GetMulticastQueueItemsForMulticastGroupRequest, + __Marshaller_ns_GetMulticastQueueItemsForMulticastGroupResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetVersion = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetVersion", + __Marshaller_google_protobuf_Empty, + __Marshaller_ns_GetVersionResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetADRAlgorithms = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetADRAlgorithms", + __Marshaller_google_protobuf_Empty, + __Marshaller_ns_GetADRAlgorithmsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ClearDeviceNonces = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ClearDeviceNonces", + __Marshaller_ns_ClearDeviceNoncesRequest, + __Marshaller_google_protobuf_Empty); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Chirpstack.NetworkServer.NsReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of NetworkServerService + [grpc::BindServiceMethod(typeof(NetworkServerService), "BindService")] + public abstract partial class NetworkServerServiceBase + { + /// + /// CreateServiceProfile creates the given service-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 CreateServiceProfile(global::Chirpstack.NetworkServer.CreateServiceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetServiceProfile returns the service-profile matching 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 GetServiceProfile(global::Chirpstack.NetworkServer.GetServiceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateServiceProfile updates the given service-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 UpdateServiceProfile(global::Chirpstack.NetworkServer.UpdateServiceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteServiceProfile deletes the service-profile matching 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 DeleteServiceProfile(global::Chirpstack.NetworkServer.DeleteServiceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateRoutingProfile creates the given routing-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 CreateRoutingProfile(global::Chirpstack.NetworkServer.CreateRoutingProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetRoutingProfile returns the routing-profile matching 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 GetRoutingProfile(global::Chirpstack.NetworkServer.GetRoutingProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateRoutingProfile updates the given routing-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 UpdateRoutingProfile(global::Chirpstack.NetworkServer.UpdateRoutingProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteRoutingProfile deletes the routing-profile matching 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 DeleteRoutingProfile(global::Chirpstack.NetworkServer.DeleteRoutingProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateDeviceProfile creates 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 CreateDeviceProfile(global::Chirpstack.NetworkServer.CreateDeviceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetDeviceProfile returns the device-profile matching 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 GetDeviceProfile(global::Chirpstack.NetworkServer.GetDeviceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateDeviceProfile updates 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 UpdateDeviceProfile(global::Chirpstack.NetworkServer.UpdateDeviceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteDeviceProfile deletes the device-profile matching 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 DeleteDeviceProfile(global::Chirpstack.NetworkServer.DeleteDeviceProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateDevice creates 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 CreateDevice(global::Chirpstack.NetworkServer.CreateDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetDevice returns the device matching 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 GetDevice(global::Chirpstack.NetworkServer.GetDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateDevice updates 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 UpdateDevice(global::Chirpstack.NetworkServer.UpdateDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteDevice deletes the device matching 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 DeleteDevice(global::Chirpstack.NetworkServer.DeleteDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// ActivateDevice activates a device (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 ActivateDevice(global::Chirpstack.NetworkServer.ActivateDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeactivateDevice de-activates a 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 DeactivateDevice(global::Chirpstack.NetworkServer.DeactivateDeviceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetDeviceActivation returns the device activation details. + /// + /// 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 GetDeviceActivation(global::Chirpstack.NetworkServer.GetDeviceActivationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateDeviceQueueItem creates the given device-queue item. + /// + /// 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 CreateDeviceQueueItem(global::Chirpstack.NetworkServer.CreateDeviceQueueItemRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// FlushDeviceQueueForDevEUI flushes the device-queue 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 FlushDeviceQueueForDevEUI(global::Chirpstack.NetworkServer.FlushDeviceQueueForDevEUIRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetDeviceQueueItemsForDevEUI returns all device-queue items 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 GetDeviceQueueItemsForDevEUI(global::Chirpstack.NetworkServer.GetDeviceQueueItemsForDevEUIRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetNextDownlinkFCntForDevEUI returns the next FCnt that must be used. + /// This also takes device-queue items for the given DevEUI into consideration. + /// + /// 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 GetNextDownlinkFCntForDevEUI(global::Chirpstack.NetworkServer.GetNextDownlinkFCntForDevEUIRequest 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::Google.Protobuf.WellKnownTypes.Empty request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateMACCommandQueueItem adds the downlink mac-command to the 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 CreateMACCommandQueueItem(global::Chirpstack.NetworkServer.CreateMACCommandQueueItemRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// SendProprietaryPayload send a payload using the 'Proprietary' LoRaWAN message-type. + /// + /// 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 SendProprietaryPayload(global::Chirpstack.NetworkServer.SendProprietaryPayloadRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateGateway 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 CreateGateway(global::Chirpstack.NetworkServer.CreateGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetGateway returns data for a particular 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 GetGateway(global::Chirpstack.NetworkServer.GetGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateGateway updates an existing 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 UpdateGateway(global::Chirpstack.NetworkServer.UpdateGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteGateway deletes a 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 DeleteGateway(global::Chirpstack.NetworkServer.DeleteGatewayRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GenerateGatewayClientCertificate returns TLS certificate gateway authentication / authorization. + /// This endpoint can ony be used when ChirpStack Network Server is configured with a gateway + /// CA certificate and key, which is used for signing the TLS certificate. The returned TLS + /// certificate will have the Gateway ID as Common Name. + /// + /// 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 GenerateGatewayClientCertificate(global::Chirpstack.NetworkServer.GenerateGatewayClientCertificateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateGatewayProfile creates the given gateway-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 CreateGatewayProfile(global::Chirpstack.NetworkServer.CreateGatewayProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetGatewayProfile returns the gateway-profile given an 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 GetGatewayProfile(global::Chirpstack.NetworkServer.GetGatewayProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateGatewayProfile updates the given gateway-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 UpdateGatewayProfile(global::Chirpstack.NetworkServer.UpdateGatewayProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteGatewayProfile deletes the gateway-profile matching a 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 DeleteGatewayProfile(global::Chirpstack.NetworkServer.DeleteGatewayProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetGatewayStats returns stats of an existing gateway. + /// Deprecated (stats are forwarded to Application Server API). + /// + /// 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 GetGatewayStats(global::Chirpstack.NetworkServer.GetGatewayStatsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// StreamFrameLogsForGateway returns a stream of frames seen by the given gateway. + /// + /// 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 StreamFrameLogsForGateway(global::Chirpstack.NetworkServer.StreamFrameLogsForGatewayRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// StreamFrameLogsForDevice returns a stream of frames seen by the given device. + /// + /// 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 StreamFrameLogsForDevice(global::Chirpstack.NetworkServer.StreamFrameLogsForDeviceRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateMulticastGroup creates 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 CreateMulticastGroup(global::Chirpstack.NetworkServer.CreateMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetMulticastGroup returns the multicast-group given an 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 GetMulticastGroup(global::Chirpstack.NetworkServer.GetMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateMulticastGroup updates 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 UpdateMulticastGroup(global::Chirpstack.NetworkServer.UpdateMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteMulticastGroup deletes a multicast-group given an 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 DeleteMulticastGroup(global::Chirpstack.NetworkServer.DeleteMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// AddDeviceToMulticastGroup adds the given device to 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 AddDeviceToMulticastGroup(global::Chirpstack.NetworkServer.AddDeviceToMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// RemoveDeviceFromMulticastGroup removes the given device from 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 RemoveDeviceFromMulticastGroup(global::Chirpstack.NetworkServer.RemoveDeviceFromMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// EnqueueMulticastQueueItem enqueues the given multicast queue-item and + /// increments the frame-counter after enqueueing. + /// + /// 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 EnqueueMulticastQueueItem(global::Chirpstack.NetworkServer.EnqueueMulticastQueueItemRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// FlushMulticastQueueForMulticastGroup flushes the multicast device-queue given a multicast-group 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 FlushMulticastQueueForMulticastGroup(global::Chirpstack.NetworkServer.FlushMulticastQueueForMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetMulticastQueueItemsForMulticastGroup returns the queue-items given a multicast-group 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 GetMulticastQueueItemsForMulticastGroup(global::Chirpstack.NetworkServer.GetMulticastQueueItemsForMulticastGroupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetVersion returns the ChirpStack Network Server version. + /// + /// 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 GetVersion(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetADRAlgorithms returns the 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 GetADRAlgorithms(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// ClearDeviceNonces deletes the device older activation records for the given DevEUI. + /// * These are clear older DevNonce records from device activation records + /// * These clears all DevNonce records but keeps latest 20 records for maintain device activation status + /// + /// 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 ClearDeviceNonces(global::Chirpstack.NetworkServer.ClearDeviceNoncesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for NetworkServerService + public partial class NetworkServerServiceClient : grpc::ClientBase + { + /// Creates a new client for NetworkServerService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public NetworkServerServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for NetworkServerService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public NetworkServerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected NetworkServerServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected NetworkServerServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// CreateServiceProfile creates the given service-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.NetworkServer.CreateServiceProfileResponse CreateServiceProfile(global::Chirpstack.NetworkServer.CreateServiceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateServiceProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateServiceProfile creates the given service-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.NetworkServer.CreateServiceProfileResponse CreateServiceProfile(global::Chirpstack.NetworkServer.CreateServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateServiceProfile, null, options, request); + } + /// + /// CreateServiceProfile creates the given service-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 CreateServiceProfileAsync(global::Chirpstack.NetworkServer.CreateServiceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateServiceProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateServiceProfile creates the given service-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 CreateServiceProfileAsync(global::Chirpstack.NetworkServer.CreateServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateServiceProfile, null, options, request); + } + /// + /// GetServiceProfile returns the service-profile matching 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.NetworkServer.GetServiceProfileResponse GetServiceProfile(global::Chirpstack.NetworkServer.GetServiceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetServiceProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetServiceProfile returns the service-profile matching 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.NetworkServer.GetServiceProfileResponse GetServiceProfile(global::Chirpstack.NetworkServer.GetServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetServiceProfile, null, options, request); + } + /// + /// GetServiceProfile returns the service-profile matching 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 GetServiceProfileAsync(global::Chirpstack.NetworkServer.GetServiceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetServiceProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetServiceProfile returns the service-profile matching 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 GetServiceProfileAsync(global::Chirpstack.NetworkServer.GetServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetServiceProfile, null, options, request); + } + /// + /// UpdateServiceProfile updates the given service-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 UpdateServiceProfile(global::Chirpstack.NetworkServer.UpdateServiceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateServiceProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateServiceProfile updates the given service-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 UpdateServiceProfile(global::Chirpstack.NetworkServer.UpdateServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateServiceProfile, null, options, request); + } + /// + /// UpdateServiceProfile updates the given service-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 UpdateServiceProfileAsync(global::Chirpstack.NetworkServer.UpdateServiceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateServiceProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateServiceProfile updates the given service-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 UpdateServiceProfileAsync(global::Chirpstack.NetworkServer.UpdateServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateServiceProfile, null, options, request); + } + /// + /// DeleteServiceProfile deletes the service-profile matching 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 DeleteServiceProfile(global::Chirpstack.NetworkServer.DeleteServiceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteServiceProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteServiceProfile deletes the service-profile matching 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 DeleteServiceProfile(global::Chirpstack.NetworkServer.DeleteServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteServiceProfile, null, options, request); + } + /// + /// DeleteServiceProfile deletes the service-profile matching 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 DeleteServiceProfileAsync(global::Chirpstack.NetworkServer.DeleteServiceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteServiceProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteServiceProfile deletes the service-profile matching 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 DeleteServiceProfileAsync(global::Chirpstack.NetworkServer.DeleteServiceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteServiceProfile, null, options, request); + } + /// + /// CreateRoutingProfile creates the given routing-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.NetworkServer.CreateRoutingProfileResponse CreateRoutingProfile(global::Chirpstack.NetworkServer.CreateRoutingProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateRoutingProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateRoutingProfile creates the given routing-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.NetworkServer.CreateRoutingProfileResponse CreateRoutingProfile(global::Chirpstack.NetworkServer.CreateRoutingProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateRoutingProfile, null, options, request); + } + /// + /// CreateRoutingProfile creates the given routing-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 CreateRoutingProfileAsync(global::Chirpstack.NetworkServer.CreateRoutingProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateRoutingProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateRoutingProfile creates the given routing-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 CreateRoutingProfileAsync(global::Chirpstack.NetworkServer.CreateRoutingProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateRoutingProfile, null, options, request); + } + /// + /// GetRoutingProfile returns the routing-profile matching 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.NetworkServer.GetRoutingProfileResponse GetRoutingProfile(global::Chirpstack.NetworkServer.GetRoutingProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetRoutingProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetRoutingProfile returns the routing-profile matching 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.NetworkServer.GetRoutingProfileResponse GetRoutingProfile(global::Chirpstack.NetworkServer.GetRoutingProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetRoutingProfile, null, options, request); + } + /// + /// GetRoutingProfile returns the routing-profile matching 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 GetRoutingProfileAsync(global::Chirpstack.NetworkServer.GetRoutingProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetRoutingProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetRoutingProfile returns the routing-profile matching 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 GetRoutingProfileAsync(global::Chirpstack.NetworkServer.GetRoutingProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetRoutingProfile, null, options, request); + } + /// + /// UpdateRoutingProfile updates the given routing-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 UpdateRoutingProfile(global::Chirpstack.NetworkServer.UpdateRoutingProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateRoutingProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateRoutingProfile updates the given routing-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 UpdateRoutingProfile(global::Chirpstack.NetworkServer.UpdateRoutingProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateRoutingProfile, null, options, request); + } + /// + /// UpdateRoutingProfile updates the given routing-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 UpdateRoutingProfileAsync(global::Chirpstack.NetworkServer.UpdateRoutingProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateRoutingProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateRoutingProfile updates the given routing-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 UpdateRoutingProfileAsync(global::Chirpstack.NetworkServer.UpdateRoutingProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateRoutingProfile, null, options, request); + } + /// + /// DeleteRoutingProfile deletes the routing-profile matching 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 DeleteRoutingProfile(global::Chirpstack.NetworkServer.DeleteRoutingProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteRoutingProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteRoutingProfile deletes the routing-profile matching 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 DeleteRoutingProfile(global::Chirpstack.NetworkServer.DeleteRoutingProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteRoutingProfile, null, options, request); + } + /// + /// DeleteRoutingProfile deletes the routing-profile matching 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 DeleteRoutingProfileAsync(global::Chirpstack.NetworkServer.DeleteRoutingProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteRoutingProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteRoutingProfile deletes the routing-profile matching 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 DeleteRoutingProfileAsync(global::Chirpstack.NetworkServer.DeleteRoutingProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteRoutingProfile, null, options, request); + } + /// + /// CreateDeviceProfile creates 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.NetworkServer.CreateDeviceProfileResponse CreateDeviceProfile(global::Chirpstack.NetworkServer.CreateDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateDeviceProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateDeviceProfile creates 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.NetworkServer.CreateDeviceProfileResponse CreateDeviceProfile(global::Chirpstack.NetworkServer.CreateDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateDeviceProfile, null, options, request); + } + /// + /// CreateDeviceProfile creates 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 CreateDeviceProfileAsync(global::Chirpstack.NetworkServer.CreateDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateDeviceProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateDeviceProfile creates 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 CreateDeviceProfileAsync(global::Chirpstack.NetworkServer.CreateDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateDeviceProfile, null, options, request); + } + /// + /// GetDeviceProfile returns the device-profile matching 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.NetworkServer.GetDeviceProfileResponse GetDeviceProfile(global::Chirpstack.NetworkServer.GetDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDeviceProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDeviceProfile returns the device-profile matching 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.NetworkServer.GetDeviceProfileResponse GetDeviceProfile(global::Chirpstack.NetworkServer.GetDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetDeviceProfile, null, options, request); + } + /// + /// GetDeviceProfile returns the device-profile matching 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 GetDeviceProfileAsync(global::Chirpstack.NetworkServer.GetDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDeviceProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDeviceProfile returns the device-profile matching 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 GetDeviceProfileAsync(global::Chirpstack.NetworkServer.GetDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetDeviceProfile, null, options, request); + } + /// + /// UpdateDeviceProfile updates 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 UpdateDeviceProfile(global::Chirpstack.NetworkServer.UpdateDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateDeviceProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateDeviceProfile updates 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 UpdateDeviceProfile(global::Chirpstack.NetworkServer.UpdateDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateDeviceProfile, null, options, request); + } + /// + /// UpdateDeviceProfile updates 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 UpdateDeviceProfileAsync(global::Chirpstack.NetworkServer.UpdateDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateDeviceProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateDeviceProfile updates 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 UpdateDeviceProfileAsync(global::Chirpstack.NetworkServer.UpdateDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateDeviceProfile, null, options, request); + } + /// + /// DeleteDeviceProfile deletes the device-profile matching 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 DeleteDeviceProfile(global::Chirpstack.NetworkServer.DeleteDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteDeviceProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteDeviceProfile deletes the device-profile matching 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 DeleteDeviceProfile(global::Chirpstack.NetworkServer.DeleteDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteDeviceProfile, null, options, request); + } + /// + /// DeleteDeviceProfile deletes the device-profile matching 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 DeleteDeviceProfileAsync(global::Chirpstack.NetworkServer.DeleteDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteDeviceProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteDeviceProfile deletes the device-profile matching 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 DeleteDeviceProfileAsync(global::Chirpstack.NetworkServer.DeleteDeviceProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteDeviceProfile, null, options, request); + } + /// + /// CreateDevice creates 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 CreateDevice(global::Chirpstack.NetworkServer.CreateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateDevice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateDevice creates 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 CreateDevice(global::Chirpstack.NetworkServer.CreateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateDevice, null, options, request); + } + /// + /// CreateDevice creates 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 CreateDeviceAsync(global::Chirpstack.NetworkServer.CreateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateDeviceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateDevice creates 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 CreateDeviceAsync(global::Chirpstack.NetworkServer.CreateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateDevice, null, options, request); + } + /// + /// GetDevice returns the device matching 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.NetworkServer.GetDeviceResponse GetDevice(global::Chirpstack.NetworkServer.GetDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDevice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDevice returns the device matching 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.NetworkServer.GetDeviceResponse GetDevice(global::Chirpstack.NetworkServer.GetDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetDevice, null, options, request); + } + /// + /// GetDevice returns the device matching 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 GetDeviceAsync(global::Chirpstack.NetworkServer.GetDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDeviceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDevice returns the device matching 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 GetDeviceAsync(global::Chirpstack.NetworkServer.GetDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetDevice, null, options, request); + } + /// + /// UpdateDevice updates 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 UpdateDevice(global::Chirpstack.NetworkServer.UpdateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateDevice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateDevice updates 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 UpdateDevice(global::Chirpstack.NetworkServer.UpdateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateDevice, null, options, request); + } + /// + /// UpdateDevice updates 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 UpdateDeviceAsync(global::Chirpstack.NetworkServer.UpdateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateDeviceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateDevice updates 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 UpdateDeviceAsync(global::Chirpstack.NetworkServer.UpdateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateDevice, null, options, request); + } + /// + /// DeleteDevice deletes the device matching 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 DeleteDevice(global::Chirpstack.NetworkServer.DeleteDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteDevice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteDevice deletes the device matching 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 DeleteDevice(global::Chirpstack.NetworkServer.DeleteDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteDevice, null, options, request); + } + /// + /// DeleteDevice deletes the device matching 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 DeleteDeviceAsync(global::Chirpstack.NetworkServer.DeleteDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteDeviceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteDevice deletes the device matching 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 DeleteDeviceAsync(global::Chirpstack.NetworkServer.DeleteDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteDevice, null, options, request); + } + /// + /// ActivateDevice activates a device (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::Google.Protobuf.WellKnownTypes.Empty ActivateDevice(global::Chirpstack.NetworkServer.ActivateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ActivateDevice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ActivateDevice activates a device (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::Google.Protobuf.WellKnownTypes.Empty ActivateDevice(global::Chirpstack.NetworkServer.ActivateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ActivateDevice, null, options, request); + } + /// + /// ActivateDevice activates a device (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 ActivateDeviceAsync(global::Chirpstack.NetworkServer.ActivateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ActivateDeviceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ActivateDevice activates a device (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 ActivateDeviceAsync(global::Chirpstack.NetworkServer.ActivateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ActivateDevice, null, options, request); + } + /// + /// DeactivateDevice de-activates a 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 DeactivateDevice(global::Chirpstack.NetworkServer.DeactivateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeactivateDevice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeactivateDevice de-activates a 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 DeactivateDevice(global::Chirpstack.NetworkServer.DeactivateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeactivateDevice, null, options, request); + } + /// + /// DeactivateDevice de-activates a 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 DeactivateDeviceAsync(global::Chirpstack.NetworkServer.DeactivateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeactivateDeviceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeactivateDevice de-activates a 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 DeactivateDeviceAsync(global::Chirpstack.NetworkServer.DeactivateDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeactivateDevice, null, options, request); + } + /// + /// GetDeviceActivation returns the device activation details. + /// + /// 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.NetworkServer.GetDeviceActivationResponse GetDeviceActivation(global::Chirpstack.NetworkServer.GetDeviceActivationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDeviceActivation(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDeviceActivation returns the device activation details. + /// + /// 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.NetworkServer.GetDeviceActivationResponse GetDeviceActivation(global::Chirpstack.NetworkServer.GetDeviceActivationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetDeviceActivation, null, options, request); + } + /// + /// GetDeviceActivation returns the device activation details. + /// + /// 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 GetDeviceActivationAsync(global::Chirpstack.NetworkServer.GetDeviceActivationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDeviceActivationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDeviceActivation returns the device activation details. + /// + /// 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 GetDeviceActivationAsync(global::Chirpstack.NetworkServer.GetDeviceActivationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetDeviceActivation, null, options, request); + } + /// + /// CreateDeviceQueueItem creates the given device-queue item. + /// + /// 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 CreateDeviceQueueItem(global::Chirpstack.NetworkServer.CreateDeviceQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateDeviceQueueItem(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateDeviceQueueItem creates the given device-queue item. + /// + /// 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 CreateDeviceQueueItem(global::Chirpstack.NetworkServer.CreateDeviceQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateDeviceQueueItem, null, options, request); + } + /// + /// CreateDeviceQueueItem creates the given device-queue item. + /// + /// 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 CreateDeviceQueueItemAsync(global::Chirpstack.NetworkServer.CreateDeviceQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateDeviceQueueItemAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateDeviceQueueItem creates the given device-queue item. + /// + /// 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 CreateDeviceQueueItemAsync(global::Chirpstack.NetworkServer.CreateDeviceQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateDeviceQueueItem, null, options, request); + } + /// + /// FlushDeviceQueueForDevEUI flushes the device-queue 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 FlushDeviceQueueForDevEUI(global::Chirpstack.NetworkServer.FlushDeviceQueueForDevEUIRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FlushDeviceQueueForDevEUI(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// FlushDeviceQueueForDevEUI flushes the device-queue 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 FlushDeviceQueueForDevEUI(global::Chirpstack.NetworkServer.FlushDeviceQueueForDevEUIRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_FlushDeviceQueueForDevEUI, null, options, request); + } + /// + /// FlushDeviceQueueForDevEUI flushes the device-queue 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 FlushDeviceQueueForDevEUIAsync(global::Chirpstack.NetworkServer.FlushDeviceQueueForDevEUIRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FlushDeviceQueueForDevEUIAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// FlushDeviceQueueForDevEUI flushes the device-queue 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 FlushDeviceQueueForDevEUIAsync(global::Chirpstack.NetworkServer.FlushDeviceQueueForDevEUIRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_FlushDeviceQueueForDevEUI, null, options, request); + } + /// + /// GetDeviceQueueItemsForDevEUI returns all device-queue items 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.NetworkServer.GetDeviceQueueItemsForDevEUIResponse GetDeviceQueueItemsForDevEUI(global::Chirpstack.NetworkServer.GetDeviceQueueItemsForDevEUIRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDeviceQueueItemsForDevEUI(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDeviceQueueItemsForDevEUI returns all device-queue items 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.NetworkServer.GetDeviceQueueItemsForDevEUIResponse GetDeviceQueueItemsForDevEUI(global::Chirpstack.NetworkServer.GetDeviceQueueItemsForDevEUIRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetDeviceQueueItemsForDevEUI, null, options, request); + } + /// + /// GetDeviceQueueItemsForDevEUI returns all device-queue items 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 GetDeviceQueueItemsForDevEUIAsync(global::Chirpstack.NetworkServer.GetDeviceQueueItemsForDevEUIRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDeviceQueueItemsForDevEUIAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetDeviceQueueItemsForDevEUI returns all device-queue items 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 GetDeviceQueueItemsForDevEUIAsync(global::Chirpstack.NetworkServer.GetDeviceQueueItemsForDevEUIRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetDeviceQueueItemsForDevEUI, null, options, request); + } + /// + /// GetNextDownlinkFCntForDevEUI returns the next FCnt that must be used. + /// This also takes device-queue items for the given DevEUI into consideration. + /// + /// 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.NetworkServer.GetNextDownlinkFCntForDevEUIResponse GetNextDownlinkFCntForDevEUI(global::Chirpstack.NetworkServer.GetNextDownlinkFCntForDevEUIRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetNextDownlinkFCntForDevEUI(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetNextDownlinkFCntForDevEUI returns the next FCnt that must be used. + /// This also takes device-queue items for the given DevEUI into consideration. + /// + /// 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.NetworkServer.GetNextDownlinkFCntForDevEUIResponse GetNextDownlinkFCntForDevEUI(global::Chirpstack.NetworkServer.GetNextDownlinkFCntForDevEUIRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetNextDownlinkFCntForDevEUI, null, options, request); + } + /// + /// GetNextDownlinkFCntForDevEUI returns the next FCnt that must be used. + /// This also takes device-queue items for the given DevEUI into consideration. + /// + /// 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 GetNextDownlinkFCntForDevEUIAsync(global::Chirpstack.NetworkServer.GetNextDownlinkFCntForDevEUIRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetNextDownlinkFCntForDevEUIAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetNextDownlinkFCntForDevEUI returns the next FCnt that must be used. + /// This also takes device-queue items for the given DevEUI into consideration. + /// + /// 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 GetNextDownlinkFCntForDevEUIAsync(global::Chirpstack.NetworkServer.GetNextDownlinkFCntForDevEUIRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetNextDownlinkFCntForDevEUI, 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.NetworkServer.GetRandomDevAddrResponse GetRandomDevAddr(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 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.NetworkServer.GetRandomDevAddrResponse GetRandomDevAddr(global::Google.Protobuf.WellKnownTypes.Empty 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::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 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::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetRandomDevAddr, null, options, request); + } + /// + /// CreateMACCommandQueueItem adds the downlink mac-command to the 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 CreateMACCommandQueueItem(global::Chirpstack.NetworkServer.CreateMACCommandQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateMACCommandQueueItem(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateMACCommandQueueItem adds the downlink mac-command to the 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 CreateMACCommandQueueItem(global::Chirpstack.NetworkServer.CreateMACCommandQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateMACCommandQueueItem, null, options, request); + } + /// + /// CreateMACCommandQueueItem adds the downlink mac-command to the 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 CreateMACCommandQueueItemAsync(global::Chirpstack.NetworkServer.CreateMACCommandQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateMACCommandQueueItemAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateMACCommandQueueItem adds the downlink mac-command to the 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 CreateMACCommandQueueItemAsync(global::Chirpstack.NetworkServer.CreateMACCommandQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateMACCommandQueueItem, null, options, request); + } + /// + /// SendProprietaryPayload send a payload using the 'Proprietary' LoRaWAN message-type. + /// + /// 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 SendProprietaryPayload(global::Chirpstack.NetworkServer.SendProprietaryPayloadRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SendProprietaryPayload(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// SendProprietaryPayload send a payload using the 'Proprietary' LoRaWAN message-type. + /// + /// 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 SendProprietaryPayload(global::Chirpstack.NetworkServer.SendProprietaryPayloadRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_SendProprietaryPayload, null, options, request); + } + /// + /// SendProprietaryPayload send a payload using the 'Proprietary' LoRaWAN message-type. + /// + /// 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 SendProprietaryPayloadAsync(global::Chirpstack.NetworkServer.SendProprietaryPayloadRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SendProprietaryPayloadAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// SendProprietaryPayload send a payload using the 'Proprietary' LoRaWAN message-type. + /// + /// 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 SendProprietaryPayloadAsync(global::Chirpstack.NetworkServer.SendProprietaryPayloadRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_SendProprietaryPayload, null, options, request); + } + /// + /// CreateGateway 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 CreateGateway(global::Chirpstack.NetworkServer.CreateGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateGateway(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateGateway 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 CreateGateway(global::Chirpstack.NetworkServer.CreateGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateGateway, null, options, request); + } + /// + /// CreateGateway 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 CreateGatewayAsync(global::Chirpstack.NetworkServer.CreateGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateGatewayAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateGateway 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 CreateGatewayAsync(global::Chirpstack.NetworkServer.CreateGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateGateway, null, options, request); + } + /// + /// GetGateway returns data for a particular 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.NetworkServer.GetGatewayResponse GetGateway(global::Chirpstack.NetworkServer.GetGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetGateway(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetGateway returns data for a particular 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.NetworkServer.GetGatewayResponse GetGateway(global::Chirpstack.NetworkServer.GetGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetGateway, null, options, request); + } + /// + /// GetGateway returns data for a particular 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 GetGatewayAsync(global::Chirpstack.NetworkServer.GetGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetGatewayAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetGateway returns data for a particular 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 GetGatewayAsync(global::Chirpstack.NetworkServer.GetGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetGateway, null, options, request); + } + /// + /// UpdateGateway updates an existing 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 UpdateGateway(global::Chirpstack.NetworkServer.UpdateGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateGateway(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateGateway updates an existing 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 UpdateGateway(global::Chirpstack.NetworkServer.UpdateGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateGateway, null, options, request); + } + /// + /// UpdateGateway updates an existing 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 UpdateGatewayAsync(global::Chirpstack.NetworkServer.UpdateGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateGatewayAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateGateway updates an existing 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 UpdateGatewayAsync(global::Chirpstack.NetworkServer.UpdateGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateGateway, null, options, request); + } + /// + /// DeleteGateway deletes a 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 DeleteGateway(global::Chirpstack.NetworkServer.DeleteGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteGateway(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteGateway deletes a 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 DeleteGateway(global::Chirpstack.NetworkServer.DeleteGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteGateway, null, options, request); + } + /// + /// DeleteGateway deletes a 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 DeleteGatewayAsync(global::Chirpstack.NetworkServer.DeleteGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteGatewayAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteGateway deletes a 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 DeleteGatewayAsync(global::Chirpstack.NetworkServer.DeleteGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteGateway, null, options, request); + } + /// + /// GenerateGatewayClientCertificate returns TLS certificate gateway authentication / authorization. + /// This endpoint can ony be used when ChirpStack Network Server is configured with a gateway + /// CA certificate and key, which is used for signing the TLS certificate. The returned TLS + /// certificate will have the Gateway ID as Common Name. + /// + /// 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.NetworkServer.GenerateGatewayClientCertificateResponse GenerateGatewayClientCertificate(global::Chirpstack.NetworkServer.GenerateGatewayClientCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GenerateGatewayClientCertificate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GenerateGatewayClientCertificate returns TLS certificate gateway authentication / authorization. + /// This endpoint can ony be used when ChirpStack Network Server is configured with a gateway + /// CA certificate and key, which is used for signing the TLS certificate. The returned TLS + /// certificate will have the Gateway ID as Common Name. + /// + /// 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.NetworkServer.GenerateGatewayClientCertificateResponse GenerateGatewayClientCertificate(global::Chirpstack.NetworkServer.GenerateGatewayClientCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GenerateGatewayClientCertificate, null, options, request); + } + /// + /// GenerateGatewayClientCertificate returns TLS certificate gateway authentication / authorization. + /// This endpoint can ony be used when ChirpStack Network Server is configured with a gateway + /// CA certificate and key, which is used for signing the TLS certificate. The returned TLS + /// certificate will have the Gateway ID as Common Name. + /// + /// 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 GenerateGatewayClientCertificateAsync(global::Chirpstack.NetworkServer.GenerateGatewayClientCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GenerateGatewayClientCertificateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GenerateGatewayClientCertificate returns TLS certificate gateway authentication / authorization. + /// This endpoint can ony be used when ChirpStack Network Server is configured with a gateway + /// CA certificate and key, which is used for signing the TLS certificate. The returned TLS + /// certificate will have the Gateway ID as Common Name. + /// + /// 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 GenerateGatewayClientCertificateAsync(global::Chirpstack.NetworkServer.GenerateGatewayClientCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GenerateGatewayClientCertificate, null, options, request); + } + /// + /// CreateGatewayProfile creates the given gateway-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.NetworkServer.CreateGatewayProfileResponse CreateGatewayProfile(global::Chirpstack.NetworkServer.CreateGatewayProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateGatewayProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateGatewayProfile creates the given gateway-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.NetworkServer.CreateGatewayProfileResponse CreateGatewayProfile(global::Chirpstack.NetworkServer.CreateGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateGatewayProfile, null, options, request); + } + /// + /// CreateGatewayProfile creates the given gateway-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 CreateGatewayProfileAsync(global::Chirpstack.NetworkServer.CreateGatewayProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateGatewayProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateGatewayProfile creates the given gateway-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 CreateGatewayProfileAsync(global::Chirpstack.NetworkServer.CreateGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateGatewayProfile, null, options, request); + } + /// + /// GetGatewayProfile returns the gateway-profile given an 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.NetworkServer.GetGatewayProfileResponse GetGatewayProfile(global::Chirpstack.NetworkServer.GetGatewayProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetGatewayProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetGatewayProfile returns the gateway-profile given an 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.NetworkServer.GetGatewayProfileResponse GetGatewayProfile(global::Chirpstack.NetworkServer.GetGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetGatewayProfile, null, options, request); + } + /// + /// GetGatewayProfile returns the gateway-profile given an 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 GetGatewayProfileAsync(global::Chirpstack.NetworkServer.GetGatewayProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetGatewayProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetGatewayProfile returns the gateway-profile given an 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 GetGatewayProfileAsync(global::Chirpstack.NetworkServer.GetGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetGatewayProfile, null, options, request); + } + /// + /// UpdateGatewayProfile updates the given gateway-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 UpdateGatewayProfile(global::Chirpstack.NetworkServer.UpdateGatewayProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateGatewayProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateGatewayProfile updates the given gateway-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 UpdateGatewayProfile(global::Chirpstack.NetworkServer.UpdateGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateGatewayProfile, null, options, request); + } + /// + /// UpdateGatewayProfile updates the given gateway-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 UpdateGatewayProfileAsync(global::Chirpstack.NetworkServer.UpdateGatewayProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateGatewayProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateGatewayProfile updates the given gateway-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 UpdateGatewayProfileAsync(global::Chirpstack.NetworkServer.UpdateGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateGatewayProfile, null, options, request); + } + /// + /// DeleteGatewayProfile deletes the gateway-profile matching a 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 DeleteGatewayProfile(global::Chirpstack.NetworkServer.DeleteGatewayProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteGatewayProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteGatewayProfile deletes the gateway-profile matching a 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 DeleteGatewayProfile(global::Chirpstack.NetworkServer.DeleteGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteGatewayProfile, null, options, request); + } + /// + /// DeleteGatewayProfile deletes the gateway-profile matching a 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 DeleteGatewayProfileAsync(global::Chirpstack.NetworkServer.DeleteGatewayProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteGatewayProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteGatewayProfile deletes the gateway-profile matching a 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 DeleteGatewayProfileAsync(global::Chirpstack.NetworkServer.DeleteGatewayProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteGatewayProfile, null, options, request); + } + /// + /// GetGatewayStats returns stats of an existing gateway. + /// Deprecated (stats are forwarded to Application Server API). + /// + /// 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.NetworkServer.GetGatewayStatsResponse GetGatewayStats(global::Chirpstack.NetworkServer.GetGatewayStatsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetGatewayStats(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetGatewayStats returns stats of an existing gateway. + /// Deprecated (stats are forwarded to Application Server API). + /// + /// 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.NetworkServer.GetGatewayStatsResponse GetGatewayStats(global::Chirpstack.NetworkServer.GetGatewayStatsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetGatewayStats, null, options, request); + } + /// + /// GetGatewayStats returns stats of an existing gateway. + /// Deprecated (stats are forwarded to Application Server API). + /// + /// 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 GetGatewayStatsAsync(global::Chirpstack.NetworkServer.GetGatewayStatsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetGatewayStatsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetGatewayStats returns stats of an existing gateway. + /// Deprecated (stats are forwarded to Application Server API). + /// + /// 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 GetGatewayStatsAsync(global::Chirpstack.NetworkServer.GetGatewayStatsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetGatewayStats, null, options, request); + } + /// + /// StreamFrameLogsForGateway returns a stream of frames seen by 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::AsyncServerStreamingCall StreamFrameLogsForGateway(global::Chirpstack.NetworkServer.StreamFrameLogsForGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return StreamFrameLogsForGateway(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// StreamFrameLogsForGateway returns a stream of frames seen by 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::AsyncServerStreamingCall StreamFrameLogsForGateway(global::Chirpstack.NetworkServer.StreamFrameLogsForGatewayRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncServerStreamingCall(__Method_StreamFrameLogsForGateway, null, options, request); + } + /// + /// StreamFrameLogsForDevice returns a stream of frames seen by 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::AsyncServerStreamingCall StreamFrameLogsForDevice(global::Chirpstack.NetworkServer.StreamFrameLogsForDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return StreamFrameLogsForDevice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// StreamFrameLogsForDevice returns a stream of frames seen by 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::AsyncServerStreamingCall StreamFrameLogsForDevice(global::Chirpstack.NetworkServer.StreamFrameLogsForDeviceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncServerStreamingCall(__Method_StreamFrameLogsForDevice, null, options, request); + } + /// + /// CreateMulticastGroup creates 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.NetworkServer.CreateMulticastGroupResponse CreateMulticastGroup(global::Chirpstack.NetworkServer.CreateMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateMulticastGroup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateMulticastGroup creates 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.NetworkServer.CreateMulticastGroupResponse CreateMulticastGroup(global::Chirpstack.NetworkServer.CreateMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateMulticastGroup, null, options, request); + } + /// + /// CreateMulticastGroup creates 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 CreateMulticastGroupAsync(global::Chirpstack.NetworkServer.CreateMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateMulticastGroupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateMulticastGroup creates 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 CreateMulticastGroupAsync(global::Chirpstack.NetworkServer.CreateMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateMulticastGroup, null, options, request); + } + /// + /// GetMulticastGroup returns the multicast-group given an 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.NetworkServer.GetMulticastGroupResponse GetMulticastGroup(global::Chirpstack.NetworkServer.GetMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMulticastGroup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetMulticastGroup returns the multicast-group given an 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.NetworkServer.GetMulticastGroupResponse GetMulticastGroup(global::Chirpstack.NetworkServer.GetMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetMulticastGroup, null, options, request); + } + /// + /// GetMulticastGroup returns the multicast-group given an 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 GetMulticastGroupAsync(global::Chirpstack.NetworkServer.GetMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMulticastGroupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetMulticastGroup returns the multicast-group given an 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 GetMulticastGroupAsync(global::Chirpstack.NetworkServer.GetMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetMulticastGroup, null, options, request); + } + /// + /// UpdateMulticastGroup updates 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 UpdateMulticastGroup(global::Chirpstack.NetworkServer.UpdateMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateMulticastGroup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateMulticastGroup updates 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 UpdateMulticastGroup(global::Chirpstack.NetworkServer.UpdateMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateMulticastGroup, null, options, request); + } + /// + /// UpdateMulticastGroup updates 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 UpdateMulticastGroupAsync(global::Chirpstack.NetworkServer.UpdateMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateMulticastGroupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateMulticastGroup updates 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 UpdateMulticastGroupAsync(global::Chirpstack.NetworkServer.UpdateMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateMulticastGroup, null, options, request); + } + /// + /// DeleteMulticastGroup deletes a multicast-group given an 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 DeleteMulticastGroup(global::Chirpstack.NetworkServer.DeleteMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteMulticastGroup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteMulticastGroup deletes a multicast-group given an 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 DeleteMulticastGroup(global::Chirpstack.NetworkServer.DeleteMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteMulticastGroup, null, options, request); + } + /// + /// DeleteMulticastGroup deletes a multicast-group given an 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 DeleteMulticastGroupAsync(global::Chirpstack.NetworkServer.DeleteMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteMulticastGroupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteMulticastGroup deletes a multicast-group given an 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 DeleteMulticastGroupAsync(global::Chirpstack.NetworkServer.DeleteMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteMulticastGroup, null, options, request); + } + /// + /// AddDeviceToMulticastGroup adds the given device to 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 AddDeviceToMulticastGroup(global::Chirpstack.NetworkServer.AddDeviceToMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return AddDeviceToMulticastGroup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// AddDeviceToMulticastGroup adds the given device to 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 AddDeviceToMulticastGroup(global::Chirpstack.NetworkServer.AddDeviceToMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_AddDeviceToMulticastGroup, null, options, request); + } + /// + /// AddDeviceToMulticastGroup adds the given device to 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 AddDeviceToMulticastGroupAsync(global::Chirpstack.NetworkServer.AddDeviceToMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return AddDeviceToMulticastGroupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// AddDeviceToMulticastGroup adds the given device to 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 AddDeviceToMulticastGroupAsync(global::Chirpstack.NetworkServer.AddDeviceToMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_AddDeviceToMulticastGroup, null, options, request); + } + /// + /// RemoveDeviceFromMulticastGroup removes the given device from 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 RemoveDeviceFromMulticastGroup(global::Chirpstack.NetworkServer.RemoveDeviceFromMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RemoveDeviceFromMulticastGroup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// RemoveDeviceFromMulticastGroup removes the given device from 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 RemoveDeviceFromMulticastGroup(global::Chirpstack.NetworkServer.RemoveDeviceFromMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_RemoveDeviceFromMulticastGroup, null, options, request); + } + /// + /// RemoveDeviceFromMulticastGroup removes the given device from 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 RemoveDeviceFromMulticastGroupAsync(global::Chirpstack.NetworkServer.RemoveDeviceFromMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RemoveDeviceFromMulticastGroupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// RemoveDeviceFromMulticastGroup removes the given device from 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 RemoveDeviceFromMulticastGroupAsync(global::Chirpstack.NetworkServer.RemoveDeviceFromMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_RemoveDeviceFromMulticastGroup, null, options, request); + } + /// + /// EnqueueMulticastQueueItem enqueues the given multicast queue-item and + /// increments the frame-counter after enqueueing. + /// + /// 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 EnqueueMulticastQueueItem(global::Chirpstack.NetworkServer.EnqueueMulticastQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return EnqueueMulticastQueueItem(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// EnqueueMulticastQueueItem enqueues the given multicast queue-item and + /// increments the frame-counter after enqueueing. + /// + /// 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 EnqueueMulticastQueueItem(global::Chirpstack.NetworkServer.EnqueueMulticastQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_EnqueueMulticastQueueItem, null, options, request); + } + /// + /// EnqueueMulticastQueueItem enqueues the given multicast queue-item and + /// increments the frame-counter after enqueueing. + /// + /// 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 EnqueueMulticastQueueItemAsync(global::Chirpstack.NetworkServer.EnqueueMulticastQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return EnqueueMulticastQueueItemAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// EnqueueMulticastQueueItem enqueues the given multicast queue-item and + /// increments the frame-counter after enqueueing. + /// + /// 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 EnqueueMulticastQueueItemAsync(global::Chirpstack.NetworkServer.EnqueueMulticastQueueItemRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_EnqueueMulticastQueueItem, null, options, request); + } + /// + /// FlushMulticastQueueForMulticastGroup flushes the multicast device-queue given a multicast-group 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 FlushMulticastQueueForMulticastGroup(global::Chirpstack.NetworkServer.FlushMulticastQueueForMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FlushMulticastQueueForMulticastGroup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// FlushMulticastQueueForMulticastGroup flushes the multicast device-queue given a multicast-group 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 FlushMulticastQueueForMulticastGroup(global::Chirpstack.NetworkServer.FlushMulticastQueueForMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_FlushMulticastQueueForMulticastGroup, null, options, request); + } + /// + /// FlushMulticastQueueForMulticastGroup flushes the multicast device-queue given a multicast-group 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 FlushMulticastQueueForMulticastGroupAsync(global::Chirpstack.NetworkServer.FlushMulticastQueueForMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FlushMulticastQueueForMulticastGroupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// FlushMulticastQueueForMulticastGroup flushes the multicast device-queue given a multicast-group 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 FlushMulticastQueueForMulticastGroupAsync(global::Chirpstack.NetworkServer.FlushMulticastQueueForMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_FlushMulticastQueueForMulticastGroup, null, options, request); + } + /// + /// GetMulticastQueueItemsForMulticastGroup returns the queue-items given a multicast-group 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.NetworkServer.GetMulticastQueueItemsForMulticastGroupResponse GetMulticastQueueItemsForMulticastGroup(global::Chirpstack.NetworkServer.GetMulticastQueueItemsForMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMulticastQueueItemsForMulticastGroup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetMulticastQueueItemsForMulticastGroup returns the queue-items given a multicast-group 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.NetworkServer.GetMulticastQueueItemsForMulticastGroupResponse GetMulticastQueueItemsForMulticastGroup(global::Chirpstack.NetworkServer.GetMulticastQueueItemsForMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetMulticastQueueItemsForMulticastGroup, null, options, request); + } + /// + /// GetMulticastQueueItemsForMulticastGroup returns the queue-items given a multicast-group 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 GetMulticastQueueItemsForMulticastGroupAsync(global::Chirpstack.NetworkServer.GetMulticastQueueItemsForMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMulticastQueueItemsForMulticastGroupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetMulticastQueueItemsForMulticastGroup returns the queue-items given a multicast-group 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 GetMulticastQueueItemsForMulticastGroupAsync(global::Chirpstack.NetworkServer.GetMulticastQueueItemsForMulticastGroupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetMulticastQueueItemsForMulticastGroup, null, options, request); + } + /// + /// GetVersion returns the ChirpStack Network Server version. + /// + /// 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.NetworkServer.GetVersionResponse GetVersion(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 GetVersion(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetVersion returns the ChirpStack Network Server version. + /// + /// 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.NetworkServer.GetVersionResponse GetVersion(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetVersion, null, options, request); + } + /// + /// GetVersion returns the ChirpStack Network Server version. + /// + /// 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 GetVersionAsync(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 GetVersionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetVersion returns the ChirpStack Network Server version. + /// + /// 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 GetVersionAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetVersion, null, options, request); + } + /// + /// GetADRAlgorithms returns the 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.NetworkServer.GetADRAlgorithmsResponse GetADRAlgorithms(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 GetADRAlgorithms(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetADRAlgorithms returns the 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.NetworkServer.GetADRAlgorithmsResponse GetADRAlgorithms(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetADRAlgorithms, null, options, request); + } + /// + /// GetADRAlgorithms returns the 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 GetADRAlgorithmsAsync(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 GetADRAlgorithmsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetADRAlgorithms returns the 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 GetADRAlgorithmsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetADRAlgorithms, null, options, request); + } + /// + /// ClearDeviceNonces deletes the device older activation records for the given DevEUI. + /// * These are clear older DevNonce records from device activation records + /// * These clears all DevNonce records but keeps latest 20 records for maintain device activation status + /// + /// 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 ClearDeviceNonces(global::Chirpstack.NetworkServer.ClearDeviceNoncesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ClearDeviceNonces(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ClearDeviceNonces deletes the device older activation records for the given DevEUI. + /// * These are clear older DevNonce records from device activation records + /// * These clears all DevNonce records but keeps latest 20 records for maintain device activation status + /// + /// 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 ClearDeviceNonces(global::Chirpstack.NetworkServer.ClearDeviceNoncesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ClearDeviceNonces, null, options, request); + } + /// + /// ClearDeviceNonces deletes the device older activation records for the given DevEUI. + /// * These are clear older DevNonce records from device activation records + /// * These clears all DevNonce records but keeps latest 20 records for maintain device activation status + /// + /// 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 ClearDeviceNoncesAsync(global::Chirpstack.NetworkServer.ClearDeviceNoncesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ClearDeviceNoncesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ClearDeviceNonces deletes the device older activation records for the given DevEUI. + /// * These are clear older DevNonce records from device activation records + /// * These clears all DevNonce records but keeps latest 20 records for maintain device activation status + /// + /// 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 ClearDeviceNoncesAsync(global::Chirpstack.NetworkServer.ClearDeviceNoncesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ClearDeviceNonces, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override NetworkServerServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new NetworkServerServiceClient(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(NetworkServerServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_CreateServiceProfile, serviceImpl.CreateServiceProfile) + .AddMethod(__Method_GetServiceProfile, serviceImpl.GetServiceProfile) + .AddMethod(__Method_UpdateServiceProfile, serviceImpl.UpdateServiceProfile) + .AddMethod(__Method_DeleteServiceProfile, serviceImpl.DeleteServiceProfile) + .AddMethod(__Method_CreateRoutingProfile, serviceImpl.CreateRoutingProfile) + .AddMethod(__Method_GetRoutingProfile, serviceImpl.GetRoutingProfile) + .AddMethod(__Method_UpdateRoutingProfile, serviceImpl.UpdateRoutingProfile) + .AddMethod(__Method_DeleteRoutingProfile, serviceImpl.DeleteRoutingProfile) + .AddMethod(__Method_CreateDeviceProfile, serviceImpl.CreateDeviceProfile) + .AddMethod(__Method_GetDeviceProfile, serviceImpl.GetDeviceProfile) + .AddMethod(__Method_UpdateDeviceProfile, serviceImpl.UpdateDeviceProfile) + .AddMethod(__Method_DeleteDeviceProfile, serviceImpl.DeleteDeviceProfile) + .AddMethod(__Method_CreateDevice, serviceImpl.CreateDevice) + .AddMethod(__Method_GetDevice, serviceImpl.GetDevice) + .AddMethod(__Method_UpdateDevice, serviceImpl.UpdateDevice) + .AddMethod(__Method_DeleteDevice, serviceImpl.DeleteDevice) + .AddMethod(__Method_ActivateDevice, serviceImpl.ActivateDevice) + .AddMethod(__Method_DeactivateDevice, serviceImpl.DeactivateDevice) + .AddMethod(__Method_GetDeviceActivation, serviceImpl.GetDeviceActivation) + .AddMethod(__Method_CreateDeviceQueueItem, serviceImpl.CreateDeviceQueueItem) + .AddMethod(__Method_FlushDeviceQueueForDevEUI, serviceImpl.FlushDeviceQueueForDevEUI) + .AddMethod(__Method_GetDeviceQueueItemsForDevEUI, serviceImpl.GetDeviceQueueItemsForDevEUI) + .AddMethod(__Method_GetNextDownlinkFCntForDevEUI, serviceImpl.GetNextDownlinkFCntForDevEUI) + .AddMethod(__Method_GetRandomDevAddr, serviceImpl.GetRandomDevAddr) + .AddMethod(__Method_CreateMACCommandQueueItem, serviceImpl.CreateMACCommandQueueItem) + .AddMethod(__Method_SendProprietaryPayload, serviceImpl.SendProprietaryPayload) + .AddMethod(__Method_CreateGateway, serviceImpl.CreateGateway) + .AddMethod(__Method_GetGateway, serviceImpl.GetGateway) + .AddMethod(__Method_UpdateGateway, serviceImpl.UpdateGateway) + .AddMethod(__Method_DeleteGateway, serviceImpl.DeleteGateway) + .AddMethod(__Method_GenerateGatewayClientCertificate, serviceImpl.GenerateGatewayClientCertificate) + .AddMethod(__Method_CreateGatewayProfile, serviceImpl.CreateGatewayProfile) + .AddMethod(__Method_GetGatewayProfile, serviceImpl.GetGatewayProfile) + .AddMethod(__Method_UpdateGatewayProfile, serviceImpl.UpdateGatewayProfile) + .AddMethod(__Method_DeleteGatewayProfile, serviceImpl.DeleteGatewayProfile) + .AddMethod(__Method_GetGatewayStats, serviceImpl.GetGatewayStats) + .AddMethod(__Method_StreamFrameLogsForGateway, serviceImpl.StreamFrameLogsForGateway) + .AddMethod(__Method_StreamFrameLogsForDevice, serviceImpl.StreamFrameLogsForDevice) + .AddMethod(__Method_CreateMulticastGroup, serviceImpl.CreateMulticastGroup) + .AddMethod(__Method_GetMulticastGroup, serviceImpl.GetMulticastGroup) + .AddMethod(__Method_UpdateMulticastGroup, serviceImpl.UpdateMulticastGroup) + .AddMethod(__Method_DeleteMulticastGroup, serviceImpl.DeleteMulticastGroup) + .AddMethod(__Method_AddDeviceToMulticastGroup, serviceImpl.AddDeviceToMulticastGroup) + .AddMethod(__Method_RemoveDeviceFromMulticastGroup, serviceImpl.RemoveDeviceFromMulticastGroup) + .AddMethod(__Method_EnqueueMulticastQueueItem, serviceImpl.EnqueueMulticastQueueItem) + .AddMethod(__Method_FlushMulticastQueueForMulticastGroup, serviceImpl.FlushMulticastQueueForMulticastGroup) + .AddMethod(__Method_GetMulticastQueueItemsForMulticastGroup, serviceImpl.GetMulticastQueueItemsForMulticastGroup) + .AddMethod(__Method_GetVersion, serviceImpl.GetVersion) + .AddMethod(__Method_GetADRAlgorithms, serviceImpl.GetADRAlgorithms) + .AddMethod(__Method_ClearDeviceNonces, serviceImpl.ClearDeviceNonces).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, NetworkServerServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_CreateServiceProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateServiceProfile)); + serviceBinder.AddMethod(__Method_GetServiceProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetServiceProfile)); + serviceBinder.AddMethod(__Method_UpdateServiceProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateServiceProfile)); + serviceBinder.AddMethod(__Method_DeleteServiceProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteServiceProfile)); + serviceBinder.AddMethod(__Method_CreateRoutingProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateRoutingProfile)); + serviceBinder.AddMethod(__Method_GetRoutingProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRoutingProfile)); + serviceBinder.AddMethod(__Method_UpdateRoutingProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateRoutingProfile)); + serviceBinder.AddMethod(__Method_DeleteRoutingProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteRoutingProfile)); + serviceBinder.AddMethod(__Method_CreateDeviceProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateDeviceProfile)); + serviceBinder.AddMethod(__Method_GetDeviceProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetDeviceProfile)); + serviceBinder.AddMethod(__Method_UpdateDeviceProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateDeviceProfile)); + serviceBinder.AddMethod(__Method_DeleteDeviceProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteDeviceProfile)); + serviceBinder.AddMethod(__Method_CreateDevice, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateDevice)); + serviceBinder.AddMethod(__Method_GetDevice, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetDevice)); + serviceBinder.AddMethod(__Method_UpdateDevice, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateDevice)); + serviceBinder.AddMethod(__Method_DeleteDevice, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteDevice)); + serviceBinder.AddMethod(__Method_ActivateDevice, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ActivateDevice)); + serviceBinder.AddMethod(__Method_DeactivateDevice, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeactivateDevice)); + serviceBinder.AddMethod(__Method_GetDeviceActivation, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetDeviceActivation)); + serviceBinder.AddMethod(__Method_CreateDeviceQueueItem, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateDeviceQueueItem)); + serviceBinder.AddMethod(__Method_FlushDeviceQueueForDevEUI, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FlushDeviceQueueForDevEUI)); + serviceBinder.AddMethod(__Method_GetDeviceQueueItemsForDevEUI, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetDeviceQueueItemsForDevEUI)); + serviceBinder.AddMethod(__Method_GetNextDownlinkFCntForDevEUI, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetNextDownlinkFCntForDevEUI)); + serviceBinder.AddMethod(__Method_GetRandomDevAddr, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRandomDevAddr)); + serviceBinder.AddMethod(__Method_CreateMACCommandQueueItem, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateMACCommandQueueItem)); + serviceBinder.AddMethod(__Method_SendProprietaryPayload, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SendProprietaryPayload)); + serviceBinder.AddMethod(__Method_CreateGateway, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateGateway)); + serviceBinder.AddMethod(__Method_GetGateway, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGateway)); + serviceBinder.AddMethod(__Method_UpdateGateway, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateGateway)); + serviceBinder.AddMethod(__Method_DeleteGateway, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteGateway)); + serviceBinder.AddMethod(__Method_GenerateGatewayClientCertificate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateGatewayClientCertificate)); + serviceBinder.AddMethod(__Method_CreateGatewayProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateGatewayProfile)); + serviceBinder.AddMethod(__Method_GetGatewayProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGatewayProfile)); + serviceBinder.AddMethod(__Method_UpdateGatewayProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateGatewayProfile)); + serviceBinder.AddMethod(__Method_DeleteGatewayProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteGatewayProfile)); + serviceBinder.AddMethod(__Method_GetGatewayStats, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGatewayStats)); + serviceBinder.AddMethod(__Method_StreamFrameLogsForGateway, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.StreamFrameLogsForGateway)); + serviceBinder.AddMethod(__Method_StreamFrameLogsForDevice, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.StreamFrameLogsForDevice)); + serviceBinder.AddMethod(__Method_CreateMulticastGroup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateMulticastGroup)); + serviceBinder.AddMethod(__Method_GetMulticastGroup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMulticastGroup)); + serviceBinder.AddMethod(__Method_UpdateMulticastGroup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateMulticastGroup)); + serviceBinder.AddMethod(__Method_DeleteMulticastGroup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteMulticastGroup)); + serviceBinder.AddMethod(__Method_AddDeviceToMulticastGroup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddDeviceToMulticastGroup)); + serviceBinder.AddMethod(__Method_RemoveDeviceFromMulticastGroup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RemoveDeviceFromMulticastGroup)); + serviceBinder.AddMethod(__Method_EnqueueMulticastQueueItem, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.EnqueueMulticastQueueItem)); + serviceBinder.AddMethod(__Method_FlushMulticastQueueForMulticastGroup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FlushMulticastQueueForMulticastGroup)); + serviceBinder.AddMethod(__Method_GetMulticastQueueItemsForMulticastGroup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMulticastQueueItemsForMulticastGroup)); + serviceBinder.AddMethod(__Method_GetVersion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetVersion)); + serviceBinder.AddMethod(__Method_GetADRAlgorithms, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetADRAlgorithms)); + serviceBinder.AddMethod(__Method_ClearDeviceNonces, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ClearDeviceNonces)); + } + + } +} +#endregion diff --git a/csharp/protobuf/ns/Profiles.cs b/csharp/protobuf/ns/Profiles.cs new file mode 100644 index 00000000..00b1158d --- /dev/null +++ b/csharp/protobuf/ns/Profiles.cs @@ -0,0 +1,2420 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ns/profiles.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.NetworkServer { + + /// Holder for reflection information generated from ns/profiles.proto + public static partial class ProfilesReflection { + + #region Descriptor + /// File descriptor for ns/profiles.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ProfilesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFucy9wcm9maWxlcy5wcm90bxICbnMigwQKDlNlcnZpY2VQcm9maWxlEgoK", + "AmlkGAEgASgMEg8KB3VsX3JhdGUYAiABKA0SFgoOdWxfYnVja2V0X3NpemUY", + "AyABKA0SJgoOdWxfcmF0ZV9wb2xpY3kYBCABKA4yDi5ucy5SYXRlUG9saWN5", + "Eg8KB2RsX3JhdGUYBSABKA0SFgoOZGxfYnVja2V0X3NpemUYBiABKA0SJgoO", + "ZGxfcmF0ZV9wb2xpY3kYByABKA4yDi5ucy5SYXRlUG9saWN5EhcKD2FkZF9n", + "d19tZXRhZGF0YRgIIAEoCBIbChNkZXZfc3RhdHVzX3JlcV9mcmVxGAkgASgN", + "EiEKGXJlcG9ydF9kZXZfc3RhdHVzX2JhdHRlcnkYCiABKAgSIAoYcmVwb3J0", + "X2Rldl9zdGF0dXNfbWFyZ2luGAsgASgIEg4KBmRyX21pbhgMIAEoDRIOCgZk", + "cl9tYXgYDSABKA0SFAoMY2hhbm5lbF9tYXNrGA4gASgMEhIKCnByX2FsbG93", + "ZWQYDyABKAgSEgoKaHJfYWxsb3dlZBgQIAEoCBISCgpyYV9hbGxvd2VkGBEg", + "ASgIEhMKC253a19nZW9fbG9jGBIgASgIEhIKCnRhcmdldF9wZXIYEyABKA0S", + "GAoQbWluX2d3X2RpdmVyc2l0eRgUIAEoDRITCgtnd3NfcHJpdmF0ZRgVIAEo", + "CCL7AwoNRGV2aWNlUHJvZmlsZRIKCgJpZBgBIAEoDBIYChBzdXBwb3J0c19j", + "bGFzc19iGAIgASgIEhcKD2NsYXNzX2JfdGltZW91dBgDIAEoDRIYChBwaW5n", + "X3Nsb3RfcGVyaW9kGAQgASgNEhQKDHBpbmdfc2xvdF9kchgFIAEoDRIWCg5w", + "aW5nX3Nsb3RfZnJlcRgGIAEoDRIYChBzdXBwb3J0c19jbGFzc19jGAcgASgI", + "EhcKD2NsYXNzX2NfdGltZW91dBgIIAEoDRITCgttYWNfdmVyc2lvbhgJIAEo", + "CRIbChNyZWdfcGFyYW1zX3JldmlzaW9uGAogASgJEhIKCnJ4X2RlbGF5XzEY", + "CyABKA0SFgoOcnhfZHJfb2Zmc2V0XzEYDCABKA0SFQoNcnhfZGF0YXJhdGVf", + "MhgNIAEoDRIRCglyeF9mcmVxXzIYDiABKA0SHAoUZmFjdG9yeV9wcmVzZXRf", + "ZnJlcXMYDyADKA0SEAoIbWF4X2VpcnAYECABKA0SFgoObWF4X2R1dHlfY3lj", + "bGUYESABKA0SFQoNc3VwcG9ydHNfam9pbhgSIAEoCBIRCglyZl9yZWdpb24Y", + "EyABKAkSHAoUc3VwcG9ydHNfMzJiaXRfZl9jbnQYFCABKAgSGAoQYWRyX2Fs", + "Z29yaXRobV9pZBgVIAEoCSJfCg5Sb3V0aW5nUHJvZmlsZRIKCgJpZBgBIAEo", + "DBINCgVhc19pZBgCIAEoCRIPCgdjYV9jZXJ0GAMgASgJEhAKCHRsc19jZXJ0", + "GAQgASgJEg8KB3Rsc19rZXkYBSABKAkqIAoKUmF0ZVBvbGljeRIICgREUk9Q", + "EAASCAoETUFSSxABQmgKFGlvLmNoaXJwc3RhY2suYXBpLm5zQg1Qcm9maWxl", + "c1Byb3RvUAFaJGdpdGh1Yi5jb20vYnJvY2Fhci9jaGlycHN0YWNrLWFwaS9u", + "c6oCGENoaXJwc3RhY2suTmV0d29ya1NlcnZlcmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.NetworkServer.RatePolicy), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.ServiceProfile), global::Chirpstack.NetworkServer.ServiceProfile.Parser, new[]{ "Id", "UlRate", "UlBucketSize", "UlRatePolicy", "DlRate", "DlBucketSize", "DlRatePolicy", "AddGwMetadata", "DevStatusReqFreq", "ReportDevStatusBattery", "ReportDevStatusMargin", "DrMin", "DrMax", "ChannelMask", "PrAllowed", "HrAllowed", "RaAllowed", "NwkGeoLoc", "TargetPer", "MinGwDiversity", "GwsPrivate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.DeviceProfile), global::Chirpstack.NetworkServer.DeviceProfile.Parser, new[]{ "Id", "SupportsClassB", "ClassBTimeout", "PingSlotPeriod", "PingSlotDr", "PingSlotFreq", "SupportsClassC", "ClassCTimeout", "MacVersion", "RegParamsRevision", "RxDelay1", "RxDrOffset1", "RxDatarate2", "RxFreq2", "FactoryPresetFreqs", "MaxEirp", "MaxDutyCycle", "SupportsJoin", "RfRegion", "Supports32BitFCnt", "AdrAlgorithmId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.NetworkServer.RoutingProfile), global::Chirpstack.NetworkServer.RoutingProfile.Parser, new[]{ "Id", "AsId", "CaCert", "TlsCert", "TlsKey" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum RatePolicy { + /// + /// Drop + /// + [pbr::OriginalName("DROP")] Drop = 0, + /// + /// Mark + /// + [pbr::OriginalName("MARK")] Mark = 1, + } + + #endregion + + #region Messages + public sealed partial class ServiceProfile : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceProfile()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.ProfilesReflection.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 ServiceProfile() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceProfile(ServiceProfile other) : this() { + id_ = other.id_; + ulRate_ = other.ulRate_; + ulBucketSize_ = other.ulBucketSize_; + ulRatePolicy_ = other.ulRatePolicy_; + dlRate_ = other.dlRate_; + dlBucketSize_ = other.dlBucketSize_; + dlRatePolicy_ = other.dlRatePolicy_; + addGwMetadata_ = other.addGwMetadata_; + devStatusReqFreq_ = other.devStatusReqFreq_; + reportDevStatusBattery_ = other.reportDevStatusBattery_; + reportDevStatusMargin_ = other.reportDevStatusMargin_; + drMin_ = other.drMin_; + drMax_ = other.drMax_; + channelMask_ = other.channelMask_; + prAllowed_ = other.prAllowed_; + hrAllowed_ = other.hrAllowed_; + raAllowed_ = other.raAllowed_; + nwkGeoLoc_ = other.nwkGeoLoc_; + targetPer_ = other.targetPer_; + minGwDiversity_ = other.minGwDiversity_; + gwsPrivate_ = other.gwsPrivate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceProfile Clone() { + return new ServiceProfile(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Service-profile ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ul_rate" field. + public const int UlRateFieldNumber = 2; + private uint ulRate_; + /// + /// Token bucket filling rate, including ACKs (packet/h). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UlRate { + get { return ulRate_; } + set { + ulRate_ = value; + } + } + + /// Field number for the "ul_bucket_size" field. + public const int UlBucketSizeFieldNumber = 3; + private uint ulBucketSize_; + /// + /// Token bucket burst size. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UlBucketSize { + get { return ulBucketSize_; } + set { + ulBucketSize_ = value; + } + } + + /// Field number for the "ul_rate_policy" field. + public const int UlRatePolicyFieldNumber = 4; + private global::Chirpstack.NetworkServer.RatePolicy ulRatePolicy_ = global::Chirpstack.NetworkServer.RatePolicy.Drop; + /// + /// Drop or mark when exceeding ULRate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.RatePolicy UlRatePolicy { + get { return ulRatePolicy_; } + set { + ulRatePolicy_ = value; + } + } + + /// Field number for the "dl_rate" field. + public const int DlRateFieldNumber = 5; + private uint dlRate_; + /// + /// Token bucket filling rate, including ACKs (packet/h). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DlRate { + get { return dlRate_; } + set { + dlRate_ = value; + } + } + + /// Field number for the "dl_bucket_size" field. + public const int DlBucketSizeFieldNumber = 6; + private uint dlBucketSize_; + /// + /// Token bucket burst size. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DlBucketSize { + get { return dlBucketSize_; } + set { + dlBucketSize_ = value; + } + } + + /// Field number for the "dl_rate_policy" field. + public const int DlRatePolicyFieldNumber = 7; + private global::Chirpstack.NetworkServer.RatePolicy dlRatePolicy_ = global::Chirpstack.NetworkServer.RatePolicy.Drop; + /// + /// Drop or mark when exceeding DLRate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Chirpstack.NetworkServer.RatePolicy DlRatePolicy { + get { return dlRatePolicy_; } + set { + dlRatePolicy_ = value; + } + } + + /// Field number for the "add_gw_metadata" field. + public const int AddGwMetadataFieldNumber = 8; + private bool addGwMetadata_; + /// + /// GW metadata (RSSI, SNR, GW geoloc., etc.) are added to the packet sent to AS. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AddGwMetadata { + get { return addGwMetadata_; } + set { + addGwMetadata_ = value; + } + } + + /// Field number for the "dev_status_req_freq" field. + public const int DevStatusReqFreqFieldNumber = 9; + private uint devStatusReqFreq_; + /// + /// Frequency to initiate an End-Device status request (request/day). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DevStatusReqFreq { + get { return devStatusReqFreq_; } + set { + devStatusReqFreq_ = value; + } + } + + /// Field number for the "report_dev_status_battery" field. + public const int ReportDevStatusBatteryFieldNumber = 10; + private bool reportDevStatusBattery_; + /// + /// Report End-Device battery level to AS. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ReportDevStatusBattery { + get { return reportDevStatusBattery_; } + set { + reportDevStatusBattery_ = value; + } + } + + /// Field number for the "report_dev_status_margin" field. + public const int ReportDevStatusMarginFieldNumber = 11; + private bool reportDevStatusMargin_; + /// + /// Report End-Device margin to AS. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ReportDevStatusMargin { + get { return reportDevStatusMargin_; } + set { + reportDevStatusMargin_ = value; + } + } + + /// Field number for the "dr_min" field. + public const int DrMinFieldNumber = 12; + private uint drMin_; + /// + /// Minimum allowed data rate. Used for ADR. + /// + [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 = 13; + private uint drMax_; + /// + /// Maximum allowed data rate. Used for ADR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DrMax { + get { return drMax_; } + set { + drMax_ = value; + } + } + + /// Field number for the "channel_mask" field. + public const int ChannelMaskFieldNumber = 14; + private pb::ByteString channelMask_ = pb::ByteString.Empty; + /// + /// Channel mask. sNS does not have to obey (i.e., informative). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString ChannelMask { + get { return channelMask_; } + set { + channelMask_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "pr_allowed" field. + public const int PrAllowedFieldNumber = 15; + private bool prAllowed_; + /// + /// Passive Roaming allowed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PrAllowed { + get { return prAllowed_; } + set { + prAllowed_ = value; + } + } + + /// Field number for the "hr_allowed" field. + public const int HrAllowedFieldNumber = 16; + private bool hrAllowed_; + /// + /// Handover Roaming allowed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HrAllowed { + get { return hrAllowed_; } + set { + hrAllowed_ = value; + } + } + + /// Field number for the "ra_allowed" field. + public const int RaAllowedFieldNumber = 17; + private bool raAllowed_; + /// + /// Roaming Activation allowed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool RaAllowed { + get { return raAllowed_; } + set { + raAllowed_ = value; + } + } + + /// Field number for the "nwk_geo_loc" field. + public const int NwkGeoLocFieldNumber = 18; + private bool nwkGeoLoc_; + /// + /// Enable network geolocation service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool NwkGeoLoc { + get { return nwkGeoLoc_; } + set { + nwkGeoLoc_ = value; + } + } + + /// Field number for the "target_per" field. + public const int TargetPerFieldNumber = 19; + private uint targetPer_; + /// + /// Target Packet Error Rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TargetPer { + get { return targetPer_; } + set { + targetPer_ = value; + } + } + + /// Field number for the "min_gw_diversity" field. + public const int MinGwDiversityFieldNumber = 20; + private uint minGwDiversity_; + /// + /// Minimum number of receiving GWs (informative). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MinGwDiversity { + get { return minGwDiversity_; } + set { + minGwDiversity_ = value; + } + } + + /// Field number for the "gws_private" field. + public const int GwsPrivateFieldNumber = 21; + private bool gwsPrivate_; + /// + /// Gateways under this service-profile are private. + /// This means that these gateways can only be used by devices under the + /// same service-profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool GwsPrivate { + get { return gwsPrivate_; } + set { + gwsPrivate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServiceProfile); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceProfile other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (UlRate != other.UlRate) return false; + if (UlBucketSize != other.UlBucketSize) return false; + if (UlRatePolicy != other.UlRatePolicy) return false; + if (DlRate != other.DlRate) return false; + if (DlBucketSize != other.DlBucketSize) return false; + if (DlRatePolicy != other.DlRatePolicy) return false; + if (AddGwMetadata != other.AddGwMetadata) return false; + if (DevStatusReqFreq != other.DevStatusReqFreq) return false; + if (ReportDevStatusBattery != other.ReportDevStatusBattery) return false; + if (ReportDevStatusMargin != other.ReportDevStatusMargin) return false; + if (DrMin != other.DrMin) return false; + if (DrMax != other.DrMax) return false; + if (ChannelMask != other.ChannelMask) return false; + if (PrAllowed != other.PrAllowed) return false; + if (HrAllowed != other.HrAllowed) return false; + if (RaAllowed != other.RaAllowed) return false; + if (NwkGeoLoc != other.NwkGeoLoc) return false; + if (TargetPer != other.TargetPer) return false; + if (MinGwDiversity != other.MinGwDiversity) return false; + if (GwsPrivate != other.GwsPrivate) return false; + 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 (UlRate != 0) hash ^= UlRate.GetHashCode(); + if (UlBucketSize != 0) hash ^= UlBucketSize.GetHashCode(); + if (UlRatePolicy != global::Chirpstack.NetworkServer.RatePolicy.Drop) hash ^= UlRatePolicy.GetHashCode(); + if (DlRate != 0) hash ^= DlRate.GetHashCode(); + if (DlBucketSize != 0) hash ^= DlBucketSize.GetHashCode(); + if (DlRatePolicy != global::Chirpstack.NetworkServer.RatePolicy.Drop) hash ^= DlRatePolicy.GetHashCode(); + if (AddGwMetadata != false) hash ^= AddGwMetadata.GetHashCode(); + if (DevStatusReqFreq != 0) hash ^= DevStatusReqFreq.GetHashCode(); + if (ReportDevStatusBattery != false) hash ^= ReportDevStatusBattery.GetHashCode(); + if (ReportDevStatusMargin != false) hash ^= ReportDevStatusMargin.GetHashCode(); + if (DrMin != 0) hash ^= DrMin.GetHashCode(); + if (DrMax != 0) hash ^= DrMax.GetHashCode(); + if (ChannelMask.Length != 0) hash ^= ChannelMask.GetHashCode(); + if (PrAllowed != false) hash ^= PrAllowed.GetHashCode(); + if (HrAllowed != false) hash ^= HrAllowed.GetHashCode(); + if (RaAllowed != false) hash ^= RaAllowed.GetHashCode(); + if (NwkGeoLoc != false) hash ^= NwkGeoLoc.GetHashCode(); + if (TargetPer != 0) hash ^= TargetPer.GetHashCode(); + if (MinGwDiversity != 0) hash ^= MinGwDiversity.GetHashCode(); + if (GwsPrivate != false) hash ^= GwsPrivate.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(Id); + } + if (UlRate != 0) { + output.WriteRawTag(16); + output.WriteUInt32(UlRate); + } + if (UlBucketSize != 0) { + output.WriteRawTag(24); + output.WriteUInt32(UlBucketSize); + } + if (UlRatePolicy != global::Chirpstack.NetworkServer.RatePolicy.Drop) { + output.WriteRawTag(32); + output.WriteEnum((int) UlRatePolicy); + } + if (DlRate != 0) { + output.WriteRawTag(40); + output.WriteUInt32(DlRate); + } + if (DlBucketSize != 0) { + output.WriteRawTag(48); + output.WriteUInt32(DlBucketSize); + } + if (DlRatePolicy != global::Chirpstack.NetworkServer.RatePolicy.Drop) { + output.WriteRawTag(56); + output.WriteEnum((int) DlRatePolicy); + } + if (AddGwMetadata != false) { + output.WriteRawTag(64); + output.WriteBool(AddGwMetadata); + } + if (DevStatusReqFreq != 0) { + output.WriteRawTag(72); + output.WriteUInt32(DevStatusReqFreq); + } + if (ReportDevStatusBattery != false) { + output.WriteRawTag(80); + output.WriteBool(ReportDevStatusBattery); + } + if (ReportDevStatusMargin != false) { + output.WriteRawTag(88); + output.WriteBool(ReportDevStatusMargin); + } + if (DrMin != 0) { + output.WriteRawTag(96); + output.WriteUInt32(DrMin); + } + if (DrMax != 0) { + output.WriteRawTag(104); + output.WriteUInt32(DrMax); + } + if (ChannelMask.Length != 0) { + output.WriteRawTag(114); + output.WriteBytes(ChannelMask); + } + if (PrAllowed != false) { + output.WriteRawTag(120); + output.WriteBool(PrAllowed); + } + if (HrAllowed != false) { + output.WriteRawTag(128, 1); + output.WriteBool(HrAllowed); + } + if (RaAllowed != false) { + output.WriteRawTag(136, 1); + output.WriteBool(RaAllowed); + } + if (NwkGeoLoc != false) { + output.WriteRawTag(144, 1); + output.WriteBool(NwkGeoLoc); + } + if (TargetPer != 0) { + output.WriteRawTag(152, 1); + output.WriteUInt32(TargetPer); + } + if (MinGwDiversity != 0) { + output.WriteRawTag(160, 1); + output.WriteUInt32(MinGwDiversity); + } + if (GwsPrivate != false) { + output.WriteRawTag(168, 1); + output.WriteBool(GwsPrivate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(Id); + } + if (UlRate != 0) { + output.WriteRawTag(16); + output.WriteUInt32(UlRate); + } + if (UlBucketSize != 0) { + output.WriteRawTag(24); + output.WriteUInt32(UlBucketSize); + } + if (UlRatePolicy != global::Chirpstack.NetworkServer.RatePolicy.Drop) { + output.WriteRawTag(32); + output.WriteEnum((int) UlRatePolicy); + } + if (DlRate != 0) { + output.WriteRawTag(40); + output.WriteUInt32(DlRate); + } + if (DlBucketSize != 0) { + output.WriteRawTag(48); + output.WriteUInt32(DlBucketSize); + } + if (DlRatePolicy != global::Chirpstack.NetworkServer.RatePolicy.Drop) { + output.WriteRawTag(56); + output.WriteEnum((int) DlRatePolicy); + } + if (AddGwMetadata != false) { + output.WriteRawTag(64); + output.WriteBool(AddGwMetadata); + } + if (DevStatusReqFreq != 0) { + output.WriteRawTag(72); + output.WriteUInt32(DevStatusReqFreq); + } + if (ReportDevStatusBattery != false) { + output.WriteRawTag(80); + output.WriteBool(ReportDevStatusBattery); + } + if (ReportDevStatusMargin != false) { + output.WriteRawTag(88); + output.WriteBool(ReportDevStatusMargin); + } + if (DrMin != 0) { + output.WriteRawTag(96); + output.WriteUInt32(DrMin); + } + if (DrMax != 0) { + output.WriteRawTag(104); + output.WriteUInt32(DrMax); + } + if (ChannelMask.Length != 0) { + output.WriteRawTag(114); + output.WriteBytes(ChannelMask); + } + if (PrAllowed != false) { + output.WriteRawTag(120); + output.WriteBool(PrAllowed); + } + if (HrAllowed != false) { + output.WriteRawTag(128, 1); + output.WriteBool(HrAllowed); + } + if (RaAllowed != false) { + output.WriteRawTag(136, 1); + output.WriteBool(RaAllowed); + } + if (NwkGeoLoc != false) { + output.WriteRawTag(144, 1); + output.WriteBool(NwkGeoLoc); + } + if (TargetPer != 0) { + output.WriteRawTag(152, 1); + output.WriteUInt32(TargetPer); + } + if (MinGwDiversity != 0) { + output.WriteRawTag(160, 1); + output.WriteUInt32(MinGwDiversity); + } + if (GwsPrivate != false) { + output.WriteRawTag(168, 1); + output.WriteBool(GwsPrivate); + } + if (_unknownFields != 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.ComputeBytesSize(Id); + } + if (UlRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UlRate); + } + if (UlBucketSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UlBucketSize); + } + if (UlRatePolicy != global::Chirpstack.NetworkServer.RatePolicy.Drop) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) UlRatePolicy); + } + if (DlRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DlRate); + } + if (DlBucketSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DlBucketSize); + } + if (DlRatePolicy != global::Chirpstack.NetworkServer.RatePolicy.Drop) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DlRatePolicy); + } + if (AddGwMetadata != false) { + size += 1 + 1; + } + if (DevStatusReqFreq != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DevStatusReqFreq); + } + if (ReportDevStatusBattery != false) { + size += 1 + 1; + } + if (ReportDevStatusMargin != false) { + size += 1 + 1; + } + if (DrMin != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DrMin); + } + if (DrMax != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DrMax); + } + if (ChannelMask.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ChannelMask); + } + if (PrAllowed != false) { + size += 1 + 1; + } + if (HrAllowed != false) { + size += 2 + 1; + } + if (RaAllowed != false) { + size += 2 + 1; + } + if (NwkGeoLoc != false) { + size += 2 + 1; + } + if (TargetPer != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(TargetPer); + } + if (MinGwDiversity != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(MinGwDiversity); + } + if (GwsPrivate != 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(ServiceProfile other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.UlRate != 0) { + UlRate = other.UlRate; + } + if (other.UlBucketSize != 0) { + UlBucketSize = other.UlBucketSize; + } + if (other.UlRatePolicy != global::Chirpstack.NetworkServer.RatePolicy.Drop) { + UlRatePolicy = other.UlRatePolicy; + } + if (other.DlRate != 0) { + DlRate = other.DlRate; + } + if (other.DlBucketSize != 0) { + DlBucketSize = other.DlBucketSize; + } + if (other.DlRatePolicy != global::Chirpstack.NetworkServer.RatePolicy.Drop) { + DlRatePolicy = other.DlRatePolicy; + } + if (other.AddGwMetadata != false) { + AddGwMetadata = other.AddGwMetadata; + } + if (other.DevStatusReqFreq != 0) { + DevStatusReqFreq = other.DevStatusReqFreq; + } + if (other.ReportDevStatusBattery != false) { + ReportDevStatusBattery = other.ReportDevStatusBattery; + } + if (other.ReportDevStatusMargin != false) { + ReportDevStatusMargin = other.ReportDevStatusMargin; + } + if (other.DrMin != 0) { + DrMin = other.DrMin; + } + if (other.DrMax != 0) { + DrMax = other.DrMax; + } + if (other.ChannelMask.Length != 0) { + ChannelMask = other.ChannelMask; + } + if (other.PrAllowed != false) { + PrAllowed = other.PrAllowed; + } + if (other.HrAllowed != false) { + HrAllowed = other.HrAllowed; + } + if (other.RaAllowed != false) { + RaAllowed = other.RaAllowed; + } + if (other.NwkGeoLoc != false) { + NwkGeoLoc = other.NwkGeoLoc; + } + if (other.TargetPer != 0) { + TargetPer = other.TargetPer; + } + if (other.MinGwDiversity != 0) { + MinGwDiversity = other.MinGwDiversity; + } + if (other.GwsPrivate != false) { + GwsPrivate = other.GwsPrivate; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 16: { + UlRate = input.ReadUInt32(); + break; + } + case 24: { + UlBucketSize = input.ReadUInt32(); + break; + } + case 32: { + UlRatePolicy = (global::Chirpstack.NetworkServer.RatePolicy) input.ReadEnum(); + break; + } + case 40: { + DlRate = input.ReadUInt32(); + break; + } + case 48: { + DlBucketSize = input.ReadUInt32(); + break; + } + case 56: { + DlRatePolicy = (global::Chirpstack.NetworkServer.RatePolicy) input.ReadEnum(); + break; + } + case 64: { + AddGwMetadata = input.ReadBool(); + break; + } + case 72: { + DevStatusReqFreq = input.ReadUInt32(); + break; + } + case 80: { + ReportDevStatusBattery = input.ReadBool(); + break; + } + case 88: { + ReportDevStatusMargin = input.ReadBool(); + break; + } + case 96: { + DrMin = input.ReadUInt32(); + break; + } + case 104: { + DrMax = input.ReadUInt32(); + break; + } + case 114: { + ChannelMask = input.ReadBytes(); + break; + } + case 120: { + PrAllowed = input.ReadBool(); + break; + } + case 128: { + HrAllowed = input.ReadBool(); + break; + } + case 136: { + RaAllowed = input.ReadBool(); + break; + } + case 144: { + NwkGeoLoc = input.ReadBool(); + break; + } + case 152: { + TargetPer = input.ReadUInt32(); + break; + } + case 160: { + MinGwDiversity = input.ReadUInt32(); + break; + } + case 168: { + GwsPrivate = 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.ReadBytes(); + break; + } + case 16: { + UlRate = input.ReadUInt32(); + break; + } + case 24: { + UlBucketSize = input.ReadUInt32(); + break; + } + case 32: { + UlRatePolicy = (global::Chirpstack.NetworkServer.RatePolicy) input.ReadEnum(); + break; + } + case 40: { + DlRate = input.ReadUInt32(); + break; + } + case 48: { + DlBucketSize = input.ReadUInt32(); + break; + } + case 56: { + DlRatePolicy = (global::Chirpstack.NetworkServer.RatePolicy) input.ReadEnum(); + break; + } + case 64: { + AddGwMetadata = input.ReadBool(); + break; + } + case 72: { + DevStatusReqFreq = input.ReadUInt32(); + break; + } + case 80: { + ReportDevStatusBattery = input.ReadBool(); + break; + } + case 88: { + ReportDevStatusMargin = input.ReadBool(); + break; + } + case 96: { + DrMin = input.ReadUInt32(); + break; + } + case 104: { + DrMax = input.ReadUInt32(); + break; + } + case 114: { + ChannelMask = input.ReadBytes(); + break; + } + case 120: { + PrAllowed = input.ReadBool(); + break; + } + case 128: { + HrAllowed = input.ReadBool(); + break; + } + case 136: { + RaAllowed = input.ReadBool(); + break; + } + case 144: { + NwkGeoLoc = input.ReadBool(); + break; + } + case 152: { + TargetPer = input.ReadUInt32(); + break; + } + case 160: { + MinGwDiversity = input.ReadUInt32(); + break; + } + case 168: { + GwsPrivate = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + 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.NetworkServer.ProfilesReflection.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 DeviceProfile() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceProfile(DeviceProfile other) : this() { + id_ = other.id_; + supportsClassB_ = other.supportsClassB_; + classBTimeout_ = other.classBTimeout_; + pingSlotPeriod_ = other.pingSlotPeriod_; + pingSlotDr_ = other.pingSlotDr_; + pingSlotFreq_ = other.pingSlotFreq_; + supportsClassC_ = other.supportsClassC_; + classCTimeout_ = other.classCTimeout_; + macVersion_ = other.macVersion_; + regParamsRevision_ = other.regParamsRevision_; + rxDelay1_ = other.rxDelay1_; + rxDrOffset1_ = other.rxDrOffset1_; + rxDatarate2_ = other.rxDatarate2_; + rxFreq2_ = other.rxFreq2_; + factoryPresetFreqs_ = other.factoryPresetFreqs_.Clone(); + maxEirp_ = other.maxEirp_; + maxDutyCycle_ = other.maxDutyCycle_; + supportsJoin_ = other.supportsJoin_; + rfRegion_ = other.rfRegion_; + supports32BitFCnt_ = other.supports32BitFCnt_; + adrAlgorithmId_ = other.adrAlgorithmId_; + _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 pb::ByteString id_ = pb::ByteString.Empty; + /// + /// Device-profile ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "supports_class_b" field. + public const int SupportsClassBFieldNumber = 2; + private bool supportsClassB_; + /// + /// End-Device 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 "class_b_timeout" field. + public const int ClassBTimeoutFieldNumber = 3; + private uint classBTimeout_; + /// + /// Maximum delay for the End-Device to answer a MAC request or a confirmed DL frame (mandatory if class B mode supported). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassBTimeout { + get { return classBTimeout_; } + set { + classBTimeout_ = value; + } + } + + /// Field number for the "ping_slot_period" field. + public const int PingSlotPeriodFieldNumber = 4; + private uint pingSlotPeriod_; + /// + /// Mandatory if class B mode supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PingSlotPeriod { + get { return pingSlotPeriod_; } + set { + pingSlotPeriod_ = value; + } + } + + /// Field number for the "ping_slot_dr" field. + public const int PingSlotDrFieldNumber = 5; + private uint pingSlotDr_; + /// + /// Mandatory if class B mode supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PingSlotDr { + get { return pingSlotDr_; } + set { + pingSlotDr_ = value; + } + } + + /// Field number for the "ping_slot_freq" field. + public const int PingSlotFreqFieldNumber = 6; + private uint pingSlotFreq_; + /// + /// Mandatory if class B mode supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PingSlotFreq { + get { return pingSlotFreq_; } + set { + pingSlotFreq_ = value; + } + } + + /// Field number for the "supports_class_c" field. + public const int SupportsClassCFieldNumber = 7; + private bool supportsClassC_; + /// + /// End-Device 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_c_timeout" field. + public const int ClassCTimeoutFieldNumber = 8; + private uint classCTimeout_; + /// + /// Maximum delay for the End-Device to answer a MAC request or a confirmed DL frame (mandatory if class C mode supported). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClassCTimeout { + get { return classCTimeout_; } + set { + classCTimeout_ = value; + } + } + + /// Field number for the "mac_version" field. + public const int MacVersionFieldNumber = 9; + private string macVersion_ = ""; + /// + /// Version of the LoRaWAN supported by the End-Device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MacVersion { + get { return macVersion_; } + set { + macVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reg_params_revision" field. + public const int RegParamsRevisionFieldNumber = 10; + private string regParamsRevision_ = ""; + /// + /// Revision of the Regional Parameters document supported by the End-Device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RegParamsRevision { + get { return regParamsRevision_; } + set { + regParamsRevision_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "rx_delay_1" field. + public const int RxDelay1FieldNumber = 11; + private uint rxDelay1_; + /// + /// Class A RX1 delay (mandatory for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RxDelay1 { + get { return rxDelay1_; } + set { + rxDelay1_ = value; + } + } + + /// Field number for the "rx_dr_offset_1" field. + public const int RxDrOffset1FieldNumber = 12; + private uint rxDrOffset1_; + /// + /// RX1 data rate offset (mandatory for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RxDrOffset1 { + get { return rxDrOffset1_; } + set { + rxDrOffset1_ = value; + } + } + + /// Field number for the "rx_datarate_2" field. + public const int RxDatarate2FieldNumber = 13; + private uint rxDatarate2_; + /// + /// RX2 data rate (mandatory for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RxDatarate2 { + get { return rxDatarate2_; } + set { + rxDatarate2_ = value; + } + } + + /// Field number for the "rx_freq_2" field. + public const int RxFreq2FieldNumber = 14; + private uint rxFreq2_; + /// + /// RX2 channel frequency (mandatory for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RxFreq2 { + get { return rxFreq2_; } + set { + rxFreq2_ = value; + } + } + + /// Field number for the "factory_preset_freqs" field. + public const int FactoryPresetFreqsFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_factoryPresetFreqs_codec + = pb::FieldCodec.ForUInt32(122); + private readonly pbc::RepeatedField factoryPresetFreqs_ = new pbc::RepeatedField(); + /// + /// List of factory-preset frequencies (mandatory for ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FactoryPresetFreqs { + get { return factoryPresetFreqs_; } + } + + /// Field number for the "max_eirp" field. + public const int MaxEirpFieldNumber = 16; + private uint maxEirp_; + /// + /// Maximum EIRP supported by the End-Device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxEirp { + get { return maxEirp_; } + set { + maxEirp_ = value; + } + } + + /// Field number for the "max_duty_cycle" field. + public const int MaxDutyCycleFieldNumber = 17; + private uint maxDutyCycle_; + /// + /// Maximum duty cycle supported by the End-Device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxDutyCycle { + get { return maxDutyCycle_; } + set { + maxDutyCycle_ = value; + } + } + + /// Field number for the "supports_join" field. + public const int SupportsJoinFieldNumber = 18; + private bool supportsJoin_; + /// + /// End-Device supports Join (OTAA) or not (ABP). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportsJoin { + get { return supportsJoin_; } + set { + supportsJoin_ = value; + } + } + + /// Field number for the "rf_region" field. + public const int RfRegionFieldNumber = 19; + private string rfRegion_ = ""; + /// + /// RF region name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RfRegion { + get { return rfRegion_; } + set { + rfRegion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "supports_32bit_f_cnt" field. + public const int Supports32BitFCntFieldNumber = 20; + private bool supports32BitFCnt_; + /// + /// End-Device uses 32bit FCnt (mandatory for LoRaWAN 1.0 End-Device). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Supports32BitFCnt { + get { return supports32BitFCnt_; } + set { + supports32BitFCnt_ = value; + } + } + + /// Field number for the "adr_algorithm_id" field. + public const int AdrAlgorithmIdFieldNumber = 21; + private string adrAlgorithmId_ = ""; + /// + /// ADR algorithm ID. + /// In case this is left blank, or is configured to a non-existing ADR + /// algorithm (plugin), then it falls back to 'default'. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AdrAlgorithmId { + get { return adrAlgorithmId_; } + set { + adrAlgorithmId_ = 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 (SupportsClassB != other.SupportsClassB) return false; + if (ClassBTimeout != other.ClassBTimeout) return false; + if (PingSlotPeriod != other.PingSlotPeriod) return false; + if (PingSlotDr != other.PingSlotDr) return false; + if (PingSlotFreq != other.PingSlotFreq) return false; + if (SupportsClassC != other.SupportsClassC) return false; + if (ClassCTimeout != other.ClassCTimeout) return false; + if (MacVersion != other.MacVersion) return false; + if (RegParamsRevision != other.RegParamsRevision) return false; + if (RxDelay1 != other.RxDelay1) return false; + if (RxDrOffset1 != other.RxDrOffset1) return false; + if (RxDatarate2 != other.RxDatarate2) return false; + if (RxFreq2 != other.RxFreq2) return false; + if(!factoryPresetFreqs_.Equals(other.factoryPresetFreqs_)) return false; + if (MaxEirp != other.MaxEirp) return false; + if (MaxDutyCycle != other.MaxDutyCycle) return false; + if (SupportsJoin != other.SupportsJoin) return false; + if (RfRegion != other.RfRegion) return false; + if (Supports32BitFCnt != other.Supports32BitFCnt) return false; + if (AdrAlgorithmId != other.AdrAlgorithmId) return false; + 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 (SupportsClassB != false) hash ^= SupportsClassB.GetHashCode(); + if (ClassBTimeout != 0) hash ^= ClassBTimeout.GetHashCode(); + if (PingSlotPeriod != 0) hash ^= PingSlotPeriod.GetHashCode(); + if (PingSlotDr != 0) hash ^= PingSlotDr.GetHashCode(); + if (PingSlotFreq != 0) hash ^= PingSlotFreq.GetHashCode(); + if (SupportsClassC != false) hash ^= SupportsClassC.GetHashCode(); + if (ClassCTimeout != 0) hash ^= ClassCTimeout.GetHashCode(); + if (MacVersion.Length != 0) hash ^= MacVersion.GetHashCode(); + if (RegParamsRevision.Length != 0) hash ^= RegParamsRevision.GetHashCode(); + if (RxDelay1 != 0) hash ^= RxDelay1.GetHashCode(); + if (RxDrOffset1 != 0) hash ^= RxDrOffset1.GetHashCode(); + if (RxDatarate2 != 0) hash ^= RxDatarate2.GetHashCode(); + if (RxFreq2 != 0) hash ^= RxFreq2.GetHashCode(); + hash ^= factoryPresetFreqs_.GetHashCode(); + if (MaxEirp != 0) hash ^= MaxEirp.GetHashCode(); + if (MaxDutyCycle != 0) hash ^= MaxDutyCycle.GetHashCode(); + if (SupportsJoin != false) hash ^= SupportsJoin.GetHashCode(); + if (RfRegion.Length != 0) hash ^= RfRegion.GetHashCode(); + if (Supports32BitFCnt != false) hash ^= Supports32BitFCnt.GetHashCode(); + if (AdrAlgorithmId.Length != 0) hash ^= AdrAlgorithmId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(Id); + } + if (SupportsClassB != false) { + output.WriteRawTag(16); + output.WriteBool(SupportsClassB); + } + if (ClassBTimeout != 0) { + output.WriteRawTag(24); + output.WriteUInt32(ClassBTimeout); + } + if (PingSlotPeriod != 0) { + output.WriteRawTag(32); + output.WriteUInt32(PingSlotPeriod); + } + if (PingSlotDr != 0) { + output.WriteRawTag(40); + output.WriteUInt32(PingSlotDr); + } + if (PingSlotFreq != 0) { + output.WriteRawTag(48); + output.WriteUInt32(PingSlotFreq); + } + if (SupportsClassC != false) { + output.WriteRawTag(56); + output.WriteBool(SupportsClassC); + } + if (ClassCTimeout != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ClassCTimeout); + } + if (MacVersion.Length != 0) { + output.WriteRawTag(74); + output.WriteString(MacVersion); + } + if (RegParamsRevision.Length != 0) { + output.WriteRawTag(82); + output.WriteString(RegParamsRevision); + } + if (RxDelay1 != 0) { + output.WriteRawTag(88); + output.WriteUInt32(RxDelay1); + } + if (RxDrOffset1 != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RxDrOffset1); + } + if (RxDatarate2 != 0) { + output.WriteRawTag(104); + output.WriteUInt32(RxDatarate2); + } + if (RxFreq2 != 0) { + output.WriteRawTag(112); + output.WriteUInt32(RxFreq2); + } + factoryPresetFreqs_.WriteTo(output, _repeated_factoryPresetFreqs_codec); + if (MaxEirp != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(MaxEirp); + } + if (MaxDutyCycle != 0) { + output.WriteRawTag(136, 1); + output.WriteUInt32(MaxDutyCycle); + } + if (SupportsJoin != false) { + output.WriteRawTag(144, 1); + output.WriteBool(SupportsJoin); + } + if (RfRegion.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(RfRegion); + } + if (Supports32BitFCnt != false) { + output.WriteRawTag(160, 1); + output.WriteBool(Supports32BitFCnt); + } + if (AdrAlgorithmId.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(AdrAlgorithmId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(Id); + } + if (SupportsClassB != false) { + output.WriteRawTag(16); + output.WriteBool(SupportsClassB); + } + if (ClassBTimeout != 0) { + output.WriteRawTag(24); + output.WriteUInt32(ClassBTimeout); + } + if (PingSlotPeriod != 0) { + output.WriteRawTag(32); + output.WriteUInt32(PingSlotPeriod); + } + if (PingSlotDr != 0) { + output.WriteRawTag(40); + output.WriteUInt32(PingSlotDr); + } + if (PingSlotFreq != 0) { + output.WriteRawTag(48); + output.WriteUInt32(PingSlotFreq); + } + if (SupportsClassC != false) { + output.WriteRawTag(56); + output.WriteBool(SupportsClassC); + } + if (ClassCTimeout != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ClassCTimeout); + } + if (MacVersion.Length != 0) { + output.WriteRawTag(74); + output.WriteString(MacVersion); + } + if (RegParamsRevision.Length != 0) { + output.WriteRawTag(82); + output.WriteString(RegParamsRevision); + } + if (RxDelay1 != 0) { + output.WriteRawTag(88); + output.WriteUInt32(RxDelay1); + } + if (RxDrOffset1 != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RxDrOffset1); + } + if (RxDatarate2 != 0) { + output.WriteRawTag(104); + output.WriteUInt32(RxDatarate2); + } + if (RxFreq2 != 0) { + output.WriteRawTag(112); + output.WriteUInt32(RxFreq2); + } + factoryPresetFreqs_.WriteTo(ref output, _repeated_factoryPresetFreqs_codec); + if (MaxEirp != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(MaxEirp); + } + if (MaxDutyCycle != 0) { + output.WriteRawTag(136, 1); + output.WriteUInt32(MaxDutyCycle); + } + if (SupportsJoin != false) { + output.WriteRawTag(144, 1); + output.WriteBool(SupportsJoin); + } + if (RfRegion.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(RfRegion); + } + if (Supports32BitFCnt != false) { + output.WriteRawTag(160, 1); + output.WriteBool(Supports32BitFCnt); + } + if (AdrAlgorithmId.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(AdrAlgorithmId); + } + if (_unknownFields != 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.ComputeBytesSize(Id); + } + if (SupportsClassB != false) { + size += 1 + 1; + } + if (ClassBTimeout != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClassBTimeout); + } + if (PingSlotPeriod != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PingSlotPeriod); + } + if (PingSlotDr != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PingSlotDr); + } + if (PingSlotFreq != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PingSlotFreq); + } + if (SupportsClassC != false) { + size += 1 + 1; + } + if (ClassCTimeout != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClassCTimeout); + } + if (MacVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MacVersion); + } + if (RegParamsRevision.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RegParamsRevision); + } + if (RxDelay1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxDelay1); + } + if (RxDrOffset1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxDrOffset1); + } + if (RxDatarate2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxDatarate2); + } + if (RxFreq2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxFreq2); + } + size += factoryPresetFreqs_.CalculateSize(_repeated_factoryPresetFreqs_codec); + if (MaxEirp != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(MaxEirp); + } + if (MaxDutyCycle != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(MaxDutyCycle); + } + if (SupportsJoin != false) { + size += 2 + 1; + } + if (RfRegion.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RfRegion); + } + if (Supports32BitFCnt != false) { + size += 2 + 1; + } + if (AdrAlgorithmId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AdrAlgorithmId); + } + 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.SupportsClassB != false) { + SupportsClassB = other.SupportsClassB; + } + if (other.ClassBTimeout != 0) { + ClassBTimeout = other.ClassBTimeout; + } + if (other.PingSlotPeriod != 0) { + PingSlotPeriod = other.PingSlotPeriod; + } + if (other.PingSlotDr != 0) { + PingSlotDr = other.PingSlotDr; + } + if (other.PingSlotFreq != 0) { + PingSlotFreq = other.PingSlotFreq; + } + if (other.SupportsClassC != false) { + SupportsClassC = other.SupportsClassC; + } + if (other.ClassCTimeout != 0) { + ClassCTimeout = other.ClassCTimeout; + } + if (other.MacVersion.Length != 0) { + MacVersion = other.MacVersion; + } + if (other.RegParamsRevision.Length != 0) { + RegParamsRevision = other.RegParamsRevision; + } + if (other.RxDelay1 != 0) { + RxDelay1 = other.RxDelay1; + } + if (other.RxDrOffset1 != 0) { + RxDrOffset1 = other.RxDrOffset1; + } + if (other.RxDatarate2 != 0) { + RxDatarate2 = other.RxDatarate2; + } + if (other.RxFreq2 != 0) { + RxFreq2 = other.RxFreq2; + } + factoryPresetFreqs_.Add(other.factoryPresetFreqs_); + if (other.MaxEirp != 0) { + MaxEirp = other.MaxEirp; + } + if (other.MaxDutyCycle != 0) { + MaxDutyCycle = other.MaxDutyCycle; + } + if (other.SupportsJoin != false) { + SupportsJoin = other.SupportsJoin; + } + if (other.RfRegion.Length != 0) { + RfRegion = other.RfRegion; + } + if (other.Supports32BitFCnt != false) { + Supports32BitFCnt = other.Supports32BitFCnt; + } + if (other.AdrAlgorithmId.Length != 0) { + AdrAlgorithmId = other.AdrAlgorithmId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 16: { + SupportsClassB = input.ReadBool(); + break; + } + case 24: { + ClassBTimeout = input.ReadUInt32(); + break; + } + case 32: { + PingSlotPeriod = input.ReadUInt32(); + break; + } + case 40: { + PingSlotDr = input.ReadUInt32(); + break; + } + case 48: { + PingSlotFreq = input.ReadUInt32(); + break; + } + case 56: { + SupportsClassC = input.ReadBool(); + break; + } + case 64: { + ClassCTimeout = input.ReadUInt32(); + break; + } + case 74: { + MacVersion = input.ReadString(); + break; + } + case 82: { + RegParamsRevision = input.ReadString(); + break; + } + case 88: { + RxDelay1 = input.ReadUInt32(); + break; + } + case 96: { + RxDrOffset1 = input.ReadUInt32(); + break; + } + case 104: { + RxDatarate2 = input.ReadUInt32(); + break; + } + case 112: { + RxFreq2 = input.ReadUInt32(); + break; + } + case 122: + case 120: { + factoryPresetFreqs_.AddEntriesFrom(input, _repeated_factoryPresetFreqs_codec); + break; + } + case 128: { + MaxEirp = input.ReadUInt32(); + break; + } + case 136: { + MaxDutyCycle = input.ReadUInt32(); + break; + } + case 144: { + SupportsJoin = input.ReadBool(); + break; + } + case 154: { + RfRegion = input.ReadString(); + break; + } + case 160: { + Supports32BitFCnt = input.ReadBool(); + break; + } + case 170: { + AdrAlgorithmId = 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.ReadBytes(); + break; + } + case 16: { + SupportsClassB = input.ReadBool(); + break; + } + case 24: { + ClassBTimeout = input.ReadUInt32(); + break; + } + case 32: { + PingSlotPeriod = input.ReadUInt32(); + break; + } + case 40: { + PingSlotDr = input.ReadUInt32(); + break; + } + case 48: { + PingSlotFreq = input.ReadUInt32(); + break; + } + case 56: { + SupportsClassC = input.ReadBool(); + break; + } + case 64: { + ClassCTimeout = input.ReadUInt32(); + break; + } + case 74: { + MacVersion = input.ReadString(); + break; + } + case 82: { + RegParamsRevision = input.ReadString(); + break; + } + case 88: { + RxDelay1 = input.ReadUInt32(); + break; + } + case 96: { + RxDrOffset1 = input.ReadUInt32(); + break; + } + case 104: { + RxDatarate2 = input.ReadUInt32(); + break; + } + case 112: { + RxFreq2 = input.ReadUInt32(); + break; + } + case 122: + case 120: { + factoryPresetFreqs_.AddEntriesFrom(ref input, _repeated_factoryPresetFreqs_codec); + break; + } + case 128: { + MaxEirp = input.ReadUInt32(); + break; + } + case 136: { + MaxDutyCycle = input.ReadUInt32(); + break; + } + case 144: { + SupportsJoin = input.ReadBool(); + break; + } + case 154: { + RfRegion = input.ReadString(); + break; + } + case 160: { + Supports32BitFCnt = input.ReadBool(); + break; + } + case 170: { + AdrAlgorithmId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoutingProfile : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoutingProfile()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Chirpstack.NetworkServer.ProfilesReflection.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 RoutingProfile() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoutingProfile(RoutingProfile other) : this() { + id_ = other.id_; + asId_ = other.asId_; + caCert_ = other.caCert_; + tlsCert_ = other.tlsCert_; + tlsKey_ = other.tlsKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoutingProfile Clone() { + return new RoutingProfile(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private pb::ByteString id_ = pb::ByteString.Empty; + /// + /// ID of the routing profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "as_id" field. + public const int AsIdFieldNumber = 2; + private string asId_ = ""; + /// + /// Application-server ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsId { + get { return asId_; } + set { + asId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ca_cert" field. + public const int CaCertFieldNumber = 3; + private string caCert_ = ""; + /// + /// CA certificate for connecting to the AS. + /// + [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 "tls_cert" field. + public const int TlsCertFieldNumber = 4; + private string tlsCert_ = ""; + /// + /// TLS certificate for connecting to the AS. + /// + [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 = 5; + private string tlsKey_ = ""; + /// + /// TLS key for connecting to the AS. + /// Note: when retrieving the routing-profile, the tls_key is not returned + /// for security reasons. When updating the routing-profile, an empty tls_key + /// does not clear the certificate, unless the tls_cert is also left blank. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TlsKey { + get { return tlsKey_; } + set { + tlsKey_ = 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 RoutingProfile); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoutingProfile other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AsId != other.AsId) return false; + if (CaCert != other.CaCert) return false; + if (TlsCert != other.TlsCert) return false; + if (TlsKey != other.TlsKey) return false; + 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 (AsId.Length != 0) hash ^= AsId.GetHashCode(); + if (CaCert.Length != 0) hash ^= CaCert.GetHashCode(); + if (TlsCert.Length != 0) hash ^= TlsCert.GetHashCode(); + if (TlsKey.Length != 0) hash ^= TlsKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteBytes(Id); + } + if (AsId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AsId); + } + if (CaCert.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CaCert); + } + if (TlsCert.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TlsCert); + } + if (TlsKey.Length != 0) { + output.WriteRawTag(42); + output.WriteString(TlsKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteBytes(Id); + } + if (AsId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AsId); + } + if (CaCert.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CaCert); + } + if (TlsCert.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TlsCert); + } + if (TlsKey.Length != 0) { + output.WriteRawTag(42); + output.WriteString(TlsKey); + } + if (_unknownFields != 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.ComputeBytesSize(Id); + } + if (AsId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsId); + } + if (CaCert.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CaCert); + } + if (TlsCert.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsCert); + } + if (TlsKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoutingProfile other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.AsId.Length != 0) { + AsId = other.AsId; + } + if (other.CaCert.Length != 0) { + CaCert = other.CaCert; + } + if (other.TlsCert.Length != 0) { + TlsCert = other.TlsCert; + } + if (other.TlsKey.Length != 0) { + TlsKey = other.TlsKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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.ReadBytes(); + break; + } + case 18: { + AsId = input.ReadString(); + break; + } + case 26: { + CaCert = input.ReadString(); + break; + } + case 34: { + TlsCert = input.ReadString(); + break; + } + case 42: { + TlsKey = 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.ReadBytes(); + break; + } + case 18: { + AsId = input.ReadString(); + break; + } + case 26: { + CaCert = input.ReadString(); + break; + } + case 34: { + TlsCert = input.ReadString(); + break; + } + case 42: { + TlsKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code From c8ae2a7b562ee053e096ab8ac356ae908431da3a Mon Sep 17 00:00:00 2001 From: Max Reble Date: Fri, 4 Nov 2022 12:01:36 +0100 Subject: [PATCH 4/4] adds Readme for csharp --- csharp/Readme.md | 123 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 csharp/Readme.md diff --git a/csharp/Readme.md b/csharp/Readme.md new file mode 100644 index 00000000..4e8116e8 --- /dev/null +++ b/csharp/Readme.md @@ -0,0 +1,123 @@ +# How to use gRPC with C# + +There are two ways to use the proto files + +## Create gRPC Client with proto files +The standard practice in C# is to build the proto files each time you build your application. All you need is the proto files. + +Assuming you are in the root of this repository: + +```commandline +dotnet new console -o GrpcChirpstackClient +cp -r protobuf GrpcChirpstackClient/protobuf/ +cd GrpcChirpstackClient +dotnet add package Grpc.Net.Client +dotnet add package Google.Protobuf +dotnet add package Grpc.Tools +``` +To make this work we also need some google api proto references: +
+Unix/Linux + +```commandline +git clone --depth=1 --branch=master https://github.com/googleapis/googleapis.git googleapis +mkdir -p protobuf/google/api +cp -r googleapis/google/api/*.proto protobuf/google/api/ +rm -rf googleapis +``` +
+ +
+Windows (PowerShell) + +```commandline +git clone --depth=1 --branch=master https://github.com/googleapis/googleapis.git googleapis +mkdir protobuf\google\api +copy -r googleapis\google\api\*.proto protobuf\google\api\ +rm -r -force googleapis +``` +
+ +Then edit your `GrpcChirpstackClient.csproj` and add an `` item group within the `` element +
+GrpcChirpstackClient.csproj + +```xml + + + + + + +``` +
+ +[Now continue on "For both ways"](#for-both-ways) + +## Use pre generate files +Use the pre generated .cs files you'll find in `csharp/protobuf`. +An example (assuming you are in the root of this repository) +``` +cd csharp +dotnet new console -o GrpcChirpstackClient +cp -r protobuf GrpcChirpstackClient/ChirpstackApi/ +cd GrpcChirpstackClient +dotnet add package Grpc.Net.Client +dotnet add package Google.Protobuf +``` +[Now continue on "For both ways"](#for-both-ways) + + +## For both ways + +Edit the `Program.cs` file (don't forget to change the `chirpstackApiUrl` and the `chirpstackJwt`!) +
+ Program.cs + +```csharp +using System.Net.Http.Headers; +using Grpc.Net.Client; +using Chirpstack.ApplicationServer.External.Api; + + +// The port number must match the port of the Chirpstack gRPC server. +const string chirpstackApiUrl = "http://localhost:8080"; +//In order to use the gRPC API methods, you must provide per-RPC credentials. +//Add the API TOKEN obtained using the web-interface here: +const string chirpstackJwt = "ey......"; + + +//Creates http client for authentication +var httpClient = new HttpClient(); +httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("bearer", chirpstackJwt); +var channelOptions = new GrpcChannelOptions { HttpClient = httpClient }; +//Creates GrpcChannel and Client +using var channel = GrpcChannel.ForAddress(chirpstackApiUrl, channelOptions); +var client = new OrganizationService.OrganizationServiceClient(channel); + +//List all organizations... + +var reply = await client.ListAsync(new ListOrganizationRequest { Limit = 10 }); +//... and print them +Console.WriteLine($"Found {reply.TotalCount} organizations:"); +foreach (var org in reply.Result) +{ + Console.WriteLine($"\t'{org.Name}' with Id {org.Id}"); +} + +Console.WriteLine("Press any key to exit..."); +Console.ReadKey(); +``` +
+ +When done just run the executable: +```commandline +dotnet run +``` +You should see something like this if everything worked: +```commandline +Found 1 organizations: + 'chirpstack' with Id 1 +Press any key to exit... +``` +